Mnemosyne: Learning to Train Transformers with Transformers
Not on the map. Why?
Abstract (arXiv)
In this work, we propose a new class of learnable optimizers, called textitMnemosyne. It is based on the novel spatio-temporal low-rank implicit attention Transformers that can learn to train entire neural network architectures, including other Transformers, without any task-specific optimizer tuning. We show that Mnemosyne: (a) outperforms popular LSTM optimizers (also with new feature engineering to mitigate catastrophic forgetting of LSTMs), (b) can successfully train Transformers while using simple meta-training strategies that require minimal computational resources, (c) matches accuracy-wise SOTA hand-designed optimizers with carefully tuned hyper-parameters (often producing top performing models). Furthermore, Mnemosyne provides space complexity comparable to that of its hand-designed first-order counterparts, which allows it to scale to training larger sets of parameters. We conduct an extensive empirical evaluation of Mnemosyne on: (a) fine-tuning a wide range of Vision Transformers (ViTs) from medium-size architectures to massive ViT-Hs (36 layers, 16 heads), (b) pre-training BERT models and (c) soft prompt-tuning large 11B+ T5XXL models. We complement our results with a comprehensive theoretical analysis of the compact associative memory used by Mnemosyne which we believe was never done before.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 60 of its 85 references that are in the map. First posted on arXiv 2 Feb 2023.
Builds on
60 of 85 references.
References · 60
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2022RT-1: Robotics Transformer for Real-World Control at Scalecited by 2,007
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
38 more
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2021Ethical and social risks of harm from Language Modelscited by 957
- 2020Efficient Transformers: A Surveycited by 784
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2016Learning to learn by gradient descent by gradient descentcited by 616
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2020Hopfield Networks is All You Needcited by 461
- 2016Dense Associative Memory for Pattern Recognitioncited by 230
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2021Learning to Optimize: A Primer and A Benchmarkcited by 206
- 2016Learning to Optimizecited by 195
- 2018Sim-to-Real via Sim-to-Sim: Data-efficient Robotic Grasping via Randomized-to-Canonical Adaptation Networkscited by 171
- 2018A Sufficient Condition for Convergences of Adam and RMSPropcited by 124
- 2020Large Associative Memory Problem in Neurobiology and Machine Learningcited by 110
- 2017Learned Optimizers that Scale and Generalizecited by 109
- 2018The Best of Both Worlds: Combining Recent Advances in Neural Machine Translationcited by 101
- 2018Understanding and correcting pathologies in the training of learned optimizerscited by 97
- 2022Towards Learning Universal Hyperparameter Optimizers with Transformerscited by 81
- 2020Tasks, stability, architecture, and compute: Training more effective learned optimizers, and using them to train themselvescited by 57
- 2022VeLO: Training Versatile Learned Optimizers by Scaling Upcited by 57
- 2021Offline Meta-Reinforcement Learning with Online Self-Supervisioncited by 52
- 2021Unbiased Gradient Estimation in Unrolled Computation Graphs with Persistent Evolution Strategiescited by 52
- 2018Modular meta-learningcited by 51
- 2017Learning Gradient Descent: Better Generalization and Longer Horizonscited by 50
- 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 50
- 2021Meta-Learning with Fewer Tasks through Task Interpolationcited by 45
- 2019Differentially Private Meta-Learningcited by 40
- 2021From block-Toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked Transformerscited by 38
- 2021Generalization of Model-Agnostic Meta-Learning Algorithms: Recurring and Unseen Taskscited by 36
- 2020Training Stronger Baselines for Learning to Optimizecited by 31
- 2022Learning Model Predictive Controllers with Real-Time Attention for Real-World Navigationcited by 27
- 2019Learning to Optimize in Swarmscited by 23
- 2020MELD: Meta-Reinforcement Learning from Images via Latent State Modelscited by 22
- 2022Chefs' Random Tables: Non-Trigonometric Random Featurescited by 20
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 3; 2026: 1.
9 papers.
- 2023Learning a Fourier Transform for Linear Relative Positional Encodings in Transformerscited by 10
- 2024Dense Associative Memory Through the Lens of Random Featurescited by 8
- 2024Narrowing the Focus: Learned Optimizers for Pretrained Modelscited by 3
- 2024Learning to Learn without Forgetting using Attentioncited by 1
- 2025Make Optimization Once and for All with Fine-grained Guidancecited by 1
- 2024Scalable Multivariate Fronthaul Quantization for Cell-Free Massive MIMOcited by 0
- 2025A learning-driven automatic planning framework for proton PBS treatments of H&N cancerscited by 0
- 2025L-SR1: Learned Symmetric-Rank-One Preconditioningcited by 0
- 2026LASAR: Towards Spatio-temporal Reasoning with Latent Cognitive Mapcited by 0
- 2026LASAR: Towards Spatio-temporal Reasoning with Latent Cognitive Map16 May 2026
- 2025L-SR1: Learned Symmetric-Rank-One Preconditioning17 Aug 2025
- 2025A learning-driven automatic planning framework for proton PBS treatments of H&N cancers14 Aug 2025
- 2025Make Optimization Once and for All with Fine-grained Guidance14 Mar 2025
- 2024Dense Associative Memory Through the Lens of Random Features31 Oct 2024
- 2024Scalable Multivariate Fronthaul Quantization for Cell-Free Massive MIMO26 Aug 2024
- 2024Narrowing the Focus: Learned Optimizers for Pretrained Models17 Aug 2024
- 2024Learning to Learn without Forgetting using Attention6 Aug 2024
- 2023Learning a Fourier Transform for Linear Relative Positional Encodings in Transformers3 Feb 2023