mlsanityData to 7 Oct 2026

HMT: Hierarchical Memory Transformer for Efficient Long Context Language Processing

arXiv 2405.06067 ↗First posted 9 May 2024cs.CL cs.LGcited by 20

Not on the map. Why?

Abstract (arXiv)

Transformer-based large language models (LLM) have been widely used in language processing applications. However, due to the memory constraints of the devices, most of them restrict the context window. Even though recurrent models in previous works can memorize past tokens to enable unlimited context and maintain effectiveness, they have ``flat'' memory architectures. Such architectures have limitations in selecting and filtering information. Since humans are good at learning and self-adjustment, we believe that imitating brain memory hierarchy is beneficial for model memorization. Thus, we propose the Hierarchical Memory Transformer (HMT), a novel framework that facilitates a model's long-context processing ability by imitating human memorization behavior. Leveraging memory-augmented segment-level recurrence, we organize the memory hierarchy by preserving tokens from early input segments, passing memory embeddings along the sequence, and recalling relevant information from history. Evaluating general language modeling, question-answering tasks, and the summarization task, we show that HMT consistently improves the long-context processing ability of existing models. Furthermore, HMT achieves a comparable or superior generation quality to long-context LLMs with 2 ~ 57× fewer parameters and 2.5 ~ 116× less inference memory, significantly outperforming previous memory-augmented models. Code on Github: https://github.com/OswaldHe/HMT-pytorch.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Builds on 32 of its 52 references that are in the map. First posted on arXiv 9 May 2024.

Builds on

32 of 52 references.

References · 32

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  6. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  9. 2020Longformer: The Long-Document Transformercited by 3,362
  10. 2016Pointer Sentinel Mixture Modelscited by 2,992
  11. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  12. 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
20 more
  1. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  2. 2020Reformer: The Efficient Transformercited by 1,658
  3. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  4. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  5. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
  6. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  7. 2024Yi: Open Foundation Models by 01.AIcited by 706
  8. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  9. 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
  10. 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
  11. 2023Adapting Language Models to Compress Contextscited by 350
  12. 2019Revealing the Dark Secrets of BERTcited by 300
  13. 2019LAMOL: LAnguage MOdeling for Lifelong Language Learningcited by 156
  14. 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
  15. 2021An Attention Free Transformercited by 111
  16. 2020Memformer: A Memory-Augmented Transformer for Sequence Modelingcited by 63
  17. 2021Poolingformer: Long Document Modeling with Pooling Attentioncited by 60
  18. 2023Compressed Context Memory For Online Language Model Interactioncited by 42
  19. 2024Hierarchical Context Merging: Better Long Context Understanding for Pre-trained LLMscited by 30
  20. 2015Recurrent Neural Networks Hardware Implementation on FPGAcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 5; 2026: 13.

20 papers.

Sort:

By area:

  1. 2026TiMem: Temporal-Hierarchical Memory Consolidation for Long-Horizon Conversational Agentscited by 26
  2. 2025Context Engineering 2.0: The Context of Context Engineeringcited by 17
  3. 2024UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generationcited by 14
  4. 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
  5. 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Modelscited by 6
  6. 2025PiKV: KV Cache Management System for Mixture of Expertscited by 5
  7. 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modelingcited by 5
  8. 2026FlexLLM: Composable HLS Library for Flexible Hybrid LLM Accelerator Designcited by 3
  9. 2026HiCI: Hierarchical Construction-Integration for Long-Context Attentioncited by 2
  10. 2026REAL: A Reasoning-Enhanced Graph Framework for Long-Term Memory Management of LLMscited by 2
  11. 2026Prefix Sliding for efficient test-time scalingcited by 2
  12. 2025Sparse Query Attention (SQA): A Computationally Efficient Attention Mechanism with Query Heads Reductioncited by 1
8 more
  1. 2026AI+HW 2035: Shaping the Next Decadecited by 1
  2. 2026SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answeringcited by 1
  3. 2026Where Should Experience Live? Hierarchical Hebbian Memory for Continual Vision Transformerscited by 1
  4. 2025PaceLLM: Brain-Inspired Large Language Models for Long-Context Understandingcited by 0
  5. 2026Understand and Accelerate Memory Processing Pipeline for Large Language Model Inferencecited by 0
  6. 2026Memory-Augmented Query Intent Understanding for Efficient Chat-based Image Retrievalcited by 0
  7. 2026H2MT: Semantic Hierarchy-Aware Hierarchical Memory Transformercited by 0
  8. 2026LifeFuse-Mem: Lifecycle-Aware State Fusion Against Temporary Overwriting for Long-Term Memorycited by 0