arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10882cs.CL
收藏

SCAR:基于风格一致性感知回复排序的数据选择,用于大型语言模型的高效指令微调

SCAR: Data Selection via Style Consistency-Aware Response Ranking for Efficient Instruction-Tuning of Large Language Models

School of Computing Technologies, RMIT University, Australia(皇家墨尔本理工大学计算机科技学院);School of Computer Science and Engineering, University of New South Wales(新南威尔士大学计算机科学与工程学院);Department of Data Science & AI, Monash University, Australia(墨尔本大学数据科学与人工智能系)

Zhuang Li, Yuncheng Hua, Thuy-Trang Vu, Haolan Zhan, Lizhen Qu, Gholamreza Haffari

AI总结:

本研究提出SCAR方法,通过语言形式和指令惊异度两个风格要素对训练数据进行一致性排序,仅用0.7%数据即可使微调LLM性能匹敌全量训练效果。

摘要:

近期研究强调,手动确保训练集中一致的回复风格并维持高数据质量,能够显著提升微调大型语言模型(LLM)的性能,同时减少所需的训练样本数量。然而,风格的精确定义以及风格、数据质量与LLM性能之间的关系仍不清晰。本研究识别了回复中的两个关键风格要素:语言形式与指令惊异度。我们发现,在质量相当的数据中,这些回复要素的一致性越高,LLM性能越好。受此启发,我们提出了风格一致性感知回复排序(SCAR),它根据训练集中指令-回复对的回复风格一致性自动进行优先级排序。通过选择风格最一致的样本,在最佳情况下仅使用完整数据集的0.7%,微调后的LLM在编程和开放式问答基准测试中即可匹敌甚至超越在全量数据上训练的模型性能。代码和数据可在 https://github.com/zhuang-li/SCAR 获取。

英文摘要:

Recent studies emphasize that manually ensuring a consistent response style and maintaining high data quality in training sets can significantly improve the performance of fine-tuned Large Language Models (LLMs) while reducing the number of training examples needed. However, the precise definition of style and the relationship between style, data quality, and LLM performance remains unclear. This research identifies two key stylistic elements in responses: linguistic form and instructional surprisal. We find that, among training data of comparable quality, higher consistency in these response elements leads to better LLM performance. Inspired by this, we introduce Style Consistency-Aware Response Ranking (SCAR), which automatically prioritizes instruction-response pairs in the training set based on their response stylistic consistency. By selecting the most style-consistent examples, using only 0.7% of the full dataset in the best case, the fine-tuned LLMs can match or even surpass the performance of models trained on the entire dataset in coding and open-ended question-answering benchmarks. Code and data are available at https://github.com/zhuang-li/SCAR .

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

↑