TL;DR
Large Language Models (LLMs) are showing impressive gains on reasoning benchmarks, but this paper argues that a significant portion of these gains might be due to "soft contamination" – training data containing semantically similar examples to benchmark tasks. This leads to shallow generalization, where models perform well on benchmarks not because of true reasoning ability, but because they've implicitly learned to solve those specific types of problems.
What Problem Does This Paper Address?
The rapid improvement of LLMs on benchmarks like coding and reasoning tasks is a key indicator of AI progress. However, a growing concern is data contamination, where benchmark data inadvertently leaks into the training sets of these models. Traditional methods focus on "exact" duplicates (word-for-word matches), but this paper highlights the more insidious problem of "soft" or "semantic" contamination. This occurs when training data contains examples that are semantically equivalent or very similar to benchmark tasks, even if they aren't exact string matches. The authors argue that this soft contamination can lead to an overestimation of LLMs' true generalization capabilities, making benchmark scores a less reliable measure of genuine reasoning ability and potentially masking the true pace of AI progress.
Methods
The core of the paper involves two main approaches:
- Prevalence Estimation: The authors analyze the Olmo3 training corpus to quantify the extent of soft contamination. They use embedding similarity (cosine similarity) to identify potential semantic duplicates between benchmark tasks and the training data. This is a more sophisticated approach than simple n-gram matching, as it captures semantic equivalence even with different wording. They then use LLM-assisted annotation to confirm these semantic duplicates.
- Finetuning Experiments: To understand the impact of this contamination, the researchers finetune the Olmo3 model on datasets containing semantic duplicates of benchmark tasks. They compare performance on both "seen" (data similar to what was used for finetuning) and "unseen" (truly held-out) benchmark data. They also conduct "ecologically valid" finetuning experiments, using contamination levels that reflect real-world scenarios.
Datasets
- Training Data: The primary training corpus analyzed is Olmo3, a large, open-source model. This includes its base training data (Dolma3, Dolmino) and finetuning datasets (Dolci3 SFT, DPO, RL).
- Benchmarks: The paper focuses on several reasoning and coding benchmarks:
- MBPP (Mostly Basic Python Problems): A dataset of programming questions and solutions.
- CodeForces: A dataset of competitive programming tasks.
- MuSR (Multi-Step Reasoning): A dataset for evaluating multi-step reasoning with long narratives.
- ZebraLogic: A dataset of logic grid puzzles.
Key Insights and Ideas
- Soft contamination is widespread: Even with decontamination efforts, semantic duplicates are prevalent in large LLM training corpora. Traditional exact duplicate detection misses a significant portion of this contamination.
- Semantic duplicates boost performance: Finetuning on semantic duplicates of benchmark data significantly improves performance on that benchmark, even on unseen examples. This suggests models are learning task-specific patterns rather than general reasoning.
- Shallow generalization is the norm: The performance gains observed are largely confined to the specific benchmark or closely related tasks, indicating a lack of broad, out-of-distribution generalization.
- Cosine similarity is a useful proxy: While not perfect, cosine similarity of embeddings serves as a good indicator for identifying potential semantic duplicates, guiding further analysis.
- Benchmark scores can be misleading: The paper argues that recent benchmark gains might be confounded by this shallow generalization, overstating the true progress in general AI capabilities.
Key Results
- High contamination rates: The study found semantic duplicates for 78% of CodeForces problems and exact duplicates for 50% of ZebraLogic problems within the Olmo3 training data.
- Performance gains from finetuning: Finetuning on semantic duplicates led to performance improvements of around 20% on both seen and unseen items for benchmarks like MuSR.
- Ecologically valid impact: Even with low contamination rates (around 4 in 10,000 training data points), finetuning showed substantial improvements, around 15%, on benchmark performance.
- Limited cross-benchmark generalization: Finetuning on one benchmark's duplicates did not typically improve performance on related but distinct benchmarks, reinforcing the idea of shallow generalization.
Limitations and Future Work
- Underestimation of prevalence: The authors acknowledge that their detection methods likely underestimate the true prevalence of semantic duplicates, especially with advanced synthetic data generation techniques.
- Closed corpora: The study is limited to open-source models like Olmo3, and larger, closed-source models might have different contamination rates and types.
- Defining "true" generalization: The paper raises the philosophical point that if AI development's goal shifts from OOD generalization to in-distribution performance on common tasks, the interpretation of benchmark scores might need re-evaluation.
- Further study on within-benchmark generalization: The authors suggest more research is needed to understand within-benchmark generalization in realistic training settings.
Summary updated