mlsanityData to 14 Oct 2026

Lost in Context Compaction: When LLM Systems Drop Side Constraints

arXiv 2608.11242 ↗First posted 31 Jul 2026cs.CL cs.AIcited by 1

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

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  5. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
  6. 2025A-MEM: Agentic Memory for LLM Agentscited by 1,063
  7. 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 629
  8. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
  9. 2025Small Language Models are the Future of Agentic AIcited by 270
  10. 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 171
  11. 2025Do LLMs Recognize Your Preferences? Evaluating Personalized Preference Following in LLMscited by 148
  12. 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 141
2 more
  1. 2024WorkBench: a Benchmark Dataset for Agents in a Realistic Workplace Settingcited by 53
  2. 2026OpenResearcher: A Fully Open Pipeline for Long-Horizon Deep Research Trajectory Synthesiscited by 37

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Persistent Context Graphs for Efficient Memory Compaction in LLM Agents
  2. 2026TokenMizer: Graph-Structured Session Memory for Long-Horizon LLM Context Management
  3. 2026Beyond Compaction: Structured Context Eviction for Long-Horizon Agents
  4. 2026Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents
  5. 2026Compact-Memory LLM Agents via Online Max-Member Clustering and Atom-Aware Packing
  6. 2025ConInstruct: Evaluating Large Language Models on Conflict Detection and Resolution in Instructions
  7. 2026TokenPilot: Cache-Efficient Context Management for LLM Agents
  8. 2026Contextual Memory Virtualisation: DAG-Based State Management and Structurally Lossless Trimming for LLM Agents