mlsanityData to 14 Oct 2026

Emergence of Primacy and Recency Effect in Mamba: A Mechanistic Point of View

arXiv 2506.15156 ↗First posted 18 Jun 2025cs.CLcited by 2

On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language

Abstract (arXiv)

We study memory in state-space language models using primacy and recency effects as behavioral tools to uncover how information is retained and forgotten over time. Applying structured recall tasks to the Mamba architecture, we observe a consistent U-shaped accuracy profile, indicating strong performance at the beginning and end of input sequences. We identify three mechanisms that give rise to this pattern. First, long-term memory is supported by a sparse subset of channels within the model's selective state space block, which persistently encode early input tokens and are causally linked to primacy effects. Second, short-term memory is governed by delta-modulated recurrence: recent inputs receive more weight due to exponential decay, but this recency advantage collapses when distractor items are introduced, revealing a clear limit to memory depth. Third, we find that memory allocation is dynamically modulated by semantic regularity: repeated relations in the input sequence shift the delta gating behavior, increasing the tendency to forget intermediate items. We validate these findings via targeted ablations and input perturbations on two large-scale Mamba-based language models: one with 1.4B and another with 7B parameters.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 8 of its 15 references that are in the map. First posted on arXiv 18 Jun 2025.

Builds on

8 of 15 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025Emergence of the Primacy Effect in Structured State-Space Models19 Feb
  2. 2024Understanding and Mitigating Bottlenecks of State Space Models through the Lens of Recency and Over-smoothing31 Dec
  3. 2024Falcon Mamba: The First Competitive Attention-free 7B Language Model7 Oct
  4. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
  5. 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct

Other references · 3

  1. 2022In-context Learning and Induction Headscited by 964
  2. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
  3. 2025On the Emergence of Position Bias in Transformerscited by 59

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025MemMamba: Rethinking Memory Patterns in State Space Model
  2. 2024Stuffed Mamba: Oversized States Lead to the Inability to Forget
  3. 2025Understanding Input Selectivity in Mamba: Impact on Approximation Power, Memorization, and Associative Recall Capacity
  4. 2026Understanding Mamba-3 Through Oscillatory Dynamics
  5. 2026Is One Score Enough? Rethinking the Evaluation of Sequentially Evolving LLM Memory
  6. 2026Timesteps of Mamba Align with Human Reading Times
  7. 2026Memory Depth, Not Memory Access: Selective Parametric Consolidation for Long-Running Language Agents
  8. 2025Forgetting as a Feature: Cognitive Alignment of Large Language Models