Lost in Context Compaction: When LLM Systems Drop Side Constraints
Not on the map. Why?
Abstract (arXiv)
When the context window is under pressure, LLM systems compact prior context to continue ongoing tasks. We study Side Constraints (SCs), user-issued instructions such as "do not delete any emails until I confirm," that constrain an LLM's behavior across subsequent turns but can be silently dropped during compaction. In an inbox experiment, an agent deleted emails without approval in 30/100 sessions after compaction, compared with none before compaction. To systematically evaluate SC preservation, we introduce CONPACT, an evaluation suite measuring semantic retention and downstream compliance across three scenarios: multi-turn chat, multi-turn tool use, and long-horizon research. The evaluated compactors retain only 17% of injected SCs on average. Loss occurs across compactors and settings, with retention varying by compactor, context length, SC framing, and injection location. We propose an SC extractor that maintains constraints separately from the task summary and appends them to the compacted context, achieving over 90% retention across all three scenarios without modifying the compactor or LLM. Code and data are available at https://github.com/ZhiqiEliWang/compaction-integrity.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 14 of its 36 references that are in the map. First posted on arXiv 31 Jul 2026.
Builds on
14 of 36 references.
References · 14
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,063
- 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 629
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
- 2025Small Language Models are the Future of Agentic AIcited by 270
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 171
- 2025Do LLMs Recognize Your Preferences? Evaluating Personalized Preference Following in LLMscited by 148
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 141
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026Persistent Context Graphs for Efficient Memory Compaction in LLM Agents
- 2026TokenMizer: Graph-Structured Session Memory for Long-Horizon LLM Context Management
- 2026Beyond Compaction: Structured Context Eviction for Long-Horizon Agents
- 2026Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents
- 2026Compact-Memory LLM Agents via Online Max-Member Clustering and Atom-Aware Packing
- 2025ConInstruct: Evaluating Large Language Models on Conflict Detection and Resolution in Instructions
- 2026TokenPilot: Cache-Efficient Context Management for LLM Agents
- 2026Contextual Memory Virtualisation: DAG-Based State Management and Structurally Lossless Trimming for LLM Agents