Attentive Neural Processes

Hyunjik Kim, Andriy Mnih, Jonathan Schwarz, Marta Garnelo, Ali Eslami +3 more
1/17/2019
cs.LGstat.ML

Official code: google-deepmind/neural-processes (1,026 stars, Apache-2.0, last commit 2021-01-19).

Abstract

Neural Processes (NPs) (Garnelo et al 2018a;b) approach regression by learning to map a context set of observed input-output pairs to a distribution over regression functions. Each function models the distribution of the output given an input, conditioned on the context. NPs have the benefit of fitting observed data efficiently with linear complexity in the number of context input-output pairs, and can learn a wide family of conditional distributions; they learn predictive distributions conditioned on context sets of arbitrary size. Nonetheless, we show that NPs suffer a fundamental drawback of underfitting, giving inaccurate predictions at the inputs of the observed data they condition on. We address this issue by incorporating attention into NPs, allowing each input location to attend to the relevant context points for the prediction. We show that this greatly improves the accuracy of predictions, results in noticeably faster training, and expands the range of functions that can be modelled.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This repository contains notebook implementations of the following Neural Process variants: Conditional Neural Processes (CNPs), Neural Processes (NPs), Attentive Neural Processes (ANPs).

1,026155Jupyter NotebookSep 18, 20185 years agoApache-2.0

Similar Papers

Cite this paper

@article{kim2019attentive,
  title  = {Attentive Neural Processes},
  author = {Hyunjik Kim and Andriy Mnih and Jonathan Schwarz and Marta Garnelo and Ali Eslami and Dan Rosenbaum and Oriol Vinyals and Yee Whye Teh},
  year   = {2019},
  eprint = {1901.05761},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1901.05761}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1901.05761.svg)](https://codeofpaper.com/paper/1901.05761)

Discussion