arXiv:2610.28834cs.SEOct 2026

Manuscript Offprint

arXiv:2610.28834

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Language models improve when given more to work with at inference time. Longer chains of thought [43, 36, 19], repeated sampling with a verifier [9, 29, 3], and compute-optimal allocation between revision and search [40, 45] all trade tokens for accuracy along a single axis, the generation budget. For agents, however, inference-time resources differ in kind as well as in quantity. When a coding agent is stuck, its next tokens can buy three different things: more computation (deliberating without new observations), more information (documentation, retrieved code, a specification of what the program must do), or more feedback (executing the artifact and reading what failed) [48, 28, 8, 39, 47]. Each channel has its own literature, evaluated by comparing end-to-end pipelines. Such comparisons do not isolate the contribution of the channel itself.

End-to-end comparisons cannot say which resource binds at a failed step, or whether a second still helps once the first is present, for three reasons. Along a trajectory the resource, the state, and the next revision vary together, so a verifier call that seems to help may only have triggered another edit. One-at-a-time ablations cannot tell sufficiency from necessity: rescuing a failure is not the same as being its bottleneck. And with bounded outcomes, an apparent interaction may be substitution, complementarity, or a ceiling unless every combination is observed.

These obstacles call for a controlled comparison of resources at fixed failed states. A resource-choice probe in coding tasks highlights why this comparison matters: when asked to choose a single resource before revising, three of the four frontier models we evaluate request execution feedback in 95–100% of cases ( §5.5§5.5). Whether it is justified depends on how feedback compares with the other resources,

∗^{*}Equal contribution.

†^{\dagger}Correspondence to: saiyue.lyu@ubc.ca

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Long-Context Foundation Models.

alone and combined, at the same state. This leads to the central question of the paper: at a fixed failed state, how much does each inference-time resource contribute to a repair, how do the contributions combine, and how does the answer change with model capability?

To answer it we treat the three resources as players in a cooperative game whose worth is the utility an agent attains when a given bundle of them is supplied at the failed state. Asked this way, “what is computation worth here?” has no single answer: its marginal contribution depends on whether information and feedback are already present, and the natural summary is the average of that contribution over all bundles of the other resources, which is the resource’s Banzhaf value [2]; the departures of the bundles’ worths from additivity are the pairwise and three-way synergies of the game [21, 16]. Trajectories never reveal these quantities because an agent visits one bundle per state. We therefore introduce Banzhaf Resource Attribution (BRA): a framework for measuring how inference time resources contribute to repair at a fixed failed state. BRA first replicates this checkpoint across a full 2n2^{n} factorial design, with n = 3 resource channels: computation (C), information (I), and feedback (F). Each replica receives exactly the resources of its cell and then one final revision call under a common protocol: the same model, prompt template, and output budget. Artifacts are scored on held-out tests disjoint from the public tests used for feedback. Because every bundle’s worth is observed, Banzhaf values, interactions, and the Möbius decomposition of the full-resource gain are computed exactly per checkpoint and model, instead of estimated from samples.

We run BRA on 194 frozen function-level failures from MBPP+ and HumanEval+ [1, 7, 30] and 126 repository-level failures from SWE-bench Verified [24], with six repair models spanning an order of magnitude of capability (Qwen3-4B/14B/32B, DeepSeek-V3.2, GPT-5.6, Claude Sonnet 4.5). Three findings recur. ① Information is the binding resource, and only the right information. An audited specification raises held-out utility for every model, by 0.06–0.14 at function level and 0.05–0.10 at repository level. A length-matched irrelevant packet is worth nothing, and so is retrieved repository code. Public-test feedback is worth at most 0.03. ② More capable models gain less from computation, but still benefit from information. Along the ladder, the value of computation falls from 0.131 to 0.007; the value of information stays between 0.06 and 0.14. ③ Resource channels show diminishing returns, while information components complement one another. All pairwise interactions among C, I, and F are negative or null. Knowing where to change code is worth nothing alone; knowing what to change is worth about half the full effect; both together are worth the whole. These measurements also reveal a mismatch in resource selection: models exhibiting feedback fixation obtain lower average repair gains from their choices than from uniform random selection among the same resource options.

Our main contributions are: ① BRA, a controlled counterfactual design with pre-registered estimands, leakage audits, a placebo, and dose ladders, released with the frozen checkpoints and per-cell outcomes ( §3§3). ② Evidence across two task families and six models that inference resources are non-fungible and substitutable, that information rather than feedback binds, and that scaling migrates the bottleneck from computation to information ( §5§5). ③ A decision-theoretic use of the surface that quantifies the misallocation of current agents. Using the same surfaces to score the agents' own resource choices, we find that three of four frontier models almost always request feedback, the least valuable resource, and realise less than a random choice would ( §5.5§5.5).

References (46)