Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LaRA: Layer-wise Representation Analysis for Detecting Data Contamination in RL Post-Training

About

Reinforcement learning (RL) post-training has shown to improve reasoning in large language models (LLMs). However, there has been little exploration on the problem of data contamination in RL post-training, potentially undermining generalization and evaluation reliability of the training process itself. Existing detection methods primarily rely on output-level signals such as likelihood or entropy, which become unreliable for RL-trained models since RL shapes behavior through trajectory-level rewards rather than token likelihoods. We propose LaRA, a layer-wise representation analysis framework for detecting contamination in RL post-trained LLMs. LaRA introduces three complementary metrics, measuring perturbation sensitivity, directional collapse, and local representation rigidity under controlled perturbations. We find that contamination produces progressive geometric deviations across layers, including amplified perturbation sensitivity, stronger directional collapse, and enhanced local rigidity. Based on our findings, we also develop a contamination detection protocol that aggregates representation-level deviations across layers and metrics. Experiments on RL-trained reasoning models show that our protocol outperforms existing output-level baselines for contamination detection.

Minju Gwak, Minseo Kwak, Dongseok Lee, Guijin Son, Alan Ritter, Jaehyung Kim• 2026

Related benchmarks

TaskDatasetResultRank
Membership InferenceEurus
AUC0.79
24
Membership InferenceLIMR
AUC0.81
24
Membership Inference AttackEurus initial checkpoint
AUC73
8
Membership Inference AttackLIMR initial checkpoint
AUC80
8
Membership Inference AttackOLMO initial checkpoint
AUC0.54
8
Showing 5 of 5 rows

Other info

Follow for update