LLMs Can't Play Hangman: On the Necessity of a Private Working Memory for Language Agents
cs.CL
Submitted: 2026-01-11
Updated: 2026-09-02
Comments: Accepted at the Conference on Lifelong Learning Agents (CoLLAs) 2026
Code: https://github.com/chandar-lab/Hangman
License: http://creativecommons.org/licenses/by/4.0/
The gist: As LLMs move from text completion toward autonomous agents, they remain constrained by the standard chat interface, which lacks private working memory.
Terminology
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 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
Sources
- GPT-4 Technical Report
- gpt-oss-120b & gpt-oss-20b Model Card
- Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
- Eliciting Reasoning in Language Models with Cognitive Tools
- LightMem: Lightweight and Efficient Memory-Augmented Generation
- HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Model
- Unified Mind Model: Reimagining Autonomous Agents in the LLM Era
- Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions
- Deep Research Agents: A Systematic Examination And Roadmap
- Why Language Models Hallucinate
- Memory OS of AI Agent
- Unlocking Structured Thinking in Language Models with Cognitive Prompting
- MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Models
- Evaluating Very Long-Term Conversational Memory of LLM Agents
- LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression
- StateAct: Enhancing LLM Base Agents via Self-prompting and State-tracking
- AI Agents vs. Agentic AI: A Conceptual Taxonomy, Applications and Challenges
- On the Brittle Foundations of ReAct Prompting for Agentic Large Language Models
- Voyager: An Open-Ended Embodied Agent with Large Language Models
- RAG+: Enhancing Retrieval-Augmented Generation with Application-Aware Reasoning
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering