mlsanityData to 14 Oct 2026

Can Gradient Descent Simulate Prompting?

arXiv 2506.20989 ↗First posted 26 Jun 2025cs.CL cs.LGcited by 0

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  6. 2016Pointer Sentinel Mixture Modelscited by 3,096
  7. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  8. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  9. 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,055
  10. 2018On First-Order Meta-Learning Algorithmscited by 1,018
  11. 2022Mass-Editing Memory in a Transformercited by 1,001
  12. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
26 more
  1. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
  2. 2022Transformers learn in-context by gradient descentcited by 732
  3. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  4. 2016Learning to learn by gradient descent by gradient descentcited by 620
  5. 2021Editing Factual Knowledge in Language Modelscited by 553
  6. 2019Meta-Learning with Implicit Gradientscited by 525
  7. 2021MetaICL: Learning to Learn In Contextcited by 454
  8. 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 407
  9. 2017Meta-SGD: Learning to Learn Quickly for Few-Shot Learningcited by 379
  10. 2018How to train your MAMLcited by 309
  11. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
  12. 2020Modifying Memories in Transformer Modelscited by 224
  13. 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuningcited by 173
  14. 2021Meta-learning via Language Model In-context Tuningcited by 164
  15. 2020Editable Neural Networkscited by 155
  16. 2022Fusing finetuned models for better pretrainingcited by 110
  17. 2018Model-Based Reinforcement Learning via Meta-Policy Optimizationcited by 101
  18. 2022DisentQA: Disentangling Parametric and Contextual Knowledge with Counterfactual Question Answeringcited by 96
  19. 2021Towards Zero-Label Language Learningcited by 76
  20. 2022Entity Cloze By Date: What LMs Know About Unseen Entitiescited by 55
  21. 2022Prompt Injection: Parameterization of Fixed Inputscited by 36
  22. 2024Deductive Closure Training of Language Models for Coherence, Accuracy, and Updatabilitycited by 22
  23. 2024Beneath the Surface of Consistency: Exploring Cross-lingual Knowledge Representation Sharing in LLMscited by 21
  24. 2024From Insights to Actions: The Impact of Interpretability and Analysis Research on NLPcited by 20
  25. 2024MAML-en-LLM: Model Agnostic Meta-Training of LLMs for Improved In-Context Learningcited by 10
  26. 2024Unforgettable Generalization in Language Modelscited by 4

Built on by

Not cited yet.