← All concepts

context compaction

The core idea is to prevent an AI agent's memory from bloating with every past action and tool output. By compressing older items into compact summaries or discarding irrelevant ones, the agent retains only what is needed for current decisions. This slashes computational load and keeps responses fast, often matching the performance of using the full history.

Across the papers, compaction consistently reduces token consumption and inference cost while maintaining or boosting success rates. Whether through compression, pruning, or learned summarization, the methods show that carefully managed context outperforms full history by avoiding dilution of relevant information. Even lossy approaches preserve task performance, and some frameworks allow deterministic auditability or adapt to task dynamics.

Papers
79
Released code
7
First seen
June 2026
Latest
Nov 2026

61 papers in the last two months, against 14 in the two before.

Start here

Three papers to read first, in the order they came out
  1. 1Context compaction spares benchmark scores but silently drops task constraints

    Context compaction does not affect benchmark task performance but silently removes task constraints.

    Oct 2026
  2. 2Chatbots can recover from earlier mistakes by rebuilding what users asked

    Rebuilding the task specification from the user's messages alone, using an analyzer that never sees the assistant's turns, recovers most of the quality lost to polluted multi-turn context.

    Nov 2026
  3. 3Prompt compression weakens refusal of harmful requests in AI models

    Context compression weakens refusal alignment in instruction-tuned language models, but Memory Steering restores it.

    Nov 2026

Who is working on it

NVIDIA 5University of Science and Technology of China 4Microsoft Research 3Zhejiang University 3Microsoft 3University of Chinese Academy of Sciences 3

The papers

Most central to this idea first, not most recent.

Concepts are extracted from each paper and reused across the corpus, so this page grows on its own as the desk reads.