Research map / Large language models / Language, safety and interpretability
Extending Context Window of Large Language Models via Semantic Compression
Weizhi Fei, Xueyan Niu, Pingyi Zhou, Lu Hou, Bo Bai, Lei Deng, Wei Han
Tsinghua University · Huawei Technologies
Read the paperPlace an idea next to itCheck your own paper ↗
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 |
|---|---|---|---|
| add semantic compression module | Llama2-7B-chat-4k · Passkey retrieval | accuracy: above 90% up to 30,000 tokens (Llama2 drops to zero past 4096) | Improved |
| combine semantic compression with YaRN | Llama2 · Passkey retrieval | accuracy: extends to 60,000 with accuracy above 90% | Improved |
| add semantic compression module | Llama2 · GovReport perplexity | perplexity | Improved |
| add semantic compression for inputs under 4k | Llama2-7B-chat-4k · LongBench (<4k) | LongBench score | No clear effect |
| add semantic compression | Llama2-7B-chat-4k · HotpotQA (4k-8k) | score: 25.4 -> 50.6 | Improved |
| add semantic compression | Llama2-7B-chat-4k · Few-shot learning (TREC, TriviaQA, 4k-8k) | score: TREC 55.7 vs 70.9 (YaRN); TriviaQA 83.3 vs 90.9 (YaRN) | Hurt |
| add semantic compression | Llama2-7B-chat-4k · LongBench 4k-8k | score | Improved |
| add semantic compression | Llama2-7B-chat-4k · LongBench 8k-16k | score | Improved |
| add semantic compression | Llama2-7B-chat-4k · LongBench 16k-32k | score | Mixed |
| add semantic compression | Llama2-7B-chat-4k · LongBench 32k+ | score | Improved |
| use YaRN or LongLoRA extension | Llama2 · LongBench (<=4k texts and long ranges) | score | Hurt |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 2 of 2 on most shared results.
- LongLoRA — LongLoRA: Efficient Fine-tuning of Long-Context Large Language Models (ICLR 2024) · better on 5 of 9 shared results
- YaRN — YaRN: Efficient Context Window Extension of Large Language Models (ICLR 2024) · better on 5 of 9 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in LLM pruning and scaling data
Do pruning, unlearning and data-scaling methods still work at larger scale and beyond English?
- Experiments are small and larger models or corpora are untested. · 34 papers state it
- The method adds training or compute overhead over the baseline. · 20 papers state it
- Most evaluation uses English or a few high-resource languages. · 13 papers state it
Closest papers by meaning
- Compressing LLMs: The Truth is Rarely Pure and Never Simple (ICLR 2024 · similarity 0.90)
- Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference (AAAI 2025 · similarity 0.90)
- Retrieval meets Long Context Large Language Models (ICLR 2024 · similarity 0.90)
- RECOMP: Improving Retrieval-Augmented LMs with Context Compression and Selective Augmentation (ICLR 2024 · similarity 0.90)
- Compressed Context Memory for Online Language Model Interaction (ICLR 2024 · similarity 0.90)
- Exploring Context Window of Large Language Models via Decomposed Positional Vectors (NeurIPS 2024 · similarity 0.90)
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.