Data contamination—when benchmark test samples inadvertently leak into training data—severely compromises the reliable evaluation of Large Language Models (LLMs). While the AI community has developed robust tools to detect contamination during pre-training and Supervised Fine-Tuning (SFT), a critical vulnerability remains: the Reinforcement Learning (RL) post-training phase.
This paper introduces Self-Critique, a novel detection method that probes models for "policy collapse" via token-level entropy, alongside RL-MIA, a new benchmark for evaluating RL contamination. By shifting the focus from likelihood to entropy, Self-Critique boosts detection accuracy by up to 30% over existing baselines.
The Problem: Why Traditional Detectors Fail in RL
Most existing contamination detectors rely on Maximum Likelihood Estimation (MLE) signals. Because pre-training and SFT train models to assign high probabilities to seen text, traditional detectors look for unusually low perplexity or high log-probabilities to identify memorized data.
However, RL post-training (such as RLHF or RLVR) optimizes for rewards, not likelihood. This reward-driven objective decouples the model's behavior from simple likelihood metrics, effectively erasing the signals that traditional detectors rely on. Consequently, existing contamination detectors—like Perplexity (PPL) or Min-K%—perform no better than a random guess when trying to identify data memorized during the RL phase.
The Solution: Self-Critique and Policy Collapse
To detect RL-stage contamination, the authors shift the focus from likelihood to entropy. RL training tends to cause policy collapse: for samples that receive consistent rewards, the model converges onto a very narrow, highly deterministic reasoning path.
To expose this phenomenon, the authors propose the Self-Critique method, an active probing technique:
- Initial Response: The model is prompted with a question and generates its most confident answer using greedy decoding. The token-level entropy sequence of this response is recorded.
- Self-Critique Probing: The model is then given its own initial answer and explicitly instructed to provide an alternative reasoning path or a different solution.
- Comparison: The entropy sequence of the second response is compared to the first using a length-penalized cosine similarity.
The underlying logic: If a sample was in the RL training data, the model is rigidly "stuck" to the rewarded path and struggles to deviate, resulting in highly similar entropy sequences between the initial and critique responses. Conversely, if the sample is clean (unseen), the model is more flexible and produces a distinctly different entropy pattern when asked for an alternative.
Experimental Setup: The RL-MIA Benchmark
Because no existing benchmark isolates RL-phase contamination, the authors introduce RL-MIA (Reinforcement Learning Membership Inference Attack).
It utilizes mathematical reasoning datasets (AIME 2024, AIME 2025) and synthetic logical reasoning datasets (Knights & Knaves, SAT). Synthetic data is particularly valuable here as it guarantees zero pre-training exposure. To simulate contamination, 50% of the test items are injected into a base RL training corpus. Models are then trained on this mixed data, creating a controlled environment to test if detectors can distinguish the injected samples from the held-out clean ones.
Key Findings and Results
The experimental results highlight a stark contrast between Self-Critique and traditional likelihood-based methods:
- Massive Performance Gains: Self-Critique achieved an average AUC of 0.70 on Qwen2.5-7B-Instruct and 0.64 on DeepSeek-Math-7B-Instruct, outperforming the best baselines by 19% on average.
- Baseline Failure: Traditional methods like PPL and Min-K% hovered around 0.42–0.53 AUC, which is statistically indistinguishable from random guessing (0.50).
- Untangling Dual-Stage Contamination: The method successfully isolates RL-specific memorization even when data was also contaminated during pre-training. By filtering out items with strong pre-training signals, the RL-specific policy collapse becomes glaringly obvious.
Furthermore, ablation studies demonstrated high efficiency. Calculating exact entropy across the entire vocabulary isn't strictly necessary; approximating entropy using only the Top-3 or Top-5 token probabilities yields virtually identical results. This makes Self-Critique highly compute-efficient and viable for API-based black-box models.
Limitations and Future Work
While highly effective, the current study primarily focuses on math and logic tasks where RL has clear, verifiable rewards. In domains like code generation or creative writing—where multiple valid and diverse solutions are common—the "policy collapse" signature might manifest differently. Additionally, while the study utilized models ranging from 0.5B to 8B parameters, the dynamics of policy collapse and memorization should be further verified on frontier models exceeding hundreds of billions of parameters.
Summary updated