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

DevFeed: [Where Should a Stuck Agent Spend Its Next Tokens? Causal Attribution of Inference-Time Resources](<https://devfeed.tech/articles/where-should-a-stuck-agent-spend-its-next-tokens-causal-attribution-of-inference-time-resources-94618.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.28834>)

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

Published: 2026-10-22T04:00:00Z

Content type: news

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [code](<https://devfeed.tech/tags/code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [contribution](<https://devfeed.tech/tags/contribution.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [inference](<https://devfeed.tech/tags/inference.md>), [information](<https://devfeed.tech/tags/information.md>), [repair](<https://devfeed.tech/tags/repair.md>), [repository](<https://devfeed.tech/tags/repository.md>), [resources](<https://devfeed.tech/tags/resources.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [swe-bench](<https://devfeed.tech/tags/swe-bench.md>), [time](<https://devfeed.tech/tags/time.md>)

## AI overview

The study finds that stuck coding agents often choose resources that help less than alternatives. Its Banzhaf Resource Attribution (BRA) framework measures resource contributions and interactions while holding the failed state and revision protocol fixed. Across six models and failures from MBPP+, HumanEval+, and SWE-bench Verified, task relevant specifications consistently improved repair; public test feedback provided small gains, and retrieved code provided little to none. Additional computation became less valuable as model capability increased, while information remained useful. Although resource channels generally showed diminishing returns, complementary information could reinforce itself. Three of four frontier models chose feedback in 95-100% of cases and achieved lower gains than uniform random resource selection.

## Source excerpt

arXiv:2610.28834v1 Announce Type: new 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.