Research map / Architectures and efficiency / Attention and transformers
Compressing Sequences in the Latent Embedding Space: K-Token Merging for Large Language Models
Zihao Xu, John Harvill, Ziwei Fan, Yizhou Sun, Hao Ding, Hao Wang
Amazon · Rutgers University · University of California
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
6improved
3hurt
2mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| merge K=4 tokens per embedding | Qwen-2.5 0.5B with LoRA · Textualized Tree | accuracy: 99.98 -> 98.46 with 75.0% length reduction | Mixed |
| merge K=2 tokens per embedding | Qwen-2.5 0.5B with LoRA · Amazon Reviews | accuracy: 93.51 -> 92.66 with 50.0% reduction | Mixed |
| merge K=2, 3, 4 tokens per embedding | Qwen-2.5 0.5B with LoRA · CommitPackFT | perplexity: 1.293 -> 1.315, 1.346, 1.379 | Hurt |
| use K-Token Merging instead of hard compression (SelectiveContext, LLMLingua2) | compressed prompts · Textualized Tree | accuracy: 90.33 and 82.17 -> 99.79 (K=2) | Improved |
| use K-Token Merging (K=2) instead of LTSC | compressed prompts · CommitPackFT | length reduction: 17.2% -> 50.0% at similar perplexity (1.296 vs 1.315) | Improved |
| apply 2-Token Merging | Qwen-2.5 Coder 7B · CommitPackFT | latency and throughput: latency 0.789 -> 0.624 s; throughput 5.271 -> 6.736 | Improved |
| apply 2-Token Merging | Qwen-2.5 Coder 7B · CommitPackFT | GPU peak memory: 35,983 -> 38,349 MB | Hurt |
| add learnable encoder residual to mean pooling (ablation) | K-Token Merging · CommitPackFT, 10 epochs | perplexity: 1.453 -> 1.447 | Improved |
| compress the input sequence instead of a matched uncompressed control (ablation) | K-Token Merging · CommitPackFT, 10 epochs | latency, throughput, memory: latency -34.4%, throughput +56.4%, memory -26.6% | Improved |
| compress the input sequence instead of a matched uncompressed control (ablation) | K-Token Merging · CommitPackFT, 10 epochs | perplexity: 1.364 -> 1.447 (+6.09%) | Hurt |
| initialize compressed embedding with mean of K embeddings instead of random (ablation) | 4-Token Merging · Textualized Tree (5 nodes) | epochs to 97% accuracy: 9 -> 8 epochs | Improved |
Open problems in sparse attention for long-context LLMs
Which attention can a long-context model drop without losing the answer?
- The overhead does not vanish. · 14 papers state it
- Very long contexts hit memory limits or go untested. · 8 papers state it
- Sparsity speeds up prefill or decoding, not both. · 6 papers state it
Closest papers by meaning
- zip2zip: Inference-Time Adaptive Tokenization via Online Compression (NeurIPS 2025 · similarity 0.90)
- Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference (AAAI 2025 · similarity 0.90)
- Compressing LLMs: The Truth is Rarely Pure and Never Simple (ICLR 2024 · similarity 0.89)
- Fundamental Limits of Prompt Compression: A Rate-Distortion Framework for Black-Box Language Models (NeurIPS 2024 · similarity 0.89)
- Leveraging Attention to Effectively Compress Prompts for Long-Context LLMs (AAAI 2025 · similarity 0.89)
- Language Modeling Is Compression (ICLR 2024 · similarity 0.89)
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.