Context-Driven Incremental Compression for Multi-Turn Dialogue Generation

Yeongseo Jung, Jaehyeok Kim, Eunseo Jung, Jiachuan Wang, Yongqi Zhang, Ka Chun Cheung, Simon See, Lei Chen

Large Language Models (LLMs) excel at single-turn interactions but frequently struggle with "contextual erosion" during long, multi-turn conversations. As a dialogue progresses, developers typically rely on one of two flawed strategies to maintain context. The first, Full Prompting, concatenates the entire chat history. This incurs quadratic self-attention costs and inevitably hits a context window limit, causing the model to crash or run Out-of-Memory (OOM). The second, Static Compression, condenses history into a summary or a few latent vectors. While efficient, these static compressors are often query-agnostic and brittle, leading to catastrophic failure after just a few turns.

To bridge the gap between efficiency and robustness, researchers have introduced Context-Driven Incremental Compression (C-DIC). C-DIC treats conversations not as a single linear timeline, but as a series of interleaved "contextual threads." By utilizing a lightweight "retrieve → revise → write-back" loop, C-DIC maintains stable performance and near-constant latency, even over hundreds of dialogue turns.

How C-DIC Works

C-DIC's architecture is built around three core steps executed at every turn:

  1. Thread-Aware Retrieval: Rather than processing the entire history, the model scores existing compressed "memory slots" against the current user query. It retrieves only the thread states most relevant to the immediate context.
  2. Incremental Revision: The model takes the retrieved memory, the new user query, and the generated response, and compresses them into an updated memory state. Instead of simply appending new information, it actively revises old memory to keep it fresh.
  3. Retrieval-Aware Truncated BPTT (ra-TBPTT): For efficient training, the authors adapted Backpropagation Through Time. Gradients only flow through the specific memory path that was retrieved and updated, avoiding the computationally impossible task of calculating gradients for an entire, lengthy chat history.

Key Discoveries: Overcoming "Static Collapse"

A major finding of this research is the discovery of "Static Collapse." State-of-the-art static compressors (like ICAE) fail catastrophically in multi-turn settings. The authors observed that their perplexity explodes by 1900% due to "latent drift"—errors compound exponentially every time a compression is compressed again.

C-DIC solves this through topic sensitivity. By organizing memory into threads, C-DIC can ignore irrelevant small talk from recent turns while perfectly recalling a specific, topically relevant detail from 200 turns ago. Furthermore, the memory update at inference time is deterministic and gradient-free, keeping the system lightweight enough for real-time applications.

Performance and Results

Evaluated on challenging long-form datasets—including Multi-Session Chat (MSC), REALTALK, and a custom diagnostic dataset called MSC-QA—C-DIC demonstrated remarkable capabilities:

  • Unmatched Scalability: C-DIC was the only method tested that successfully handled a conversation of 428 turns on standard hardware. Baselines like Full Prompting and ICAE-append went OOM after just 30-40 turns.
  • Stable Latency: While Full Prompting's latency grew rapidly (from 3.6 seconds at 10 turns to 7.7 seconds at 30 turns), C-DIC maintained a near-constant latency of ~3.3 seconds regardless of the conversation's length.
  • Superior Accuracy: On the MSC-QA task, which requires retrieving information from much earlier in a dialogue, C-DIC achieved 10.4% accuracy, significantly outperforming Full Prompting (4.2%) and proving its ability to retain crucial details.

Limitations and Future Directions

While C-DIC represents a massive leap forward for conversational AI, it is not without limitations. The total "memory bank" can still grow if a user constantly shifts topics, requiring "bounded retrieval" (capping the number of memory slots) to manage scale. Additionally, persistent latent memories raise privacy concerns, necessitating robust data deletion and retention policies.

Currently, C-DIC relies on a pretrained compressor (ICAE), meaning its performance is tied to the underlying architecture. Future work will explore more "active" memory management, allowing the model to autonomously decide when to merge or delete stale threads, paving the way for truly lifelong AI companions.

Summary updated

BibTeX
@inproceedings{jung2026context,
  author = {Yeongseo Jung and Jaehyeok Kim and Eunseo Jung and Jiachuan Wang and Yongqi Zhang and Ka Chun Cheung and Simon See and Lei Chen},
  title = {{Context-Driven Incremental Compression for Multi-Turn Dialogue Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ZGeVMaiIlb},
}
Figure