Context & memory
Context engineering and agent memory: what to keep, compact, retrieve or forget. 14 papers, newest first.
- Context & memory
Letting Models Manage Their Own Context: Where We Stand
NVIDIA · Alessio Devoto et al.
NVIDIA compares the usual approach, where the harness compacts an agent's history when the window fills, with letting the model decide when and what to compact through a context API.
21% → 56%
- Context & memory
Don't Just Trust Your Memory: Evidence-Linked Memory Reduces Memory-Induced Degradation in LLM Agents
KAIST AI · Yukyeong Lee et al.
Memory can make agents worse when they follow a wrong or misread lesson. WikiTrace stores each lesson linked to the trajectory it came from, so the agent can check it.
EvoMemState models a personal agent's memory as evolving state: facts plus how they relate, stay valid and apply to the current request, instead of a flat list of facts.
A large evaluation finds that many dedicated agent memory systems underperform naive RAG over raw history. The authors call the losses a 'memory tax'.
Meta Context Engineering co-evolves context-engineering skills and the context artifacts themselves, replacing fixed heuristics.
53.8% relative improvement
- Context & memory
Hindsight is 20/20: Building Agent Memory that Retains, Recalls, and Reflects
Chris Latimer et al.
Hindsight is an agent memory architecture with four networks for world facts, the agent's experiences, entity summaries and evolving beliefs.
- Context & memoryMust-read
Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models
Stanford, SambaNova, UC Berkeley · Qizheng Zhang et al.
ACE treats an agent's context as an evolving playbook that is generated, reflected on and curated over time, improving agents without weight updates.
- Context & memory
Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
Mem0 · Prateek Chhikara et al.
Mem0 is a scalable memory architecture that extracts, consolidates and retrieves key information from ongoing conversations, with production latency and cost in mind.
26% relative improvements
A-MEM organizes agent memory as linked notes, Zettelkasten-style, that evolve and connect as new memories arrive.
- Context & memory
From Local to Global: A Graph RAG Approach to Query-Focused Summarization
Microsoft · Darren Edge et al.
GraphRAG builds an entity knowledge graph and community summaries so you can answer global questions over a whole private corpus, not just top-k chunks.
- Context & memory
Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection
UW, Allen AI, IBM · Akari Asai et al.
Self-RAG trains a model to decide when to retrieve, and to critique both the retrieved passages and its own output with reflection tokens.
MemGPT manages context like an operating system manages memory, paging information in and out of the model's limited window.
- Context & memory
Lost in the Middle: How Language Models Use Long Contexts
Stanford, UC Berkeley · Nelson F. Liu et al.
Language models use information at the start and end of long contexts much better than the middle.
- Context & memory
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Meta AI, UCL, NYU · Patrick Lewis et al.
The original RAG paper: combine a pre-trained seq2seq model with a dense vector index of Wikipedia accessed by a neural retriever.