Abstract
Large language models (LLMs) exhibit varying strengths and weaknesses across different tasks, prompting recent studies to explore the benefits of ensembling models to leverage their complementary advantages. However, existing LLM ensembling methods often overlook model compatibility and struggle with inefficient alignment of probabilities across the entire vocabulary. In this study, we empirically investigate the factors influencing ensemble performance, identifying model performance, vocabulary size, and response style as key determinants, revealing that compatibility among models is essential for effective ensembling. This analysis leads to the development of a simple yet effective model selection strategy that identifies compatible models. Additionally, we introduce the Union Top-k Ensembling (UniTE), a novel approach that efficiently combines models by focusing on the union of the top-k tokens from each model, thereby avoiding the need for full vocabulary alignment and reducing computational overhead. Extensive evaluations across multiple benchmarks demonstrate that UniTE significantly enhances performance compared to existing methods, offering a more efficient framework for LLM ensembling.
Introduction
While ensembling multiple LLMs can leverage their complementary strengths, current approaches encounter two major obstacles. First, Model Incompatibility is often ignored; researchers frequently ensemble models without considering if their performance gaps or response styles are compatible. If models have vastly different "personalities"—for instance, one providing direct answers while another offers step-by-step reasoning—the ensemble may perform worse than the best individual model. Second, the Vocabulary Tax associated with probability-level ensembling is high. Aligning the entire vocabulary of multiple models (e.g., one with 32k tokens and another with 150k) is computationally expensive and introduces noise from low-probability tokens. This research proposes a "Determine-Then-Ensemble" framework to address these challenges.
Methodology: Determine-Then-Ensemble
The proposed framework consists of a model selection phase followed by a novel ensembling technique.
1. Model Selection Strategy
Effective ensembling requires compatible candidates. Empirical analysis reveals three key determinants:
- Performance Parity: Ensembling is most effective when models have a performance gap of less than 10%. Large gaps often lead to the weaker model degrading the ensemble's output.
- Style Alignment: Models should share similar response styles (e.g., length and formatting). Mismatched styles lead to misaligned token-level probability distributions.
- Vocabulary Independence: Interestingly, differences in vocabulary size do not inherently hinder ensembling, provided the models are otherwise compatible.
2. UniTE (Union Top-k Ensembling)
To bypass the "vocabulary tax," UniTE focuses only on the union of the top-k tokens (typically $k=10$) from each model. Instead of aligning 100,000+ tokens, UniTE identifies the most likely tokens for each model. If a token is in Model A's top-k but not Model B's, it specifically retrieves that token's probability from Model B. This approach avoids massive mapping matrices, ignores low-probability "noise," and significantly reduces computational overhead.
Experimental Evaluation
The researchers evaluated UniTE across eight benchmarks covering reasoning (GSM8K, PIQA, BBH), knowledge (TriviaQA, NQ), and general multi-tasking (MMLU, ARC-C, CMMLU).
Key Results
- Superior Performance: UniTE consistently outperformed state-of-the-art methods like DEEPEN and GAC. On the GSM8K benchmark, it improved performance by 3.39% over the base Llama 3 model.
- Efficiency and Stability: UniTE operates on less than 0.04% of the tokens compared to full-vocabulary methods, resulting in minimal inference overhead (approx. 10ms per token). Furthermore, it avoids the Out-of-Memory (OOM) errors common in methods like DEEPEN when using large-vocabulary models.
Discussion and Insights
The study highlights that the "long tail" of the vocabulary is often detrimental; focusing on the top-k tokens acts as a natural denoiser. Furthermore, a model's reasoning style is a more significant barrier to ensembling than its architecture. The "wisdom of the crowd" in LLMs appears concentrated in a very small subset of likely next-tokens, as increasing $k$ beyond 10 yielded diminishing returns.
Conclusion
While UniTE optimizes alignment, the raw compute cost of running multiple LLM forward passes remains a challenge. Future work could explore more sophisticated automated measures for "response style compatibility" and dynamic $k$ selection based on the entropy of probability distributions at each generation step.
Summary updated