mlsanityData to 7 Oct 2026

UniMem: Towards a Unified View of Long-Context Large Language Models

arXiv 2402.03009 ↗First posted 5 Feb 2024cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Long-context processing is a critical ability that constrains the applicability of large language models (LLMs). Although there exist various methods devoted to enhancing the long-context processing ability of LLMs, they are developed in an isolated manner and lack systematic analysis and integration of their strengths, hindering further developments. In this paper, we introduce UniMem, a Unified framework that reformulates existing long-context methods from the view of Memory augmentation of LLMs. Distinguished by its four core dimensions-Memory Management, Memory Writing, Memory Reading, and Memory Injection, UniMem empowers researchers to conduct systematic exploration of long-context methods. We re-formulate 16 existing methods based on UniMem and analyze four representative methods: Transformer-XL, Memorizing Transformer, RMT, and Longformer into equivalent UniMem forms to reveal their design principles and strengths. Based on these analyses, we propose UniMix, an innovative approach that integrates the strengths of these algorithms. Experimental results show that UniMix achieves superior performance in handling long contexts with significantly lower perplexity than baselines.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 33 of its 37 references that are in the map. First posted on arXiv 5 Feb 2024.

Builds on

33 of 37 references.

References · 33

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  5. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  6. 2020Longformer: The Long-Document Transformercited by 3,362
  7. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  8. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  9. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  10. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  11. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
21 more
  1. 2020Reformer: The Efficient Transformercited by 1,658
  2. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  3. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  4. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  5. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  6. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  7. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  8. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  9. 2023Adapting Language Models to Compress Contextscited by 350
  10. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  11. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
  12. 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
  13. 2022Memorizing Transformerscited by 219
  14. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
  15. 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
  16. 2022Recurrent Memory Transformercited by 197
  17. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  18. 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
  19. 2022Training Language Models with Memory Augmentationcited by 112
  20. 2021Do Long-Range Language Models Actually Use Long-Range Context?cited by 92
  21. 2021Poolingformer: Long Document Modeling with Pooling Attentioncited by 60

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.