cs.LGFeb 21, 2026

Incremental Transformer Neural Processes

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

Organizations: University of Cambridge · Helmholtz AI · Technical University of Munich · Munich Center for Machine Learning · 

Abstract

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.

Figures & tables

Appendix figures & tables29 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CATFormer: When Continual Learning Meets Spiking Transformers With Dynamic Thresholds

    Mar 16, 2026Vaishnavi Nagabhushana, Kartikay Agrawal, Ayon BorthakurClass-Incremental LearningSpiking Neural Networks

  2. SNLP: Layer-Parallel Inference via Structured Newton Corrections

    May 18, 2026Ligong Han, Kai Xu, Hao Wang +1Transformer InferenceParallel Decoding

  3. TimeBlocks: Foundational and Continual Time-Series Blockbase -- Extended Version

    Jun 1, 2026David Campos, Bin Yang, Tung Kieu +3Continual Test-Time AdaptationMulti-Task Learning