arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.16708cs.LGstat.ME
收藏

CausalFormer:一种用于时间因果发现的可解释Transformer

CausalFormer: An Interpretable Transformer for Temporal Causal Discovery

Tongji University(同济大学);Fudan University(复旦大学)

Lingbai Kong, Wengen Li, Hanchen Yang, Yichao Zhang, Jihong Guan, Shuigeng Zhou

AI总结:

针对现有时间因果发现方法仅利用深度学习模型部分组件参数、映射不完整的问题,提出由因果感知Transformer和基于分解的因果检测器组成的CausalFormer模型,在多类数据集上实现了当前最优的时间因果发现性能。

摘要:

时间因果发现是旨在揭示时间序列数据内部因果关系的关键任务。最新的时间因果发现方法通常在预测任务上训练深度学习模型,以揭示时间序列之间的因果关系。它们通过分析训练后模型部分组件的参数(例如注意力权重和卷积权重)来捕捉因果关系。然而,这是一个从模型参数到因果关系的不完整映射过程,且未能研究对因果发现同样重要的其他组件,例如全连接层和激活函数。为了推动将整个深度学习模型应用于时间因果发现,我们提出了一种基于Transformer的可解释因果发现模型,名为CausalFormer,它由因果感知Transformer和基于分解的因果检测器组成。因果感知Transformer通过带有设计的多核因果卷积的预测任务学习时间序列数据的因果表征,该多核因果卷积在时间优先级约束下沿时间维度聚合每个输入时间序列。随后,基于分解的因果检测器通过提出的回归相关性传播来解释训练后的因果感知Transformer的全局结构,以识别潜在的因果关系并最终构建因果图。在合成数据集、模拟数据集和真实数据集上的实验表明,CausalFormer在发现时间因果关系方面达到了当前最优性能。我们的代码可在https://github.com/lingbai-kong/CausalFormer获取。

英文摘要:

Temporal causal discovery is a crucial task aimed at uncovering the causal relations within time series data. The latest temporal causal discovery methods usually train deep learning models on prediction tasks to uncover the causality between time series. They capture causal relations by analyzing the parameters of some components of the trained models, e.g., attention weights and convolution weights. However, this is an incomplete mapping process from the model parameters to the causality and fails to investigate the other components, e.g., fully connected layers and activation functions, that are also significant for causal discovery. To facilitate the utilization of the whole deep learning models in temporal causal discovery, we proposed an interpretable transformer-based causal discovery model termed CausalFormer, which consists of the causality-aware transformer and the decomposition-based causality detector. The causality-aware transformer learns the causal representation of time series data using a prediction task with the designed multi-kernel causal convolution which aggregates each input time series along the temporal dimension under the temporal priority constraint. Then, the decomposition-based causality detector interprets the global structure of the trained causality-aware transformer with the proposed regression relevance propagation to identify potential causal relations and finally construct the causal graph. Experiments on synthetic, simulated, and real datasets demonstrate the state-of-the-art performance of CausalFormer on discovering temporal causality. Our code is available at https://github.com/lingbai-kong/CausalFormer.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑