LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Pitorro, Hugo, Treviso, Marcos
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912244241006592
author Pitorro, Hugo
Treviso, Marcos
author_facet Pitorro, Hugo
Treviso, Marcos
contents State space models (SSMs), such as Mamba, have emerged as an efficient alternative to transformers for long-context sequence modeling. However, despite their growing adoption, SSMs lack the interpretability tools that have been crucial for understanding and improving attention-based architectures. While recent efforts provide insights into Mamba's internal mechanisms, they do not explicitly decompose token-wise contributions, leaving gaps in understanding how Mamba selectively processes sequences across layers. In this work, we introduce LaTIM, a novel token-level decomposition method for both Mamba-1 and Mamba-2 that enables fine-grained interpretability. We extensively evaluate our method across diverse tasks, including machine translation, copying, and retrieval-based generation, demonstrating its effectiveness in revealing Mamba's token-to-token interaction patterns.
format Preprint
id arxiv_https___arxiv_org_abs_2502_15612
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Models
Pitorro, Hugo
Treviso, Marcos
Computation and Language
I.2.7
State space models (SSMs), such as Mamba, have emerged as an efficient alternative to transformers for long-context sequence modeling. However, despite their growing adoption, SSMs lack the interpretability tools that have been crucial for understanding and improving attention-based architectures. While recent efforts provide insights into Mamba's internal mechanisms, they do not explicitly decompose token-wise contributions, leaving gaps in understanding how Mamba selectively processes sequences across layers. In this work, we introduce LaTIM, a novel token-level decomposition method for both Mamba-1 and Mamba-2 that enables fine-grained interpretability. We extensively evaluate our method across diverse tasks, including machine translation, copying, and retrieval-based generation, demonstrating its effectiveness in revealing Mamba's token-to-token interaction patterns.
title LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Models
topic Computation and Language
I.2.7
url https://arxiv.org/abs/2502.15612