Sign inGet started
Paper · arXiv

Context Compaction Theory

Large Language Models (LLMs) have a bounded context window. The context window is the maximum input size an LLM can consume for a single inference. AI agents rely on a process called context compaction to fit their state within the context window when calling an LLM. Despite its ubiquity, context compaction has received essentially no formal analysis. In this paper, we initiate a formal study of context compaction. We first introduce a framework consisting of two games that capture the two algorithmic strategies for context compaction used by contemporary AI agents in practice. The Context Selection Game models context compaction algorithms that select a subset of an agent's accumulated s...

AuthorsHayder Tirmazi, Sam Markelon, Allison Bishop et al.
Primary categorycs.DS
Published2 August 2026
Last updated at source2 August 2026
cs.DScs.AI
Embed this entry
<iframe src="https://silytics.si/embed/item/f7ad4629-decb-49e4-960c-464fe2eb3b2b" width="420" height="190" style="border:0" loading="lazy" title="Silytics entry"></iframe>

Free, no tracking. More about feeds and embeds.

Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 17 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.