LLMs无法玩井字游戏:关于语言代理所需私人工作记忆的必要性
LLMs Can't Play Hangman: On the Necessity of a Private Working Memory for Language Agents
AI总结:
本文提出私人状态交互任务(PSITs)并证明标准LLMs无法在交互任务中保持秘密和一致性,提出包含显式私人工作记忆的架构以恢复一致性。
摘要:
随着LLMs从文本生成向自主代理发展,它们仍受制于标准聊天界面,该界面缺乏私人工作记忆。这提出了一个根本性问题:代理能否可靠地执行依赖隐藏状态的交互任务?我们定义了私人状态交互任务(PSITs),这些任务要求代理在生成一致的公共响应的同时生成和维护隐藏信息。我们理论证明,任何仅限于公共对话历史的代理无法同时在PSITs中保持秘密和一致性,从而得出一个不可能定理。为了验证这一限制,我们引入了一种自一致性测试协议,评估代理是否能在一个分支对话中维持隐藏秘密。标准聊天式LLMs和基于检索的记忆基线无论规模如何都未能通过此测试,证明语义检索无法实现真正的状态维护。为了解决这一问题,我们提出了一种新的架构,其中包含显式的私人工作记忆;我们证明这种机制恢复了一致性,确立了私人状态作为交互语言代理的必要组成部分。
英文摘要:
As LLMs move from text completion toward autonomous agents, they remain constrained by the standard chat interface, which lacks private working memory. This raises a fundamental question: can agents reliably perform interactive tasks that depend on hidden state? We define Private State Interactive Tasks (PSITs), which require agents to generate and maintain hidden information while producing public responses consistent with a fixed hidden state. We show theoretically that any agent restricted to the public conversation history cannot both keep the secret unresolved in the transcript and respond consistently with a fixed hidden state in PSITs, yielding an architectural impossibility theorem. To empirically validate this limitation, we introduce a self-consistency testing protocol that evaluates whether agents can maintain a hidden secret across forked dialogue branches. Standard chat-based LLMs and retrieval-based memory baselines fail this test regardless of scale, demonstrating that semantic retrieval does not enable true state maintenance. To address this, we propose a novel architecture incorporating an explicit private working memory; we demonstrate that this mechanism restores consistency with a fixed hidden state, establishing private state as a necessary component for PSIT-capable language agents. Our code is available at https://github.com/chandar-lab/Hangman
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。