TL;DR
Large Language Models (LLMs) are notoriously unstable in evaluations, with small changes in prompts or few-shot examples drastically altering results and rankings. This paper introduces Instance-Level Randomization (ILR), a novel method that randomizes evaluation settings for each individual instance within a benchmark, leading to more stable, fair, and cost-effective LLM evaluations.
What Problem Does This Paper Address?
Evaluating LLMs is a critical but challenging task. A major hurdle is the "instability" of evaluation scores and model rankings. Even minor tweaks to factors like few-shot examples, task descriptions, or prompt phrasing can lead to significant fluctuations in performance metrics. This makes it difficult to reliably compare different LLMs, as a model might appear superior under one set of evaluation conditions but inferior under another. This inconsistency can lead to biased assessments and unreliable conclusions about a model's true capabilities. The paper aims to address this by developing a method to achieve more robust and fair LLM evaluations.
Methods
The core contribution of this paper is the Instance-Level Randomization (ILR) method. Unlike traditional evaluation approaches that use a fixed set of random factors (like few-shot examples) across an entire benchmark, ILR randomizes these factors for each individual instance within the benchmark.
Here's how it works:
- Theoretical Analysis: The authors first analyze the sources of variance in LLM evaluations, identifying contributions from instance-level variations and experiment-level variations.
- Instance-Level Randomization (ILR): For each instance in a benchmark, ILR randomly samples different settings for various random factors (e.g., few-shot examples, prompt formats, task descriptions, option labels).
- Averaging: The final evaluation score is then an average over multiple runs, each with randomized settings for each instance. This approach aims to "average out" the idiosyncratic preferences of LLMs for specific settings, leading to a more stable and representative assessment.
- Observed Reversal Probability (ORP): To quantify ranking stability, the authors introduce ORP, a metric that measures the likelihood of a model's ranking reversing due to changes in random factors.
Datasets
The paper evaluates its proposed method on several standard LLM benchmarks:
- Winogrande
- Hellaswag
- BigBench-Hard (BBH)
- MMLU-Pro
The experiments involve using a subset of samples from these datasets (e.g., 100 samples for Winogrande and Hellaswag, 500 for MMLU-Pro).
Key Insights and Ideas
- LLMs have idiosyncratic preferences: Different LLMs react differently to variations in evaluation settings. What works well for one model might not for another, leading to unfair comparisons when a fixed setting is used.
- Randomization is key to stability: By randomizing evaluation settings at the instance level, ILR effectively "smooths out" these model-specific preferences, leading to more consistent results.
- ILR reduces variance faster: The theoretical analysis and empirical results show that ILR can achieve a desired level of evaluation stability with significantly fewer experiments (less than half the computational cost) compared to traditional methods.
- ORP as a powerful metric: The introduction of Observed Reversal Probability (ORP) provides a novel and effective way to quantify the stability of model rankings, offering deeper insights into evaluation robustness.
Key Results
- Reduced Variance: ILR significantly reduces the variance of evaluation scores. For example, achieving a target standard deviation of 0.02 required approximately 3 experiments with ILR, compared to about 6.5 experiments without it, representing a >50% cost reduction.
- Lower Correlations: ILR substantially reduces both instance-level and experiment-level correlations between evaluation runs, indicating that results are less dependent on specific random factor choices.
- Improved Ranking Stability: ILR demonstrably reduces the Observed Reversal Probability (ORP) across various datasets and random factors, meaning model rankings are more stable and less likely to flip due to minor changes.
- Cost-Effective: The method achieves comparable robustness levels with less than half the computational cost of previous methods.
Limitations and Future Work
The authors acknowledge a few limitations and suggest future research directions:
- Independence Assumption: The current empirical validation assumes random factors are independent. Future work could explore the impact of correlated random factors, which are more complex to analyze.
- Scope of Random Factors: The study focused on common random factors (few-shot examples, task descriptions, prompt formats, option labels). ILR is designed to be broadly applicable, but its performance with more intricate or less common factors warrants further investigation.
- Interactions between Factors: The paper mentions that random factors may correlate with each other, posing challenges for joint analysis. Investigating ILR's effectiveness under such circumstances is a future direction.
Summary updated