arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.25310cs.CL
收藏

工具调用依赖结构在LLM智能体残差流中是线性可解码的

Tool-Call Dependency Structure is Linearly Decodable in LLM Agent Residual Streams

University of York(约克大学);Department of Computer Science(计算机科学系);Heslington, York(约克大学赫斯林顿校区)

Tianda Sun, Dimitar Kazakov

AI总结:

本研究通过低容量边探针在Qwen3-32B残差流中解码工具调用依赖图,发现该表示追踪抽象拓扑而非标识符值,且在不同模型和任务中可复制。

摘要:

使用工具的LLM智能体产生的轨迹中,调用形成有向依赖图:早期工具输出为后续调用提供参数。这种执行结构是否在模型内部表示尚不清楚;先前的结构探针针对静态代码或思维链文本,而非智能体的运行时调用图。在Qwen3-32B残差流上的低容量边探针解码工具调用依赖图,显著高于Hewitt-Liang随机标签控制和位置基线。反事实对比(值破坏与结构扰动)表明信号追踪抽象拓扑而非标识符值,并在独立的非子串预言机下可复制。非位置成分在另外三个交互式多跳基准上可复制,并在调用顺序本身成为依赖的充分代理时衰减,在单次规划中消失。逐层激活修补在后续非修补边界移动探针,表明表示传播而非被动读出,尽管实际工具调用未移动。据我们所知,这是首个对LLM智能体运行时工具调用依赖图的结构探针。我们的主张涉及表示而非行为控制,涵盖两个模型系列和一个主要领域。

英文摘要:

Tool-using LLM agents produce trajectories whose calls form a directed dependency graph: earlier tool outputs supply arguments to later calls. Whether this execution structure is represented inside the model is unknown; prior structural probes have targeted static code or chain-of-thought text, not an agent's run-time call graph. A low-capacity edge probe on the residual stream of Qwen3-32B decodes the tool-call dependency graph well above both a Hewitt--Liang random-label control and a positional baseline. A counterfactual contrast between value corruption and structural perturbation indicates the signal tracks abstract topology rather than identifier values, and replicates under an independent, non-substring oracle. The non-positional component replicates on three further interactive multi-hop benchmarks and attenuates as call order alone becomes a sufficient proxy for dependency, vanishing in single-shot planning. Per-layer activation patching shifts the probe at a later, non-patched boundary, evidence that the representation propagates rather than passively reads out, though the realised tool call does not move. To our knowledge this is the first structural probe of an LLM agent's runtime tool-call dependency graph. Our claims concern representation, not behavioural control, and span two model families and one primary domain.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑