Can LLMs read long documents like humans do?
How might mimicking human reading strategies—storing gist memories and looking up details on demand—help language models handle documents beyond their effective context window?
LLMs are limited not only by an explicit context window but by degrading performance on long inputs well before that limit. ReadAgent's premise is that humans read differently: exact wording is forgotten quickly while gist — the substance irrespective of exact words — persists, and reading is interactive (we look back when we need a detail). It implements this as a simple prompting system that (1) decides what content to store together as a memory episode, (2) compresses each episode into a short gist memory, and (3) looks up the original passages only when a task requires the details. This extends effective context 3–20× and outperforms retrieval baselines on QuALITY, NarrativeQA, and QMSum.
The keeper is that the LLM can generate broadly useful gist memories before knowing the task — compression need not be query-conditioned to be useful — and can then reason interactively over those gists to decide what to retrieve. Gist-first-then-lookup is a different long-context strategy than either stuffing the window or pure retrieval.
This is the gist-compression member of the vault's long-context/memory cluster. It shares the compress-then-act move with Can agents learn to compress their own memory strategically? and the bounded-state philosophy of Why do agents fail at multi-turn tasks despite having knowledge? — but applied to reading documents rather than managing agent state, and beating retrieval rather than replacing it.
Inquiring lines that read this note 26
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
How should retrieval policies adapt to optimize model reasoning at inference?- How does gist-first lookup compare to pure retrieval or context stuffing?
- Can task-agnostic compression of documents remain broadly useful for later queries?
- How should memory systems split between short-term and long-term storage?
- How do different mental models of LLM memory affect user expectations?
- Why do LLMs degrade on long inputs before hitting context limits?
- Does recurrent memory or gist compression work better for ultra-long context?
- Can recurrent state mechanisms process longer sequences than attention-based working memory approaches?
- How do recurrent memory systems handle ultra-long context differently than attention?
- Can fixed-size latent states losslessly store arbitrary input context?
- Why is long-context compute spent transforming context into internal state rather than storing it?
- How do compressed persistent memory states inside networks compare to attention for long context?
- Why do some models like Llama degrade under long context?
- What document layouts benefit most from bounding box representations?
- Why do LLMs succeed at element-level accessibility fixes but fail at document-wide constraints?
- How do codebook length and data similarity affect accuracy in LLM coding?
- Can adding web links to LLM summaries restore the depth lost through synthesis?
- When would OS paging techniques actually harm rather than help LLM serving performance?
- How much does context length hurt LLM performance on long documents?
Related concepts in this collection 3
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Can agents learn to compress their own memory strategically?
Explores whether agents can autonomously decide when to consolidate interaction history into structured memory—and whether this self-directed approach avoids the quality degradation that plagues passive consolidation schemes.
same compress-then-act move, applied to agent state rather than document reading
-
Why do agents fail at multi-turn tasks despite having knowledge?
Explores whether agent degradation in long interactions stems from knowledge gaps or from how agents manage and commit to memory. Tests whether bounded, structured memory control outperforms transcript replay.
shared bounded-memory philosophy; ReadAgent gists documents, ACC commits agent state
-
Can recurrent memory scale where attention fails on ultra-long text?
GPT-4 and RAG plateau around 10,000 tokens and rely heavily on the first quarter of input. Can recurrent memory augmentation overcome these limits and enable reasoning across millions of tokens?
alternative long-context route (recurrent state) vs ReadAgent's gist-and-lookup
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- A Human-Inspired Reading Agent with Gist Memory of Very Long Contexts
- Faith and Fate: Limits of Transformers on Compositionality
- Memory is Reconstructed, Not Retrieved: Graph Memory for LLM Agents
- Long-context LLMs Struggle with Long In-context Learning
- Thinking as Compression: Your Reasoning Model is Secretly a Context Compressor
- Know It, Act on It: Investigating Memory Utilization in LLM Personalization
- FollowIR: Evaluating and Teaching Information Retrieval Models to Follow Instructions
- Is Progressive Disclosure All You Need for Long-Context Agents?
Original note title
a human-inspired reading agent compresses documents into gist memories and looks up details on demand extending effective context twentyfold