In the pursuit of the perfect language model, researchers often face a trade-off: do you build a specialist that excels at a narrow task, or a generalist that possesses broad linguistic fluency? Rather than choosing one, a recurring strategy across decades of research is to use probability interpolation—a method of blending the output distributions of multiple models at each step of the generation process.
By treating the next-token prediction not as a single choice, but as a weighted combination of "votes" from different architectures, systems can achieve performance that no single model could reach alone.
The Core Mechanism: Blending Distributions
At its simplest, probability interpolation works at the "logit" or "softmax" level. When a model predicts the next word, it produces a probability distribution over the entire vocabulary. In a linear interpolation scheme, we take the distributions from two or more models and calculate a weighted average.
For example, Hieu Hoang, Huda Khayrallah, and Marcin Junczys-Dowmunt demonstrated this in On-the-Fly Fusion of Large Language Models and Machine Translation. They fused a specialized Neural Machine Translation (NMT) model with a general-purpose Large Language Model (LLM). While the NMT model is an expert at translating, the LLM provides superior fluency. By interpolating their token-level probabilities during decoding, the system leverages the NMT model’s accuracy while the LLM "smooths" the output into more natural language.
Why It Works: Complementary Strengths
The intuition behind interpolation is that different models fail in different ways. A specialized model might be "brittle"—it knows the right facts but might produce ungrammatical or repetitive text. A general model is "fluid" but might hallucinate or miss domain-specific nuances.
- Structural vs. Statistical: Anoop Deoras and Tomáš Mikolov showed in Empirical Evaluation and Combination of Advanced Language Modeling Techniques that combining Recurrent Neural Networks (RNNs) with traditional n-gram models leads to massive reductions in perplexity. The n-grams capture local, "bursty" word patterns, while the RNNs capture long-distance dependencies.
- Abstraction vs. Surface Detail: In early statistical translation, Ruiqiang Zhang and Eiichiro Sumita found that interpolating a model trained on lemmatized (simplified) text with a standard model improved word alignment. The lemmatized model reduced data sparseness, while the surface model preserved grammatical correctness Boosting Statistical Machine Translation by Lemmatization and Linear Interpolation.
- Local vs. Global Context: Saeedeh Momtazi and colleagues used log-linear interpolation to combine "skip trigrams" (local context) with models that look across sentence boundaries (global context), significantly outperforming complex syntactic models Within and across sentence boundary language model.
Balancing Competing Objectives
Interpolation is not just for combining "good" models; it is a powerful tool for constrained generation. If you want a model to be fluent, safe, and stylistically specific, you can assign a specialized model to each objective.
In MixingBoard: a Knowledgeable Stylized Integrated Text Generation Platform, Xiang Gao 0011 and Michel Galley used this to blend GPT-2’s fluency with specific stylistic constraints. More recently, Ali Pesaranghader and Scott Sanner treated the interpolation weights as a "black-box" optimization problem. Using Gaussian Processes, they found the ideal balance between competing goals—like reducing toxicity while maintaining accuracy—without ever having to retrain the underlying models Gaussian Process Optimization for Adaptable Multi-Objective Text Generation using Linearly-Weighted Language Models.
Overcoming Model Over-Confidence
A subtle but critical challenge in interpolation is "over-confidence." Some neural models, particularly bidirectional ones, produce extremely "sharp" probability distributions where one token has a probability near 1.0 and all others are near zero. This makes interpolation difficult because the over-confident model effectively "vetoes" all others.
Xie Chen and Mark J. F. Gales addressed this in the context of speech recognition by applying softmax smoothing and log-linear combination. This allowed them to successfully integrate bidirectional RNNs with unidirectional ones, capturing both future and past context without the models drowning each other out Investigating Bidirectional Recurrent Neural Network Language Models for Speech Recognition.
Conclusion
The enduring success of interpolation—from 2007-era statistical models to 2024-era LLMs—stems from its simplicity and modularity. It allows researchers to "hot-swap" expertise. Whether it is Xiaodong He adapting a general translator to the travel domain Robust Speech Translation by Domain Adaptation or Tzu-Hsuan Tseng blending CNNs and LSTMs for sentiment analysis deepSA at SemEval-2017 Task 4, the principle remains the same: the ensemble is often wiser than its most intelligent member.