English

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

Machine Learning 2022-02-02 v2 Machine Learning

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.

Keywords

Cite

@article{arxiv.2106.02584,
  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},
  journal= {arXiv preprint arXiv:2106.02584},
  year   = {2022}
}

Comments

Accepted for publication at NeurIPS 2021. First two authors contributed equally

R2 v1 2026-06-24T02:50:50.195Z