MemLong: Memory-Augmented Retrieval for Long Text Modeling
Not on the map. Why?
Abstract (arXiv)
Recent advancements in Large Language Models (LLMs) have yielded remarkable success across diverse fields. However, handling long contexts remains a significant challenge for LLMs due to the quadratic time and space complexity of attention mechanisms and the growing memory consumption of the key-value cache during generation. This work introduces MemLong: Memory-Augmented Retrieval for Long Text Generation, a method designed to enhance the capabilities of long-context language modeling by utilizing an external retriever for historical information retrieval. MemLong combines a non-differentiable ``ret-mem'' module with a partially trainable decoder-only language model and introduces a fine-grained, controllable retrieval attention mechanism that leverages semantic-level relevant chunks. Comprehensive evaluations on multiple long-context language modeling benchmarks demonstrate that MemLong consistently outperforms other state-of-the-art LLMs. More importantly, MemLong can extend the context length on a single 3090 GPU from 4k up to 80k. Our code is available at https://github.com/Bui1dMySea/MemLong
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 33 of its 40 references that are in the map. First posted on arXiv 30 Aug 2024.
Builds on
33 of 40 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
21 more
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2023LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attentioncited by 776
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023In-Context Retrieval-Augmented Language Modelscited by 694
- 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 296
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
- 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
- 2024Long-Context Language Modeling with Parallel Context Encodingcited by 84
- 2022An Empirical Survey on Long Document Summarization: Datasets, Models and Metricscited by 74
- 2024LongHeads: Multi-Head Attention is Secretly a Long Context Processorcited by 16
- 2024Instruct Once, Chat Consistently in Multiple Rounds: An Efficient Tuning Framework for Dialoguecited by 11
- 2023TRAMS: Training-free Memory Selection for Long-range Language Modelingcited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 5.
11 papers.
- 2025Seeing, Listening, Remembering, and Reasoning: A Multimodal Agent with Long-Term Memorycited by 88
- 2026M2A: Multimodal Memory Agent with Dual-Layer Hybrid Memory for Long-Term Personalized Interactionscited by 20
- 2024Dynamic Planning for LLM-based Graphical User Interface Automationcited by 19
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
- 2025NeSyPr: Neurosymbolic Proceduralization For Efficient Embodied Reasoningcited by 5
- 2026Advancing Multimodal Agent Reasoning with Long-Term Neuro-Symbolic Memorycited by 5
- 2025Cognitive Weave: Synthesizing Abstracted Knowledge with a Spatio-Temporal Resonance Graphcited by 3
- 2025Long Story Generation via Knowledge Graph and Literary Theorycited by 1
- 2026MANAR: Memory-augmented Attention with Navigational Abstract Conceptual Representationcited by 0
- 2026Narrative Aligned Long Form Video Question Answeringcited by 0
- 2026Knowledge Graph Enhanced Memory-Augmented Retrieval for Long Context Modelingcited by 0
- 2026Knowledge Graph Enhanced Memory-Augmented Retrieval for Long Context Modeling12 Jun 2026
- 2026Narrative Aligned Long Form Video Question Answering19 Mar 2026
- 2026MANAR: Memory-augmented Attention with Navigational Abstract Conceptual Representation19 Mar 2026
- 2026Advancing Multimodal Agent Reasoning with Long-Term Neuro-Symbolic Memory16 Mar 2026
- 2026M2A: Multimodal Memory Agent with Dual-Layer Hybrid Memory for Long-Term Personalized Interactions7 Feb 2026
- 2025NeSyPr: Neurosymbolic Proceduralization For Efficient Embodied Reasoning22 Oct 2025
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architectures14 Aug 2025
- 2025Seeing, Listening, Remembering, and Reasoning: A Multimodal Agent with Long-Term Memory13 Aug 2025
- 2025Long Story Generation via Knowledge Graph and Literary Theory5 Aug 2025
- 2025Cognitive Weave: Synthesizing Abstracted Knowledge with a Spatio-Temporal Resonance Graph9 Jun 2025
- 2024Dynamic Planning for LLM-based Graphical User Interface Automation1 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2023Retrieval meets Long Context Large Language Models
- 2024MemoRAG: Boosting Long Context Processing with Global Memory-Enhanced Retrieval Augmentation
- 2024Enhancing Long Context Performance in LLMs Through Inner Loop Query Mechanism
- 2026TA-Mem: Tool-Augmented Autonomous Memory Retrieval for LLM in Long-Term Conversational QA
- 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing
- 2024Contextual Compression in Retrieval-Augmented Generation for Large Language Models: A Survey
- 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval