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

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 struggle to capture precise token-level interactions at the layer level, leaving gaps in understanding how Mamba selectively processes sequences across layers.In this work, we introduce LATIM, a novel tokenlevel 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.Our code is available at https:// github.com/deep-spin/latim.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.1194
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Hugo Pitorro, Marcos Treviso
Natural Language Processing Techniques
article

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

Hugo Pitorro, Marcos Treviso
article en

Abstract

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 struggle to capture precise token-level interactions at the layer level, leaving gaps in understanding how Mamba selectively processes sequences across layers.In this work, we introduce LATIM, a novel tokenlevel 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.Our code is available at https:// github.com/deep-spin/latim.

Instituto de Telecomunicações (PT)
Instituto de Telecomunicações, HORIZON EUROPE Framework Programme, Fundação para a Ciência e a Tecnologia
Openalex Percentile: Top 90%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.