cs.AIAug 23, 2026

Disagree to Explore, Agree to Commit: Routing-Guided Test-Time Scaling for Software Agents

Authors: Kang Chen, Junjie Nian, Yixin Cao, Yugang Jiang

Organizations: Fudan University · Shanghai Innovation Institute

Abstract

Software-engineering agents solve repository-level tasks through long, stochastic tool-use trajectories, and repeated attempts often find fixes missed by one run. Test-time scaling is difficult because patches lack canonical answer forms, while sibling actions from a shared prefix are correlated. We study whether native MoE router traces can guide steering and selection without an external judge or selection-time test execution. Our analysis shows that routing provides a robust behavioral role signal; token-granular readouts and decision-matched comparison sets turn it into effective control. We therefore introduce Risa (Routing-Informed Steering and Arbitration): within trajectories, routing encourages diverse exploration and controlled convergence during patch commitment; across separately sampled trajectories, agreement at informative patch positions selects a final candidate. We evaluate on SWE-bench Verified using open-weight sparse MoE agents across scales and reasoning-effort settings. Risa's routing arbitration raises the macro-average resolved rate from 44.9% under uniform sampling to 48.2% on the gpt-oss family, matching text consensus without answer-string matching, and it transfers to Qwen3.6, where it improves on uniform choice and matches text consensus on the full 500-task benchmark.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. TEX: Test-Time Scaling Testing Agents via Execution-based Cross-Validation

    Oct 19, 2026Akash Gokul, Srijan Bansal, Yingbo Zhou +1Test-Time ScalingSoftware Engineering Agents

  2. Scaling Test-Time Compute for Agentic Coding

    Apr 16, 2026Joongwon Kim, Wannan Yang, Kelvin Niu +13AI Coding AgentsTest-Time Scaling

  3. CoBa: Cost-Effective Test-Time Scaling via Compute-Balanced Routing

    Aug 7, 2026Yan Zhou, Yue Ouyang, Kaiyang Zheng +1Cost-Aware InferenceTest-Time Scaling