cs.SEOct 20, 2026

Where Should a Stuck Agent Spend Its Next Tokens? Causal Attribution of Inference-Time Resources

Authors: Saiyue Lyu, Jerrold Huang, Yunbei Zhang, Janet Wang, Zhenting Wang, Yingqiang Ge, Haibo Zhang

Organizations: University of British Columbia · University of Toronto · Tulane University · Rutgers University · 

Abstract

Inference-time scaling is often treated as a token-budget problem, but a failed coding agent can seek qualitatively different resources: computation, information, or feedback. We introduce Banzhaf Resource Attribution (BRA), a controlled factorial framework that measures each resource's marginal contribution to repair and its interactions while holding the failed state and revision protocol fixed. We evaluate six models on 194 function-level failures from MBPP+ and HumanEval+ and 126 repository-level failures from SWE-bench Verified. Task-relevant specifications consistently improve repair, whereas public-test feedback provides small gains and retrieved code little to none. The value of additional computation declines with model capability, while information remains useful; resource channels largely exhibit diminishing returns, although complementary information can reinforce itself. Yet three of four frontier models select feedback in 95-100% of cases and obtain lower gains than uniform random resource selection. BRA thus exposes a gap between the resources agents prefer and those that measurably improve repair.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Scaling Inference-Time Compute with Teams of Coding Agents

    Oct 12, 2026Keenan Samway, Daniel D'souza, Omar Darwiche Domingues +3Inference-Time ScalingInference-Time Compute Allocation

  2. CodeRescue: Budget-Calibrated Recovery Routing for Coding Agents

    Jul 21, 2026Qijia He, Jiayi Cheng, Chenqian Le +8AI Coding AgentsCost-Aware Inference

  3. Scaling Laws for Agent Harnesses via Effective Feedback Compute

    May 28, 2026Xuanliang Zhang, Dingzirui Wang, Keyan Xu +2Inference-Time ScalingAgent Harness Optimization