arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.15825cs.CLcs.AI
收藏

60个数据点足以对大型语言模型进行问答任务的微调

60 Data Points are Sufficient to Fine-Tune LLMs for Question-Answering

School of Computer Science, Fudan University(复旦大学计算机科学学院);Institute of Modern Languages and Linguistics, Fudan University(复旦大学现代语言与语言学研究所);Lenovo Research(联想研究院)

Junjie Ye, Yuming Yang, Qi Zhang, Tao Gui, Xuanjing Huang, Peng Wang, Zhongchao Shi, Jianping Fan

AI总结:

本研究通过实证分析发现,仅需60个数据点进行监督微调即可激活预训练知识,使大型语言模型有效执行问答任务,且最佳微调数据集因模型而异。

摘要:

大型语言模型(LLMs)通过在海量数据集上进行预训练,编码了广泛的世界知识,随后可以针对问答(QA)任务进行微调。然而,针对QA任务微调LLMs的有效策略在很大程度上仍未得到探索。为弥补这一空白,我们根据预训练LLMs所记忆知识的程度对监督微调(SFT)数据进行分类,并进行了一系列实证分析。我们的实验涉及来自三个不同模型家族的四个LLMs,重点关注三个关键因素:SFT所需的数据量、不同SFT数据集对模型性能的影响,以及不同LLMs之间数据需求的差异。结果表明,在SFT阶段仅需60个数据点即可激活预训练期间编码的知识,使LLMs能够执行QA任务。此外,使用不同记忆水平的数据进行SFT对LLM性能有显著影响,最佳数据集因所微调的具体模型而异。未来研究将更深入地探讨这些现象背后的机制。

英文摘要:

Large language models (LLMs) encode extensive world knowledge through pre-training on massive datasets, which can then be fine-tuned for the question-answering (QA) task. However, effective strategies for fine-tuning LLMs for the QA task remain largely unexplored. To address this gap, we categorize supervised fine-tuning (SFT) data based on the extent of knowledge memorized by the pretrained LLMs and conduct a series of empirical analyses. Our experiments, involving four LLMs from three different model families, focus on three key factors: the amount of data required for SFT, the impact of different SFT datasets on model performance, and how data requirements vary across LLMs. The results show that as few as 60 data points during the SFT stage can activate the knowledge encoded during pre-training, enabling LLMs to perform the QA task. Additionally, SFT with data of varying memory levels has a significant impact on LLM performance, with the optimal dataset differing based on the specific model being fine-tuned. Future research will delve deeper into the mechanisms underlying these phenomena.

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

↑