← Latest papers
💬 NLP

Advancing General-Purpose Reasoning Models with Modular Gradient Surgery

To address the issue of cross-domain interference in multi-task reinforcement learning, this paper introduces **Modular Gradient Surgery (MGS)**, a method that resolves gradient conflicts at the transformer module level to significantly improve the performance of general-purpose large reasoning models across diverse domains.

Original authors: Min Cai, Yu Liang, Longzheng Wang, Yan Wang, Yueyang Zhang, Long Xia, Zhiyuan Sun, Xi Ye, Daiting Shi

Published 2026-02-11
📖 4 min read☕ Coffee break read

Original authors: Min Cai, Yu Liang, Longzheng Wang, Yan Wang, Yueyang Zhang, Long Xia, Zhiyuan Sun, Xi Ye, Daiting Shi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to train a world-class polymath—someone who needs to be a genius at high-level mathematics, a charming conversationalist, and a perfect assistant who follows complex instructions.

This paper, "Modular Gradient Surgery," tackles the exact problem researchers face when training "Large Reasoning Models" (the AI brains behind things like ChatGPT or DeepSeek).

Here is the breakdown of the problem and their brilliant solution using everyday analogies.


1. The Problem: The "Conflicting Coach" Dilemma

When researchers try to train an AI to do multiple things at once, they usually use one of two methods, both of which have major flaws:

  • The "One-at-a-Time" Method (Sequential RL): This is like training an athlete by spending all January on math, all February on social skills, and all March on following orders.
    • The Flaw: By the time you get to March, the athlete has "forgotten" how to do math (this is called Forgetting), or they’ve become so rigid in their math habits that they can't learn social skills effectively (this is called Rigidity).
  • The "Chaos in the Classroom" Method (Mixed RL): This is like throwing a math textbook, a poetry book, and a rulebook into a room and telling the student, "Learn everything at the same time!"
    • The Flaw: The instructions start to contradict each other. The "math" part of the brain wants to move in one direction, while the "chat" part wants to move in another. In AI terms, their gradients (the directions they learn in) are fighting each other. It’s like having two coaches screaming different directions at the same time; the student ends up confused and mediocre at everything.

2. The Discovery: The Brain is Modular

The researchers realized something crucial: An AI isn't just one giant, uniform blob of intelligence. It is built like a high-tech machine with different parts:

  • The "Memory" Modules (MLP layers): These act like the library, storing facts and knowledge.
  • The "Logic" Modules (Attention layers): These act like the reasoning engine, figuring out how to connect ideas.
  • The "Regulators" (LayerNorm): These act like the nervous system, keeping everything stable.

They found that when the AI gets "confused," the fight isn't happening everywhere. It’s usually localized. The "math" coach and the "chat" coach might be fighting over the Logic module, but they actually agree perfectly on the Memory module.


3. The Solution: "Modular Gradient Surgery" (MGS)

Instead of trying to force the entire brain to agree (which is too aggressive and slows everything down), the researchers invented Modular Gradient Surgery.

The Analogy: The Specialized Surgeon
Imagine a patient has a conflict in their body—their heart wants to beat fast, but their lungs want to breathe slowly. A "Global" doctor might try to sedate the entire body to stop the conflict, which makes the patient useless.

A "Modular Surgeon" is much smarter. They look at the body part-by-part.

  1. They check the Heart: "Are the signals conflicting here?" If yes, they perform a tiny "surgery" to remove only the conflicting part of the signal.
  2. They check the Lungs: "Are the signals conflicting here?" If the signals are already working together, they leave them alone and let them learn at full speed.

By performing "surgery" only on the specific modules where the "coaches" are fighting, the AI can learn math and chat simultaneously without one destroying the other.


4. The Result: A True Polymath

The results were impressive. When they applied this "surgery" to famous AI models (like Llama and Qwen):

  • Better at everything: The models didn't just get better at one thing; they became better at math, chat, and following instructions all at once.
  • No more forgetting: Unlike the "one-at-a-time" method, the AI didn't lose its math skills while learning to be a better conversationalist.
  • Scalable: The more they trained, the better it worked.

In short: Instead of forcing an AI to choose between being a mathematician or a poet, Modular Gradient Surgery allows it to be both, by surgically resolving the "arguments" happening inside its digital brain.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →