arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.18955cs.LG
收藏

增量变换器神经过程

Incremental Transformer Neural Processes

University of Cambridge(剑桥大学)

Philip Mortimer, Cristiana Diaconu, Tommy Rochussen, Bruno Mlodozeniec, Richard E. Turner

AI总结:

本文提出增量变换器神经过程(incTNP),通过因果掩码、键值缓存和高效自回归训练策略,在保持预测性能的同时将更新计算复杂度从二次降低到线性,从而在序列推理中实现显著的速度提升,并保持流式推理的一致性。

摘要:

神经过程(NPs)以及特定的变换器神经过程(TNPs)在从时空预测到表格数据建模的任务中展现了卓越的性能。然而,许多应用本质上是序列性的,涉及连续数据流,如实时传感器读数或数据库更新。在这种情况下,模型应支持低成本的增量更新,而不是为每个新观察重新计算内部表示——这一能力现有的TNP变体所缺乏。受大型语言模型的启发,我们引入了增量TNP(incTNP)。通过利用因果掩码、键值(KV)缓存和数据高效的自回归训练策略,incTNP在保持标准TNPs的预测性能的同时,将更新的计算成本从二次复杂度降低到线性复杂度。我们在一系列合成和现实任务上经验性地评估了我们的模型,包括表格回归和温度预测。我们的结果表明,令人惊讶的是,incTNP的性能与非因果TNPs相当或更好,同时在序列推理中解锁了数量级的速度提升。最后,我们评估了模型更新的一致性——通过适配

英文摘要:

Neural Processes (NPs), and specifically Transformer Neural Processes (TNPs), have demonstrated remarkable performance across tasks ranging from spatiotemporal forecasting to tabular data modelling. However, many of these applications are inherently sequential, involving continuous data streams such as real-time sensor readings or database updates. In such settings, models should support cheap, incremental updates rather than recomputing internal representations from scratch for every new observation -- a capability existing TNP variants lack. Drawing inspiration from Large Language Models, we introduce the Incremental TNP (incTNP). By leveraging causal masking, Key-Value (KV) caching, and a data-efficient autoregressive training strategy, incTNP matches the predictive performance of standard TNPs while reducing the computational cost of updates from quadratic to linear time complexity. We empirically evaluate our model on a range of synthetic and real-world tasks, including tabular regression and temperature prediction. Our results show that, surprisingly, incTNP delivers performance comparable to -- or better than -- non-causal TNPs while unlocking orders-of-magnitude speedups for sequential inference. Finally, we assess the consistency of the model's updates -- by adapting a metric of "implicit Bayesianness", we show that under a one-at-a-time streaming protocol, incTNP retains a prediction rule as implicitly Bayesian as standard non-causal TNPs, demonstrating that incTNP achieves the computational benefits of causal masking without sacrificing the consistency required for streaming inference.

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

↑