Adaptive Focus Memory for Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are increasingly deployed in multi-turn dialogue settings, yet their behavior remains bottlenecked by naive history management strategies. Replaying the full conversation at every turn is simple but costly, while recency-based truncation or static summarization often causes early, high-impact user constraints to drift out of effective context. As a result, models may retain text without reliably applying it when it matters. We present Adaptive Focus Memory (AFM), a lightweight context management system that dynamically assigns each past message one of three fidelity levels: Full, Compressed, or Placeholder, based on semantic relevance, temporal decay, and importance classification. AFM packs messages chronologically under a fixed token budget, preserving critical constraints at high fidelity while allowing low-importance context to degrade gracefully. We evaluate AFM on two multi-turn dialogue benchmarks designed to stress long-horizon constraint preservation: a safety-critical travel scenario involving a user with a severe peanut allergy, and a policy-critical tax compliance scenario involving an illegal evasion request. Under strict grading that requires both explicit constraint recall and appropriately conditioned generation, AFM succeeds in 83.3 percent of allergy runs where all baseline strategies fail, and preserves correct refusal behavior on the tax benchmark. These results demonstrate that effective dialogue memory requires more than retaining prior text. Selectively allocating fidelity across past messages enables reliable constraint preservation under bounded context growth, without modifying model weights or introducing external retrieval infrastructure. We release an open-source implementation of AFM compatible with OpenAI-style chat APIs to support reproducible research and practical deployment.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 5 of its 12 references that are in the map. First posted on arXiv 16 Nov 2025.
Builds on
5 of 12 references.
References · 5
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Dynamic Attentional Context Scoping: Agent-Triggered Focus Sessions for Isolated Per-Agent Steering in Multi-Agent LLM Orchestrationcited by 1
- 2026The Compaction Cliff in Long-Running AI Agent Memorycited by 1
- 2026AI Runtime Infrastructurecited by 0
- 2026ATLAS-RTC: Closing the Loop on LLM Agent Output with Token-Level Runtime Controlcited by 0
- 2026Cooperative Memory Paging with Keyword Bookmarks for Long-Horizon LLM Conversationscited by 0
- 2026The Sleeping Agent: What Gist-Based Context Compression Loses and Whycited by 0
- 2026The Compaction Cliff in Long-Running AI Agent Memory24 Aug 2026
- 2026The Sleeping Agent: What Gist-Based Context Compression Loses and Why12 Aug 2026
- 2026Cooperative Memory Paging with Keyword Bookmarks for Long-Horizon LLM Conversations14 Apr 2026
- 2026Dynamic Attentional Context Scoping: Agent-Triggered Focus Sessions for Isolated Per-Agent Steering in Multi-Agent LLM Orchestration9 Apr 2026
- 2026ATLAS-RTC: Closing the Loop on LLM Agent Output with Token-Level Runtime Control29 Mar 2026
- 2026AI Runtime Infrastructure28 Feb 2026