TranSPAN: Analyzing Signal Property Learning in Transformer-Based Time Series ClassificationNirasha Munasinghe, Sandareka Wickramanayake, Dulani MeedeniyaJournalIEEE Accessvol. 14, pp. 77776–77790Cited by 1DOISignal ProcessingTime Series Analysis and ForecastingAbstract
Transformer-based architectures have recently demonstrated strong performance in time series classification (TSC). However, despite their success, limited work has investigated how these models internally capture fundamental signal characteristics present in time-series data such as amplitude, frequency, phase shift, trend, sharp transitions, and seasonality, essential for reliable temporal reasoning. In this paper, we introduce TranSPAN (Transformer Signal Property ANalysis), a post-hoc interpretability framework designed to analyze how Transformer-based TSC (TTSC) models encode core signal properties through attention mechanisms. TranSPAN systematically masks attention heads and measures the resulting degradation in signal properties, enabling the identification of signal-property–sensitive attention heads (SAHs). Using this framework, we evaluate six TTSC architectures, including vanilla Transformer, TrajFormer, SVP-T, MTM, TARNet, and GTN, across three benchmark datasets: ECG5000, FordA, and UCI HAR. The analysis reveals several key findings. First, TTSC architectures incorporating time-series–specific inductive biases capture substantially more signal properties than the vanilla Transformer. Second, architectural design significantly influences both the diversity and distribution of SAHs. Third, signal-property learning follows a hierarchical pattern across encoder layers, where early layers capture local signal characteristics (e.g., amplitude, sharp transitions) while deeper layers increasingly encode global temporal structures (e.g., trend, seasonality). Additional experiments demonstrate that optimization hyperparameters and derivative-based preprocessing influence the magnitude of signal-property sensitivity but do not fundamentally alter the hierarchical organization of learned representations. Overall, TranSPAN provides a systematic framework for analyzing signal-aware representation learning in TTSC models and offers insights that may guide the design of more interpretable and robust TSC architectures.