Neural Processes with Stochastic Attention: Paying more attention to the context dataset

Mingyu Kim, Kyeongryeol Go, Se-Young Yun
4/11/2022
cs.LGcs.AI

Official code: MingyuKim87/NPwSA (12 stars, Python, last commit 2022-07-05).

Abstract

Neural processes (NPs) aim to stochastically complete unseen data points based on a given context dataset. NPs essentially leverage a given dataset as a context representation to derive a suitable identifier for a novel task.

Show full abstract

To improve the prediction accuracy, many variants of NPs have investigated context embedding approaches that generally design novel network architectures and aggregation functions satisfying permutation invariant. In this work, we propose a stochastic attention mechanism for NPs to capture appropriate context information. From the perspective of information theory, we demonstrate that the proposed method encourages context embedding to be differentiated from a target dataset, allowing NPs to consider features in a target dataset and context embedding independently. We observe that the proposed method can appropriately capture context embedding even under noisy data sets and restricted task distributions, where typical NPs suffer from a lack of context embeddings. We empirically show that our approach substantially outperforms conventional NPs in various domains through 1D regression, predator-prey model, and image completion. Moreover, the proposed method is also validated by MovieLens-10k dataset, a real-world problem.

View on arXivView PDF

Code Implementations(1)

MingyuKim87/NPwSAOfficial100%

Official PyTorch implementation of NPwSA: "Neural Processes with Stochastic Attention: Paying more attention to the context dataset (ICLR2022)"

121Python, PerlJul 5, 20224 years ago
attention-mechanismbayesian-methodsmeta-learning

Similar Papers

Cite this paper

@article{kim2022neural,
  title  = {Neural Processes with Stochastic Attention: Paying more attention to the context dataset},
  author = {Mingyu Kim and Kyeongryeol Go and Se-Young Yun},
  year   = {2022},
  eprint = {2204.05449},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.05449}
}

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/2204.05449.svg)](https://codeofpaper.com/paper/2204.05449)

Discussion