跳到主要导航 跳到搜索 跳到主要内容

Balancing Speciality and Versatility: a Coarse to Fine Framework for Supervised Fine-tuning Large Language Model

  • Hengyuan Zhang
  • , Yanru Wu
  • , Dawei Li
  • , Sak Yang
  • , Rui Zhao
  • , Yong Jiang*
  • , Fei Tan*
  • *此作品的通讯作者
  • Tsinghua University
  • University of California at San Diego
  • SenseTime Group Limited

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

Aligned Large Language Models (LLMs) showcase remarkable versatility, capable of handling diverse real-world tasks. Meanwhile, aligned LLMs are also expected to exhibit speciality, excelling in specific applications. However, fine-tuning with extra data, a common practice to gain speciality, often leads to catastrophic forgetting (CF) of previously acquired versatility, hindering the model's performance across diverse tasks. In response to this challenge, we propose CoFiTune, a coarse to fine framework in an attempt to strike the balance between speciality and versatility. At the coarse-grained level, an empirical tree-search algorithm is utilized to pinpoint and update specific modules that are crucial for speciality, while keeping other parameters frozen; at the fine-grained level, a soft-masking mechanism regulates the update to the LLMs, mitigating the CF issue without compromising speciality. In an overall evaluation of both speciality and versatility, CoFiTune consistently outperforms baseline methods across diverse tasks and model scales. When compared to the full-parameter SFT, CoFiTune offers an average versatility improvement of 14%, while only incurring a marginal loss in speciality. Lastly, based on further analysis, we provide a speculative insight into the information forwarding process in LLMs, which helps explain the effectiveness of the proposed method. The code is available at https://github.com/rattlesnakey/CoFiTune.

源语言英语
主期刊名The 62nd Annual Meeting of the Association for Computational Linguistics
主期刊副标题Findings of the Association for Computational Linguistics, ACL 2024
编辑Lun-Wei Ku, Andre Martins, Vivek Srikumar
出版商Association for Computational Linguistics (ACL)
页7467-7509
页数43
ISBN(电子版)9798891760998
DOI
出版状态已出版 - 2024
已对外发布是
活动Findings of the 62nd Annual Meeting of the Association for Computational Linguistics, ACL 2024 - Hybrid, Bangkok, 泰国
期限: 11 8月 2024 → 16 8月 2024

丛书

姓名Proceedings of the Annual Meeting of the Association for Computational Linguistics
ISSN(印刷版)0736-587X

会议

会议Findings of the 62nd Annual Meeting of the Association for Computational Linguistics, ACL 2024
国家/地区泰国
市Hybrid, Bangkok
时期11/08/24 → 16/08/24

学术指纹

探究 'Balancing Speciality and Versatility: a Coarse to Fine Framework for Supervised Fine-tuning Large Language Model' 的科研主题。它们共同构成独一无二的学术指纹。

引用此