The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attention
Open accessAbstract
Linear layers in neural networks (NNs) trained by gradient descent can be expressed as a key-value memory system which stores all training datapoints and the initial weights, and produces outputs using unnormalised dot attention over the entire training experience. While this has been technically known since the 1960s, no prior work has effectively studied the operations of NNs in such a form, presumably due to prohibitive time and space complexities and impractical model sizes, all of them growing linearly with the number of training patterns which may get very large. However, this dual formulation offers a possibility of directly visualising how an NN makes use of training patterns at test time, by examining the corresponding attention weights. We conduct experiments on small scale supervised image classification tasks in single-task, multi-task, and continual learning settings, as well as language modelling, and discuss potentials and limits of this view for better understanding and interpreting how NNs exploit training patterns. Our code is public.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the fast-weight view, the DeltaNet update is one online gradient step on the local regression loss.
“In the fast-weight view [18, 19], Eq. 5 is one online gradient step on the local regression loss 1 2 ‖ S ⊤ 𝑘 𝑡 -𝑣 𝑡 ‖ 2 2 .”
From Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention (2026) · cites this paper as [18]
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 13× · see citing works
“Also, while there is no technical gain in expressing the dual form in terms of key-value/attention concepts (Vaswani et al., 2017; Miller et al., 2016; Sukhbaatar et al., 2015; Graves et al., 2014), such a formulation has become very popular since the advent of Transformers (Vaswani et al., 2017), and we believe many…”
BackgroundInfluentialHochreiter, S., & Schmidhuber, J. (1997) · Neural Computation · doi:10.1162/neco.1997.9.8.1735 · Cited by 102,318 · cited 1× · see citing works
“We train language models based on long short-term memory recurrent NNs (Hochreiter & Schmidhuber, 1997) on a small public domain book and the WikiText-2 dataset (Merity et al., 2017).”
MethodSelf-citationDistributed Representations of Words and Phrases and their Compositionality
Mikolov, T., Sutskever, I., Chen, K., Corrado, G., & Dean, J. (2013) · arXiv · doi:10.48550/arxiv.1310.4546 · Cited by 24,533 · cited 4× · see citing works
“A desirable NLP experiment would be to train a big Transformer language model (LM) on a vast amount of data, and analyse the attention of linear layers over the training datapoints while sampling from the model.”
InfluentialLanguage Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 1× · see citing works
“For example, how can big language models such as GPT-3 (Brown et al., 2020) generate an answer to a question never seen during training, translate languages without being trained to do so, or solve previously unseen math problems?”
BackgroundA Tutorial on Support Vector Machines for Pattern Recognition
Burges, C. J. C. (1998) · Data Mining and Knowledge Discovery · doi:10.1023/a:1009715923555 · Cited by 16,437 · cited 2× · see citing works
“…presented in the case where the co-domain of the linear layer is one-dimensional (i.e., the weight matrix reduces to a weight vector), especially in the literature on support vector and kernel machines (Boser et al., 1992; Burges, 1998) and in textbooks (Sch¨olkopf & Smola, 2002; Bishop, 2006).”
BackgroundNeural Machine Translation by Jointly Learning to Align and Translate
Bahdanau, D., Cho, K., & Bengio, Y. (2014) · arXiv · doi:10.48550/arxiv.1409.0473 · Cited by 16,213 · cited 3× · see citing works
“…exception of certain special structures such as filters in convolutional NNs trained for image processing (Zeiler & Fergus, 2014), attention weights (Bahdanau et al., 2015) or the sequential Jacobian (Graves, 2008) in sequence processing, or, to a limited extent, the distribution of individual…”
BackgroundMethodVisualizing and understanding convolutional networks
Zeiler, M. D., & Fergus, R. (2014) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-10590-1_53 · Cited by 15,839 · cited 1× · see citing works
“…patterns, with the occasional exception of certain special structures such as filters in convolutional NNs trained for image processing (Zeiler & Fergus, 2014), attention weights (Bahdanau et al., 2015) or the sequential Jacobian (Graves, 2008) in sequence processing, or, to a limited…”
BackgroundThe perceptron: A probabilistic model for information storage and organization in the brain.
Rosenblatt, F. (1958) · Psychological Review · doi:10.1037/h0042519 · Cited by 12,280 · cited 3× · see citing works
“Most importantly, it is well known that the perceptron (Rosenblatt, 1958) has primal and dual forms as pointed out by Aizerman et al. (1964).”
BackgroundA training algorithm for optimal margin classifiers
Boser, B. E., Guyon, I. M., & Vapnik, V. N. (1992) · Proceedings of the fifth annual workshop on Computational learning theory · doi:10.1145/130385.130401 · Cited by 11,992 · cited 4× · see citing works
“…presented in the case where the co-domain of the linear layer is one-dimensional (i.e., the weight matrix reduces to a weight vector), especially in the literature on support vector and kernel machines (Boser et al., 1992; Burges, 1998) and in textbooks (Sch¨olkopf & Smola, 2002; Bishop, 2006).”
BackgroundInfluentialEffective Approaches to Attention-based Neural Machine Translation
Luong, T., Pham, H., & Manning, C. D. (2015) · Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/d15-1166 · Cited by 8,382 · cited 1× · see citing works
“Obviously, referring to the equations above as attention (or unnormalised attention) emphasizes the relation to the regular softmax normalised dot product attention (Luong et al., 2015; Bahdanau et al., 2015) which is V softmax( K (cid:124) q ) using the notations above.”
MethodFashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
Xiao, H., Rasul, K., & Vollgraf, R. (2017) · arXiv · doi:10.48550/arxiv.1708.07747 · Cited by 6,108 · cited 4× · see citing works
“For image classification, we analyse feedforward NNs with two hidden layers using the MNIST (LeCun et al., 1998) and Fashion-MNIST (Xiao et al., 2017) datasets.”
MethodInfluentialPointer Sentinel Mixture ModelsPreprint
Merity, S., Xiong, C., Bradbury, J., & Socher, R. (2016) · International Conference on Learning Representations · doi:10.48550/arxiv.1609.07843 · Cited by 5,051 · cited 9× · see citing works
“Example test query and top-3 training passages (with their Wikipedia page title) from WikiText-2.”
MethodInfluentialSupervised Sequence Labelling with Recurrent Neural Networks
Graves, A. (2012) · Studies in Computational Intelligence · doi:10.1007/978-3-642-24797-2 · Cited by 3,120 · cited 2× · see citing works
“Naive visualisation of their activations or weight matrices rarely shows human-interpretable patterns, with the occasional exception of certain special structures such as filters in convolutional NNs trained for image processing (Zeiler & Fergus, 2014), attention weights (Bahdanau et al., 2015) or the sequential Jacobi…”
Zero-shot text-to-image generation
Ramesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., & Sutskever, I. (2021) · arXiv · doi:10.48550/arxiv.2102.12092 · Cited by 2,417 · cited 2× · see citing works
“, 2020) generate an answer to a question never seen during training, translate languages without being trained to do so, or solve previously unseen math problems? How can DALL-E (Ramesh et al., 2021) generate various pictures of a radish walking a dog or a banana performing stand-up comedy without training examples co…”
BackgroundCatastrophic forgetting in connectionist networks
French, R. (1999) · Trends in Cognitive Sciences · doi:10.1016/s1364-6613(99)01294-2 · Cited by 2,311 · cited 1× · see citing works
“0 keys for the attention computation, the model would be able to reproduce the good performance on MNIST obtained after the first part of training, and thus avoid degradation or more generally catastrophic forgetting (French, 1999).”
MethodGraves, A., Wayne, G., & Danihelka, I. (2014) · arXiv · doi:10.48550/arxiv.1410.5401 · Cited by 1,058 · cited 1× · see citing works
“…gain in expressing the dual form in terms of key-value/attention concepts (Vaswani et al., 2017; Miller et al., 2016; Sukhbaatar et al., 2015; Graves et al., 2014), such a formulation has become very popular since the advent of Transformers (Vaswani et al., 2017), and we believe many modern…”
Background(2016) · doi:10.18653/v1/d16-1147 · Cited by 1,035 · cited 1× · see citing works
“Also, while there is no technical gain in expressing the dual form in terms of key-value/attention concepts (Vaswani et al., 2017; Miller et al., 2016; Sukhbaatar et al., 2015; Graves et al., 2014), such a formulation has become very popular since the advent of Transformers (Vaswani et al., 2017),…”
BackgroundTransformers are RNNs: Fast Autoregressive Transformers with Linear Attention
Katharopoulos, A., Vyas, A., Pappas, N., & Fleuret, F. (2020) · arXiv · doi:10.48550/arxiv.2006.16236 · Cited by 827 · cited 3× · see citing works
“Katharopoulos et al. (2020) convert the self-attention in Transformers—whose complexity is quadratic in sequence length—to a linear-complexity linear layer with fast weights (Schmidhuber, 1991).”
BackgroundMethodRethinking Attention with Performers
Choromanski, K., Likhosherstov, V., Dohan, D., Song, X., Gane, A., Sarlos, T., Hawkins, P., Davis, J., Mohiuddin, A., Kaiser, L., et al. (2020) · arXiv · doi:10.48550/arxiv.2009.14794 · Cited by 695 · cited 1× · see citing works
“A number of recent works connect attention and kernels (Tsai et al., 2019; Katharopoulos et al., 2020; Choromanski et al., 2021; Peng et al., 2021).”
BackgroundBook Review: Pattern Recognition and Machine Learning
Nasrabadi, N. M. (2007) · Journal of Electronic Imaging · doi:10.1117/1.2819119 · Cited by 636 · cited 2× · see citing works
“…presented in the case where the co-domain of the linear layer is one-dimensional (i.e., the weight matrix reduces to a weight vector), especially in the literature on support vector and kernel machines (Boser et al., 1992; Burges, 1998) and in textbooks (Sch¨olkopf & Smola, 2002; Bishop, 2006).”
BackgroundUsing Fast Weights to Attend to the Recent PastPreprint
Ba, J., Hinton, G. E., Mnih, V., Leibo, J., & Ionescu, C. (2016) · Neural Information Processing Systems · doi:10.48550/arxiv.1610.06258 · Cited by 386 · cited 2× · see citing works
“3, the conversion from the primal to the dual form of a linear layer we explore here (Proposition 1) is used in prior works connecting Transformers with linearised attention and fast weight programmers (Ba et al., 2016; Katharopoulos et al., 2020; Schlag et al., 2021).”
BackgroundMethodTransformer Feed-Forward Layers Are Key-Value Memories
Geva, M., Schuster, R., Berant, J., & Levy, O. (2021) · Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2021.emnlp-main.446 · Cited by 353 · see citing works
Transformer Dissection: An Unified Understanding for Transformer’s Attention via the Lens of Kernel
Tsai, Y.-H. H., Bai, S., Yamada, M., Morency, L.-P., & Salakhutdinov, R. (2019) · Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) · doi:10.18653/v1/d19-1443 · Cited by 173 · see citing works
Random Feature AttentionPreprint
Peng, H., Pappas, N., Yogatama, D., Schwartz, R., Smith, N. A., & Kong, L. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2103.02143 · Cited by 169 · cited 1× · see citing works
“A number of recent works connect attention and kernels (Tsai et al., 2019; Katharopoulos et al., 2020; Choromanski et al., 2021; Peng et al., 2021).”
BackgroundLanguage Modeling with Deep Transformers
Irie, K., Zeyer, A., Schlüter, R., & Ney, H. (2019) · Interspeech (USB) · doi:10.21437/interspeech.2019-2225 · Cited by 166 · cited 1× · see citing works
“13 remains invariant if we shuffle the order of columns in the key-value storage, as it is carried out without any explicit positional encoding (similarly to auto-regressive attention (Irie et al., 2019; Tsai et al., 2019) in some Transformer language models).”
BackgroundSelf-citationLearning in High Dimension Always Amounts to Extrapolation
Balestriero, R., Pesenti, J., & LeCun, Y. (2021) · arXiv · doi:10.48550/arxiv.2110.09485 · Cited by 93 · see citing works
Every Model Learned by Gradient Descent Is Approximately a Kernel MachinePreprint
Domingos, P. M. (2020) · arXiv.org · doi:10.48550/arxiv.2012.00152 · Cited by 87 · cited 1× · see citing works
“More recent work of Domingos (2020) presents a more general statement: an entire multi-layer perceptron can be approximated by a kernel machine.”
BackgroundAugmenting Self-attention with Persistent Memory
Sukhbaatar, S., Grave, E., Lample, G., Jegou, H., & Joulin, A. (2019) · arXiv · doi:10.48550/arxiv.1907.01470 · Cited by 75 · see citing works
Linear Transformers Are Secretly Fast Weight Programmers
Schlag, I., Irie, K., & Schmidhuber, J. (2021) · arXiv · doi:10.48550/arxiv.2102.11174 · Cited by 60 · cited 1× · see citing works
“3, the conversion from the primal to the dual form of a linear layer we explore here (Proposition 1) is used in prior works connecting Transformers with linearised attention and fast weight programmers (Ba et al., 2016; Katharopoulos et al., 2020; Schlag et al., 2021).”
MethodSelf-citationSchmidhuber, J. (1993) · ICANN ’93 · doi:10.1007/978-1-4471-2063-6_110 · Cited by 34 · cited 2× · see citing works
“We also note that Schmidhuber (1993) referred to the unnormalised attention used in the context of fast weight controllers as “internal spotlights of attention.””
BackgroundMethodSelf-citation
Flagged first, then by citations
6 of the 36 references couldn’t be matched to a known paper.
Cited by
Sorted by citations
A Survey on In-context Learning
Dong, Q., Li, L., Dai, D., Zheng, C., Ma, J., Li, R., Xia, H., Xu, J., Wu, Z., Chang, B., et al. (2024) · Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2024.emnlp-main.64 · Cited by 649 · see citing works
“A direct estimation method (Direct) adopts the conditional probability of candidate answers that can be represented by tokens in the vocabulary of language models (Brown et al., 2020).”
MethodWhy Can GPT Learn In-Context? Language Models Secretly Perform Gradient Descent as Meta-Optimizers
Dai, D., Sun, Y., Dong, L., Hao, Y., Ma, S., Sui, Z., & Wei, F. (2023) · Findings of the Association for Computational Linguistics: ACL 2023 · doi:10.18653/v1/2023.findings-acl.247 · Cited by 154 · see citing works
Whispering LLaMA: A Cross-Modal Generative Error Correction Framework for Speech Recognition
Radhakrishnan, S., Yang, C., Khan, S., Kumar, R., Kiani, N., Gómez-Cabrero, D., & Tegnér, J. (2023) · Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2023.emnlp-main.618 · Cited by 102 · see citing works
“Whisper utilizes the encoder of a Transformer model to derive features from audio input, which are then fed into the decoder through multi-headed cross-attention, enabling auto-regressive text token prediction (Wang et al., 2023; Irie et al., 2022).”
MethodEmergent Abilities in Large Language Models: A SurveyPreprint
Berti, L., Giorgi, F., & Kasneci, G. (2025) · arXiv.org · doi:10.48550/arxiv.2503.05788 · Cited by 61 · see citing works
“Mechanistically, ICL has been linked to neural architectures, such as induction heads [24, 59] and functional modules that emerge naturally during training [7, 43, 81, 84].”
One Shot Learning as Instruction Data Prospector for Large Language Models
Li, Y., Hui, B., Xia, X.-B., Yang, J., Yang, M., Zhang, L., Si, S., Chen, L.-H., Liu, J., Liu, T., et al. (2023) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2312.10302 · Cited by 59
“Motivated by the inherent duality between In-Context Learning (ICL) and gradient descent (Dai et al., 2022; Aizerman et al., 1964; Yang et al., 2023; Irie et al., 2022), we “fine-tune” the instruction implicitly through one-shot learning, replacing the need for actually fine-tuning the model.”
BackgroundThe Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysis
Zhou, Y.-X., Li, J., Xiang, Y., Yan, H., Gui, L., & He, Y.-L. (2023) · Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2024.emnlp-main.795 · Cited by 54 · see citing works
“…delving into the inner mechanism (Olah, 2022; Olsson et al., 2022) of ICL through different theoretical conceptual lenses such as linear regression formulation (Garg et al., 2022; Li et al., 2023b), meta-learning (Dai et al., 2023; Irie et al., 2022), and Bayesian inference (Xie et al., 2022).”
BackgroundJiao, R.-C., Xie, S., Yue, J., Sato, T., Wang, L., Wang, Y.-X., Chen, Q. A., & Zhu, Q. (2024) · International Conference on Learning Representations · doi:10.48550/arxiv.2405.20774 · Cited by 46
“Recent works (Dai et al., 2023; Irie et al., 2022) show that ICL can be considered as implicit fine-tuning based on the dual form between Transformer attention and gradient descents.”
Batch-ICL: Effective, Efficient, and Order-Agnostic In-Context Learning
Zhang, K.-Y., Lv, A., Chen, Y., Ha, H., Xu, T., & Yan, R. (2024) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2401.06469 · Cited by 39
“Many works (Aizerman et al., 1964; Irie et al., 2022; Dai et al., 2023; Ren and Liu, 2023) have demonstrated the similarity between the linear attention and the linear layers optimized by gradient descent.”
BackgroundIn-context Learning and Gradient Descent RevisitedPreprint
Deutch, G., Magar, N., Natan, T., & Dar, G. (2023) · North American Chapter of the Association for Computational Linguistics · doi:10.48550/arxiv.2311.07772 · Cited by 33 · see citing works
“(Irie et al., 2022) rewrite the dual form of a linear per-ceptron in terms of query-key-value attention, and use it to analyze how a trained model is affected by its training samples.”
Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizers
Dai, D., Sun, Y., Dong, L., Hao, Y., Ma, S., Sui, Z., & Wei, F. (2022) · arXiv · doi:10.48550/arxiv.2212.10559 · Cited by 31 · see citing works
“The idea in this paper to explain language models as meta-optimizers is inspired by Aizerman et al. (1964); Irie et al. (2022).”
Towards Understanding How Transformers Learn In-context Through a Representation Learning Lens
Ren, R., & Liu, Y. (2023) · Neural Information Processing Systems · doi:10.52202/079017-0027 · Cited by 26 · see citing works
“Inspired by the dual form of linear attention proposed in Aiserman et al. [1964] and Irie et al. [2022], the ICL process is interpreted as implicit fine-tuning in the setting of linear attention by Dai et al. [2022].”
Sparse Distributed Memory is a Continual Learner
Bricken, T., Davies, X., Singh, D., Krotov, D., & Kreiman, G. (2023) · International Conference on Learning Representations · doi:10.48550/arxiv.2303.11934 · Cited by 26
“This can allow for learning statistical regularities in the patterns’ superpositions to represent useful prototypes, likely benefiting generalization (Irie et al., 2022).”
BackgroundTräuble, F., Goyal, A., Rahaman, N., Mozer, M., Kawaguchi, K., Bengio, Y., & Schölkopf, B. (2022) · International Conference on Machine Learning · doi:10.48550/arxiv.2207.11240 · Cited by 26
“Recently, it has been analyzed that feed-forward layers in transformers mirror memory mechanisms on the keys and values [15, 26].”
BackgroundTitans: Learning to Memorize at Test Time
Behrouz, A., Zhong, P., & Mirrokni, V. (2025) · arXiv · doi:10.48550/arxiv.2501.00663 · Cited by 24 · see citing works
“…are capable of either memorizing the knowledge abstraction (e.g., persistent memory) [39], or memorizing the data-dependent information (also known as contextual memory), through recurrence [97, 94, 95], Transformers [110, 32–34, 111, 99], gradient [81, 23], or other learning paradigms [112, 113].”
Gershman, S. J., Fiete, I., & Irie, K. (2025) · arXiv · doi:10.48550/arxiv.2501.02950 · Cited by 21 · see citing works
“Generalizing a classic result on kernel machines 41 , Irie and colleagues 12 showed that this construction is equivalent (in the sense of producing the same output for a given input) to the following linear key-value memory: where (using our earlier notation) α = qK ⊤ with v n = e n , k n = x n ,…”
Self-citationIterative Forward Tuning Boosts In-context Learning in Language Models
Yang, J., Hui, B., Yang, M., Wang, B.-L., Li, B.-W., Li, B.-H., Huang, F., & Li, Y.-B. (2023) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2305.13016 · Cited by 19
“A dual form exists between attention and gradient descent-based optimization (Irie et al., 2022a), directly connecting the test input to demonstrations.”
BackgroundLearning to (Learn at Test Time): RNNs with Expressive Hidden States
Sun, Y., Li, X., Dalal, K., Xu, J., Vikram, A., Zhang, G., Dubois, Y., Chen, X., Wang, X., Koyejo, S., et al. (2024) · arXiv · doi:10.48550/arxiv.2407.04620 · Cited by 18 · see citing works
“The terminology of primal and dual follows prior work that has explored similar mathematical formulations outside of TTT [35, 7, 61].”
Exploring the Mystery of Influential Data for Mathematical Reasoning
Ni, X., Gong, Y., Gou, Z., Shen, Y., Yang, Y.-J., Duan, N., & Chen, W.-Z. (2024) · arXiv.org · doi:10.48550/arxiv.2404.01067 · Cited by 18
“Prior works (Dai et al., 2022; Irie et al., 2022) have shown the inherent duality between attention and gradient descent.”
BackgroundA Survey to Recent Progress Towards Understanding In-Context Learning
Mao, H.-T., Liu, G.-D., Ma, Y., Wang, R.-R., Johnson, K., & Tang, J.-L. (2024) · North American Chapter of the Association for Computational Linguistics · doi:10.18653/v1/2025.findings-naacl.408 · Cited by 18
“Based on the dual view that the backward process on a linear neural layer is equivalent to the forward process on a linear attention layer , Irie et al. (2022); Dai et al. (2022) proves the mathematical equivalence, illustrating the implicit gradient descent implementation with a linear attention.”
Universal Link Predictor By In-Context Learning on Graphs
Dong, K., Mao, H.-T., Guo, Z.-C., & Chawla, N. (2024) · Trans. Mach. Learn. Res. · doi:10.48550/arxiv.2402.07738 · Cited by 17
BayesPCN: A Continually Learnable Predictive Coding Associative Memory
Yoo, J., & Wood, F. (2022) · Neural Information Processing Systems · doi:10.48550/arxiv.2205.09930 · Cited by 17
“…aspects of biological intelligence [Kanerva, 1988, Hawkins and Blakeslee, 2004] and provided novel perspectives on machine learning toolsets like dot-product attention, transformers, and linear layers of deep neural networks [Ramsauer et al., 2020, Bricken and Pehlevan, 2021, Irie et al., 2022].”
BackgroundPrediction of Cryptocurrency Price using Time Series Data and Deep Learning Algorithms
Nair, M., Marie, M. I., & Abd-Elmegid, L. A. (2023) · International Journal of Advanced Computer Science and Applications · doi:10.14569/ijacsa.2023.0140837 · Cited by 24 · see citing works
“The recommended networks by Hochreiter and Schmid Huber [30] because the last state needed to be sufficiently recent and thus influenced the present state, the RNN model may inaccurately predict the current state [31].”
BackgroundParallelizing Linear Transformers with the Delta Rule over Sequence Length
Yang, S., Wang, B., Zhang, Y., Shen, Y., & Kim, Y. (2024) · arXiv · doi:10.48550/arxiv.2406.06484 · Cited by 12
“Finally, we remark that delta rule is closely related to meta or online learning via gradient descent [70, 38], which has been revisited in recent works like Longhorn [56] and TTT [107].”
Focused Large Language Models are Stable Many-Shot LearnersPreprint
Yuan, P.-W., Feng, S., Li, Y.-W., Wang, X.-L., Zhang, Y.-Q., Tan, C.-Y., Pan, B.-Y., Wang, H.-D., Hu, Y., & Li, K. (2024) · Conference on Empirical Methods in Natural Language Processing · doi:10.48550/arxiv.2408.13987 · Cited by 10 · see citing works
“, 2 , Institute Technology Previous studies (Dai et al., 2023; Irie et al., 2022; von Oswald q 1 r 1 q 2 r 2 q q N r N d 1 d 2 d N _ ... q 1 r 1 q 2 r 2 q q N r N ... et al., 2023; Akyürek et al., 2023) have theoretically inferred that ICL can be viewed as an implicit finetuning process, with…”
BackgroundA Meta-Learning Perspective on Transformers for Causal Language Modeling
Wu, X.-B., & Varshney, L. (2023) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2310.05884 · Cited by 10
Metalearning Continual Learning Algorithms
Irie, K., Csordás, R., & Schmidhuber, J. (2023) · Trans. Mach. Learn. Res. · doi:10.48550/arxiv.2312.00276 · Cited by 9
“We use the multi-head version of the computation above (Irie et al., 2022c) to directly replace the multi-head self-attention layer in the Transformer, yielding a “Recursive Self-Transformer”.”
InfluentialSelf-citationImages as Weight Matrices: Sequential Image Generation Through Synaptic Learning Rules
Irie, K., & Schmidhuber, J. (2022) · International Conference on Learning Representations · doi:10.48550/arxiv.2210.06184 · Cited by 9
“In fact, Transformers with linearised attention (Katharopoulos et al., 2020) have a dual form (Aizerman et al., 1964; Irie et al., 2022a) that is an FWP with an outer product-based weight generation mechanism (Schmidhuber, 1991a; 1992).”
BackgroundMethodInfluentialSelf-citationFast weight programming and linear transformers: from machine learning to neurobiology
Irie, K., & Gershman, S. J. (2025) · Trans. Mach. Learn. Res. · doi:10.48550/arxiv.2508.08435 · Cited by 8
“…is the same as the classic derivation in ML that derives the duality between the perception and its Vanilla FWP dual form, kernel machines by Aizerman et al. 110 (1964); based on this parallel, the vanilla FWP computation is the primal form , and (unnormalized) attention is its dual form 111 .”
Self-citationExact Conversion of In-Context Learning to Model Weights in Linearized-Attention Transformers
Chen, B. K., Hu, T., Jin, H., Lee, H. K., & Kawaguchi, K. (2024) · International Conference on Machine Learning · doi:10.48550/arxiv.2406.02847 · Cited by 8
“As an alternative, studies have approximated the attention mechanism by the linear product (Irie et al., 2022; Bahdanau et al., 2016; Luong et al., 2015).”
MethodSentiment analysis model for cryptocurrency tweets using different deep learning techniques
Nair, M., Abdelmegid, L. A., & Marie, M. I. (2024) · Journal of Intelligent Systems · doi:10.1515/jisys-2023-0085 · Cited by 8
“The networks were proposed by Hochreiter and Schmid Huber [1,38].”
Huang, J.-H., Alfadly, M., Ghanem, B., & Worring, M. (2023) · arXiv.org · doi:10.48550/arxiv.2304.03147 · Cited by 8
“To analyze the robustness and enable in-context learning [11, 20, 34, 87] for VQA models, we utilize the proposed General and Yes/No BQ datasets, which are structured as {Image, MQ, 21 (BQ + corresponding similarity score)}.”
Teaching LLMs According to Their Aptitude: Adaptive Reasoning for Mathematical Problem Solving
Xu, X., Xu, Y., Chen, T.-H., Yan, Y., Liu, C., Chen, Z., Wang, Y.-F., Yin, Y.-C., Wang, Y., Shang, L., et al. (2025) · arXiv.org · doi:10.48550/arxiv.2502.12022 · Cited by 7
“This adjustment is achieved through the meta-gradient mechanism (Dai et al., 2022; Yang et al., 2023; Irie et al., 2022), meaning the few-shot examples influence the model as if performing implicit instruction tuning.”
Irie, K. (2024) · arXiv.org · doi:10.48550/arxiv.2501.00659 · Cited by 7
“Note that this relation is analogous to the famous duality that connects the perceptron to kernel machines (Aizerman et al., 1964; Irie et al., 2022).”
Self-citationOn the Feasibility of In-Context Probing for Data Attribution
Jiao, C., Gao, W.-Z., Raghunathan, A., & Xiong, C.-Y. (2025) · North American Chapter of the Association for Computational Linguistics · doi:10.18653/v1/2025.findings-naacl.286 · Cited by 7
“…and ICP can be used effectively for data selection, a key component to connecting these ideas lies in a recent body of work which suggests that in-context learning implicitly performs gradient descent by constructing meta-gradients (Irie et al., 2022; Dai et al., 2023; Von Oswald et al., 2023).”
Neural Differential Equations for Learning to Program Neural Nets Through Continuous Learning Rules
Irie, K., Faccio, F., & Schmidhuber, J. (2022) · arXiv · doi:10.48550/arxiv.2206.01649 · Cited by 5
“Variants of FWPs whose weight generation is based on outer products between keys and values [7] have been shown [9] to be equivalent to Linear Transformers [11] (using the mathematical equivalence known from perceptron/kernel machine duality [48, 49]).”
MethodSelf-citationLocally Differentially Private In-Context Learning
Zheng, C., Sun, K., Zhao, W., Zhou, H., Jiang, L.-X., Song, S., & Zhou, C.-L. (2024) · International Conference on Language Resources and Evaluation · doi:10.48550/arxiv.2405.04032 · Cited by 5
“We adapt the ideas of ICL as Transformer attention mechanism by a dual implicit gradient descent optimization from (Dai et al., 2022; Von Oswald et al., 2023; Irie et al., 2022a).”
MethodIn-context Learning with Transformer Is Really Equivalent to a Contrastive Learning Pattern
Ren, R., & Liu, Y. (2023) · arXiv.org · doi:10.48550/arxiv.2310.13220 · Cited by 5
“Inspired by the dual form of linear attention proposed in Aiserman et al. [1964] and Irie et al. [2022], the ICL process is interpreted as implicit fine-tuning in the setting of linear attention by Dai et al. [2022].”
Yao, X.-H., Hu, X., Yang, S.-Z., & Liu, Y. (2024) · Neural Information Processing Systems · doi:10.48550/arxiv.2406.03768 · Cited by 4
“Irie et al. [21] and Dai et al. [10] explain ICL as implicit fine-tuning by figuring out a dual form of gradient descent for linear Transformer attention.”
InfluentialMiyanishi, Y., & Nguyen, M.-Q. L. (2023) · International Conference on Language Resources and Evaluation · doi:10.48550/arxiv.2308.11585 · Cited by 4
“From a theoretical standpoint, the groundwork of our in-context learning analysis relies upon the principles of simplified linear attention (Irie et al., 2022; Dai et al., 2023).”
BackgroundMethodIrie, K., Csordás, R., & Schmidhuber, J. (2023) · arXiv · doi:10.48550/arxiv.2310.16076 · Cited by 3 · see citing works
“Note that this relation is analogous to the one that connects the perceptron to kernel machines (Aizerman et al., 1964; Irie et al., 2022a).”
BackgroundSelf-citationUnveil the Duality of Retrieval-Augmented Generation: Theoretical Analysis and Practical Solution
Xu, S., Pang, L., Shen, H.-W., & Cheng, X.-Q. (2024) · arXiv.org · doi:10.48550/arxiv.2406.00944 · Cited by 3
“W K b i is equal to the historical input vectors: In the standard gradient descent with loss L , e i = − η ∂ L ∂y i and η is the learning rate and y i = W i x i is the output of the linear layer using the weight matrix W i at step t (Irie et al., 2022).”
Modular TTT: Rethinking Test-Time Training as Composable Modules
Tang, B.-H., Qin, Z., Pan, Y.-Q., Li, Z., Liu, P.-F., & Zhang, Y. (2026) · arXiv.org · doi:10.48550/arxiv.2608.07110 · Cited by 3
“The residual rows remain worse than their non-residual counterparts in Tables 22 and 23, while SwiGLU requires additional stabilization and still stays below the shallow reference.”
Disentangling Latent Shifts of In-Context Learning with Weak Supervision
Jukic, J., & Snajder, J. (2024) · Neural Information Processing Systems · doi:10.52202/085713-4828 · Cited by 3
“The theoretical motivation for this approach stems from previous studies [2, 19], which demonstrate that linear layers optimized via gradient descent can be viewed through the lens of linear attention mechanisms.”
Nearest Neighbor Machine Translation is Meta-Optimizer on Output Projection Layer
Gao, R., Zhang, Z., Du, Y., Liu, L.-M., & Wang, R. (2023) · Conference on Empirical Methods in Natural Language Processing · doi:10.48550/arxiv.2305.13034 · Cited by 2
“Based Optimization and Attention Irie et al. (2022) present that linear layers optimized by gradient descent have a dual form of linear attention, which motivates us to view k NN-MT as meta-optimizers.”
BackgroundMethodIrie, K., & Schmidhuber, J. (2022) · arXiv.org · doi:10.48550/arxiv.2211.09440 · Cited by 2 · see citing works
“Firstly, Transformers with linearised self-attention [9, 10] have a “dual form” that is an outer product-based FWP: exactly the same mathematical relation [11] maps the perceptron to its dual form, the kernel machine [12].”
BackgroundSelf-citationNested Learning: The Illusion of Deep Learning Architectures
Behrouz, A., Razaviyayn, M., Zhong, P., & Mirrokni, V. (2025) · arXiv · doi:10.48550/arxiv.2512.24695 · Cited by 1 · see citing works
“Also, recently, the duality of meta-learning perspective and the architecture has been in the core of attention of several studies [58, 63, 92, 93].”
Gated Delta Networks: Improving Mamba2 with Delta Rule
Yang, S., Kautz, J., & Hatamizadeh, A. (2024) · arXiv · doi:10.48550/arxiv.2412.06464 · Cited by 1 · see citing works
“Online Update From the perspective of fast weight programming (Irie et al., 2022a) and test-time training (Sun et al., 2024a) and regression (Wang et al., 2025), the hidden state S can be interpreted as a (fast) weight matrix, with the delta rule optimizing the online regression objective where β t…”
Activation-Keyed Momentum: An Anisotropic Momentum Update via the Delta Rule
Hong, E., & Qu, G.-N. (2026) · doi:10.48550/arxiv.2608.19491 · Cited by 1
“A linear layer trained by gradient descent is itself such a memory, written additively, since its weight is the initialization plus a sum of outer products of its inputs and errors and its output is an unnormalized attention read over that history [1, 12].”
Accelerating Neural Self-Improvement via Bootstrapping
Irie, K., & Schmidhuber, J. (2023) · arXiv.org · doi:10.48550/arxiv.2305.01547 · Cited by 1
“2, but not in the experiments presented here (following Irie et al. (2022b)’s few-shot image classification setting).”
BackgroundMethodResultInfluentialSelf-citationDisentangling Latent Shifts of In-Context Learning Through Self-Training
Jukic, J., & Snajder, J. (2024) · arXiv.org · doi:10.48550/arxiv.2410.01508 · Cited by 1
“The theoretical motivation for this approach stems from previous studies [2, 19], which demonstrate that linear layers optimized via gradient descent can be viewed through the lens of linear attention mechanisms.”
Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention
Hatamizadeh, A., Choi, Y., & Kautz, J. (2026) · arXiv
“With a scalar step size 𝛽 𝑡 ∈ [0 , 1] , the update is When ‖ 𝑘 𝑡 ‖ 2 = 1 , the matrix 𝑘 𝑡 𝑘 ⊤ 𝑡 is a projector, so 𝛽 𝑡 = 1 overwrites the association at key 𝑘 𝑡 and 𝛽 𝑡 = 0 leaves it unchanged.”
When Thoughts Become Memory: Unifying In-Context Learning and Fine-Tuning
Chlon, L., & Huang, J. (2026) · doi:10.48550/arxiv.2610.29419
“…learned algorithm (Garg et al., 2022), as gradient descent or ridge regression run by attention (von Oswald et al., 2023; Akyürek et al., 2023; Ma-hankali et al., 2024) and as implicit fine-tuning (Dai et al., 2023), and training, conversely, as attention over training patterns (Irie et al., 2022).”
Retrieval-Centric Deep Learning in Growing Nonparametric Neural Networks
Schlegel, M., Nasser, R., Kobayashi, S., Schimpf, Y., Sieberling, O., Obryk, R., Irie, K., Sacramento, J., & von Oswald, J. (2026) · doi:10.48550/arxiv.2610.03858
“2 Background: Dual Form of a Linear Layer Here we briefly review the dual form of a linear layer trained by gradient descent as a linear attention system [2, 1], which is our starting point.”
InfluentialSelf-citationTriadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence ModelingPreprint
Sieberling, O., Runwal, B., Jin, D., Chin, R., Panda, R., & Kim, Y. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2609.36529
“Since a gradient step can itself be interpreted as a linear-attention update (Irie et al., 2022), some of the gains of TTT variants may therefore be a result of their larger state capacity, particularly at long context lengths.”
Understanding In-Context Multimodal Jailbreaks via Posterior Reweighting
Zhang, X., Mistry, D. M., Xu, X., & Wang, R. (2026) · doi:10.48550/arxiv.2609.10613
“Complementary studies relate ICL to gradient-based optimization or kernel regression in simplified settings, highlighting the role of attention mechanisms and induction heads in contextual pattern matching (Irie et al., 2022; Akyürek et al., 2022; Olsson et al., 2022).”
IWP: Token Pruning as Implicit Weight Pruning in Large Vision Language Models
Lee, D.-J., Baek, S., & Kim, J. (2026) · arXiv.org · doi:10.48550/arxiv.2604.00757
“To this end, we adopt the dual-form perspective of linear attention [6,13,25], which reformulates attention as an implicit linear transformation whose weight matrix is constructed from key–value pairs and applied to the query to produce the output.”
- Authors
- Irie, K., Csordás, R., & Schmidhuber, J.
- Affiliations
- University of Applied Sciences and Arts of Southern Switzerland (CH)
- ORCID
- Schmidhuber, Jürgen
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2022
- arXiv
- 2202.05798
- OpenAlex
- W4225920301
- Cited by
- 6
- References
- 36
- Citations by year
- 2025: 1 · 2023: 5
- FWCI
- 0.83
- Type
- conference paper
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- King Abdullah University of Science and Technology Repository (King Abdullah University of Science and Technology) (acceptedVersion)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University) (cc-by)
- Funders
- National Science Foundation
- Nvidia
- Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung (192356, 200021)
- Centro Svizzero di Calcolo Scientifico
- National Supercomputing Centre Singapore
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Explainable Artificial Intelligence (XAI)
- Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
- Physical Sciences › Computer Science › Artificial Intelligence › Neural Networks and Applications
- Keywords
- key-value memory
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review