TRANSMISSION // 2605.09879v2
M2A aims to add reasoning while preserving AI agent actions
Source published
M2A merges mathematical reasoning into an existing AI agent’s model weights, aiming to strengthen internal reasoning without disrupting tool use. In the authors’ coding-benchmark tests, the method improved issue resolution, though evidence comes from specific experimental setups.

Mathematical reasoning often produces a single answer; an AI agent must also use tools, observe what happens and decide what to do next. A preprint introduces M2A, a way to combine these abilities by adjusting model weights while trying to preserve the agent’s interaction patterns.
Large language models can work through problems internally, but an AI agent must also interact with its environment: inspect files, call tools and adapt to what it finds. These demands can conflict. Adding mathematical reasoning may lengthen an agent’s thinking without helping it complete tasks—and can reduce how often it interacts with its environment.
In a preprint, Junjian Wang and colleagues propose M2A, a method for combining mathematical reasoning with an existing agent without further gradient-based training. The approach adjusts model weights while attempting to protect patterns associated with the agent’s think-and-act behavior.
How M2A combines capabilities
The researchers identify features associated with agent behavior by examining model activations near markers for transitions into and out of reasoning or tool calls. These features are used to estimate directions in the model’s internal representations that matter for interaction.
Next, they calculate the difference between a mathematical-reasoning model’s weights and those of a shared base model. Instead of adding that update directly to the agent, M2A projects it into directions that, according to the method, do not change the identified agent-critical features. It also adjusts the update’s strength by layer and skips layers where the agent and reasoning updates are less aligned. A merge-strength setting controls how much reasoning information is added.
This is model merging, not another round of supervised fine-tuning or reinforcement learning. However, “training-free” does not mean computation-free: the paper describes a calibration and merging process that uses model weights and forward passes.
Results on software issues
The main evaluation used SWE-Bench Verified, a benchmark of real software issues. The researchers tested an 8-billion-parameter Qwen3-based agent in the OpenHands environment. They report that M2A raised the resolved rate from 44.0% to 51.2%, averaged over three runs. Average reasoning length per step rose from 253.3 to 327.4 tokens. The average number of interaction steps was 178.0 with M2A, compared with 175.3 for the original agent.
These results fit the method’s aim: longer reasoning alongside a similar number of agent-environment steps. They do not establish that interaction behavior is preserved in every situation, or that the proposed internal mechanism alone caused the performance gain.
The paper’s comparisons also illustrate why the authors pursued a different approach. Their multi-task fine-tuned model, trained on both agent and mathematical reasoning data, had a resolved rate of 41.1%, compared with 44.0% for the base agent. Several conventional merging methods produced longer reasoning and fewer interaction steps. These are results from the authors’ particular experimental setup, not a general verdict on all fine-tuning or merging methods.
The researchers report further tests involving Llama 3.1-8B, other agent setups and the GAIA benchmark, where M2A scored higher than the corresponding agent baselines. These experiments extend the evaluation, but do not show that the method works across every model, tool system or task.
Limits of the evidence
The authors identify Qwen3-8B, OpenHands and SWE-Bench Verified as the main controlled setting. They also note that the method requires access to model weights and observable markers for transitions between reasoning and actions. Whether it preserves behavior across arbitrary tool formats or model scales remains uncertain; systems without clear action boundaries may need further work.
The benchmark results are evidence from specified tests, not a guarantee of better performance in everyday coding or consequential deployments. More broadly, a benchmark’s resolved rate does not by itself show how a system will behave in other environments or when errors have real-world effects.
The source is an arXiv preprint. The manuscript identifies itself with NeurIPS 2026, but its publication and review status have not been independently confirmed here. The findings should therefore be treated as the authors’ reported results, pending independent assessment and further testing.
- large language models
- AI agents
- model merging
- mathematical reasoning
- coding agents
- SWE-Bench Verified
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
A layer-by-layer merge aims to shorten AI reasoning without retraining
Shared method: Both papers merge model parameters without additional gradient updates. M2A projects a mathematical-reasoning update into a subspace intended to preserve agent behavior, while LHM uses curvature-based, layer-adaptive coefficients to balance reasoning accuracy and shorter outputs. This is a shared parameter-merging approach, not evidence that either method validates the other; their objectives and evaluations differ.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2605.09879v2 — Original paper
Excerpt reference:
static/papers/2605.09879v2.md:77-116
Basis: Paper text
Source SHA-256:c1d9326eb96684fa9b91286ff2f75a90219733ecb838377849f50e4b0843243a2605.09879v2 — Original paper
Excerpt reference:
static/papers/2605.09879v2.md:117-169
Basis: Paper text
Source SHA-256:c1d9326eb96684fa9b91286ff2f75a90219733ecb838377849f50e4b0843243a2611.03834v1 — Original paper
Excerpt reference:
static/papers/2611.03834v1.md:299-354
Basis: Paper text
Source SHA-256:09a0cb4f98d0b824c7db89790203d1fcb7da23d62e26d1317bece12c7927e0a42611.03834v1 — Original paper
Excerpt reference:
static/papers/2611.03834v1.md:246-298
Basis: Paper text
Source SHA-256:09a0cb4f98d0b824c7db89790203d1fcb7da23d62e26d1317bece12c7927e0a4
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A layer-by-layer merge aims to shorten AI reasoning without retraining
Source published
Shared keywords: large language models, mathematical reasoning, model merging
When Coding Benchmarks Reject Valid Fixes
Source published
Shared keywords: large language models
A debugger did not beat a second shell-based AI repair attempt
Source published
Shared keywords: swe bench verified
Why scientific computing needs human-guided AI proofs
Source published
Shared keywords: ai agents
When coding-agent tests reward the wrong fixes
Source published
Shared keywords: coding agents