M2A:通过模型合并协同大语言模型的数学推理与智能体推理
M2A: Synergizing Mathematical and Agentic Reasoning in Large Language Models
论文提出M2A,一种通过模型合并协同数学推理与智能体推理的新范式。该方法在参数空间中识别对智能体行为关键的特征子空间,仅沿其零空间合并数学推理任务向量,无需额外梯度更新,合并系数可控制推理长度。在微调后的Qwen3-8B上,M2A将SWE-Bench Verified解决率从44.0%提升至51.2%,且无需重新训练模型。
arXiv:2605.09879v2 Announce Type: replace 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org