mlsanityData to 14 Oct 2026

Expansion Span: Combining Fading Memory and Retrieval in Hybrid State Space Models

arXiv 2412.13328 ↗First posted 17 Dec 2024cs.CL cs.LGcited by 11

Not on the map. Why?

Abstract (arXiv)

The "state" of State Space Models (SSMs) represents their memory, which fades exponentially over an unbounded span. By contrast, Attention-based models have "eidetic" (i.e., verbatim, or photographic) memory over a finite span (context size). Hybrid architectures combine State Space layers with Attention, but still cannot recall the distant past and can access only the most recent tokens eidetically. Unlike current methods of combining SSM and Attention layers, we allow the state to be allocated based on relevancy rather than recency. In this way, for every new set of query tokens, our models can "eidetically" access tokens from beyond the Attention span of current Hybrid SSMs without requiring extra hardware resources. We introduce a method to expand the memory span of the hybrid state by "reserving" a fraction of the Attention context for tokens retrieved from arbitrarily distant in the past, thus expanding the eidetic memory span of the overall state. We call this reserved fraction of tokens the "expansion span," and the mechanism to retrieve and aggregate it "Span-Expanded Attention" (SE-Attn). To adapt Hybrid models to using SE-Attn, we propose a novel fine-tuning method that extends LoRA to Hybrid models (HyLoRA) and allows efficient adaptation on long spans of tokens. We show that SE-Attn enables us to efficiently adapt pre-trained Hybrid models on sequences of tokens up to 8 times longer than the ones used for pre-training. We show that HyLoRA with SE-Attn is cheaper and more performant than alternatives like LongLoRA when applied to Hybrid models on natural language benchmarks with long-range dependencies, such as PG-19, RULER, and other common natural language downstream tasks.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 36 of its 41 references that are in the map. First posted on arXiv 17 Dec 2024.

Builds on

36 of 41 references.

References · 36

  1. 2017Attention Is All You Needcited by 60,361
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  7. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  8. 2020Longformer: The Long-Document Transformercited by 3,413
  9. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  10. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  11. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  12. 2020Reformer: The Efficient Transformercited by 1,668
24 more
  1. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  2. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  3. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  4. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  5. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  6. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  7. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  8. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 608
  9. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  10. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  11. 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
  12. 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
  13. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
  14. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 244
  15. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 242
  16. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
  17. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
  18. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 200
  19. 2024An Empirical Study of Mamba-based Language Modelscited by 186
  20. 2024Zamba: A Compact 7B SSM Hybrid Modelcited by 124
  21. 2024Just read twice: closing the recall gap for recurrent language modelscited by 60
  22. 2024B'MOJO: Hybrid State Space Realizations of Foundation Models with Eidetic and Fading Memorycited by 26
  23. 2024The Zamba2 Suite: Technical Reportcited by 21
  24. 2024Parameter-Efficient Fine-Tuning of State Space Modelscited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 5.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling
  2. 2026HYPIC: Accelerating Hybrid-Attention LLM Serving with Position-Independent Caching
  3. 2026Retrieval-Aware Distillation for Transformer-SSM Hybrids
  4. 2025Understanding and Enhancing Mamba-Transformer Hybrids for Memory Recall and Language Modeling
  5. 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models
  6. 2026DART: Decoded Attention over Recurrent States for Efficient Long-Context Sequence Modeling
  7. 2026Rethinking the Role of Efficient Attention in Hybrid Architectures
  8. 2024Marconi: Prefix Caching for the Era of Hybrid LLMs