atlas

Research map / Architectures and efficiency / Attention and transformers

Compressed Context Memory for Online Language Model Interaction

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Long-context KV and memory attention · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Compressed Context Memory (CCM), which continually compresses accumulating attention keys/values into a fixed or growing compact memory via a conditional LoRA that acts only on compression tokens, trained in parallel in one forward pass.

Problem

Online LLM interaction where context keeps growing, so attention KV memory and compute increase over time and reduce throughput.

Approach

Compress each new context chunk into attention keys/values of a special COMP token, update memory by concatenation (CCM-concat) or running average (CCM-merge), use a conditional LoRA applied only to COMP tokens to avoid overfitting on inputs, and train the recursive compression as a single masked parallel forward pass.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add conditional LoRA for compression tokens instead of default unconditional LoRA (ablation)CCM-concat and CCM-merge · MetaICL, LaMP, and DailyDialogaccuracy (%) on MetaICL and LaMP; perplexity on DailyDialog: 69.4 -> 70.0; 66.3 -> 69.6; 83.9 -> 84.7; 82.6 -> 83.9; 6.01 -> 5.96; 6.42 -> 6.33Helped
replace arithmetic averaging with EMA (a_t=0.5) (ablation)CCM-merge · DailyDialogperplexity: 6.34 vs 6.38No clear effect
increase CCM-concat COMP token length from 1 to 8 (ablation)CCM-concat · MetaICLaccuracy (%): 69.5 -> 70.0Helped
increase CCM-concat COMP token length from 1 to 4 (ablation)CCM-concat · DailyDialogperplexity: 6.51 -> 6.26Helped
use CCM-concat instead of CCM-mergeCCM · DailyDialogperplexity: 6.27 -> 5.91Helped
use CCM-concat instead of CCM-mergeCCM · MetaICL and LaMPaccuracy (%): 69.6 vs 70.0; 83.9 vs 84.7Mixed
compress online context with CCM rather than full contextLLaMA-7B · MetaICL, LaMP, and DailyDialogaccuracy (%) on MetaICL and LaMP; perplexity on DailyDialog: 70.8 -> 70.0; 85.1 -> 84.7; 5.56 -> 5.91Hurt

Surprising findings

Limitations

Experimental setup

Datasets: MetaICL LaMP DailyDialog SODA RedPajama-V2 LmSys-Chat Pile

Benchmarks: MetaICL LaMP DailyDialog PG19

Metrics: accuracy perplexity peak KV memory RougeL throughput training time per sample

Baselines: Full context No context Gisting-online Compressive Transformer AutoCompressor RMT MemoryBank StreamingLLM

Builds on: Gisting Compressive Transformer LoRA StreamingLLM AutoCompressor

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy