LLMs Can't Play Hangman: On the Necessity of a Private Working Memory for Language Agents
Davide Baldelli, Ali Parviz, Amal Zouaq, Sarath Chandar
TL;DR
This work investigates whether LLM-based agents can reliably maintain hidden state when interacting via a standard chat interface. It defines Private State Interactive Tasks (PSITs) and proves that public-only agents cannot guarantee secrecy and consistency in PSITs, using Hangman and a Diagnosis Simulator as canonical examples. The authors propose a private working memory architecture and two implementation schemes (workflow and autonomous) to restore state persistence, supported by a self-consistency testing protocol with a forking evaluation. Empirical results show that memory-augmented agents with private working memory achieve near-perfect self-consistency, while retrieval-based baselines fail to preserve hidden state, and scalability of the private memory improves performance. The findings argue that private working memory is a necessary component for reliable interactive language agents and guide future memory-augmented system design.
Abstract
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 consistent public responses. We show theoretically that any agent restricted to the public conversation history cannot simultaneously preserve secrecy and consistency in PSITs, yielding an 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, establishing private state as a necessary component for interactive language agents.
