HMT: Hierarchical Memory Transformer for Efficient Long Context Language Processing
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
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
20 more
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Reformer: The Efficient Transformercited by 1,658
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
- 2024Yi: Open Foundation Models by 01.AIcited by 706
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
- 2023Adapting Language Models to Compress Contextscited by 350
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2019LAMOL: LAnguage MOdeling for Lifelong Language Learningcited by 156
- 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
- 2021An Attention Free Transformercited by 111
- 2020Memformer: A Memory-Augmented Transformer for Sequence Modelingcited by 63
- 2021Poolingformer: Long Document Modeling with Pooling Attentioncited by 60
- 2023Compressed Context Memory For Online Language Model Interactioncited by 42
- 2024Hierarchical Context Merging: Better Long Context Understanding for Pre-trained LLMscited by 30
- 2015Recurrent Neural Networks Hardware Implementation on FPGAcited by 7
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 13.
20 papers.
Sort:
By area:
- 2026TiMem: Temporal-Hierarchical Memory Consolidation for Long-Horizon Conversational Agentscited by 26
- 2025Context Engineering 2.0: The Context of Context Engineeringcited by 17
- 2024UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generationcited by 14
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
- 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Modelscited by 6
- 2025PiKV: KV Cache Management System for Mixture of Expertscited by 5
- 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modelingcited by 5
- 2026FlexLLM: Composable HLS Library for Flexible Hybrid LLM Accelerator Designcited by 3
- 2026HiCI: Hierarchical Construction-Integration for Long-Context Attentioncited by 2
- 2026REAL: A Reasoning-Enhanced Graph Framework for Long-Term Memory Management of LLMscited by 2
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2025Sparse Query Attention (SQA): A Computationally Efficient Attention Mechanism with Query Heads Reductioncited by 1
8 more
- 2026AI+HW 2035: Shaping the Next Decadecited by 1
- 2026SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answeringcited by 1
- 2026Where Should Experience Live? Hierarchical Hebbian Memory for Continual Vision Transformerscited by 1
- 2025PaceLLM: Brain-Inspired Large Language Models for Long-Context Understandingcited by 0
- 2026Understand and Accelerate Memory Processing Pipeline for Large Language Model Inferencecited by 0
- 2026Memory-Augmented Query Intent Understanding for Efficient Chat-based Image Retrievalcited by 0
- 2026H2MT: Semantic Hierarchy-Aware Hierarchical Memory Transformercited by 0
- 2026LifeFuse-Mem: Lifecycle-Aware State Fusion Against Temporary Overwriting for Long-Term Memorycited by 0
- 2026LifeFuse-Mem: Lifecycle-Aware State Fusion Against Temporary Overwriting for Long-Term Memory11 Sep 2026
- 2026Where Should Experience Live? Hierarchical Hebbian Memory for Continual Vision Transformers31 Aug 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answering31 Jul 2026
- 2026REAL: A Reasoning-Enhanced Graph Framework for Long-Term Memory Management of LLMs9 Jun 2026
- 2026H2MT: Semantic Hierarchy-Aware Hierarchical Memory Transformer24 May 2026
- 2026Memory-Augmented Query Intent Understanding for Efficient Chat-based Image Retrieval17 May 2026
- 2026Understand and Accelerate Memory Processing Pipeline for Large Language Model Inference30 Mar 2026
- 2026HiCI: Hierarchical Construction-Integration for Long-Context Attention21 Mar 2026
- 2026AI+HW 2035: Shaping the Next Decade5 Mar 2026
- 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modeling2 Feb 2026
- 2026FlexLLM: Composable HLS Library for Flexible Hybrid LLM Accelerator Design22 Jan 2026
8 more
- 2026TiMem: Temporal-Hierarchical Memory Consolidation for Long-Horizon Conversational Agents6 Jan 2026
- 2025Context Engineering 2.0: The Context of Context Engineering30 Oct 2025
- 2025Sparse Query Attention (SQA): A Computationally Efficient Attention Mechanism with Query Heads Reduction2 Oct 2025
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architectures14 Aug 2025
- 2025PiKV: KV Cache Management System for Mixture of Experts2 Aug 2025
- 2025PaceLLM: Brain-Inspired Large Language Models for Long-Context Understanding18 Jun 2025
- 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Models10 Dec 2024
- 2024UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generation3 Oct 2024
- 2025PiKV: KV Cache Management System for Mixture of Expertscited by 5
- 2025PiKV: KV Cache Management System for Mixture of Experts2 Aug 2025
- 2025Context Engineering 2.0: The Context of Context Engineeringcited by 17
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
- 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Modelscited by 6
- 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modelingcited by 5
- 2026FlexLLM: Composable HLS Library for Flexible Hybrid LLM Accelerator Designcited by 3
- 2026HiCI: Hierarchical Construction-Integration for Long-Context Attentioncited by 2
- 2025Sparse Query Attention (SQA): A Computationally Efficient Attention Mechanism with Query Heads Reductioncited by 1
- 2026AI+HW 2035: Shaping the Next Decadecited by 1
- 2026SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answeringcited by 1
- 2026Where Should Experience Live? Hierarchical Hebbian Memory for Continual Vision Transformerscited by 1
- 2025PaceLLM: Brain-Inspired Large Language Models for Long-Context Understandingcited by 0
- 2026Memory-Augmented Query Intent Understanding for Efficient Chat-based Image Retrievalcited by 0
12 most cited of 13 All 13 (JSON)
- 2026Where Should Experience Live? Hierarchical Hebbian Memory for Continual Vision Transformers31 Aug 2026
- 2026SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answering31 Jul 2026
- 2026H2MT: Semantic Hierarchy-Aware Hierarchical Memory Transformer24 May 2026
- 2026Memory-Augmented Query Intent Understanding for Efficient Chat-based Image Retrieval17 May 2026
- 2026HiCI: Hierarchical Construction-Integration for Long-Context Attention21 Mar 2026
- 2026AI+HW 2035: Shaping the Next Decade5 Mar 2026
- 2026CoMeT: Collaborative Memory Transformer for Efficient Long Context Modeling2 Feb 2026
- 2026FlexLLM: Composable HLS Library for Flexible Hybrid LLM Accelerator Design22 Jan 2026
- 2025Context Engineering 2.0: The Context of Context Engineering30 Oct 2025
- 2025Sparse Query Attention (SQA): A Computationally Efficient Attention Mechanism with Query Heads Reduction2 Oct 2025
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architectures14 Aug 2025
- 2025PaceLLM: Brain-Inspired Large Language Models for Long-Context Understanding18 Jun 2025
12 newest of 13 All 13 (JSON)