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

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

4 Jun 2021NeurIPS 2021 12arXiv:2106.02584archive 2025-07-28

Jannik Kossen, Neil Band, Clare Lyle, Aidan N. Gomez, Tom Rainforth, Yarin Gal

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2106.02584")

Code

Syntology Ran 10 of 30 code samples harvested from 2 repositories linked to this paper; 20 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 7 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 6 ran; community (archive-listed): 19 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

OATML/Non-Parametric-Transformers officialmentioned in papermentioned on GitHubpytorch report
oatml-markslab/proteinnpt mentioned on GitHubpytorchMIT report
richrast/spin mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

30 samples harvested; 10 ran; 2 honoured the contract we drafted; 20 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · violated contract
7ran
20unverified

Licence: 0 of the 30 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

count_parameters oatml/non-parametric-transformers/npt/utils/train_utils.py official repository ran · honoured contract Apache-2.0 (permissive) · 0e18add484f1a90c · report
Args OATML/Non-Parametric-Transformers/npt/model/npt.py official repository ran Apache-2.0 (permissive) · a94fc028457ce3f8 · report
MAB OATML/Non-Parametric-Transformers/npt/model/npt.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 7232573389ce2a5a · report
Print OATML/Non-Parametric-Transformers/npt/model/npt.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · d6f128d3e349e966 · report
ReshapeToFlat OATML/Non-Parametric-Transformers/npt/model/npt.py official repository ran · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) · 0ead572d1093cc14 · report
ReshapeToNested OATML/Non-Parametric-Transformers/npt/model/npt.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · e6ffb4964d98205f · report
ImagePatcher OATML/Non-Parametric-Transformers/npt/model/npt.py official repository unverified Apache-2.0 (permissive) · 8d76f18f88c52502 · report
LinearImagePatcher OATML/Non-Parametric-Transformers/npt/model/npt.py official repository unverified Apache-2.0 (permissive) · ce48ecd197be4b48 · report
MHSA OATML/Non-Parametric-Transformers/npt/model/npt.py official repository unverified Apache-2.0 (permissive) · f3dd2c06a9c7eb93 · report
NPTModel OATML/Non-Parametric-Transformers/npt/model/npt.py official repository unverified Apache-2.0 (permissive) · 611506804344b302 · report
SaveAttMaps OATML/Non-Parametric-Transformers/npt/model/npt.py official repository unverified Apache-2.0 (permissive) · 67c82e2cb5a619f5 · report
apc oatml-markslab/proteinnpt/proteinnpt/utils/esm/modules.py community (archive-listed) ran fingerprinted MIT (permissive) · f6701ae421cbe0d4 · report
gelu oatml-markslab/proteinnpt/proteinnpt/utils/esm/modules.py community (archive-listed) ran fingerprinted MIT (permissive) · 2e7bd6c4ccd1ed68 · report
get_slopes oatml-markslab/proteinnpt/proteinnpt/utils/tranception/model_pytorch.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 4305f4fdd8e54bc1 · report
symmetrize oatml-markslab/proteinnpt/proteinnpt/utils/esm/modules.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · b385be9826c4a8b3 · report
PNPT_sample_training_points_inference oatml-markslab/proteinnpt/proteinnpt/proteinnpt/data_processing.py community (archive-listed) unverified MIT (permissive) · d2d1d1bc5e8b6b1d · report
assign_group_stratified oatml-markslab/proteinnpt/proteinnpt/utils/cv_split.py community (archive-listed) unverified MIT (permissive) · 7fc8e20691370cda · report
compute_weight oatml-markslab/proteinnpt/proteinnpt/utils/msa_utils.py community (archive-listed) unverified MIT (permissive) · 7b4449eb96bfa4eb · report
compute_weight_all oatml-markslab/proteinnpt/proteinnpt/utils/msa_utils.py community (archive-listed) unverified MIT (permissive) · 0d397ce1b8012be1 · report
get_learning_rate oatml-markslab/proteinnpt/proteinnpt/utils/model_utils.py community (archive-listed) unverified MIT (permissive) · 7dabe8f85e5f4e16 · report
get_parameter_names oatml-markslab/proteinnpt/proteinnpt/utils/model_utils.py community (archive-listed) unverified MIT (permissive) · a8991266f955dd35 · report
get_tranception_tokenizer oatml-markslab/proteinnpt/proteinnpt/utils/tranception/model_pytorch.py community (archive-listed) unverified MIT (permissive) · e20cd5502a6c2414 · report
keep_singles oatml-markslab/proteinnpt/proteinnpt/utils/cv_split.py community (archive-listed) unverified MIT (permissive) · ea7a41d551b7a7e5 · report
learning_rate_scheduler oatml-markslab/proteinnpt/proteinnpt/utils/model_utils.py community (archive-listed) unverified MIT (permissive) · 355bff3ffb0d66a7 · report
nanmean oatml-markslab/proteinnpt/proteinnpt/utils/tranception/model_pytorch.py community (archive-listed) unverified MIT (permissive) · 5574012ba4af04ff · report
one_hot_3D oatml-markslab/proteinnpt/proteinnpt/utils/msa_utils.py community (archive-listed) unverified MIT (permissive) · 52a00d097b2f46fd · report
process_batch oatml-markslab/proteinnpt/proteinnpt/baselines/data_processing.py community (archive-listed) unverified MIT (permissive) · c5e4288eb459c27d · report
return_position_single oatml-markslab/proteinnpt/proteinnpt/utils/cv_split.py community (archive-listed) unverified MIT (permissive) · 4074372860cf12f3 · report
split_data_based_on_test_fold_index oatml-markslab/proteinnpt/proteinnpt/utils/data_utils.py community (archive-listed) unverified MIT (permissive) · 72ad19ee550806af · report
standardize oatml-markslab/proteinnpt/proteinnpt/utils/data_utils.py community (archive-listed) unverified MIT (permissive) · 74862b2cc41d3a95 · report

Tasks

3D Part SegmentationDeep Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

1cycleAdaptive MaskingAdaptive Span TransformerAttentionAttention DropoutDense ConnectionsDropoutEmbedding DropoutL1 RegularizationLayer NormalizationLinear LayerMulti-Head AttentionReLUResidual ConnectionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections