[Paper Review] The Impact of Post-training on Data Contamination
This study injects controlled data contamination into extended pre-training of large language models and compares downstream effects after supervised fine-tuning (SFT) and reinforcement learning with GRPO, revealing contamination can resurface and generalize after post-training, with effects amplified by model size.
We present a controlled study of how dataset contamination interacts with the post-training stages now standard in large language model training pipelines. Starting from clean checkpoints of Qwen2.5 (0.5B/1.5B) and Gemma3 (1B/4B), we inject five copies of GSM8K and MBPP test items into the first 2B tokens of an otherwise 25B token extended pre-training dataset. We then compare the contaminated and clean models both immediately after pre-training and again after two popular post-training methods: supervised fine-tuning (SFT) and reinforcement learning (RL) with group relative policy optimization (GRPO). The applied post-training steps do not have any contamination. Across math and coding benchmarks, we find three consistent patterns: (i) Contamination causes performance spikes that are gradually diminished with continued pre-training. After even 25B tokens the apparent performance inflation of contamination can become close to zero. (ii) Both SFT and GRPO resurface the leaked information, but with different external validity: SFT inflates scores only on the contaminated tasks, whereas GRPO also inflates performance on uncontaminated counterparts (GSMPlus, HumanEval). (iii) Model scale amplifies these tendencies, larger Supervised Fine Tuned models memorize more, while larger GRPO models translate leakage into more generalizable capabilities. Our results underscore the need for contamination audits \emph{after} post-training and suggest that RL-based post-training, although not immune, can help alleviate contamination-related over-estimation problems.
Motivation & Objective
- Assess how post-training stages interact with pre-training data contamination in large language models.
- Evaluate contamination effects after two post-training paradigms (SFT and RL with GRPO) on math and coding tasks.
- Examine how model scale influences contamination memorization versus generalization across post-training.
- Provide contamination audits and guidance for evaluating life-cycle effects of data leakage in LLMs.
Proposed method
- Inject five copies of GSM8K and MBPP test items into the first 2B tokens of a 25B extended pre-training dataset.
- Pre-train contaminated and clean checkpoints of Qwen2.5 (0.5B/1.5B) and Gemma3 (1B/4B).
- Apply two post-training procedures (SFT and GRPO-based RL) to corresponding training splits and compare results.
- Evaluate using GSM8k and MBPP as contaminated benchmarks and GSMPlus and HumanEval as uncontaminated benchmarks to assess generalization.
- Use LM Evaluation Harness and math-verify tooling to ensure consistent evaluation across setups.

Experimental results
Research questions
- RQ1Does post-training alleviate or intensify performance over-estimation caused by data contamination?
- RQ2Do the effects of contamination differ between SFT and GRPO post-training?
- RQ3How does model scale affect the persistence or generalization of contamination after post-training?
- RQ4Do post-training procedures create gains on uncontaminated benchmarks when contamination is present?
- RQ5What is the lifecycle impact of contamination from pre-training through post-training on downstream tasks?
Key findings
- Contamination can cause performance spikes during exposure that fade with continued pre-training, but the leaked information remains retrievable during post-training.
- SFT inflates scores mainly on contaminated tasks, while GRPO also inflates performance on uncontaminated benchmarks, indicating broader generalization rather than pure memorization.
- Model scale amplifies contamination effects under SFT, with larger models memorizing more, whereas GRPO translates leakage into improvements on both contaminated and external benchmarks.
- Post-training resurrects contamination effects that pre-training alone may mask, producing up to about a 4-point gap in some settings.
- GRPO tends to yield more generalizable improvements and can reduce the contamination-gap with scale, unlike SFT which tends to concentrate gains on contaminated tasks.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.