Do We Truly Need So Many Samples? Multi-LLM Repeated Sampling Efficiently Scales Test-Time Compute

Jianhao Chen, Zishuo Xun, Bocheng Zhou, Han Qi, Qiaosheng Zhang, Yang Chen, Wei Hu, Yuzhong Qu, Wanli Ouyang, Shuyue HuarXiv 2025 · DOI

Introduction

As the scaling of large language model (LLM) training compute begins to yield diminishing returns, the focus of the research community has shifted toward scaling compute during inference, often referred to as "test-time compute." A prominent technique in this domain is self-consistency, where a model is prompted multiple times for the same query, and a majority vote is taken over the generated reasoning paths. While effective at boosting accuracy on complex reasoning tasks, this approach is computationally expensive, with costs scaling linearly with the number of samples.

This paper introduces ModelSwitch, a training-free framework designed to optimize test-time compute. By dynamically switching between multiple LLMs and employing early-stopping criteria based on answer consistency, ModelSwitch achieves superior accuracy compared to massive single-model sampling while significantly reducing computational overhead.

The Core Insight: Consistency as a Proxy for Correctness

The foundational premise of ModelSwitch is the strong empirical correlation between an LLM's internal consistency and its accuracy. When an LLM generates the same answer across multiple independent samples (low entropy), it is highly likely to be correct. Conversely, a wide variety of answers (high entropy) suggests the model is "guessing" or lacks the necessary knowledge for the specific query.

By monitoring this consistency in real-time, ModelSwitch can determine whether to trust a smaller model's initial output or escalate the query to a more capable (or diverse) set of models. This approach bypasses the pitfalls of multi-agent "debate" systems, which can often lead to error propagation through forced interaction.

The ModelSwitch Framework

ModelSwitch moves away from the "brute-force" sampling of a single model. Instead, it distributes a fixed sampling budget $K$ across multiple models using a three-step process:

  1. Dynamic Switching via Consistency: For a given query, the system first draws a subset of samples from a primary model (e.g., $K/2$). If these samples are perfectly consistent, the system assumes correctness, outputs the answer immediately, and stops. This "early exit" can save up to 50% of the sampling budget on easier queries.
  2. Fallback to Diversity: If the primary model's outputs are inconsistent, ModelSwitch switches to a secondary, often more diverse or powerful model for the remaining budget. This leverages the idea that different models have non-overlapping error distributions; what one model finds confusing, another might solve easily.
  3. Weighted Voting: Finally, all generated samples are aggregated. ModelSwitch uses a weighted voting scheme that considers both the internal consistency of each model on the specific prompt and the models' historical performance on relevant benchmarks.
The ModelSwitch framework optimizes sampling by stopping early on consistent answers and switching to diverse models for difficult queries.

Key Results: Efficiency and Performance

The authors evaluated ModelSwitch across seven rigorous benchmarks, including GSM8K, MATH, MathBench, and MMLU-Pro. The results demonstrate that ModelSwitch consistently outperforms standard self-consistency baselines and complex multi-agent systems.

The most striking finding is the efficiency gain. On the MATH dataset, ModelSwitch reached 81% accuracy using only 35 samples. In comparison, a high-performing model like Gemini 1.5 Flash required 512 samples to reach a lower accuracy of 79.8%. This represents a 14x improvement in efficiency.

ModelSwitch achieves higher accuracy with significantly fewer samples compared to individual LLMs on MATH and MathBench.

Beyond raw accuracy, the framework provides substantial cost benefits. By stopping early on confident predictions, ModelSwitch reduced the average sample count per query by 34% across all tested datasets. This translates to API cost savings ranging from 15% on MMLU-Pro to 48% on tasks like GSM8K compared to standard self-consistency.

Conclusion and Future Directions

ModelSwitch proves that we do not necessarily need massive, homogeneous sampling to scale test-time compute. By intelligently navigating the trade-off between consistency and diversity, we can achieve state-of-the-art results with a fraction of the budget.

While the current framework focuses on the generation phase, future work could integrate ModelSwitch with advanced verification techniques, such as Process Reward Models (PRMs) or LLM-as-a-judge, to further refine the selection of the final answer and push the boundaries of inference efficiency.

Summary updated

BibTeX
@misc{chen2025do,
  author = {Jianhao Chen and Zishuo Xun and Bocheng Zhou and Han Qi and Qiaosheng Zhang and Yang Chen and Wei Hu and Yuzhong Qu and Wanli Ouyang and Shuyue Hu},
  title = {{Do We Truly Need So Many Samples? Multi-LLM Repeated Sampling Efficiently Scales Test-Time Compute}},
  year = {2025},
  eprint = {2504.00762},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.00762},
}
Figure