Two-stage LLM Fine-tuning with Less Specialization and More Generalization
Yihan Wang, Si Si, Daliang Li, Michal Lukasik, Felix X. Yu, Cho-Jui Hsieh, Inderjit S. Dhillon, Sanjiv Kumar
摘要
Pretrained large language models (LLMs) are general purpose problem solvers applicable to a diverse set of tasks with prompts. They can be further improved towards a specific task by fine-tuning on a specialized dataset. However, fine-tuning usually makes the model narrowly specialized on this dataset with reduced general in-context learning performances, which is undesirable whenever the fine-tuned model needs to handle additional tasks where no fine-tuning data is available. In this work, we first demonstrate that fine-tuning on a single task indeed decreases LLMs' general in-context learning performance. We discover one important cause of such forgetting, format specialization, where the model overfits to the format of the fine-tuned task. We further show that format specialization happens at the very beginning of fine-tuning. To solve this problem, we propose Prompt Tuning with MOdel Tuning (ProMoT), a simple yet effective two-stage fine-tuning framework that reduces format specialization and improves generalization. ProMoT offloads task-specific format learning into additional and removable parameters by first doing prompt tuning and then fine-tuning the model itself with this soft prompt attached. With experiments on several fine-tuning tasks and 8 in-context evaluation tasks, we show that ProMoT achieves comparable performance on fine-tuned tasks to standard fine-tuning, but with much less loss of in-context learning performances across a board range of out-of-domain evaluation tasks. More importantly, ProMoT can even enhance generalization on in-context learning tasks that are semantically related to the fine-tuned task, e.g. ProMoT on En-Fr translation significantly improves performance on other language pairs, and ProMoT on NLI improves performance on summarization. Experiments also show that ProMoT can improve the generalization performance of multi-task training.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Understanding Catastrophic Forgetting in Language Models via Implicit Inference 引用了 Data Distributional Properties Drive Emergent In-Context Learning in Transformers
- Understanding Catastrophic Forgetting in Language Models via Implicit Inference 引用了 Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks
- Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks 引用了 Understanding Catastrophic Forgetting in Language Models via Implicit Inference
- Understanding Catastrophic Forgetting in Language Models via Implicit Inference 引用了 Effect of scale on catastrophic forgetting in neural networks
- Understanding Catastrophic Forgetting in Language Models via Implicit Inference 引用了 Finetuned Language Models are Zero-Shot Learners
- Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks 引用了 Data Distributional Properties Drive Emergent In-Context Learning in Transformers
- Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks 引用了 Language Models are Few-Shot Learners
- Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks 引用了 Finetuned Language Models are Zero-Shot Learners
- Leveraging Catastrophic Forgetting to Develop Safe Diffusion Models against Malicious Finetuning 引用了 Understanding Catastrophic Forgetting in Language Models via Implicit Inference
- Leveraging Catastrophic Forgetting to Develop Safe Diffusion Models against Malicious Finetuning 引用了 Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized Rehearsal
- Leveraging Catastrophic Forgetting to Develop Safe Diffusion Models against Malicious Finetuning 引用了 Effect of scale on catastrophic forgetting in neural networks
- Towards a Unified View of Parameter-Efficient Transfer Learning 引用了 Language Models are Few-Shot Learners
- Large Scale Transfer Learning for Tabular Data via Language Modeling 引用了 Language Models are Few-Shot Learners
- Finetuned Language Models are Zero-Shot Learners 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper12
- Understanding Catastrophic Forgetting in Language Models via Implicit InferenceSuhas Kotha, Jacob Mitchell Springer, Aditi RaghunathanICLR 2024 · 131 次引用
- Mechanistically analyzing the effects of fine-tuning on procedurally defined tasksSamyak Jain, Robert Kirk, Ekdeep Singh Lubana, Robert P. Dick 等ICLR 2024 · 108 次引用
- Large Scale Transfer Learning for Tabular Data via Language ModelingJosh Gardner, Juan C. Perdomo, Ludwig SchmidtNeurIPS 2024 · 103 次引用
- Leveraging Catastrophic Forgetting to Develop Safe Diffusion Models against Malicious FinetuningJiadong Pan, Hongcheng Gao, Zongyu Wu, Taihang Hu 等NeurIPS 2024 · 15 次引用
- Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized RehearsalJianheng Huang, Leyang Cui, Ante Wang, Chengyi Yang 等ACL 2024 · 13 次引用
它引用的 Paper11
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu 等ICLR 2022 · 4,966 次引用
- Towards a Unified View of Parameter-Efficient Transfer LearningJunxian He, Chunting Zhou, Xuezhe Ma, Taylor Berg-Kirkpatrick 等ICLR 2022 · 1,182 次引用
- Data Distributional Properties Drive Emergent In-Context Learning in TransformersStephanie C. Y. Chan, Adam Santoro, Andrew K. Lampinen, Jane X. Wang 等NeurIPS 2022 · 407 次引用
- Effect of scale on catastrophic forgetting in neural networksVinay Venkatesh Ramasesh, Aitor Lewkowycz, Ethan DyerICLR 2022 · 212 次引用
相关 Paper
- PPT: Pre-trained Prompt Tuning for Few-shot LearningYuxian Gu, Xu Han, Zhiyuan Liu, Minlie HuangACL 2022
- MPrompt: Exploring Multi-level Prompt Tuning for Machine Reading ComprehensionGuoxin Chen, Yiming Qian, Bowen Wang, Liangzhi LiEMNLP Findings 2023 · 6 次引用
- APrompt: Attention Prompt Tuning for Efficient Adaptation of Pre-trained Language ModelsQifan Wang, Yuning Mao, Jingang Wang, Hanchao Yu 等EMNLP 2023 · 25 次引用
- Debiased Fine-Tuning for Vision-Language Models by Prompt RegularizationBeier Zhu, Yulei Niu, Saeil Lee, Minhoe Hur 等AAAI 2023 · 34 次引用
- Multitask Prompt Tuning Enables Parameter-Efficient Transfer LearningZhen Wang, Rameswar Panda, Leonid Karlinsky, Rogério Feris 等ICLR 2023 · 30 次引用
