Spurious Rewards Paradox: Mechanistically Understanding How RLVR Activates Memorization Shortcuts in LLMs
Lecheng Yan, Ruizhe Li, Guanhua Chen, Qing Li, Jiahui Geng, Wenxi Li, Vincent Wang, Chris Lee
TL;DR
Reinforcement learning with verifiable rewards (RLVR) can improve performance on contaminated benchmarks even with spurious rewards, suggesting memorization shortcuts rather than genuine reasoning. The authors apply a mechanistic suite (Path Patching, Logit Lens, Jensen-Shannon Divergence, Neural Ordinary Differential Equations) to Qwen 2.5-Math to locate and validate a memory circuit. They identify a Functional Anchor in layers 18–20 and Structural Adapters in layers 21+, demonstrate a Perplexity Paradox, and prove causal control by scaling MLP keys to amplify or suppress contamination-driven outputs. This work provides a concrete pathway to detect, understand, and mitigate data contamination in RLVR-tuned models, with practical implications for safer evaluation and deployment of LLMs in reasoning domains.
Abstract
Reinforcement Learning with Verifiable Rewards (RLVR) is highly effective for enhancing LLM reasoning, yet recent evidence shows models like Qwen 2.5 achieve significant gains even with spurious or incorrect rewards. We investigate this phenomenon and identify a "Perplexity Paradox": spurious RLVR triggers a divergence where answer-token perplexity drops while prompt-side coherence degrades, suggesting the model is bypassing reasoning in favor of memorization. Using Path Patching, Logit Lens, JSD analysis, and Neural Differential Equations, we uncover a hidden Anchor-Adapter circuit that facilitates this shortcut. We localize a Functional Anchor in the middle layers (L18-20) that triggers the retrieval of memorized solutions, followed by Structural Adapters in later layers (L21+) that transform representations to accommodate the shortcut signal. Finally, we demonstrate that scaling specific MLP keys within this circuit allows for bidirectional causal steering-artificially amplifying or suppressing contamination-driven performance. Our results provide a mechanistic roadmap for identifying and mitigating data contamination in RLVR-tuned models. Code is available at https://github.com/idwts/How-RLVR-Activates-Memorization-Shortcuts.
