通过基于Shapley的预训练在时间序列Transformer中统一预测与解释
Unifying Prediction and Explanation in Time-Series Transformers via Shapley-based Pretraining
AI总结:
提出ShapTST框架,通过基于Shapley值的预训练设计,在时间序列Transformer中统一预测与解释,实现单次前向传播生成解释,消除测试时计算,并在八个数据集上验证了其竞争力和鲁棒性。
摘要:
在本文中,我们提出了ShapTST框架,使时间序列Transformer能够在单次前向传播中高效生成基于Shapley值的解释和预测。Shapley值被广泛用于评估测试样本中不同时间步和特征的贡献,通常通过反复推断每个样本并移除不同部分信息来生成。因此,它需要昂贵的推理时计算,每次请求模型解释时都会发生。相比之下,我们的框架通过新颖的基于Shapley的预训练设计,在训练中统一了解释和预测,消除了不可取的测试时计算,并用一次性预训练替代。此外,这种专门的预训练通过使Transformer模型更有效地权衡时间序列中的不同特征和时间步,提升了预测性能,特别是提高了对原始时间序列数据中常见数据噪声的鲁棒性。我们在八个公开数据集上实验验证了我们的方法,时间序列模型在分类和回归任务中均取得了有竞争力的结果,同时提供了与事后计算获得的类似的基于Shapley的解释。我们的工作为安全关键应用中的时间序列分析任务提供了高效且可解释的解决方案。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。