Mechanistic Interpretability for Transformer-based Time Series Classification

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kalnāre, Matīss, Kitharidis, Sofoklis, Bäck, Thomas, van Stein, Niki
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914171900133376
author Kalnāre, Matīss
Kitharidis, Sofoklis
Bäck, Thomas
van Stein, Niki
author_facet Kalnāre, Matīss
Kitharidis, Sofoklis
Bäck, Thomas
van Stein, Niki
contents Transformer-based models have become state-of-the-art tools in various machine learning tasks, including time series classification, yet their complexity makes understanding their internal decision-making challenging. Existing explainability methods often focus on input-output attributions, leaving the internal mechanisms largely opaque. This paper addresses this gap by adapting various Mechanistic Interpretability techniques; activation patching, attention saliency, and sparse autoencoders, from NLP to transformer architectures designed explicitly for time series classification. We systematically probe the internal causal roles of individual attention heads and timesteps, revealing causal structures within these models. Through experimentation on a benchmark time series dataset, we construct causal graphs illustrating how information propagates internally, highlighting key attention heads and temporal positions driving correct classifications. Additionally, we demonstrate the potential of sparse autoencoders for uncovering interpretable latent features. Our findings provide both methodological contributions to transformer interpretability and novel insights into the functional mechanics underlying transformer performance in time series classification tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2511_21514
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Mechanistic Interpretability for Transformer-based Time Series Classification
Kalnāre, Matīss
Kitharidis, Sofoklis
Bäck, Thomas
van Stein, Niki
Machine Learning
Artificial Intelligence
Transformer-based models have become state-of-the-art tools in various machine learning tasks, including time series classification, yet their complexity makes understanding their internal decision-making challenging. Existing explainability methods often focus on input-output attributions, leaving the internal mechanisms largely opaque. This paper addresses this gap by adapting various Mechanistic Interpretability techniques; activation patching, attention saliency, and sparse autoencoders, from NLP to transformer architectures designed explicitly for time series classification. We systematically probe the internal causal roles of individual attention heads and timesteps, revealing causal structures within these models. Through experimentation on a benchmark time series dataset, we construct causal graphs illustrating how information propagates internally, highlighting key attention heads and temporal positions driving correct classifications. Additionally, we demonstrate the potential of sparse autoencoders for uncovering interpretable latent features. Our findings provide both methodological contributions to transformer interpretability and novel insights into the functional mechanics underlying transformer performance in time series classification tasks.
title Mechanistic Interpretability for Transformer-based Time Series Classification
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2511.21514