Translation Equivariant Transformer Neural Processes
Matthew Ashman, Cristiana Diaconu, Junhyuck Kim, Lakee Sivaraya, Stratis Markou, James Requeima, Wessel P. Bruinsma, Richard E. Turner
TL;DR
This paper tackles learning translation-equivariant posterior predictions for data that are roughly stationary in space or time. It introduces Translation Equivariant Transformer Neural Processes (TE-TNPs) by replacing standard attention with translation-equivariant attention and by incorporating pseudo-tokens to lower computational complexity to $\mathcal{O}(MN)$ per layer. Theoretical results connect stationarity with translation equivariance of the predictive map and demonstrate improved generalisation under distribution shifts within the model's receptive field. Empirically, TE-TNPs outperform non-TE baselines and competitive NP variants across synthetic 1-D regression, image completion, Kolmogorov flow, and ERA5 environmental data, highlighting improved robustness to translations and strong spatio-temporal modelling capabilities.
Abstract
The effectiveness of neural processes (NPs) in modelling posterior prediction maps -- the mapping from data to posterior predictive distributions -- has significantly improved since their inception. This improvement can be attributed to two principal factors: (1) advancements in the architecture of permutation invariant set functions, which are intrinsic to all NPs; and (2) leveraging symmetries present in the true posterior predictive map, which are problem dependent. Transformers are a notable development in permutation invariant set functions, and their utility within NPs has been demonstrated through the family of models we refer to as TNPs. Despite significant interest in TNPs, little attention has been given to incorporating symmetries. Notably, the posterior prediction maps for data that are stationary -- a common assumption in spatio-temporal modelling -- exhibit translation equivariance. In this paper, we introduce of a new family of translation equivariant TNPs that incorporate translation equivariance. Through an extensive range of experiments on synthetic and real-world spatio-temporal data, we demonstrate the effectiveness of TE-TNPs relative to their non-translation-equivariant counterparts and other NP baselines.
