arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.05492cs.CLcs.AIcs.LG
收藏

大规模语言模型的能力如何受监督微调数据构成的影响

How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Composition

Alibaba Group(阿里巴巴集团)

Guanting Dong, Hongyi Yuan, Keming Lu, Chengpeng Li, Mingfeng Xue, Dayiheng Liu, Wei Wang, Zheng Yuan, Chang Zhou, Jingren Zhou

AI总结:

本研究探讨监督微调数据构成对LLM数学推理、代码生成和通用能力的影响,发现不同能力扩展规律各异,并提出双阶段混合微调策略以缓解多技能学习中的性能冲突与灾难性遗忘。

摘要:

大规模语言模型(LLMs)凭借海量的预训练token和参数涌现出多种能力,包括数学推理、代码生成和指令遵循。这些能力通过监督微调(SFT)进一步增强。虽然开源社区已经探索了针对提升单一能力的临时性SFT方法,但专有LLM在各种技能上表现出多功能性。因此,理解通过SFT促进多种能力的方式至关重要。在本研究中,我们特别关注SFT过程中数学推理、代码生成和通用人类对齐能力之间的数据构成交互作用。我们提出了四个有趣的研究问题,以探索模型性能与各种因素之间的关联,这些因素包括数据量、构成比例、模型规模和SFT策略。我们的实验揭示,不同的能力具有不同的扩展规律,在相同数据量下,更大的模型通常表现出更优越的性能。数学推理和代码生成能力随着数据量的增加而持续提升,而通用能力在大约一千个样本后趋于平稳。此外,我们观察到在数据有限的条件下,数据构成似乎能增强各种能力,但当数据充足时可能导致性能冲突。我们的研究结果还表明,构成数据量对性能的影响大于构成比例。在对SFT策略的分析中,我们发现顺序学习多种技能存在灾难性遗忘的风险。我们提出的双阶段混合微调(Dual-stage Mixed Fine-tuning,DMT)策略为学习具有不同扩展规律的多种能力提供了一种有前景的解决方案。

英文摘要:

Large language models (LLMs) with enormous pre-training tokens and parameters emerge diverse abilities, including math reasoning, code generation, and instruction following. These abilities are further enhanced by supervised fine-tuning (SFT). While the open-source community has explored ad-hoc SFT for enhancing individual capabilities, proprietary LLMs exhibit versatility across various skills. Therefore, understanding the facilitation of multiple abilities via SFT is paramount. In this study, we specifically focuses on the interplay of data composition between mathematical reasoning, code generation, and general human-aligning abilities during SFT. We propose four intriguing research questions to explore the association between model performance and various factors including data amount, composition ratio, model size and SFT strategies. Our experiments reveal that distinct capabilities scale differently and larger models generally show superior performance with same amount of data. Mathematical reasoning and code generation consistently improve with increasing data amount, whereas general abilities plateau after roughly a thousand samples. Moreover, we observe data composition appears to enhance various abilities under limited data conditions, yet can lead to performance conflicts when data is plentiful. Our findings also suggest the amount of composition data influences performance more than the composition ratio. In analysis of SFT strategies, we find that sequentially learning multiple skills risks catastrophic forgetting. Our proposed Dual-stage Mixed Fine-tuning (DMT) strategy offers a promising solution to learn multiple abilities with different scaling patterns.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑