The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attention
Kazuki Irie, Róbert Csordás, Jürgen Schmidhuber
摘要
Linear layers in neural networks (NNs) trained by gradient descent can be expressed as a keyvalue 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 † .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 22 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Titans: Learning to Memorize at Test Time 引用了 Parallelizing Linear Transformers with the Delta Rule over Sequence Length
- Titans: Learning to Memorize at Test Time 引用了 Linear Transformers Are Secretly Fast Weight Programmers
- Random Feature Attention 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Random Feature Attention 引用了 Language Models are Few-Shot Learners
- Parallelizing Linear Transformers with the Delta Rule over Sequence Length 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Parallelizing Linear Transformers with the Delta Rule over Sequence Length 引用了 Random Feature Attention
- Parallelizing Linear Transformers with the Delta Rule over Sequence Length 引用了 Linear Transformers Are Secretly Fast Weight Programmers
- A Survey on In-context Learning 引用了 Language Models are Few-Shot Learners
- Nested Learning: The Illusion of Deep Learning Architectures 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Nested Learning: The Illusion of Deep Learning Architectures 引用了 Titans: Learning to Memorize at Test Time
- Nested Learning: The Illusion of Deep Learning Architectures 引用了 Parallelizing Linear Transformers with the Delta Rule over Sequence Length
- Nested Learning: The Illusion of Deep Learning Architectures 引用了 Language Models are Few-Shot Learners
- Nested Learning: The Illusion of Deep Learning Architectures 引用了 Linear Transformers Are Secretly Fast Weight Programmers
- Feature learning in deep classifiers through Intermediate Neural Collapse 引用了 Language Models are Few-Shot Learners
- Linear Transformers Are Secretly Fast Weight Programmers 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Linear Transformers Are Secretly Fast Weight Programmers 引用了 Random Feature Attention
引用它的顶会 Paper22
- A Survey on In-context LearningQingxiu Dong, Lei Li, Damai Dai, Ce Zheng 等EMNLP 2024 · 479 次引用
- Parallelizing Linear Transformers with the Delta Rule over Sequence LengthSonglin Yang, Bailin Wang, Yu Zhang, Yikang Shen 等NeurIPS 2024 · 412 次引用
- Titans: Learning to Memorize at Test TimeAli Behrouz, Peilin Zhong, Vahab MirrokniNeurIPS 2025 · 368 次引用
- Nested Learning: The Illusion of Deep Learning ArchitecturesAli Behrouz, Meisam Razaviyayn, Peilin Zhong, Vahab MirrokniNeurIPS 2025 · 96 次引用
- Feature learning in deep classifiers through Intermediate Neural CollapseAkshay Rangamani, Marius Lindegaard, Tomer Galanti, Tomaso A. PoggioICML 2023 · 64 次引用
它引用的 Paper7
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray 等ICML 2021 · 6,356 次引用
- Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 次引用
- Random Feature AttentionHao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz 等ICLR 2021 · 425 次引用
- Linear Transformers Are Secretly Fast Weight ProgrammersImanol Schlag, Kazuki Irie, Jürgen SchmidhuberICML 2021 · 394 次引用
相关 Paper
- Test-Time Training with KV Binding Is Secretly Linear AttentionJunchen Liu, Sven Elflein, Or Litany, Zan Gojcic 等ICML 2026 · 6 次引用
- Training Dynamics of In-Context Learning in Linear AttentionYedi Zhang, Aaditya K. Singh, Peter E. Latham, Andrew M. SaxeICML 2025
- Towards flexible perception with visual memoryRobert Geirhos, Priyank Jaini, Austin Stone, Sourabh Medapati 等ICML 2025
- Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification TasksVerna Dankers, Ivan TitovACL Findings 2024
- Continual learning with the neural tangent ensembleAri S. Benjamin, Christian-Gernot Pehle, Kyle DaruwallaNeurIPS 2024 · 4 次引用
