计算而非记忆:LLM 智能体中思维链与状态追踪的关系
Computation, Not Memory: Chain-of-Thought and State Tracking in LLM Agents
AI 导读
一项 arXiv 研究在文件系统锁状态任务中,用 Qwen3-8B 与 Qwen3.5-9B 分离 LLM 智能体推理的两个角色:行动前即时生成推理与保留历史推理。减少违反锁规则指令的收益主要来自当下逐步生成的推理,它使行动响应后续状态变化;仅保留旧推理在状态被再次切换后会失效,甚至让智能体违背自己的历史。无推理时的状态读出并不能预示智能体的实际行为。
正文 · 原文
Abstract:Language-model agents often reason before they act, and the value of monitoring that reasoning depends on how it relates to their actions. We ask how an agent's actions depend on its reasoning when the correct action depends on a changing state. In a small file-system task, background events announce which file's lock has been toggled but not its new value. The agent therefore has to reconstruct the current locks from its history before it can move files safely. With Qwen3-8B and Qwen3.5-9B, we separate two roles of reasoning: generating it before each action, and retaining earlier reasoning in the prompt. Most of the reduction in lock-violating commands comes from reasoning written at the moment of action. Retaining earlier reasoning adds little when the agent also reasons at each step, but it helps an agent that does not reason, and it helps in longer episodes. Retained notes have a limit: when a later event makes a note wrong, an agent without current reasoning responds little, while current reasoning makes the action follow the event. The benefit depends on what the reasoning says. Filler text, reasoning written for another history and an accurate table of the state do not reproduce it. When we give the agent reasoning written for a history that differs in one lock value, the agent acts on that reasoning even against its own history. For Qwen3-8B, this holds also when that value has since been toggled. Without reasoning, state readouts are less reliable after toggles, and Qwen3-8B's answers about the state favor the outdated value. The state answer and the action also depend on different parts of the prompt. In this setting, the benefit of reasoning for rule-following comes mainly from generating it at each step, where it makes the action respond to later events. The state that can be read out without reasoning is a limited guide to how the agent acts.
| Comments: | v2: adds retention without current reasoning and in longer episodes, tests of retained notes and current reasoning after a state change, explicit event labels, counterfactual pairs with a toggled lock, and readouts on outdated values |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | arXiv:2610.25760 [cs.LG] |
| (or arXiv:2610.25760v2 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.25760 arXiv-issued DOI via DataCite |
Submission history
From: Pedram Mouseli [view email]
[v1]
Mon, 19 Oct 2026 04:18:24 UTC (426 KB)
[v2]
Fri, 20 Nov 2026 15:56:37 UTC (459 KB)
来源:arXiv cs.AI · arxiv.org