Two-stage LLM Fine-tuning with Less Specialization and More Generalization. Wang, Y., Si, S., Li, D., Lukasik, M., Yu, F., Hsieh, C., Dhillon, I. S., & Kumar, S. In October, 2023.
Paper abstract bibtex 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.
@inproceedings{wang_two-stage_2023,
title = {Two-stage {LLM} {Fine}-tuning with {Less} {Specialization} and {More} {Generalization}},
url = {https://openreview.net/forum?id=pCEgna6Qco&referrer=%5Bthe%20profile%20of%20Inderjit%20S%20Dhillon%5D(%2Fprofile%3Fid%3D~Inderjit_S_Dhillon1)},
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.},
language = {en},
urldate = {2024-04-06},
author = {Wang, Yihan and Si, Si and Li, Daliang and Lukasik, Michal and Yu, Felix and Hsieh, Cho-Jui and Dhillon, Inderjit S. and Kumar, Sanjiv},
month = oct,
year = {2023},
}
Downloads: 0
{"_id":"vTXxYBekBkpxZg6FB","bibbaseid":"wang-si-li-lukasik-yu-hsieh-dhillon-kumar-twostagellmfinetuningwithlessspecializationandmoregeneralization-2023","author_short":["Wang, Y.","Si, S.","Li, D.","Lukasik, M.","Yu, F.","Hsieh, C.","Dhillon, I. S.","Kumar, S."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"Two-stage LLM Fine-tuning with Less Specialization and More Generalization","url":"https://openreview.net/forum?id=pCEgna6Qco&referrer=%5Bthe%20profile%20of%20Inderjit%20S%20Dhillon%5D(%2Fprofile%3Fid%3D~Inderjit_S_Dhillon1)","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.","language":"en","urldate":"2024-04-06","author":[{"propositions":[],"lastnames":["Wang"],"firstnames":["Yihan"],"suffixes":[]},{"propositions":[],"lastnames":["Si"],"firstnames":["Si"],"suffixes":[]},{"propositions":[],"lastnames":["Li"],"firstnames":["Daliang"],"suffixes":[]},{"propositions":[],"lastnames":["Lukasik"],"firstnames":["Michal"],"suffixes":[]},{"propositions":[],"lastnames":["Yu"],"firstnames":["Felix"],"suffixes":[]},{"propositions":[],"lastnames":["Hsieh"],"firstnames":["Cho-Jui"],"suffixes":[]},{"propositions":[],"lastnames":["Dhillon"],"firstnames":["Inderjit","S."],"suffixes":[]},{"propositions":[],"lastnames":["Kumar"],"firstnames":["Sanjiv"],"suffixes":[]}],"month":"October","year":"2023","bibtex":"@inproceedings{wang_two-stage_2023,\n\ttitle = {Two-stage {LLM} {Fine}-tuning with {Less} {Specialization} and {More} {Generalization}},\n\turl = {https://openreview.net/forum?id=pCEgna6Qco&referrer=%5Bthe%20profile%20of%20Inderjit%20S%20Dhillon%5D(%2Fprofile%3Fid%3D~Inderjit_S_Dhillon1)},\n\tabstract = {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.},\n\tlanguage = {en},\n\turldate = {2024-04-06},\n\tauthor = {Wang, Yihan and Si, Si and Li, Daliang and Lukasik, Michal and Yu, Felix and Hsieh, Cho-Jui and Dhillon, Inderjit S. and Kumar, Sanjiv},\n\tmonth = oct,\n\tyear = {2023},\n}\n\n\n\n","author_short":["Wang, Y.","Si, S.","Li, D.","Lukasik, M.","Yu, F.","Hsieh, C.","Dhillon, I. S.","Kumar, S."],"key":"wang_two-stage_2023","id":"wang_two-stage_2023","bibbaseid":"wang-si-li-lukasik-yu-hsieh-dhillon-kumar-twostagellmfinetuningwithlessspecializationandmoregeneralization-2023","role":"author","urls":{"Paper":"https://openreview.net/forum?id=pCEgna6Qco&referrer=%5Bthe%20profile%20of%20Inderjit%20S%20Dhillon%5D(%2Fprofile%3Fid%3D~Inderjit_S_Dhillon1)"},"metadata":{"authorlinks":{}},"html":""},"bibtype":"inproceedings","biburl":"https://bibbase.org/zotero/sarveshsoni","dataSources":["taWdMrienBzqHC2tC"],"keywords":[],"search_terms":["two","stage","llm","fine","tuning","less","specialization","more","generalization","wang","si","li","lukasik","yu","hsieh","dhillon","kumar"],"title":"Two-stage LLM Fine-tuning with Less Specialization and More Generalization","year":2023}