Unifying Prediction and Explanation in Time-Series Transformers via Shapley-based Pretraining

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Cheng, Qisen, Xing, Jinming, Xue, Chang, Yang, Xiaoran
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866929687675011072
author Cheng, Qisen
Xing, Jinming
Xue, Chang
Yang, Xiaoran
author_facet Cheng, Qisen
Xing, Jinming
Xue, Chang
Yang, Xiaoran
contents In this paper, we propose ShapTST, a framework that enables time-series transformers to efficiently generate Shapley-value-based explanations alongside predictions in a single forward pass. Shapley values are widely used to evaluate the contribution of different time-steps and features in a test sample, and are commonly generated through repeatedly inferring on each sample with different parts of information removed. Therefore, it requires expensive inference-time computations that occur at every request for model explanations. In contrast, our framework unifies the explanation and prediction in training through a novel Shapley-based pre-training design, which eliminates the undesirable test-time computation and replaces it with a single-time pre-training. Moreover, this specialized pre-training benefits the prediction performance by making the transformer model more effectively weigh different features and time-steps in the time-series, particularly improving the robustness against data noise that is common to raw time-series data. We experimentally validated our approach on eight public datasets, where our time-series model achieved competitive results in both classification and regression tasks, while providing Shapley-based explanations similar to those obtained with post-hoc computation. Our work offers an efficient and explainable solution for time-series analysis tasks in the safety-critical applications.
format Preprint
id arxiv_https___arxiv_org_abs_2501_15070
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unifying Prediction and Explanation in Time-Series Transformers via Shapley-based Pretraining
Cheng, Qisen
Xing, Jinming
Xue, Chang
Yang, Xiaoran
Machine Learning
In this paper, we propose ShapTST, a framework that enables time-series transformers to efficiently generate Shapley-value-based explanations alongside predictions in a single forward pass. Shapley values are widely used to evaluate the contribution of different time-steps and features in a test sample, and are commonly generated through repeatedly inferring on each sample with different parts of information removed. Therefore, it requires expensive inference-time computations that occur at every request for model explanations. In contrast, our framework unifies the explanation and prediction in training through a novel Shapley-based pre-training design, which eliminates the undesirable test-time computation and replaces it with a single-time pre-training. Moreover, this specialized pre-training benefits the prediction performance by making the transformer model more effectively weigh different features and time-steps in the time-series, particularly improving the robustness against data noise that is common to raw time-series data. We experimentally validated our approach on eight public datasets, where our time-series model achieved competitive results in both classification and regression tasks, while providing Shapley-based explanations similar to those obtained with post-hoc computation. Our work offers an efficient and explainable solution for time-series analysis tasks in the safety-critical applications.
title Unifying Prediction and Explanation in Time-Series Transformers via Shapley-based Pretraining
topic Machine Learning
url https://arxiv.org/abs/2501.15070