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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dong, Guanting, Yuan, Hongyi, Lu, Keming, Li, Chengpeng, Xue, Mingfeng, Liu, Dayiheng, Wang, Wei, Yuan, Zheng, Zhou, Chang, Zhou, Jingren
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916278819618816
author Dong, Guanting
Yuan, Hongyi
Lu, Keming
Li, Chengpeng
Xue, Mingfeng
Liu, Dayiheng
Wang, Wei
Yuan, Zheng
Zhou, Chang
Zhou, Jingren
author_facet Dong, Guanting
Yuan, Hongyi
Lu, Keming
Li, Chengpeng
Xue, Mingfeng
Liu, Dayiheng
Wang, Wei
Yuan, Zheng
Zhou, Chang
Zhou, Jingren
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2310_05492
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Composition
Dong, Guanting
Yuan, Hongyi
Lu, Keming
Li, Chengpeng
Xue, Mingfeng
Liu, Dayiheng
Wang, Wei
Yuan, Zheng
Zhou, Chang
Zhou, Jingren
Computation and Language
Artificial Intelligence
Machine Learning
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.
title How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Composition
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2310.05492