Research map / Architectures and efficiency / Attention and transformers
HMT: Hierarchical Memory Transformer for Efficient Long Context Language Processing
Zifan He, Yingqi Cao, Zongyue Qin, Neha Prakriya, Yizhou Sun, Jason Cong
University of California, Los Angeles · University of California, San Diego
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 HMT to the backbone | OPT 2.7B · Wikitext-103 avg | perplexity: 12.12 -> 8.61 | Improved |
| add HMT to the backbone | RWKV 3B · Wikitext-103 avg | perplexity: 13.30 -> 9.93 | Improved |
| add RMT instead of HMT to RWKV | RWKV 3B · Wikitext-103 / PG-19 | perplexity | Hurt |
| add RMT to Qwen 2.5 14B | Qwen 2.5 14B · PG-19 | perplexity | Hurt |
| add HMT to Llama 2 7B for PubMedQA multi-context | Llama 2 7B · PubMedQA long answer | perplexity: 9.48% PPL gain | Improved |
| add HMT to Llama 2 7B for PubMedQA short answers | Llama 2 7B · PubMedQA short answer | accuracy: +1.0% | Improved |
| add memory retrieval mechanism (ablation) | HMT OPT 350M/2.7B · Wikitext-103 up to 100k tokens | perplexity | Improved |
| summarize half of the segment instead of whole for representation extraction (ablation) | HMT + OPT 2.7B · Wikitext-103 | perplexity | No clear effect |
| increase number of cached memory embeddings (ablation) | HMT + Llama 2 7B · Wikitext-103 100k tokens | perplexity | Improved |
| vary sensory memory size (ablation) | HMT + Llama 2 7B · Wikitext-103 | perplexity: 4.54 (8) -> 4.19 (32) -> 4.57 (128) | Mixed |
| train in two stages instead of one (ablation) | HMT + OPT 2.7B · long-context inputs | perplexity | Improved |
| increase BPTT unroll depth (ablation) | HMT + OPT 2.7B · Wikitext-103 10k tokens | perplexity: 9.36 -> 9.15 -> 8.20 (depth 2, 5, 15) | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- RWKV 430M — RWKV: Reinventing RNNs for the Transformer Era (EMNLP 2023) · better on 3 of 3 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 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
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory (AAAI 2024 · similarity 0.91)
- Hierarchical Context Merging: Better Long Context Understanding for Pre-trained LLMs (ICLR 2024 · similarity 0.90)
- Memory-Augmenting Decoder-Only Language Models through Encoders (Student Abstract) (AAAI 2024 · similarity 0.89)
- M+: Extending MemoryLLM with Scalable Long-Term Memory (ICML 2025 · similarity 0.89)
- A Training-Free Sub-quadratic Cost Transformer Model Serving Framework with Hierarchically Pruned Attention (ICLR 2025 · similarity 0.88)
- Core Context Aware Transformers for Long Context Language Modeling (ICML 2025 · similarity 0.88)
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.