Abstract
State of the art large language models rely on randomization to respond to a prompt. As an immediate consequence, a model may respond differently to the same prompt if asked multiple times. In this work, we argue that the evaluation and ranking of large language models should control for the randomization underpinning their functioning. Our starting point is the development of a causal model for coupled autoregressive generation, which allows different large language models to sample responses with the same source of randomness. Building upon our causal model, we first show that, on evaluations based on benchmark datasets, coupled autoregressive generation leads to the same conclusions as vanilla autoregressive generation but using provably fewer samples. However, we further show that, on evaluations based on (human) pairwise comparisons, coupled and vanilla autoregressive generation can surprisingly lead to different rankings when comparing more than two models, even with an infinite amount of samples. This suggests that the apparent advantage of a model over others in existing evaluation protocols may not be genuine but rather confounded by the randomness inherent to the generation process. To illustrate and complement our theoretical results, we conduct experiments with several large language models from the Llama family. We find that, across multiple knowledge areas from the popular MMLU benchmark dataset, coupled autoregressive generation requires up to 40% fewer samples to reach the same conclusions as vanilla autoregressive generation. Further, using data from the LMSYS Chatbot Arena platform, we find that the win-rates derived from pairwise comparisons by a strong large language model to prompts differ under coupled and vanilla autoregressive generation.
Introduction
Large Language Model (LLM) evaluation is currently hindered by high variance and significant computational costs due to the inherent randomness of sampling-based decoding. Because state-of-the-art models sample from a probability distribution rather than producing a single deterministic output, the same prompt can yield different answers across multiple runs. This non-determinism forces researchers to generate a massive number of responses to achieve stable performance metrics, which is both expensive and time-consuming.
Furthermore, in popular "LLM-as-a-judge" frameworks or human pairwise comparisons (such as the LMSYS Chatbot Arena), this randomness acts as a confounder. A model may win a comparison not due to superior capability, but because it happened to sample a more favorable path by chance. This paper introduces "coupled token generation" to control for this randomness, ensuring that differences in output are a result of model architecture rather than stochastic luck.
Methodology: Coupled Autoregressive Generation
The core of this approach is a causal framework for coupled autoregressive generation. In a standard "vanilla" setup, each model receives an independent random seed. In the proposed coupled setup, models share the same source of "noise" values while processing their respective token distributions.
The researchers utilize the Gumbel-max structural causal model (SCM). In this configuration, if two models (e.g., Llama-3-8B and its quantized version) assign similar probabilities to a set of tokens, the shared noise ensures they will likely sample the exact same token at that step. If the outputs diverge, it is strictly because the models' internal probability distributions—and thus their underlying weights—differed significantly. This coupling ensures that no model has "better luck" than another during the generation process.
Experimental Setup
The method was evaluated across several standard benchmarks and real-world conversational data:
- MMLU (Massive Multitask Language Understanding): Multiple-choice questions across 52 subjects.
- GSM8K: Grade school math word problems.
- HumanEval: Python programming tasks.
- LMSYS-Chat-1M: Real-world prompts from the Chatbot Arena, with comparisons judged by GPT-4o.
Key Results and Insights
Efficiency and Variance Reduction
By coupling the noise, the scores of compared models become positively correlated, which mathematically reduces the variance of the difference between their scores. On benchmarks like MMLU, GSM8K, and HumanEval, coupled generation required up to 75% fewer samples to reach the same confidence levels as vanilla independent generation. These gains were most pronounced when comparing similar models, such as a base model versus its 4-bit or 8-bit quantized versions.
Revealing Ranking Biases
Perhaps the most significant finding is that coupling can change the ranking of models in pairwise comparisons. Under independent generation, two models might appear tied; however, once randomness is controlled via coupling, one model may emerge as a clear winner. For instance, in LMSYS dataset experiments, Llama-3.1-8B and its 8-bit quantized version appeared indistinguishable under vanilla generation. Under coupled generation, the base 8B model showed a clear advantage, proving the initial "tie" was an artifact of random noise.
The "Luck" Factor in Evaluation
Current evaluation protocols may inadvertently reward models that are "luckier" in their sampling paths. Coupled generation isolates a model's fundamental capability from the noise of the generation process without adding any computational overhead, as it simply requires synchronizing random seeds at each token step.
Limitations and Future Work
While promising, the current framework assumes models share the same token vocabulary. Applying this to models with different tokenizers requires mapping to character-level distributions, which adds complexity. Additionally, while the Gumbel-max SCM provides counterfactual stability, other sampling methods may not offer the same level of variance reduction. Future research should explore how coupling affects other ranking systems, such as Elo ratings or the Bradley-Terry model, and address potential biases introduced by automated judges like GPT-4o.
Summary updated