Lévy注意力:连续时间注意力的单次前向预测不确定性 Lévy Attention: Single-Pass Predictive Uncertainty for Continuous-Time Attention 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-19
👁️ 预览文献
💡 AI 中文简介
针对不规则采样时间序列的深度模型,在任意连续时间戳上给出预测,却不报告预测的可信度。本文提出Lévy注意力,一种交叉注意力算子,其输出是对非齐次泊松随机测度的随机积分。在期望上等价于软化的余弦核注意力,因此可替代softmax层并以精确梯度训练。它保留了softmax丢弃的证据和分歧信息,通过精确方差恒等式,在单次前向中免费输出均方根偏差作为不确定性估计。实验表明,分歧携带信号,证据因子在稀疏数据上信息量大。在t-PatchGNN基准上,算子替换最多损失5.6%准确率,在稀疏数据集上无损失。免费的分歧信号优于20次MC dropout,校准的高斯分布零样本CRPS优于50次采样器,分割共形包装达到标称覆盖率,单次前向在1.4秒内对3383名未见患者进行信任排序。
领域机器学习,时间序列分析
适合谁读需要一定专业背景
核心贡献["提出Lévy注意力算子,在单次前向中同时输出预测和不确定性估计,无需额外训练头。", "通过精确方差恒等式,将证据和分歧组合为均方根偏差,提供校准的不确定性。"]
关键数据在t-PatchGNN上最多损失5.6%准确率,稀疏数据集无损失;单次前向在1.4秒内对3383名患者排序;零样本CRPS优于50次采样器。
推荐理由如果你想在不增加计算成本的情况下获得可靠的不确定性估计,这篇论文值得一读。
关键词["连续时间注意力", "预测不确定性", "泊松随机测度", "不规则采样时间序列", "单次前向"]

原文摘要

查看英文原文摘要

Deep models for irregularly-sampled time series answer queries at arbitrary continuous timestamps, yet report nothing about how far each answer should be trusted. We show the attention layer itself can close that gap: with the right stochastic formulation, the pass that makes each prediction also reports, in closed form and at no extra cost, how far it should be trusted. We introduce Lévy Attention, a cross-attention operator whose output is a stochastic integral against an inhomogeneous Poisson random measure: query-key compatibilities assemble an intensity over a continuous (time x channel) index space, the measure scatters atoms under it, and the output averages an interpolated value field at those atoms. In expectation it reduces to a mollified cosine-kernel attention, so it replaces a softmax layer and trains with exact gradients. What softmax discards, the Poisson construction preserves in closed form: the evidence $Λ_q$ (total compatibility mass) and the disagreement $\mathrm{tr}\,Σ_V(q)$ (value spread). An exact variance identity makes their combination $\hatσ(q)=\sqrt{\mathrm{tr}\,Σ_V(q)\,\varphi(Λ_q)}$ the root-mean-square deviation of the sampled operator, emitted by the deterministic pass with no trained head. Empirically, disagreement carries the signal, while the evidence factor swings from uninformative on dense data to strongly informative on sparse. On t-PatchGNN the operator swap costs at most 5.6% accuracy against a matched control and nothing on the sparsest dataset. The free disagreement signal improves on 20-pass MC dropout across matched five-seed suites, and $\hatσ$ scales a calibrated Gaussian whose zero-sample CRPS beats a fifty-draw sampler; a split-conformal wrapper reaches nominal coverage at every level, and one pass ranks 3,383 unseen patients by trust in 1.4 seconds.

📚 参考文献 (44 条)

查看全部 44 条
  1. A. Amini, W. Schwarting, A. Soleimany, and D. Rus. Deep evidential regression. In NeurIPS, 2020.
  2. M. Biloš, J. Sommer, S. S. Rangapuram, T. Januschowski, and S. Günnemann. Neural flows: Efficient alternative to neural ODEs. In NeurIPS, 2021.
  3. Z. Che, S. Purushotham, K. Cho, D. Sontag, and Y. Liu. Recurrent neural networks for multivariate time series with missing values. Scientific Reports, 8(1):6085, 2018.
  4. Y. Chen, K. Ren, Y. Wang, Y. Fang, W. Sun, and D. Li. ContiFormer: Continuous-time transformer for irregular time series modeling. In NeurIPS, 2023.
  5. K. Choromanski et al. Rethinking attention with Performers. In ICLR, 2021.
  6. E. Daxberger, A. Kristiadi, A. Immer, R. Eschenhagen, M. Bauer, and P. Hennig. Laplace redux: Effortless Bayesian deep learning. In NeurIPS, 2021.
  7. E. De Brouwer, J. Simm, A. Arany, and Y. Moreau. GRU-ODE-Bayes: Continuous modeling of sporadically-observed time series. In NeurIPS, 2019.
  8. X. Fan, S. Zhang, B. Chen, and M. Zhou. Bayesian attention modules. In NeurIPS, 2020.
  9. J. Futoma, S. Hariharan, and K. Heller. Learning to detect sepsis with a multitask Gaussian process RNN classifier. In ICML, 2017.
  10. Y. Gal and Z. Ghahramani. Dropout as a Bayesian approximation: Representing model uncertainty in deep learning. In ICML, 2016.
  11. M. Garnelo, J. Schwarz, D. Rosenbaum, F. Viola, D. J. Rezende, S. M. A. Eslami, and Y. W. Teh. Neural processes. In ICML Workshop on Theoretical Foundations and Applications of Deep Generative Models, 2018.
  12. I. Gibbs and E. Candès. Adaptive conformal inference under distribution shift. In NeurIPS, 2021.
  13. T. Gneiting and A. E. Raftery. Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477):359–378, 2007.
  14. M. Horn, M. Moor, C. Bock, B. Rieck, and K. Borgwardt. Set functions for time series. In ICML, 2020.
  15. E. Ilg, Ö. Çiçek, S. Galesso, A. Klein, O. Makansi, F. Hutter, and T. Brox. Uncertainty estimates and multi-hypotheses networks for optical flow. In ECCV, 2018.
  16. A. Katharopoulos, A. Vyas, N. Pappas, and F. Fleuret. Transformers are RNNs: Fast autoregressive transformers with linear attention. In ICML, 2020.
  17. A. Kendall and Y. Gal. What uncertainties do we need in Bayesian deep learning for computer vision? In NeurIPS, 2017.
  18. H. Kim, A. Mnih, J. Schwarz, M. Garnelo, S. M. A. Eslami, D. Rosenbaum, O. Vinyals, and Y. W. Teh. Attentive neural processes. In ICLR, 2019.
  19. J. F. C. Kingman. Poisson Processes. Oxford University Press, 1993.
  20. B. Lakshminarayanan, A. Pritzel, and C. Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In NeurIPS, 2017.
  21. J. Lei, M. G’Sell, A. Rinaldo, R. J. Tibshirani, and L. Wasserman. Distribution-free predictive inference for regression. Journal of the American Statistical Association, 113(523):1094–1111, 2018.
  22. S. C.-X. Li and B. Marlin. A scalable end-to-end Gaussian process adapter for irregularly sampled time series classification. In NeurIPS, 2016.
  23. J. Z. Liu, Z. Lin, S. Padhy, D. Tran, T. Bedrax-Weiss, and B. Lakshminarayanan. Simple and principled uncertainty estimation with deterministic deep learning via distance awareness. In NeurIPS, 2020.
  24. Z. Liu et al. Swin transformer v2: Scaling up capacity and resolution. In CVPR, 2022.
  25. Y. Luo, B. Zhang, Z. Liu, and Q. Ma. Hi-Patch: Hierarchical patch GNN for irregular multivariate time series. In ICML, 2025.
  26. A. F. T. Martins, A. Farinhas, M. Treviso, V. Niculae, P. M. Q. Aguiar, and M. A. T. Figueiredo. Sparse and continuous attention mechanisms. In NeurIPS, 2020.
  27. J. Mukhoti, A. Kirsch, J. van Amersfoort, P. H. S. Torr, and Y. Gal. Deep deterministic uncertainty: A new simple baseline. In CVPR, 2023.
  28. T. Nguyen and A. Grover. Transformer neural processes: Uncertainty-aware meta learning via sequence modeling. In ICML, 2022.
  29. H. Peng, N. Pappas, D. Yogatama, R. Schwartz, N. A. Smith, and L. Kong. Random feature attention. In ICLR, 2021.
  30. Y. Rubanova, R. T. Q. Chen, and D. Duvenaud. Latent ODEs for irregularly-sampled time series. In NeurIPS, 2019.
  31. M. Schirmer, M. Eltayeb, S. Lessmann, and M. Rudolph. Modeling irregular time series with continuous recurrent units. In ICML, 2022.
  32. M. Seitzer, A. Tavakoli, D. Antic, and G. Martius. On the pitfalls of heteroscedastic uncertainty estimation with probabilistic neural networks. In ICLR, 2022.
  33. M. Sensoy, L. Kaplan, and M. Kandemir. Evidential deep learning to quantify classification uncertainty. In NeurIPS, 2018.
  34. S. N. Shukla and B. M. Marlin. Multi-time attention networks for irregularly sampled time series. In ICLR, 2021.
  35. Y. Tashiro, J. Song, Y. Song, and S. Ermon. CSDI: Conditional score-based diffusion models for probabilistic time series imputation. In NeurIPS, 2021.
  36. J. van Amersfoort, L. Smith, Y. W. Teh, and Y. Gal. Uncertainty estimation using a single deep deterministic neural network. In ICML, 2020.
  37. Z. Wu, S. Pan, G. Long, J. Jiang, and C. Zhang. Graph WaveNet for deep spatial-temporal graph modeling. In IJCAI, 2019.
  38. H. Wu, T. Hu, Y. Liu, H. Zhou, J. Wang, and M. Long. TimesNet: Temporal 2D-variation modeling for general time series analysis. In ICLR, 2023.
  39. V. K. Yalavarthi, K. Madhusudhanan, R. Scholz, N. Ahmed, J. Burchert, S. Jawed, S. Born, and L. Schmidt-Thieme. GraFITi: Graphs for forecasting irregularly sampled time series. In AAAI, 2024.
  40. A. Zeng, M. Chen, L. Zhang, and Q. Xu. Are transformers effective for time series forecasting? In AAAI, 2023.
  41. Y. Zhang and J. Yan. Crossformer: Transformer utilizing cross-dimension dependency for multivariate time series forecasting. In ICLR, 2023.
  42. X. Zhang, M. Zeman, T. Tsiligkaridis, and M. Zitnik. Graph-guided network for irregularly sampled multivariate time series. In ICLR, 2022.
  43. J. Zhang, S. Zheng, W. Cao, J. Bian, and J. Li. Warpformer: A multi-scale modeling approach for irregular clinical time series. In KDD, 2023.
  44. W. Zhang, C. Yin, H. Liu, X. Zhou, and H. Xiong. Irregular multivariate time series forecasting: A transformable patching graph neural networks approach. In ICML, 2024.