Can Gradient Descent Simulate Prompting?
Not on the map. Why?
Abstract (arXiv)
There are two primary ways of incorporating new information into a language model (LM): changing its prompt or changing its parameters, e.g. via fine-tuning. Parameter updates incur no long-term storage cost for model changes. However, for many model updates, prompting is significantly more effective: prompted models can generalize robustly from single examples and draw logical inferences that do not occur under standard fine-tuning. Can models be modified so that fine-tuning does emulate prompting? This paper describes a method for meta-training LMs such that gradient updates emulate the effects of conditioning on new information. Our approach uses tools from gradient-based meta-learning but uses an LM's own prompted predictions as targets, eliminating the need for ground-truth labels. Subsequent gradient descent training recovers some (and occasionally all) of prompted model performance -- showing improvement on the ``reversal curse'' tasks, and answering questions about text passages after a single gradient update. These results suggest that, with appropriate initialization, gradient descent can be surprisingly expressive. Our results suggest new avenues for long-context modeling and offer insight into the generalization capabilities of gradient-based learning.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 38 of its 45 references that are in the map. First posted on arXiv 26 Jun 2025.
Builds on
38 of 45 references.
References · 38
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,055
- 2018On First-Order Meta-Learning Algorithmscited by 1,018
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
26 more
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2016Learning to learn by gradient descent by gradient descentcited by 620
- 2021Editing Factual Knowledge in Language Modelscited by 553
- 2019Meta-Learning with Implicit Gradientscited by 525
- 2021MetaICL: Learning to Learn In Contextcited by 454
- 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 407
- 2017Meta-SGD: Learning to Learn Quickly for Few-Shot Learningcited by 379
- 2018How to train your MAMLcited by 309
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2020Modifying Memories in Transformer Modelscited by 224
- 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuningcited by 173
- 2021Meta-learning via Language Model In-context Tuningcited by 164
- 2020Editable Neural Networkscited by 155
- 2022Fusing finetuned models for better pretrainingcited by 110
- 2018Model-Based Reinforcement Learning via Meta-Policy Optimizationcited by 101
- 2022DisentQA: Disentangling Parametric and Contextual Knowledge with Counterfactual Question Answeringcited by 96
- 2021Towards Zero-Label Language Learningcited by 76
- 2022Entity Cloze By Date: What LMs Know About Unseen Entitiescited by 55
- 2022Prompt Injection: Parameterization of Fixed Inputscited by 36
- 2024Deductive Closure Training of Language Models for Coherence, Accuracy, and Updatabilitycited by 22
- 2024Beneath the Surface of Consistency: Exploring Cross-lingual Knowledge Representation Sharing in LLMscited by 21
- 2024From Insights to Actions: The Impact of Interpretability and Analysis Research on NLPcited by 20
- 2024MAML-en-LLM: Model Agnostic Meta-Training of LLMs for Improved In-Context Learningcited by 10
- 2024Unforgettable Generalization in Language Modelscited by 4
Built on by
Not cited yet.