# M2A: Synergizing Mathematical and Agentic Reasoning in Large Language Models

*JunJian Wang, Xin Zhou, Qiran Xu, Kun Zhan*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153004) · [OpenReview](https://openreview.net/forum?id=OgH3KkShw6) · [alphaXiv](https://www.alphaxiv.org/abs/2605.09879) · [Open on the map](../papers.html#p153004)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Skill Management for LLM Agents](../pgroup/140.md) · Type: new method · Keywords: mathematical reasoning, agentic reasoning, model merging, parameter space, code debugging

Areas: [LLM Reasoning](../areas/reasoning.md) › Agentic Reasoning › Skill-Augmented Reasoning; [AI Agents](../areas/agents.md) › Agent Systems and Interactions › Agentic Reasoning and Tool Use

## Summary
M2A synergizes mathematical and agentic reasoning via a parameter-space model merging paradigm, extending agentic reasoning depth and improving performance on coding benchmarks without additional training.

## Explained to a 5-year-old
Big computer brains can do two kinds of thinking. One is solving math problems by themselves, like puzzles. The other is helping with tasks by talking back and forth, like a robot that can act in the world. When you try to make a computer do both kinds of thinking at the same time, they can get confused and not work well together. The researchers made a new trick that mixes the two ways so the computer can think more and solve more problems.

## Explained to a 5-year-old, longer
Big computer brains can do two kinds of thinking. One is solving math problems by themselves, like puzzles. The other is helping with tasks by talking back and forth, like a robot that can act in the world. When you try to make a computer do both kinds of thinking at the same time, they can get confused and not work well together. The researchers noticed this problem and wanted to fix it. They came up with a new idea that mixes the two kinds of thinking without breaking the second kind. They look at the parts of the computer that are important for the robot-like thinking and add the math-thinking part only where it won't disturb the robot part. This lets the computer think more deeply and solve harder problems. They tested it on a computer that helps fix code, and it got better at solving real-world coding problems. The improvement was from fixing 44% of problems to fixing 51% of problems. No extra training was needed, just a simple setting. The new method is easy to use and can help many kinds of computer programs. It makes the computer smarter for both thinking and doing things.

## For a technical reader
The paper proposes a parameter-space merging technique that aligns mathematical and agentic reasoning without disturbing the agent-specific feature subspace. By injecting the math reasoning vector only along the null space of the agent subspace, it extends reasoning depth and improves task performance. Applied to a fine-tuned Qwen3-8 B, the method raises SWE-Bench Verified resolution from 44.0% to 51.2% with a simple merging coefficient. No extra gradient updates or fine-tuning are required, making it computationally efficient.

## Problem
Mathematical reasoning and agentic reasoning are misaligned, causing unstable behavior and limited gains when combined in multi-task learning.

## Method
The approach merges mathematical and agentic reasoning by operating in parameter space: it identifies the feature subspace critical for agent behavior and injects the mathematical reasoning task vector only along its null space, using a merging coefficient to control reasoning length without additional gradient updates.

## Results
The approach extends agentic reasoning depth and improves the SWE-Bench Verified resolved rate from 44.0% to 51.2% without retraining the model.

## Contributions
It introduces a parameter-space model merging paradigm that aligns mathematical and agentic reasoning without perturbing agent behavior, and provides a simple merging coefficient to control reasoning length.

## Practical relevance
The method enables more capable coding agents that can solve real-world software engineering tasks more effectively with limited computational overhead.

## Research questions this paper is counted under

- [How can agents maintain robust, diverse, and efficient reasoning over long-horizon tasks while avoiding hallucinations and memory inefficiencies?](../q/479.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153004)
