Skip to main content
QUICK REVIEW

[Paper Review] EXCODER: EXplainable Classification Of DiscretE time series Representations

Yannik Hahn, Königsfeld, Antonin|arXiv (Cornell University)|Feb 13, 2026
Time Series Analysis and ForecastingComputer Science0 citations
TL;DR

This paper investigates whether discrete latent representations (VQ-VAE, DVAE, SAX) improve explainability for time series classification by enabling structured XAI explanations in latent space, and introduces SSA to assess alignment between explanations and training patterns.

ABSTRACT

Deep learning has significantly improved time series classification, yet the lack of explainability in these models remains a major challenge. While Explainable AI (XAI) techniques aim to make model decisions more transparent, their effectiveness is often hindered by the high dimensionality and noise present in raw time series data. In this work, we investigate whether transforming time series into discrete latent representations-using methods such as Vector Quantized Variational Autoencoders (VQ-VAE) and Discrete Variational Autoencoders (DVAE)-not only preserves but enhances explainability by reducing redundancy and focusing on the most informative patterns. We show that applying XAI methods to these compressed representations leads to concise and structured explanations that maintain faithfulness without sacrificing classification performance. Additionally, we propose Similar Subsequence Accuracy (SSA), a novel metric that quantitatively assesses the alignment between XAI-identified salient subsequences and the label distribution in the training data. SSA provides a systematic way to validate whether the features highlighted by XAI methods are truly representative of the learned classification patterns. Our findings demonstrate that discrete latent representations not only retain the essential characteristics needed for classification but also offer a pathway to more compact, interpretable, and computationally efficient explanations in time series analysis.

Motivation & Objective

  • Motivate the need for interpretable time series classification in high-stakes domains.
  • Propose a pipeline that learns discrete latent representations for time series (VQ-VAE, DVAE, SAX) and classifies on the latent codes.
  • Adapt and apply XAI methods to discrete latent spaces to generate concise, faithful explanations.
  • Introduce Similar Subsequence Accuracy (SSA) to quantitatively assess alignment between XAI saliency and training data patterns.
  • Provide an empirical evaluation across industrial and medical datasets to compare latent vs. non-latent explanations.

Proposed method

  • Transform time series into discrete latent representations using VQ-VAE, DVAE, and SAX as baselines.
  • Attach a patching mechanism that maps each discrete code to a 25-timestep subsequence in the original series for interpretability.
  • Adapt Saliency Map, Integrated Gradients, Randomized Input Sampling (RISE), LIME, and Attention Maps to operate on discrete tokens via an unknown MASK token.
  • Evaluate explanations with perturbation analysis, implementation invariance, cross-method agreement, and the novel SSA metric.
  • Train multiple models with different seeds to assess explanation stability (implementation invariance) and report mean/SD of metrics.

Experimental results

Research questions

  • RQ1Can discrete latent representations preserve classification performance while improving explainability for time series?
  • RQ2Do XAI methods applied to discrete latent spaces yield more compact and structured explanations than in the raw input space?
  • RQ3How can we quantitatively evaluate explanations in discrete latent spaces to ensure they align with true class-discriminative patterns?
  • RQ4Does SSA provide a reliable measure of the alignment between XAI saliency and recurring patterns in training data?
  • RQ5Are explanations stable across model initializations and agree across different XAI methods?

Key findings

  • Discrete representations (VQ-VAE/DVAE) with simple classifiers can achieve competitive or superior explanation-focused metrics in certain datasets.
  • XAI explanations in latent space tend to be more compact and structured without sacrificing classification performance.
  • The SSA metric provides a quantitative measure of alignment between salient latent subsequences and class-specific patterns in training data.
  • There is variability in which XAI method best reveals important features, depending on model architecture and dataset, but some methods show higher robustness and cross-method agreement.
  • Implementation invariance (stability across seeds) and cross-method agreement are useful diagnostics for explanation reliability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.