NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Determine-Then-Ensemble: Necessity of Top-k Union for Large Language Model Ensembling

Yuxuan Yao, Han Wu, Mingyang Liu, Sichun Luo, Xiongwei Han, Jie Liu, Zhijiang Guo, Linqi Song

TL;DR

Ensembling Large Language Models (LLMs) can significantly boost performance, but current methods are computationally heavy and often combine incompatible models to their detriment. This paper introduces a "determine-then-ensemble" strategy to select compatible models and proposes UNITE (Union Top-$k$ Ensembling). UNITE is a highly efficient method that aligns only the top-$k$ token probabilities instead of the entire vocabulary, achieving state-of-the-art ensemble performance while slashing computational overhead and latency.

The Problem with Current Ensembles

Because different LLMs are trained on diverse datasets with varying architectures, they naturally develop unique strengths. Instead of training massive new models from scratch, researchers often "ensemble" existing models to combine their advantages. However, current probability-level ensembling methods (like DeePen or GAC) face two major hurdles:

  1. Blind Combinations: Existing methods often ignore which models should actually be combined. Pairing a strong model with a weak one, or pairing models with vastly different response styles, can actively degrade performance.
  2. Massive Inefficiency: At every single step of text generation, existing methods try to align the probability distributions across the entire vocabulary of all models (which can range from 32,000 to over 150,000 tokens). This requires heavy matrix operations, causing severe latency bottlenecks and frequent Out-Of-Memory (OOM) errors.

The Proposed Solution

To solve these issues, the authors propose a two-part framework:

1. Model Selection Strategy

Before ensembling, the authors recommend a heuristic approach to pick the right models. They suggest only ensembling models that have a performance gap of less than 10% on the target task, and ensuring their response styles (measured by average response length) are similar.

2. UNITE (Union Top-$k$ Ensembling)

Instead of aligning the full vocabulary, UNITE extracts only the top-$k$ (e.g., $k=10$) most likely next tokens from each base model, creating a small "union set." If a token from Model A's top-$k$ isn't in Model B's vocabulary, UNITE uses Model B's tokenizer to find the equivalent and updates the probabilities. Finally, it averages the normalized probabilities of this tiny union set to greedily pick the next token.

Key Insights and Ideas

  • Performance parity is crucial: Ensembling a great model with a mediocre one usually drags the great model down. It acts more like knowledge distillation for the weaker model than a boost for the stronger one. Models need to be within a ~10% performance gap for the ensemble to actually beat the best individual model.
Ensembling models with a large performance gap often degrades the performance of the stronger model.
  • Vocabulary size is a red herring: Despite fears that different tokenizers (e.g., 32k vs 128k vocab sizes) would ruin ensembling, the authors found it barely matters. About 80% of generated words are common words that are tokenized similarly across different LLMs anyway.
  • "Vibes" (Response Style) matter: Even if two models score the same and have the same vocabulary size, if one gives direct answers and the other gives verbose, step-by-step analysis, ensembling their probabilities creates a smoothed-out mess. Alignment in reasoning style is required for a successful ensemble.
  • Top-$k$ is all you need: You don't need to calculate the ensemble probability for the 50,000th most likely token. Just looking at the top 10 tokens per model captures almost all the necessary signal for a fraction of the compute.

Key Results

  • Accuracy Boosts: UNITE consistently outperformed baselines (LLM-Blender, DeePen, GAC). For example, ensembling LLaMA3 and Qwen2 yielded a +3.39% boost on GSM8K and +4.82% on MMLU over the base models.
  • Extreme Efficiency: UNITE manipulates fewer than 15 tokens per step (when $k=10$), compared to 32,000–170,000+ tokens for full-vocab methods. This reduces the operational tokens to less than 0.04% of current methods.
  • Low Latency: UNITE adds only ~10ms of latency per token compared to running a single model (87.78 ms/token vs ~75 ms/token). In contrast, baselines like GAC and DeePen balloon to 122 ms and 205 ms per token, respectively.
  • OOM Prevention: Baselines frequently hit Out-Of-Memory errors when ensembling models with large vocabularies (like LLaMA3 + Qwen2). UNITE handled them effortlessly due to its top-$k$ bottlenecking.
When ensembling models with large vocabularies, baselines like DeePen suffer from Out-Of-Memory (OOM) errors, a problem UNITE avoids.

Limitations and Future Work

  • Primary Model Dependency: Because UNITE avoids full vocabulary alignment, it requires designating one of the models as the "primary" model to handle the final tokenization and generation loop. While the authors suggest picking the slightly better-performing model, this could introduce a bias toward the primary model's generation style.
  • Hyperparameter Sensitivity: While $k=10$ works well across most tasks, increasing $k$ beyond 10 can sometimes lead to slight performance declines, meaning $k$ might need to be tuned depending on the specific models being ensembled.
  • Future Work: The authors successfully tested ensembling a dense model (Qwen1.5-72B) with a sparse MoE model (Mixtral-8x7B). Future work could explore dynamically adjusting $k$ during generation or applying this top-$k$ union logic to speculative decoding frameworks.

Summary updated

BibTeX
@inproceedings{yao2025determine,
  author = {Yuxuan Yao and Han Wu and Mingyang LIU and Sichun Luo and Xiongwei Han and Jie Liu and Zhijiang Guo and Linqi Song},
  title = {{Determine-Then-Ensemble: Necessity of Top-k Union for Large Language Model Ensembling}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=FDnZFpHmU4},
}
Figure