TL;DR
Evaluating Large Language Models (LLMs) is heavily confounded by the inherent randomness of sampling-based decoding. This paper introduces coupled autoregressive generation, a method that forces different LLMs to share the exact same source of randomness during evaluation. This approach reduces the number of samples needed for benchmark testing by up to 75% and prevents random token paths from distorting model rankings in pairwise comparisons.
What Problem Does This Paper Address?
When LLMs generate text, they don't just pick the single most likely next word; they sample from a probability distribution. Consequently, a model can provide completely different answers to the exact same prompt if asked multiple times.
When researchers try to evaluate or rank models, this randomness acts as a massive source of noise. To confidently state that Model A is better than Model B on a benchmark, evaluators must generate multiple responses per prompt to average out the luck of the draw. Furthermore, in popular human-preference leaderboards (like the LMSYS Chatbot Arena), this randomness can act as a hidden confounder. The authors reveal that independent randomness can actually flip the true ranking of models simply because one model got "luckier" token paths during generation.
Methods
The authors propose a causal framework called coupled autoregressive generation. Instead of letting each LLM use its own independent random seed (the standard "vanilla" approach), they treat the token sampler as a structural causal mechanism that shares the exact same exogenous noise values across all models under comparison.
Specifically, they implement this using a Gumbel-Max Structural Causal Model (SCM). If two different models (or two versions of the same model, such as a base model and its quantized variant) arrive at the same token probability distribution at a given step, the coupled noise ensures they will sample the exact same next token. This isolates performance differences strictly to the models' architectures and weights rather than their luck with the random number generator.
Datasets
The method was validated across several prominent LLM evaluation datasets using models from the Llama, Mistral, and Qwen families:
- MMLU: A multiple-choice benchmark covering 52 academic and professional subjects.
- GSM8K: A dataset of grade-school math word problems.
- HumanEval: A coding benchmark consisting of Python programming problems.
- LMSYS-Chat-1M: Real-world user prompts from the Chatbot Arena, used here for open-ended pairwise comparisons with GPT-4o acting as the judge.
Key Insights and Ideas
- Eliminating the "Luck" Factor: Coupled generation ensures that no model gets a friendlier sequence of random tokens than its competitor. For standard benchmark datasets, this leaves the expected score difference unchanged but dramatically shrinks the variance.
- Rankings Can Flip: For pairwise win-rates, the story changes. Because win-rate calculation is non-linear, coupling the randomness doesn't just reduce variance—it can actually change the final win-rates and alter model rankings.
- Revealing True Ties: Coupling randomness increases the number of ties when comparing highly similar models (e.g., a model vs. its 8-bit quantized version). This suggests that vanilla independent generation often creates an illusion of superiority purely driven by random token paths.
Key Results
- Massive Sample Efficiency: Across multiple benchmarks (MMLU, GSM8K, HumanEval), coupled generation required up to 75% fewer samples than independent generation to reach the same statistical conclusions.
- Fewer Samples for the Same Error: As shown in the MMLU evaluation, the absolute estimation error drops much faster with fewer samples under coupled generation compared to independent generation.
- Altered Pairwise Rankings: When evaluating Llama models on LMSYS prompts using GPT-4o as a judge, independent generation found Llama-3.1-8B-Instruct and its 8-bit quantized variant (
bnb-8bit) to be statistically indistinguishable. Under coupled generation, however, the true architectural advantage was unconfounded, and the base 8B model clearly took the top spot alone.
Limitations and Future Work
- Shared Vocabulary Assumption: The current formulation assumes that the models being compared share the exact same token vocabulary. The authors suggest that future work could extend this to different vocabularies by mapping models to a shared character-level representation, though this introduces approximation challenges.
- Sensitivity to Sampler Choice: The theoretical guarantees rely on samplers that satisfy "counterfactual stability" (like the Gumbel-Max sampler). While common libraries like PyTorch use this by default, exploring how other sampling schemes perform remains an open question.
- LLM-as-a-Judge Biases: The pairwise comparison experiments relied on GPT-4o as a judge, which may introduce its own systematic biases. Validating these ranking flips with human annotators is a crucial next step.
Summary updated