让时间序列Transformer一次前向传播完成预测与可解释性分析
Unifying Prediction and Explanation in Time-Series Transformers via Shapley-based Pretraining
- 通过基于谢林值的预训练统一预测与解释过程
- 在8个公开数据集上实现预测性能提升与高效解释
- 适合需要可解释性的高安全要求场景
本文提出ShapTST框架,使时间序列Transformer能在一次前向传播中同时生成基于谢林值的解释与预测结果。传统谢林值需多次移除部分信息进行推断,计算开销大;而本方法通过新颖的谢林值预训练设计,在训练阶段完成解释能力学习,避免了每次请求时的昂贵推理计算。该预训练还提升了模型对不同特征和时间步的权重分配能力,尤其增强了对原始时间序列常见噪声的鲁棒性。在8个公开数据集上的实验表明,模型在分类与回归任务中表现优异,且解释结果与事后计算一致。本工作为安全关键应用中的时间序列分析提供了高效可解释的解决方案。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。