Paper Reading AI Learner

Can Gradient Descent Simulate Prompting?

2025-06-26 04:06:20
Eric Zhang, Leshem Choshen, Jacob Andreas

Abstract

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.

Abstract (translated)

将新信息融入语言模型(LM)主要有两种方式:更改其提示或调整其参数,例如通过微调来实现。参数更新不会产生长期存储成本。然而,在许多模型更新的情况下,使用提示更加有效:经过提示的模型可以从单个示例中稳健地泛化,并得出逻辑推断,而这些在标准微调过程中并不会发生。是否可以修改模型使微调的效果模拟出提示的效果呢? 本文描述了一种方法,即通过元训练LM的方式使得梯度更新能够模仿对新信息条件化的效果。我们的方法使用基于梯度的元学习工具,但以语言模型自身受到提示后的预测作为目标,从而消除了对真实标签的需求。后续的梯度下降训练可以恢复一些(有时甚至是全部)由提示带来的模型性能——在“逆转诅咒”任务中表现出改善,并且仅通过一次梯度更新即可回答关于文本段落的问题。这些结果表明,在适当的初始化下,梯度下降具有惊人的表达能力。 我们的研究成果为长上下文建模提供了新的途径,并对基于梯度的学习泛化能力提供了见解。

URL

https://arxiv.org/abs/2506.20989

PDF

https://arxiv.org/pdf/2506.20989.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot