CRANE: Constrained Reasoning Injection for Code Agents via Nullspace Editing
Mingzhi Zhu, Michele Merler, Raju Pavuluri, Stacy Patterson
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › Agent Orchestration and Meta-Reasoning · Type: new method · Keywords: code agents, parameter editing, model merging, reasoning transfer, tool-use preservation
Areas: LLM Reasoning › Agentic Reasoning › Tool Use in Agents; Code & Coding Agents › Code Verification › Software engineering agents; AI Agents › Agent Systems and Interactions › Agentic Reasoning and Tool Use
Summary
CRANE is a training-free parameter-editing method that merges paired Instruct and Thinking checkpoints to improve code agents' reasoning while preserving tool-use efficiency.
Explained to a 5-year-old
We have two robot helpers. One is good at following rules, the other is good at thinking ahead. They don't work well together. We find a way to copy the good thinking from the second helper to the first helper without changing its rules. This makes the first helper smarter and still follows the rules.
Explained to a 5-year-old, longer
Imagine a robot that helps you fix computer code. It has two brains. One brain is very careful and only does what it's told, like a strict teacher. The other brain is more creative and can think ahead, but it sometimes takes too long and makes mistakes. When you use both brains together, they don't agree, and the robot doesn't work as well. The researchers noticed this problem and wanted to help the robot get the best of both brains without losing its careful nature. They looked at the differences between the two brains and found useful ideas. They filtered out the noisy ideas, kept only the ones that help both thinking and rule-following, and removed updates that could break the format. By merging these selected ideas into the careful brain, the robot becomes smarter while still obeying the rules. As a result, the robot solves more coding puzzles correctly and faster. This new method works without needing to retrain the whole model, saving time and resources.
For a technical reader
CRANE merges two pre-trained checkpoints-a tool-disciplined Instruct model and a reasoning-strong Thinking model-by editing the Instruct model’s parameters. It extracts the delta between the models, denoises it with magnitude thresholds, selects edits that balance reasoning gains and tool preservation using a Conservative Taylor Gate, and suppresses format-critical updates with a Graduated Sigmoidal Projection. The edited model retains the Instruct model’s efficiency while inheriting the Thinking model’s planning ability, yielding consistent improvements on code-agent benchmarks.
Problem
Code agents need to both reason over long-horizon repository state and follow strict tool-use protocols, but these capabilities are often misaligned in paired models.
Method
The approach treats the delta between paired Instruct and Thinking checkpoints as a pool of candidate reasoning edits, applies magnitude thresholding to filter noise, uses a Conservative Taylor Gate to select edits that jointly improve reasoning and preserve tool-use, and applies Graduated Sigmoidal Projection to suppress format-critical updates.
Results
The approach achieves pass@1 of 66.2% (+19.5%) on Roo-Eval for Qwen3-30B-A3B and 81.5% (+8.7%) for Qwen3-Next-80B-A3B; on SWE-bench-Verified it resolves 122/500 and 180/500 instances; and on Terminal-Bench v2 it improves pass@1/pass@5 to 7.6%/17.9% and 14.8%/30.3%.
Contributions
The paper introduces a training-free editing technique that leverages paired model deltas to jointly enhance reasoning and preserve tool-use, and demonstrates consistent gains over individual models and alternative merging strategies across multiple code-agent benchmarks.
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