Advancing General-Purpose Reasoning Models with Modular Gradient Surgery

Min Cai, Yu Liang, Longzheng Wang, Yan Wang, Yueyang Zhang +4 more
2/2/2026
cs.CLcs.AIcs.LG

No official code found. Best implementation: StringNLPLAB/MGS (22 stars, MIT, last commit 2026-03-15).

Abstract

Reinforcement learning (RL) has played a central role in recent advances in large reasoning models (LRMs), yielding strong gains in verifiable and open-ended reasoning. However, training a single general-purpose LRM across diverse domains remains challenging due to pronounced domain heterogeneity. Through a systematic study of two widely used strategies, Sequential RL and Mixed RL, we find that both incur substantial cross-domain interference at the behavioral and gradient levels, resulting in limited overall gains. To address these challenges, we introduce **M**odular **G**radient **S**urgery (**MGS**), which resolves gradient conflicts at the module level within the transformer. When applied to Llama and Qwen models, MGS achieves average improvements of 4.3 (16.6\%) and 4.5 (11.1\%) points, respectively, over standard multi-task RL across three representative domains (math, general chat, and instruction following). Further analysis demonstrates that MGS remains effective under prolonged training. Overall, our study clarifies the sources of interference in multi-domain RL and presents an effective solution for training general-purpose LRMs.

View on arXivView PDF

Code Implementations(1)

StringNLPLAB/MGSCommunity61%
MIT

Repository for the paper "Advancing General-Purpose Reasoning Models with Modular Gradient Surgery"

221Shell, PythonFeb 2, 20267 months agoMIT
gradient-surgeryllmpcgradpost-trainingrl

Similar Papers

Cite this paper

@article{cai2026advancing,
  title  = {Advancing General-Purpose Reasoning Models with Modular Gradient Surgery},
  author = {Min Cai and Yu Liang and Longzheng Wang and Yan Wang and Yueyang Zhang and Long Xia and Zhiyuan Sun and Xi Ye and Daiting Shi},
  year   = {2026},
  eprint = {2602.02301},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.02301v2}
}

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/2602.02301.svg)](https://codeofpaper.com/paper/2602.02301)

Discussion