CRANE:通过空域编辑实现代码代理的约束推理注入
CRANE: Constrained Reasoning Injection for Code Agents via Nullspace Editing
AI总结:
CRANE通过空域编辑技术,结合推理和工具使用能力,提升代码代理性能,在多个基准测试中取得显著成果。
摘要:
代码代理必须同时对长周期的仓库状态进行推理并遵守严格的工具使用协议。在配对的Instruct/Thinking检查点中,这些能力是互补但不一致的。Instruct模型简洁且工具纪律性强,而Thinking模型提供更强的规划和恢复行为,但往往过度 deliberates 并降低代理性能。我们提出CRANE(通过空域编辑实现代码代理的约束推理注入),一种无需训练的参数编辑方法,将Thinking-Instruct的delta视为Instruct骨干的候选推理编辑方向池。CRANE结合幅度阈值去噪delta,保守的泰勒门来保留对推理转移和工具使用保留共同有益的编辑,以及渐进的Sigmoid投影来抑制格式关键的更新方向。通过合并配对的Instruct和Thinking检查点,CRANE在单独模型上取得显著优势的同时保持Instruct级别的效率:在Roo-Eval上,它实现了Qwen3-30B-A3B的pass1为66.2%(+19.5%)和Qwen3-Next-80B-A3B的81.5%(+8.7%);在SWE-bench-Verified上,它在两个规模(122/500和180/500)上解决了多达14个额外的实例;在Terminal-Bench v2上,它提高了pass1/pass5高达2.3%/7.8%,分别达到7.6%/17.9%和14.8%/30.3%,在所有三个基准测试中一致超越了其他合并策略。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。