Abstract
Recent studies have raised significant concerns regarding the reliability of current mathematics benchmarks, highlighting issues such as simplistic design and potential data contamination. Consequently, developing a reliable benchmark that effectively evaluates large language models' (LLMs) genuine capabilities in mathematical reasoning remains a critical challenge. To address these concerns, we propose RV-Bench, a novel evaluation methodology for Benchmarking LLMs with Random Variables in mathematical reasoning. Specifically, we build question-generating functions to produce random variable questions (RVQs), whose background content mirrors original benchmark problems, but with randomized variable combinations, rendering them "unseen" to LLMs. Models must completely understand the inherent question pattern to correctly answer RVQs with diverse variable combinations. Thus, an LLM's genuine reasoning capability is reflected through its accuracy and robustness on RV-Bench. We conducted extensive experiments on over 30 representative LLMs across more than 1,000 RVQs. Our findings propose that LLMs exhibit a proficiency imbalance between encountered and "unseen" data distributions. Furthermore, RV-Bench reveals that proficiency generalization across similar mathematical reasoning tasks is limited, but we verified it can still be effectively elicited through test-time scaling.
Introduction
As Large Language Models (LLMs) increasingly dominate the landscape of artificial intelligence, benchmarks like MATH and GSM8K have become the standard for measuring mathematical "intelligence." However, the validity of these scores is increasingly questioned due to two primary factors: data contamination and simplistic evaluation. Because these benchmarks are public, they often leak into training sets, allowing models to "solve" problems through memorization rather than reasoning. Furthermore, static problems allow models to exploit shortcuts that fail when numerical variables are altered.
The core premise of RV-Bench is that genuine reasoning must be robust. If a model truly understands a mathematical concept, its ability to solve a problem should not depend on specific numerical values. By shifting the goalposts from "getting the right answer" to "understanding the pattern," RV-Bench provides a reality check for the state of AI reasoning.
Methodology: The RV-Bench Framework
To test this hypothesis, we developed a methodology to transform static problems into Random Variable Questions (RVQs). This transformation is achieved through a three-step programmatic construction:
- Initialization (
init): Defines constraints for variables to ensure problems remain solvable and maintain consistent difficulty. - Solution (
sol): A programmatic ground-truth generator that calculates correct answers for any valid variable combination. - Generation (
gen): A template that injects randomized variables into natural language prompts.
We applied this methodology to two primary datasets: MATH-RV (derived from high-school competition problems) and LEETCODE-RV (algorithmic problems reformulated as math). In total, RV-Bench consists of 230 question-generating functions producing 1,150 unique RVQs. To isolate reasoning from pure computation, we performed strict difficulty calibration, ensuring numerical complexity remained comparable to the original problems.
Key Insights and Results
Our evaluation of over 30 LLMs revealed several critical insights into the state of machine reasoning:
The Memorization Gap
Every model tested exhibited a performance drop (ranging from 4% to 16%) when moving from fixed benchmarks to randomized variables. This "memorization gap" suggests that current leaderboards likely overestimate genuine reasoning capabilities. We introduced the Complete Ratio (CR)—measuring success across both original and randomized variants—and the Original Only Ratio (OOR) to flag instances of likely memorization. Notably, there is a strong negative correlation ($r = -0.72$) between accuracy and accuracy drop on the MATH dataset: the smarter the model, the more robust it tends to be.
Distribution-Dependent Proficiency
Models performed significantly better on MATH-RV than on LEETCODE-RV. This suggests that LLMs develop "pockets" of expertise based on their training data distribution rather than a universal mathematical logic. They are learning to solve problems that look like the MATH dataset rather than learning the underlying principles of mathematics.
Test-Time Scaling
While zero-shot performance is often fragile, we found that test-time scaling (using pass@k) significantly closed the gap. For instance, Llama-3.2-3B improved from ~26% to ~56% accuracy with 10 attempts. This indicates that while the requisite knowledge may be present, the model's ability to consistently elicit it in a single shot is limited. Top performers like o3-mini and DeepSeek-R1 achieved over 80% overall accuracy, demonstrating superior robustness.
Conclusion
RV-Bench provides a necessary reality check for LLM evaluation. While top-tier models show high robustness, the general lack of generalization across "unseen" distributions highlights a fundamental ceiling in current architectures. Future work will focus on automating the creation of these question-generating functions and expanding the methodology to domains like physics and legal reasoning.
Summary updated