Mamba Knockout for Unraveling Factual Information Flow

Nir Endy, Idan Daniel Grosbard, Yuval Ran-Milo, Yonatan Slutzky, Itay Tshuva +1 more
5/30/2025
cs.CLcs.LG
transformer-attentionstate-space-mamba

No confident code implementation found for this paper.

Abstract

This paper investigates the flow of factual information in Mamba State-Space Model (SSM)-based language models. We rely on theoretical and empirical connections to Transformer-based architectures and their attention mechanisms.

Show full abstract

Exploiting this relationship, we adapt attentional interpretability techniques originally developed for Transformers--specifically, the Attention Knockout methodology--to both Mamba-1 and Mamba-2. Using them we trace how information is transmitted and localized across tokens and layers, revealing patterns of subject-token information emergence and layer-wise dynamics. Notably, some phenomena vary between mamba models and Transformer based models, while others appear universally across all models inspected--hinting that these may be inherent to LLMs in general. By further leveraging Mamba's structured factorization, we disentangle how distinct "features" either enable token-to-token information exchange or enrich individual tokens, thus offering a unified lens to understand Mamba internal operations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{endy2025mamba,
  title  = {Mamba Knockout for Unraveling Factual Information Flow},
  author = {Nir Endy and Idan Daniel Grosbard and Yuval Ran-Milo and Yonatan Slutzky and Itay Tshuva and Raja Giryes},
  year   = {2025},
  eprint = {2505.24244},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.24244v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.24244.svg)](https://codeofpaper.com/paper/2505.24244)

Discussion