Gridded Transformer Neural Processes for Spatio-Temporal Data

Abstract

Effective modelling of large-scale spatio-temporal datasets is essential for many domains, yet existing approaches often impose rigid constraints on the input data, such as requiring them to lie on fixed-resolution grids. With the rise of foundation models, the ability to process diverse, heterogeneous data structures is becoming increasingly important. Neural processes (NPs), particularly transformer neural processes (TNPs), offer a promising framework for such tasks, but struggle to scale to large spatio-temporal datasets due to the lack of an efficient attention mechanism. To address this, we introduce gridded pseudo-token TNPs which employ specialised encoders and decoders to handle unstructured data and utilise a processor comprising gridded pseudo-tokens with efficient attention mechanisms. Furthermore, we develop equivariant gridded TNPs for applications where exact or approximate translation equivariance is a useful inductive bias, improving accuracy and training efficiency. Our method consistently outperforms a range of strong baselines in various synthetic and real-world regression tasks involving large-scale data, while maintaining competitive computational efficiency. Experiments with weather data highlight the potential of gridded TNPs and serve as just one example of a domain where they can have a significant impact.

Cite

Text

Ashman et al. "Gridded Transformer Neural Processes for Spatio-Temporal Data." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Ashman et al. "Gridded Transformer Neural Processes for Spatio-Temporal Data." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/ashman2025icml-gridded/)

BibTeX

@inproceedings{ashman2025icml-gridded,
  title     = {{Gridded Transformer Neural Processes for Spatio-Temporal Data}},
  author    = {Ashman, Matthew and Diaconu, Cristiana and Langezaal, Eric and Weller, Adrian and Turner, Richard E},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {1722-1761},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/ashman2025icml-gridded/}
}