arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.01135cs.LG
收藏

你的自回归模型已经揭示了因果图

Your Autoregressive Model Already Reveals the Causal Graph

Department of Machine Learning \& Computer Vision, University of Augsburg, Augsburg, Germany

Hugo Math, Rainer Lienhart

AI总结:

本文提出TRACE框架,利用预训练自回归模型作为密度估计器进行条件独立性测试,从单序列离散事件中恢复时间因果图,并在大规模非线性SCM和真实车辆诊断日志上取得显著性能提升。

摘要:

通过下一个词预测训练的自回归模型隐式地学习了其数据生成过程的条件独立结构。我们利用这一观察结果,从单个离散事件观测序列中执行可扩展的因果发现——无需任何特定任务的重新训练。这种单流设置自然出现在车辆诊断、制造系统和患者轨迹中,但至今仍未得到充分解决:缺乏重复样本、大量事件词汇和长程时间依赖使得现有方法要么不准确,要么计算上不可行。我们引入了TRACE,一个将任何预训练自回归模型重新用作条件互信息密度估计器的框架,条件互信息是条件独立性测试的基本原语。通过在GPU上构建并行化的CI测试,TRACE恢复了样本级时间因果图及其摘要投影,其规模随词汇量线性增长,同时自然处理延迟因果效应。关键的是,我们证明了最小化标准交叉熵预训练损失直接最小化了因果识别误差的上界,建立了序列预测与因果发现之间的对偶性。在非线性SCM(|X| = 8000)和真实车辆诊断日志(|X| = 29100)上,TRACE是此规模下首个适用的方法,在F1分数上超过最强基线20多点。

英文摘要:

Autoregressive models trained via next-token prediction implicitly learn the conditional independence structure of their data-generating process. We exploit this observation to perform scalable causal discovery from a single observed sequence of discrete events -- without any task-specific retraining. Such single-stream settings arise naturally in vehicle diagnostics, manufacturing systems, and patient trajectories, yet they remain largely unsolved: the absence of repeated samples, massive event vocabularies, and long-range temporal dependencies render existing methods either inaccurate or computationally intractable. We introduce TRACE, a framework that repurposes any pretrained autoregressive model as a density estimator for conditional mutual information, the fundamental primitive for conditional independence testing. By constructing parallelized CI tests on GPUs, TRACE recovers both the sample-level time causal graph and its summary projection, scaling linearly with the vocabulary size while naturally handling delayed causal effects. Crucially, we prove that minimizing the standard cross-entropy pretraining loss directly minimizes an upper bound on the causal identification error, establishing a duality between sequence prediction and causal discovery. On nonlinear SCMs (|X| = 8000) and real-world vehicle diagnostic logs (|X| = 29100), TRACE is the first applicable method at this scale, outperforming the strongest baseline by over 20 F1 points.

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

↑