Ensembling Language Models with Sequential Monte Carlo
Robin Chan, Tianyu Liu, Samuel Kiegeland, Clemente Pasti, Jacob Vigly, Timothy O'Donnell, Ryan Cotterell, Tim Vieira
NeurIPS page · Open on the map
Category: LLM Reasoning, Memory & RAG › Language Model Reasoning and Uncertainty · Type: new method · Keywords: language model ensembling, sequential Monte Carlo, text generation, aggregation functions, model combination
Summary
The paper casts language model ensembling as an inference problem and proposes a sequential Monte Carlo (SMC) framework that samples from unified ensemble distributions in a shared character space, enabling better consensus-seeking ensembles.
Explained to a 5-year-old
We have many smart computers that write words. They each think of words in different ways. When we want the best answer, we ask them all to share their ideas. The new trick helps them agree on what to say. This makes the answers more correct and helpful.
Explained to a 5-year-old, longer
Imagine you have two friends who each know a lot of stories. They each write a story, but they sometimes think of different words. When you want to know what the best story is, you could ask both friends and try to pick the one they both like. Doing this for many friends is hard because there are many possible words. We found a clever trick to let all the friends talk together and share their ideas in a common language. This way, even if they use different words, they can understand each other. The trick helps them agree on the best answer, which makes the result better. It works like a game where everyone keeps trying to get closer to the right answer. By doing many small steps, the friends can find a good answer together. This helps when we need to write text, answer questions, or create new ideas. It also works when the friends have different vocabularies. The result is that the combined answer is often more accurate and useful. So we can trust the group more than any single friend.
For a technical reader
The paper addresses the difficulty of ensembling language models by treating it as an inference problem. It introduces a sampling algorithm that works in a shared character space, allowing models with different vocabularies to be combined. The algorithm uses a family of aggregation functions, with consensus-seeking strategies like product outperforming simple averaging. Experiments across text generation tasks confirm improved ensemble performance.
Problem
Ensembling language models is challenging because they output distributions over strings, and aggregating predictions at the string level is computationally intractable.
Method
The approach formulates LM ensembling as an inference problem and uses an approximate inference scheme that samples in a shared character space, allowing ensembles of models with different vocabularies and employing aggregation functions to combine predictions.
Results
The experiments show that consensus-seeking aggregation strategies like product consistently outperform simple probability averaging, and improved posterior approximations lead to better ensemble performance.
Contributions
The paper introduces a unified framework for composing multiple language models into ensemble distributions using a broad family of aggregation functions, and proposes an SMC-based sampling algorithm that operates in a shared character space to enable consistent ensembling across mismatched vocabularies.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction