mlsanityData to 7 Oct 2026

Approximation of relation functions and attention mechanisms

arXiv 2402.08856 ↗First posted 13 Feb 2024cs.LG stat.MLcited by 5

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2017Graph Attention Networkscited by 8,854
  9. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  10. 2020Object-Centric Learning with Slot Attentioncited by 865
  11. 2014Neural Turing Machinescited by 630
  12. 2014Breaking the Curse of Dimensionality with Convex Neural Networkscited by 329
9 more
  1. 2016Why and When Can Deep -- but Not Shallow -- Networks Avoid the Curse of Dimensionality: a Reviewcited by 155
  2. 2017Neural Episodic Controlcited by 148
  3. 2018Relational recurrent neural networkscited by 65
  4. 2020Emergent Symbols through Binding in External Memorycited by 47
  5. 2022On Neural Architecture Inductive Biases for Relational Taskscited by 26
  6. 2021Transformers are Deep Infinite-Dimensional Non-Mercer Binary Kernel Machinescited by 22
  7. 2023Abstractors and relational cross-attention: An inductive bias for explicit relational reasoning in Transformerscited by 12
  8. 2023Learning Hierarchical Relational Representations through Relational Convolutionscited by 2
  9. 2018An Explicit Neural Network Construction for Piecewise Constant Function Approximationcited by 1

Built on by

Cited by year

Citing papers per year: 2024: 2; 2025: 3.

5 papers.