GAM takes aim at “context rot”: A dual-agent memory architecture that outperforms long-context LLMs

AI-generated summary of reporting by Venturebeat. Read the original for the full story.

Why it matters

If GAM's results hold, agent builders can stop paying to stuff million-token windows into prompts and instead store full histories and retrieve them on demand, challenging the RAG-first approach.

Read this as

Researchers from China and Hong Kong propose a memory system called general agentic memory (GAM) to fix 'context rot', where AI assistants forget details in long conversations. Instead of cramming everything into a model's limited working memory, GAM keeps two parts: a 'memorizer' that archives every exchange, and a 'researcher' that searches that archive when needed. In tests on long-document benchmarks like RULER, it scored over 90% accuracy, beating both standard retrieval systems and large models.

Long-context AI is expensive: API pricing scales with input tokens, and oversized prompts still degrade accuracy and speed. GAM offers an alternative architecture that keeps costs low by storing compact cues plus a full archive, retrieving only what a task needs. Enterprises building agents for multi-day workflows gain reliability; vendors betting purely on bigger context windows face a competing approach. GAM is a research paper, not a product.

GAM uses a dual-agent design: a memorizer that writes structured pages with metadata and light summaries into a lossless page store, and a researcher that iteratively combines embeddings, BM25 and direct lookups, compiling task-specific context just-in-time. It beat GPT-4o-mini, Qwen2.5-14B and RAG baselines on LoCoMo, HotpotQA (up to 448K tokens), RULER and NarrativeQA (~87K tokens), exceeding 90% on RULER. Ablations show neither full archive nor naive retrieval alone suffices. No code release or latency figures are reported.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

GAM LoCoMo HotpotQA RULER NarrativeQA Anthropic DeepSeek

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading