Lune

ICLR2024Top-tier venue

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

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

12 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Understanding Catastrophic Forgetting in Language Models via Implicit Inference cites Data Distributional Properties Drive Emergent In-Context Learning in Transformers
  • Understanding Catastrophic Forgetting in Language Models via Implicit Inference cites Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks
  • Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks cites Understanding Catastrophic Forgetting in Language Models via Implicit Inference
  • Understanding Catastrophic Forgetting in Language Models via Implicit Inference cites Effect of scale on catastrophic forgetting in neural networks
  • Understanding Catastrophic Forgetting in Language Models via Implicit Inference cites Finetuned Language Models are Zero-Shot Learners
  • Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks cites Data Distributional Properties Drive Emergent In-Context Learning in Transformers
  • Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks cites Language Models are Few-Shot Learners
  • Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks cites Finetuned Language Models are Zero-Shot Learners
  • Leveraging Catastrophic Forgetting to Develop Safe Diffusion Models against Malicious Finetuning cites Understanding Catastrophic Forgetting in Language Models via Implicit Inference
  • Leveraging Catastrophic Forgetting to Develop Safe Diffusion Models against Malicious Finetuning cites Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized Rehearsal
  • Leveraging Catastrophic Forgetting to Develop Safe Diffusion Models against Malicious Finetuning cites Effect of scale on catastrophic forgetting in neural networks
  • Towards a Unified View of Parameter-Efficient Transfer Learning cites Language Models are Few-Shot Learners
  • Large Scale Transfer Learning for Tabular Data via Language Modeling cites Language Models are Few-Shot Learners
  • Finetuned Language Models are Zero-Shot Learners cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. Understanding Catastrophic Forgetting in Language Models via Implicit InferenceSuhas Kotha, Jacob Mitchell Springer, Aditi RaghunathanICLR 2024 · 131 citations
  2. Mechanistically analyzing the effects of fine-tuning on procedurally defined tasksSamyak Jain, Robert Kirk, Ekdeep Singh Lubana, Robert P. Dick et al.ICLR 2024 · 108 citations
  3. Large Scale Transfer Learning for Tabular Data via Language ModelingJosh Gardner, Juan C. Perdomo, Ludwig SchmidtNeurIPS 2024 · 103 citations
  4. Leveraging Catastrophic Forgetting to Develop Safe Diffusion Models against Malicious FinetuningJiadong Pan, Hongcheng Gao, Zongyu Wu, Taihang Hu et al.NeurIPS 2024 · 15 citations
  5. Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized RehearsalJianheng Huang, Leyang Cui, Ante Wang, Chengyi Yang et al.ACL 2024 · 13 citations

Builds on11

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu et al.ICLR 2022 · 4,966 citations
  3. Towards a Unified View of Parameter-Efficient Transfer LearningJunxian He, Chunting Zhou, Xuezhe Ma, Taylor Berg-Kirkpatrick et al.ICLR 2022 · 1,182 citations
  4. Data Distributional Properties Drive Emergent In-Context Learning in TransformersStephanie C. Y. Chan, Adam Santoro, Andrew K. Lampinen, Jane X. Wang et al.NeurIPS 2022 · 407 citations
  5. Effect of scale on catastrophic forgetting in neural networksVinay Venkatesh Ramasesh, Aitor Lewkowycz, Ethan DyerICLR 2022 · 212 citations

Related papers

  1. PPT: Pre-trained Prompt Tuning for Few-shot LearningYuxian Gu, Xu Han, Zhiyuan Liu, Minlie HuangACL 2022
  2. MPrompt: Exploring Multi-level Prompt Tuning for Machine Reading ComprehensionGuoxin Chen, Yiming Qian, Bowen Wang, Liangzhi LiEMNLP Findings 2023 · 6 citations
  3. APrompt: Attention Prompt Tuning for Efficient Adaptation of Pre-trained Language ModelsQifan Wang, Yuning Mao, Jingang Wang, Hanchao Yu et al.EMNLP 2023 · 25 citations
  4. Debiased Fine-Tuning for Vision-Language Models by Prompt RegularizationBeier Zhu, Yulei Niu, Saeil Lee, Minhoe Hur et al.AAAI 2023 · 34 citations
  5. Multitask Prompt Tuning Enables Parameter-Efficient Transfer LearningZhen Wang, Rameswar Panda, Leonid Karlinsky, Rogério Feris et al.ICLR 2023 · 30 citations
Dusk over the sea between two cliffs drawn in fine vertical lines