TL;DR
RCP-Merging is a novel framework designed to merge "Reasoning Models" (those capable of long Chain-of-Thought) with domain-specific models (like those for Medicine or Finance) without causing the "output collapse" or "gibberish" common in traditional merging. By treating reasoning weights as a foundational Bayesian prior and using Fisher Information to protect them, the authors create models that retain deep reasoning logic while gaining specialized expertise.
What Problem Does This Paper Address?
The AI community has seen a surge in "Reasoning Models" (e.g., DeepSeek-R1, OpenAI o1) that use long Chain-of-Thought (CoT) to solve complex problems. Simultaneously, we have highly specialized models fine-tuned for specific fields like BioMedicine. Ideally, we want a model that can do both: use long CoT to solve complex medical cases.
However, training such a model from scratch is prohibitively expensive. Model merging—combining the weights of two pre-trained models—is a resource-efficient alternative. The challenge is that existing merging methods (like TIES or DARE) often break the delicate internal logic required for long CoT. This leads to "output collapse," where the merged model either loses its reasoning ability or, worse, starts outputting nonsensical "gibberish."
Methods
The authors introduce RCP-Merging (Reasoning Capability as Prior), which operates in three distinct stages:
- Domain Knowledge Sensitivity: The framework identifies which weights in the domain-specific model are actually important for its expertise. It uses a first-order Taylor expansion to approximate how much the loss would change if a specific weight were nullified.
- Reasoning Preservation Indicator: This is the core innovation. Instead of treating all weights as equal, the method treats the reasoning model's weights as a Bayesian prior. It uses the Fisher Information Matrix (FIM) to calculate a "preservation score" for each weight. A high score means that weight is critical for the model's reasoning foundation and should not be significantly altered.
- Reasoning-preserved Merging: Finally, the model uses a "majority vote" filtering mechanism. It only accepts updates from the domain-specific model if they don't "clash" with the reasoning prior. This ensures that domain knowledge is integrated only where it doesn't degrade the model's ability to think step-by-step.
Datasets
The authors evaluated their method across four "pillars" of performance using several well-known benchmarks:
- Mathematical Reasoning: GSM8K and AIME2024.
- Code Generation: HumanEval and LiveCodeBench.
- BioMedicine: PubMedQA and MedQA.
- General Knowledge: ARC-C and GPQA.
- Finance: ConvFinQA (used in the generalizability study).
The experiments were conducted on popular open-source architectures, including Qwen2.5-7B, Llama3.1-8B, and Qwen2.5-1.5B.
Key Insights and Ideas
- Reasoning is Fragile: The paper confirms that reasoning capabilities are much more sensitive to weight perturbations than general knowledge. Standard merging methods that rely on weight magnitude often overwrite the subtle "logic gates" that enable CoT.
- Reasoning as a Foundation: By framing the reasoning model as a "prior," the authors shift the merging philosophy from "averaging two models" to "adding expertise to a reasoning foundation."
- Emergent Domain Reasoning: A surprising "aha moment" was that the merged models didn't just keep their domain knowledge; they actually started applying long CoT logic to domain-specific problems—a capability neither the original reasoning model nor the domain model possessed in isolation.
- Solving the Gibberish Problem: While baselines like TIES-Merging suffered from gibberish rates as high as 82% on certain tasks, RCP-Merging maintained high output stability, proving that protecting the Fisher-important weights is key to model sanity.
Key Results
- Superior Performance: RCP-Merging outperformed state-of-the-art merging methods by 9.5% in BioMedicine and 9.2% in Finance tasks.
- Best of Both Worlds: On the Qwen2.5-7B suite, RCP-Merging achieved a score of 84.3 on GSM8K (Math) and 54.1 on MedQA (Medicine), significantly higher than any other merging baseline.
- Stability: The method achieved a 0% gibberish rate on PubMedQA, whereas many traditional merging methods collapsed entirely on that dataset.
- Cross-Architecture Success: The results were consistent across different model families (Qwen and Llama), suggesting the method is a generalizable solution for the "reasoning + domain" merging problem.
Limitations and Future Work
- Calibration Data: The method requires a small set of calibration data to calculate the Fisher Information Matrix. While the authors used very few samples, it still adds a step compared to "data-free" merging.
- Computational Overhead: Calculating the FIM is more computationally intensive than simple weight averaging, though the authors mitigated this by using a diagonal approximation of the matrix.
- Future Directions: The authors suggest exploring how this method scales to "mixture-of-experts" (MoE) architectures and whether it can be used to merge more than two specialized models simultaneously (e.g., a model that is an expert in Medicine, Law, and Reasoning).
Summary updated