Stabilizing Knowledge, Promoting Reasoning: Dual-Token Constraints for RLVR

Jiakang Wang, Runze Liu, Fuzheng Zhang, Xiu Li, Guorui Zhou
7/21/2025
cs.CL

Official code: wizard-III/ArcherCodeR (44 stars, MIT, last commit 2025-08-06).

Abstract

Reinforcement Learning with Verifiable Rewards (RLVR) has become an effective post-training method for improving the reasoning abilities of Large Language Models (LLMs), mainly by shaping higher-order behaviors such as reflection and planning. However, previous RLVR algorithms often apply uniform training signals to all tokens, without considering the different roles of low-entropy knowledge-related tokens and high-entropy reasoning-related tokens. Some recent methods try to separate these token types by gradient masking or asynchronous updates, but these approaches may break semantic dependencies in the model output and hinder effective learning. In this work, we propose Archer, an entropy-aware RLVR approach with dual-token constraints and synchronous updates. Specifically, our method applies weaker KL regularization and higher clipping thresholds to reasoning tokens to encourage exploration, while using stronger constraints on knowledge tokens to maintain factual knowledge. Experimental results on several mathematical reasoning and code generation benchmarks show that our approach significantly outperforms previous RLVR methods, reaching or exceeding state-of-the-art performance among models of comparable size. The code is available at https://github.com/wizard-III/ArcherCodeR.

View on arXivView PDF

Code Implementations(1)

MIT

ArcherCodeR is an open-source initiative enhancing code reasoning in large language models through scalable, rule-governed reinforcement learning.

443Shell, PythonJun 16, 20251 years agoMIT

Similar Papers

Cite this paper

@article{wang2025stabilizing,
  title  = {Stabilizing Knowledge, Promoting Reasoning: Dual-Token Constraints for RLVR},
  author = {Jiakang Wang and Runze Liu and Fuzheng Zhang and Xiu Li and Guorui Zhou},
  year   = {2025},
  eprint = {2507.15778},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.15778v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.15778.svg)](https://codeofpaper.com/paper/2507.15778)

Discussion