Approximation of relation functions and attention mechanisms
Not on the map. Why?
Abstract (arXiv)
Inner products of neural network feature maps arise in a wide variety of machine learning frameworks as a method of modeling relations between inputs. This work studies the approximation properties of inner products of neural networks. It is shown that the inner product of a multi-layer perceptron with itself is a universal approximator for symmetric positive-definite relation functions. In the case of asymmetric relation functions, it is shown that the inner product of two different multi-layer perceptrons is a universal approximator. In both cases, a bound is obtained on the number of neurons required to achieve a given accuracy of approximation. In the symmetric case, the function class can be identified with kernels of reproducing kernel Hilbert spaces, whereas in the asymmetric case the function class can be identified with kernels of reproducing kernel Banach spaces. Finally, these approximation results are applied to analyzing the attention mechanism underlying Transformers, showing that any retrieval mechanism defined by an abstract preorder can be approximated by attention through its inner product relations. This result uses the Debreu representation theorem in economics to represent preference relations in terms of utility functions.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 21 of its 51 references that are in the map. First posted on arXiv 13 Feb 2024.
Builds on
21 of 51 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2017Graph Attention Networkscited by 8,854
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2020Object-Centric Learning with Slot Attentioncited by 865
- 2014Neural Turing Machinescited by 630
- 2014Breaking the Curse of Dimensionality with Convex Neural Networkscited by 329
9 more
- 2016Why and When Can Deep -- but Not Shallow -- Networks Avoid the Curse of Dimensionality: a Reviewcited by 155
- 2017Neural Episodic Controlcited by 148
- 2018Relational recurrent neural networkscited by 65
- 2020Emergent Symbols through Binding in External Memorycited by 47
- 2022On Neural Architecture Inductive Biases for Relational Taskscited by 26
- 2021Transformers are Deep Infinite-Dimensional Non-Mercer Binary Kernel Machinescited by 22
- 2023Abstractors and relational cross-attention: An inductive bias for explicit relational reasoning in Transformerscited by 12
- 2023Learning Hierarchical Relational Representations through Relational Convolutionscited by 2
- 2018An Explicit Neural Network Construction for Piecewise Constant Function Approximationcited by 1
Built on by
Citing papers per year: 2024: 2; 2025: 3.
5 papers.
- 2025Emergent Symbolic Mechanisms Support Abstract Reasoning in Large Language Modelscited by 31
- 2024Slot Abstractors: Toward Scalable Abstract Visual Reasoningcited by 10
- 2024Disentangling and Integrating Relational and Sensory Information in Transformer Architecturescited by 5
- 2025Robust Noise Attenuation via Adaptive Pooling of Transformer Outputscited by 2
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devices12 Aug 2025
- 2025Robust Noise Attenuation via Adaptive Pooling of Transformer Outputs10 Jun 2025
- 2025Emergent Symbolic Mechanisms Support Abstract Reasoning in Large Language Models27 Feb 2025
- 2024Disentangling and Integrating Relational and Sensory Information in Transformer Architectures26 May 2024
- 2024Slot Abstractors: Toward Scalable Abstract Visual Reasoning6 Mar 2024