mlsanityData to 13 Oct 2026

Exploring the Space of Key-Value-Query Models with Intention

arXiv 2305.10203 ↗First posted 17 May 2023cs.LG cs.NEcited by 7

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

  1. 2017Attention Is All You Needcited by 60,106
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,950
  3. 2020Language Models are Few-Shot Learnerscited by 32,320
  4. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,564
  5. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,339
  6. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,870
  7. 2017Prototypical Networks for Few-shot Learningcited by 3,011
  8. 2016Matching Networks for One Shot Learningcited by 2,251
  9. 2019Dota 2 with Large Scale Deep Reinforcement Learningcited by 1,093
  10. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,025
  11. 2023Neural Codec Language Models are Zero-Shot Text to Speech Synthesizerscited by 745
  12. 2022Transformers learn in-context by gradient descentcited by 720
12 more
  1. 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 592
  2. 2018Meta-Learning with Latent Embedding Optimizationcited by 476
  3. 2019Meta-Learning with Differentiable Convex Optimizationcited by 461
  4. 2018Conditional Neural Processescited by 423
  5. 2016Input Convex Neural Networkscited by 408
  6. 2018Meta-learning with differentiable closed-form solverscited by 396
  7. 2018Neural Processescited by 309
  8. 2022Pure Transformers are Powerful Graph Learnerscited by 188
  9. 2020The Lipschitz Constant of Self-Attentioncited by 172
  10. 2018Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networkscited by 131
  11. 2020A Survey of Deep Meta-Learningcited by 99
  12. 2015Extreme Entropy Machines: Robust information theoretic classificationcited by 3

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2023: 2; 2024: 1; 2025: 3; 2026: 1.

7 papers.