mlsanityData to 7 Oct 2026

Attendre: Wait To Attend By Retrieval With Evicted Queries in Memory-Based Transformers for Long Context Processing

arXiv 2401.04881 ↗First posted 10 Jan 2024cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

As LLMs have become capable of processing more complex types of inputs, researchers have recently studied how to efficiently and affordably process possibly arbitrarily long sequences. One effective approach is to use a FIFO memory to store keys and values of an attention sublayer from past chunks to allow subsequent queries to attend. However, this approach requires a large memory and/or takes into the consideration the specific LM architecture. Moreover, due to the causal nature between the key-values in prior context and the queries at present, this approach cannot be extended to bidirectional attention such as in an encoder-decoder or PrefixLM decoder-only architecture. In this paper, we propose to use eviction policies, such as LRA and LFA, to reduce the memory size and adapt to various architectures, and we also propose the Attendre layer, a wait-to-attend mechanism by retrieving the key-value memory (K/V memory) with evicted queries in the query memory (Q memory). As a first step, we evaluate this method in the context length extension setup using the TriviaQA reading comprehension task, and show the effectiveness of the approach.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 38 of its 47 references that are in the map. First posted on arXiv 10 Jan 2024.

Builds on

38 of 47 references.

References · 38

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  6. 2020Longformer: The Long-Document Transformercited by 3,362
  7. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  8. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  9. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  10. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  11. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  12. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
26 more
  1. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  2. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  3. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
  4. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  5. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
  6. 2022UL2: Unifying Language Learning Paradigmscited by 292
  7. 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
  8. 2022Mega: Moving Average Equipped Gated Attentioncited by 178
  9. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  10. 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
  11. 2023SCM: Enhancing Large Language Model with Self-Controlled Memory Frameworkcited by 98
  12. 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
  13. 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 89
  14. 2020MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioningcited by 79
  15. 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
  16. 2023Dynamic Context Pruning for Efficient and Interpretable Autoregressive Transformerscited by 67
  17. 2020Memformer: A Memory-Augmented Transformer for Sequence Modelingcited by 63
  18. 2023A Survey on Long Text Modeling with Transformerscited by 47
  19. 2022Investigating Efficiently Extending Transformers for Long Input Summarizationcited by 43
  20. 2021Not All Memories are Created Equal: Learning to Forget by Expiringcited by 32
  21. 2021Simple Local Attentions Remain Competitive for Long-Context Taskscited by 25
  22. 2023With a Little Help from your own Past: Prototypical Memory Networks for Image Captioningcited by 18
  23. 2023Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your computecited by 17
  24. 2023Focus Your Attention (with Adaptive IIR Filters)cited by 12
  25. 2023Optimizing Retrieval-augmented Reader Models via Token Eliminationcited by 10
  26. 2022Global memory transformer for processing long documentscited by 4

Built on by

Cited by year

Citing papers per year: 2024: 3.

3 papers.