Amortizing Intractable Inference in Large Language Models
Abstract
Autoregressive large language models (LLMs) compress knowledge from their training data through next-token conditional distributions. This limits tractable querying of this knowledge to start-to-end autoregressive sampling. However, many tasks of interest---including sequence continuation, infilling, and other forms of constrained generation---involve sampling from intractable posterior distributions. We address this limitation by using amortized Bayesian inference to sample from these intractable posteriors. Such amortization is algorithmically achieved by fine-tuning LLMs via diversity-seeking reinforcement learning algorithms: generative flow networks (GFlowNets). We empirically demonstrate that this distribution-matching paradigm of LLM fine-tuning can serve as an effective alternative to maximum-likelihood training and reward-maximizing policy optimization. As an important application, we interpret chain-of-thought reasoning as a latent variable modeling problem and demonstrate that our approach enables data-efficient adaptation of LLMs to tasks that require multi-step rationalization and tool use.
Cite
Text
Hu et al. "Amortizing Intractable Inference in Large Language Models." International Conference on Learning Representations, 2024.Markdown
[Hu et al. "Amortizing Intractable Inference in Large Language Models." International Conference on Learning Representations, 2024.](https://mlanthology.org/iclr/2024/hu2024iclr-amortizing/)BibTeX
@inproceedings{hu2024iclr-amortizing,
title = {{Amortizing Intractable Inference in Large Language Models}},
author = {Hu, Edward J and Jain, Moksh and Elmoznino, Eric and Kaddar, Younesse and Lajoie, Guillaume and Bengio, Yoshua and Malkin, Nikolay},
booktitle = {International Conference on Learning Representations},
year = {2024},
url = {https://mlanthology.org/iclr/2024/hu2024iclr-amortizing/}
}