Reproduce “Infinite attention: NNGP and NTK for deep attention networks” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Jiri Hron, Yasaman Bahri, Jascha Sohl-Dickstein, Roman Novak
This paper rigorously extends Neural Network Gaussian Process (NNGP) and Neural Tangent Kernel (NTK) theory to deep attention networks, proving that multi-head attention converges to a Gaussian Process in the infinite-width limit under standard scaling. It derives new attention kernels and demonstrates empirical performance improvements, including the first NNGP/NTK benchmarks on variable-length text sequences.
Key insights
- Multi-head attention inherently resolves the non-Gaussianity problem of single-head attention in the infinite-width limit by letting the number of heads tend to infinity, enabling the use of standard scaling.
- The commonly used d^-1/2 scaling for attention preserves its expressivity, unlike the d^-1 scaling, which limits attention to simple averaging.
- For finite attention networks, simpler attention score activations (like ReLU or identity) combined with at-output layer normalization can empirically outperform softmax.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.