Bridge the Inference Gaps of Neural Processes via Expectation Maximization
Qi Wang, Marco Federici, Herke van Hoof
TL;DR
This work addresses the inference suboptimality of vanilla Neural Processes (NPs) by introducing Self-normalized Importance Weighted Neural Processes (SI-NP), a principled EM-based surrogate objective that targets the meta-dataset log-likelihood $\mathcal{L}(\vartheta)$. By leveraging a variational EM framework and self-normalized importance sampling, SI-NP learns a richer functional prior $p(z\vert\mathcal{D}_{\tau}^{C};\vartheta)$ and provides an improvement guarantee over the target likelihood. The approach establishes connections between SI-NPs and CNPs, demonstrates an equivalence under certain limits, and shows competitive performance on synthetic regression and image completion tasks, with attention-based inductive biases further boosting results. Overall, SI-NP offers a principled optimization perspective for learning distributions over functions and provides a scalable path to better uncertainty modeling in neural processes.
Abstract
The neural process (NP) is a family of computationally efficient models for learning distributions over functions. However, it suffers from under-fitting and shows suboptimal performance in practice. Researchers have primarily focused on incorporating diverse structural inductive biases, \textit{e.g.} attention or convolution, in modeling. The topic of inference suboptimality and an analysis of the NP from the optimization objective perspective has hardly been studied in earlier work. To fix this issue, we propose a surrogate objective of the target log-likelihood of the meta dataset within the expectation maximization framework. The resulting model, referred to as the Self-normalized Importance weighted Neural Process (SI-NP), can learn a more accurate functional prior and has an improvement guarantee concerning the target log-likelihood. Experimental results show the competitive performance of SI-NP over other NPs objectives and illustrate that structural inductive biases, such as attention modules, can also augment our method to achieve SOTA performance. Our code is available at \url{https://github.com/hhq123gogogo/SI_NPs}.
