PreprintCited by 40Gaussian Processes and Bayesian InferenceNeural Networks and ApplicationsStochastic Gradient Optimization Techniques

The DOI matches its DataCite record; 1 of the 1 references it cites were found in a registry or an index.

Infinite attention: NNGP and NTK for deep attention networks

Open access
Hron, Jiri, Bahri, Yasaman, Sohl-Dickstein, Jascha, Novak, Roman·2020·arXiv

Abstract

There is a growing amount of literature on the relationship between wide neural networks (NNs) and Gaussian processes (GPs), identifying an equivalence between the two for a variety of NN architectures. This equivalence enables, for instance, accurate approximation of the behaviour of wide Bayesian NNs without MCMC or variational approximations, or characterisation of the distribution of randomly initialised wide NNs optimised by gradient descent without ever running an optimiser. We provide a rigorous extension of these results to NNs involving attention layers, showing that unlike single-head attention, which induces non-Gaussian behaviour, multi-head attention architectures behave as GPs as the number of heads tends to infinity. We further discuss the effects of positional encodings and layer normalisation, and propose modifications of the attention mechanism which lead to improved results for both finite and infinitely wide NNs. We evaluate attention kernels empirically, leading to a moderate improvement upon the previous state-of-the-art on CIFAR-10 for GPs without trainable kernels and advanced data preprocessing. Finally, we introduce new features to the Neural Tangents library (Novak et al., 2020) allowing applications of NNGP/NTK models, with and without attention, to variable-length sequences, with an example on the IMDb reviews dataset.

Overview

Integrity signals

Registry

DataCite · 10.48550/arxiv.2006.10540

Cites

1 of 1 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Verification

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • The formulations for self-attention and the ensemble averaging for proximate data points are identical.

    “We note that the formulations for self-attention and the ensemble averaging for proximate data points are identical.”

    From How Do Vision Transformers Work? (2022) · cites this paper as Hron et al., 2020

  • NTK theoretically implies that the loss landscape of a ViT is convex and flat when the number of heads or embedding dimensions per head goes to infinity.

    “Neural tangent kernel (NTK) (Jacot et al., 2018) theoretically implies that the loss landscape of a ViT is convex and flat when the number of heads or the number of embedding dimensions per head goes to infinity (Hron et al., 2020; Liu et al., 2020).”

    From How Do Vision Transformers Work? (2022) · cites this paper as Hron et al., 2020

Citations

Cites

  • Convolutional Sequence to Sequence Learning

    Gehring, J., Auli, M., Grangier, D., Yarats, D., & Dauphin, Y. N. (2017) · arXiv · doi:10.48550/arxiv.1705.03122 · Cited by 2,850 · cited 3×

    “…wide attention architectures, two practical considerations have to be addressed: (i) the d−1/2 scaling induced kernel in Equation (9) involves an analytically intractable integral E[ζ(G`1(x))ζ(G`1(x′))]; (ii) incorporation of positional encodings (Gehring et al., 2017; Vaswani et al., 2017).”
    Background

Flagged first, then by citations

Cited by

Sorted by citations

Metadata

Authors
Hron, J., Bahri, Y., Sohl-Dickstein, J., & Novak, R.
Affiliations
  • University of Cambridge (GB)
  • Google (United States) (US)
Venue
arXiv
Publisher
arXiv
Published
2020
Volume
1
Pages
4376-4386
ISSN
2331-8422 (ISSN-L)
OpenAlex
W3034979923
Cited by
40
References
1
Citations by year
2026: 1 · 2025: 5 · 2024: 4 · 2023: 4 · 2022: 8 · 2021: 11 · 2020: 7
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
  • International Conference on Machine Learning
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Gaussian Processes and Bayesian Inference
  • Physical Sciences › Computer Science › Artificial Intelligence › Neural Networks and Applications
  • Physical Sciences › Computer Science › Artificial Intelligence › Stochastic Gradient Optimization Techniques
Keywords
infinite-width neural networks, neural tangent kernel, attention mechanism, multi-head attention, positional encoding, variable-length sequences, Bayesian neural networks, gradient descent dynamics

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review