Lune

ACL2024Top-tier venue

Learning to Decode Collaboratively with Multiple Language Models

Zejiang Shen, Hunter Lang, Bailin Wang, Yoon Kim, David A. Sontag

2024Year
25Top-tier citations

Abstract

We propose a method to teach multiple large language models (LLM) to collaborate by interleaving their generations at the token level. We model the decision of which LLM generates the next token as a latent variable. By optimizing the marginal likelihood of a training set under our latent variable model, the base LLM automatically learns when to generate itself and when to call on one of the "assistant" language models to generate, all without direct supervision. Token-level collaboration during decoding allows for a fusion of each model's expertise in a manner tailored to the specific task at hand. Our collaborative decoding is especially useful in cross-domain settings where a generalist base LLM learns to invoke domain expert models. On instruction-following, domainspecific QA, and reasoning tasks, we show that the performance of the joint system exceeds that of the individual models. Through qualitative analysis of the learned latent decisions, we show models trained with our method exhibit several interesting collaboration patterns, e.g., template-filling. 1 Here's a recipe for Kubdari, a traditional Georgian dish: Ingredients: * 1 lb ground beef * 1 onion, finely cho pped * 2 cloves garlic, minced * 1 cup chopped parsley * 1 cup chopped cilantro * 1 cup chopped dill * 1 cup chopped ...

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext bc89da83-d1c4-4eda-8296-c57ab03e4e33

Cited by top-tier papers25

Ask how each one uses it

Builds on20

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines