Exploring the Space of Key-Value-Query Models with Intention
Not on the map. Why?
Abstract (arXiv)
Attention-based models have been a key element of many recent breakthroughs in deep learning. Two key components of Attention are the structure of its input (which consists of keys, values and queries) and the computations by which these three are combined. In this paper we explore the space of models that share said input structure but are not restricted to the computations of Attention. We refer to this space as Keys-Values-Queries (KVQ) Space. Our goal is to determine whether there are any other stackable models in KVQ Space that Attention cannot efficiently approximate, which we can implement with our current deep learning toolbox and that solve problems that are interesting to the community. Maybe surprisingly, the solution to the standard least squares problem satisfies these properties. A neural network module that is able to compute this solution not only enriches the set of computations that a neural network can represent but is also provably a strict generalisation of Linear Attention. Even more surprisingly the computational complexity of this module is exactly the same as that of Attention, making it a suitable drop in replacement. With this novel connection between classical machine learning (least squares) and modern deep learning (Attention) established we justify a variation of our model which generalises regular Attention in the same way. Both new modules are put to the test an a wide spectrum of tasks ranging from few-shot learning to policy distillation that confirm their real-worlds applicability.
Key facts. Cited by 7 papers in the map (data through 13 Oct 2026). Builds on 24 of its 55 references that are in the map. First posted on arXiv 17 May 2023.
Builds on
24 of 55 references.
References · 24
- 2017Attention Is All You Needcited by 60,106
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,564
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,339
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,870
- 2017Prototypical Networks for Few-shot Learningcited by 3,011
- 2016Matching Networks for One Shot Learningcited by 2,251
- 2019Dota 2 with Large Scale Deep Reinforcement Learningcited by 1,093
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,025
- 2023Neural Codec Language Models are Zero-Shot Text to Speech Synthesizerscited by 745
- 2022Transformers learn in-context by gradient descentcited by 720
12 more
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 592
- 2018Meta-Learning with Latent Embedding Optimizationcited by 476
- 2019Meta-Learning with Differentiable Convex Optimizationcited by 461
- 2018Conditional Neural Processescited by 423
- 2016Input Convex Neural Networkscited by 408
- 2018Meta-learning with differentiable closed-form solverscited by 396
- 2018Neural Processescited by 309
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2020The Lipschitz Constant of Self-Attentioncited by 172
- 2018Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networkscited by 131
- 2020A Survey of Deep Meta-Learningcited by 99
- 2015Extreme Entropy Machines: Robust information theoretic classificationcited by 3
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 3; 2026: 1.
7 papers.
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 113
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 97
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 67
- 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 41
- 2024Translation Equivariant Transformer Neural Processescited by 12
- 2025Ordinary Least Squares as an Attention Mechanismcited by 0
- 2026Functional Attention: From Pairwise Affinities to Functional Correspondencescited by 0
- 2026Functional Attention: From Pairwise Affinities to Functional Correspondences29 May 2026
- 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Training5 Jun 2025
- 2025Ordinary Least Squares as an Attention Mechanism13 Apr 2025
- 2025Test-time regression: a unifying framework for designing sequence models with associative memory21 Jan 2025
- 2024Translation Equivariant Transformer Neural Processes18 Jun 2024
- 2023Uncovering mesa-optimization algorithms in Transformers11 Sep 2023
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalization30 May 2023