Abstract
Current Large Language Model (LLM) evaluation is plagued by data contamination, where static test sets are inadvertently included in training corpora. This paper summarizes the VarBench framework, which introduces dynamic variable perturbation to create "fresh" evaluation instances. By replacing fixed values with variables and sampling new inputs, VarBench reveals a significant "reasoning gap," demonstrating that high performance on static benchmarks often stems from memorization rather than robust logical reasoning.
Introduction
As Large Language Models (LLMs) are trained on increasingly massive web-scale datasets, they inevitably encounter the very benchmarks used to evaluate their performance. This "data contamination" makes it difficult to distinguish between genuine reasoning and the recitation of memorized answers. Static benchmarks like GSM8K have become saturated, with many models achieving near-perfect scores. However, these scores may be inflated by "benchmark rot." To address this, we present VarBench, a framework for dynamic benchmarking that ensures models are tested on unique problem variations.
Methodology: Variable Perturbation
The core of VarBench is the Variable Perturbation process, which transforms static benchmarks into dynamic evaluation suites. This workflow consists of three primary stages:
- Delexicalization: Test cases are converted into templates by extracting key variables. For example, a mathematical word problem is abstracted into a format such as: "A farm has
{num_animals}animals..." - Solution Functions: Python functions are developed to represent the underlying logic of each problem. This allows for the automatic generation of ground-truth answers for any set of sampled variables.
- Dynamic Sampling: During evaluation, the system samples new values from predefined ranges (e.g.,
random.randint(2, 100)), creating a unique version of the test set for every run.
For multiple-choice tasks such as ARC or CommonsenseQA, where numerical values are not the primary focus, the framework perturbs choices by generating a pool of alternative correct and incorrect options and swapping them dynamically.
The VarBench Suite
The methodology was applied to four widely used benchmarks to create the VarBench suite:
- GSM+: Mathematical reasoning derived from GSM8K.
- ARC+: Science-based multiple-choice questions from the AI2 Reasoning Challenge.
- CommonsenseQA+: General knowledge and logic.
- TruthfulQA+: Evaluation of a model's tendency to mimic human falsehoods.
A wide range of models was evaluated, including open-source favorites like Mistral, Llama 3, and Phi-3, as well as frontier models like GPT-3.5 Turbo and GPT-4o.
Results and Analysis
Quantitative evaluation across the VarBench suite reveals a consistent performance decline when moving from static to dynamic benchmarks.
The Reasoning Gap
The most dramatic performance collapse was observed in mathematical reasoning (GSM8K vs. GSM+). Every model tested showed a significant drop. For example, Zephyr 7B β plummeted from 33.4% to 14.4% (a 58.8% relative drop), while GPT-4o fell from 81.6% to 62.1%. This "reasoning gap" suggests that current leaderboard rankings are heavily influenced by memorization.
Robustness and Instruction Tuning
- Task Sensitivity: Performance drops in ARC+ and CommonsenseQA+ were generally smaller (3% to 11%) than in math tasks. This suggests that verbal reasoning may be more robust to variable changes, or that numerical tokenization remains a bottleneck for LLMs.
- Tuning Effects: Interestingly, instruction-tuned models sometimes exhibited larger drops than their base versions, indicating that the tuning process might inadvertently encourage models to rely more heavily on memorized patterns.
- Logic vs. Phrasing: Ablation studies comparing variable perturbation to simple paraphrasing found that models are mostly robust to wording changes but highly sensitive to value changes, proving that the underlying logic is where models truly falter.
Limitations and Future Work
Despite its effectiveness, VarBench currently requires significant manual effort for delexicalization and the creation of solution functions. Future work will focus on automating these processes and expanding the suite to more complex domains such as code generation and long-form creative reasoning. Additionally, the researchers aim to investigate "semantic contamination," where models might recognize problem schemas even when specific tokens are altered.
Summary updated