M2A:通过模型合并在大语言模型中协同数学与智能体推理
M2A: Synergizing Mathematical and Agentic Reasoning in Large Language Models
AI 导读
M2A 是一种通过模型合并协同数学推理与智能体推理的新范式,直接在参数空间中沿特征子空间的零空间注入数学推理任务向量,避免扰动智能体行为。该方法无需额外梯度更新,并可调节合并系数控制推理长度。应用于微调后的 Qwen3-8B 时,M2A 将其 SWE-Bench Verified 解决率从 44.0% 提升至 51.2%,且无需重新训练,并可跨模型家族、智能体框架和任务域泛化。
正文 · 原文
Abstract:While reasoning has become a central capability of large language models (LLMs), the reasoning patterns required for different scenarios are often misaligned. Mathematical reasoning typically relies on intrinsic logic to solve closed-world problems in a single response, whereas agentic reasoning requires not only internal reasoning but also multi-turn interaction with external environments, interleaving thought and action. This misalignment prevents mathematical and agentic reasoning from effectively benefiting from each other, often yielding unstable reasoning behavior and only limited performance gains under multi-task learning. In this paper, we propose M2A, a novel paradigm that synergizes mathematical and agentic reasoning via model merging. To avoid overfitting to superficial reasoning patterns under joint training, M2A operates directly in parameter space: it identifies the feature subspace critical for agent behavior, and merges the mathematical reasoning task vector only along its null space, thereby injecting reasoning capability along directions that do not perturb agent behavior. Unlike SFT or RL, M2A requires no additional gradient-update and exposes the merging coefficient as a simple knob for controlling reasoning length. Experiments in a challenging real-world coding agent setting show that our method effectively extends agentic reasoning depth and delivers substantial performance improvements. Applied to a fine-tuned Qwen3-8B, M2A improves its SWE-Bench Verified resolved rate from 44.0% to 51.2% without retraining the model. Further experiments demonstrate that M2A generalizes across model families, agent scaffolds, and task domains.
| Comments: | Accepted at NeurIPS 2026 |
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2605.09879 [cs.AI] |
| (or arXiv:2605.09879v2 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2605.09879 arXiv-issued DOI via DataCite |
Submission history
From: Junjian Wang [view email]
[v1]
Mon, 11 May 2026 02:05:30 UTC (251 KB)
[v2]
Tue, 24 Nov 2026 13:37:15 UTC (731 KB)
来源:arXiv cs.AI · arxiv.org