ACL 2025long0 citations

The Hidden Attention of Mamba Models

Ameen Ali Ali, Itamar Zimerman, Lior Wolf

Abstract

The Mamba layer offers an efficient selective state-space model (SSM) that is highly effective in modeling multiple domains, includingNLP, long-range sequence processing, and computer vision. Selective SSMs are viewed as dual models, in which one trains in parallel on the entire sequence via an IO-aware parallel scan, and deploys in an autoregressive manner. We add a third view and show that such models can be viewed as attention-driven models. This new perspective enables us to empirically and theoretically compare the underlying mechanisms to that of the attention in transformers and allows us to peer inside the inner workings of the Mamba model with explainability methods. Our code is publicly available.

BibTeX
@inproceedings{ali-etal-2025-hidden,
    title = "The Hidden Attention of Mamba Models",
    author = "Ali, Ameen Ali  and
      Zimerman, Itamar  and
      Wolf, Lior",
    editor = "Che, Wanxiang  and
      Nabende, Joyce  and
      Shutova, Ekaterina  and
      Pilehvar, Mohammad Taher",
    booktitle = "Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = jul,
    year = "2025",
    address = "Vienna, Austria",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.acl-long.76/",
    doi = "10.18653/v1/2025.acl-long.76",
    pages = "1516--1534",
    ISBN = "979-8-89176-251-0"
}