Papers › CRANE: Constrained Reasoning Injection for Code Agents via Nullspace Editing

CRANE: Constrained Reasoning Injection for Code Agents via Nullspace Editing

13 May 2026arXiv:2605.14084added by Syntology

Mingzhi Zhu, Michele Merler, Raju Pavuluri, Stacy Patterson

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Code agents must both reason over long-horizon repository state and obey strict tool-use protocols. In paired Instruct/Thinking checkpoints, these capabilities are complementary but misaligned. The Instruct model is concise and tool-disciplined, whereas the Thinking model offers stronger planning and recovery behavior but often over-deliberates and degrades agent performance. We present CRANE (Constrained Reasoning Injection for Code Agents via Nullspace Editing), a training-free parameter-editing method that treats the Thinking-Instruct delta as a directional pool of candidate reasoning edits for the Instruct backbone. CRANE combines magnitude thresholding to denoise the delta, a Conservative Taylor Gate to retain edits that are jointly beneficial for reasoning transfer and tool-use preservation, and Graduated Sigmoidal Projection to suppress format-critical update directions. By merging paired Instruct and Thinking checkpoints, CRANE delivers strong gains over either individual model while preserving Instruct-level efficiency: on Roo-Eval it achieves pass1 of 66.2% (+19.5%) for Qwen3-30B-A3B and 81.5% (+8.7%) for Qwen3-Next-80B-A3B; on SWE-bench-Verified it resolves up to 14 additional instances at both scales (122/500 and 180/500); and on Terminal-Bench v2 it improves pass1/pass5 by up to 2.3%/7.8%, reaching 7.6%/17.9% and 14.8%/30.3%, respectively, consistently outperforming alternative merging strategies across all three benchmarks.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.14084")

Code

Syntology Ran 12 of 18 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rpi-nsl/CRANE found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 12 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12ran
6unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from rpi-nsl/CRANE. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_format_neighborhoods rpi-nsl/CRANE/crane/crane_nullspace_format5_5.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 943a39eea2540d53 · report
build_seed_mix rpi-nsl/CRANE/crane/build_public_calibration_subsets.py found in paper text by Syntology ran Apache-2.0 (permissive) · 90047ec9a980d646 · report
decode_targets rpi-nsl/CRANE/src/crane_s_reason_auto.py found in paper text by Syntology ran Apache-2.0 (permissive) · de15c6b5b5a0f743 · report
is_public_calibration_set rpi-nsl/CRANE/crane/crane_calibration_public.py found in paper text by Syntology ran Apache-2.0 (permissive) · 5ecc4be2c44b632b · report
load_arch rpi-nsl/CRANE/crane/model_arch.py found in paper text by Syntology ran Apache-2.0 (permissive) · 90314bf4a4e9ee1b · report
load_stats rpi-nsl/CRANE/crane/analyze_calibration_stability.py found in paper text by Syntology ran Apache-2.0 (permissive) · a96b99f51e7b0b0f · report
locate_format_tokens rpi-nsl/CRANE/crane/crane_nullspace_format5_5.py found in paper text by Syntology ran Apache-2.0 (permissive) · c99f881b76df3461 · report
median_threshold rpi-nsl/CRANE/src/crane_denoise.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 9463b71f3d4065e8 · report
pearson rpi-nsl/CRANE/crane/analyze_calibration_stability.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 6148a8caae33e43a · report
rankdata rpi-nsl/CRANE/crane/analyze_calibration_stability.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 7f8e6ee5f90f787c · report
slerp_tensor rpi-nsl/CRANE/src/crane_merge.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · b21ddcd37b356aac · report
to_device rpi-nsl/CRANE/src/crane_s_reason_auto.py found in paper text by Syntology ran Apache-2.0 (permissive) · 85900954efb902a9 · report
build_long_context_calibration rpi-nsl/CRANE/crane/crane_nullspace_format5_5.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 5bb7421a66c31529 · report
get_d_r_texts rpi-nsl/CRANE/crane/crane_calibration.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e9c61188dbd84cf6 · report
get_d_t_texts rpi-nsl/CRANE/crane/crane_calibration.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 0af4150ef99982b8 · report
get_public_calibration_items rpi-nsl/CRANE/crane/crane_calibration_public.py found in paper text by Syntology unverified Apache-2.0 (permissive) · adfe6cac72f3929d · report
get_public_calibration_texts rpi-nsl/CRANE/crane/crane_calibration_public.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 05cc678bf62752b9 · report
wrap_with_fsdp rpi-nsl/CRANE/src/crane_s_reason_auto_fsdp.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 595a279e50bcdfb5 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.14084, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections