Targeted replay keeps diverse reasoning in reinforcement learning models
Preserving Reasoning Diversity in Reinforcement Learning with Verifiable Rewards via Adaptive Replay
Computation and LanguageMachine Learning
Summary
Sometimes, when teaching AI models to solve problems, they learn one way really well but forget other good ways to solve the same problems. The authors show this happens because the model's training focuses too much on examples it already sees often, losing less common solutions. They created a method called TAR that remembers and replays a variety of good solutions during training so the model keeps different ways of thinking. This method helps AI models stay good at solving problems while keeping diverse answers.
What this means in practice
- •For ai developers: Maintain variety in AI reasoning strategies to improve model robustness during reinforcement learning fine-tuning.
- •For machine learning engineers: Use adaptive replay techniques to reduce forgetting of diverse but correct solutions when refining large language models on reasoning tasks.
Authors
Wen-Zhi Li, Sainyam Galhotra, Claire Cardie
Abstract
Reinforcement Learning with Verifiable Rewards (RLVR) improves the reasoning capabilities of large language models, but often reduces the diversity of their reasoning behaviors. We study this phenomenon from the perspective of finite-sample learning dynamics and show that limited on-policy rollouts can progressively suppress semantically distinct but equally rewarded reasoning modes. Once a mode becomes sufficiently under-sampled, standard on-policy RLVR rarely recovers it. Motivated by this observation, we propose TAR, a Targeted Adaptive Replay framework that preserves diverse correct reasoning behaviors already present in the base policy. TAR constructs a compact memory bank of diverse base-model solutions and selectively replays them through an adaptive mechanism that activates only when stored behaviors are being suppressed during RLVR. Across six mathematical reasoning benchmarks and two Qwen2.5 model scales, TAR consistently achieves a better balance between reasoning performance and diversity preservation than existing diversity-preserving post-training methods, while substantially reducing the forgetting of correct base-model solutions. Code is available at https://github.com/wenzhilics/tar.