Self-Attention Between Datapoints: Going Beyond Individual Input-Output Pairs in Deep Learning

Jannik Kossen, Neil Band, Clare Lyle, Aidan N. Gomez, Tom Rainforth +1 more
6/4/2021
cs.LGstat.ML

Official code: OATML/non-parametric-transformers (417 stars, Apache-2.0, last commit 2024-03-21).

Abstract

We challenge a common assumption underlying most supervised deep learning: that a model makes a prediction depending only on its parameters and the features of a single input. To this end, we introduce a general-purpose deep learning architecture that takes as input the entire dataset instead of processing one datapoint at a time. Our approach uses self-attention to reason about relationships between datapoints explicitly, which can be seen as realizing non-parametric models using parametric attention mechanisms. However, unlike conventional non-parametric models, we let the model learn end-to-end from the data how to make use of other datapoints for prediction. Empirically, our models solve cross-datapoint lookup and complex reasoning tasks unsolvable by traditional deep learning models. We show highly competitive results on tabular data, early results on CIFAR-10, and give insight into how the model makes use of the interactions between points.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for "Self-Attention Between Datapoints: Going Beyond Individual Input-Output Pairs in Deep Learning"

41742Shell, PythonJun 6, 20212 years agoApache-2.0

Similar Papers

Cite this paper

@article{kossen2021selfattention,
  title  = {Self-Attention Between Datapoints: Going Beyond Individual Input-Output Pairs in Deep Learning},
  author = {Jannik Kossen and Neil Band and Clare Lyle and Aidan N. Gomez and Tom Rainforth and Yarin Gal},
  year   = {2021},
  eprint = {2106.02584},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.02584}
}

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

Discussion