Evaluation of Large Language Models via Coupled Token Generation

Nina Corvelo Benz, Stratis Tsirtsis, Eleni Straitouri, Ivi Chatzi, Ander Artola Velasco, Suhas Thejaswi, Manuel Gomez-Rodriguez

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.

Figure 1: Example of coupled autoregressive generation for Llama 1B and Llama 8B. Boxes represent endogenous random variables and circles represent exogenous random variables. The value of each endogenous variable is given by a function of the values of its ancestors in the causal graph, as defined by Eq. 1. The value of the coupled noise variable U1 (purple) is sampled independently from a given distribution PU, and it determines the stochastic state of the samplers used by both Llama 1B and Llama 8B during the generation of token T1.

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.
Figure 2: Comparison between 1B and 3B on questions from the knowledge area “college computer science” of the MMLU dataset. Panel (a) shows the kernel density estimate (KDE) of the covariance between the scores of the two LLMs on each question under coupled generation; the dashed line corresponds to the average value. Panel (b) shows the KDE of the variance of the difference between the scores of the LLMs on each question under coupled and independent generation; the highlighted point corresponds to the median value. Panel (c) shows the absolute error in the estimation of the expected difference between the scores of the LLMs against the number of samples; for each point on the x-axis, we perform 1,000 sub-samplings and shaded areas correspond to 95% confidence intervals.
  • 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

BibTeX
@inproceedings{benz2026evaluation,
  author = {Nina Corvelo Benz and Stratis Tsirtsis and Eleni Straitouri and Ivi Chatzi and Ander Artola Velasco and Suhas Thejaswi and Manuel Gomez-Rodriguez},
  title = {{Evaluation of Large Language Models via Coupled Token Generation}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=jVqfL2jHUG},
}
Figure