[论文解读] Maybe Only 0.5% Data is Needed: A Preliminary Exploration of Low Training Data Instruction Tuning
本文研究低训练数据指令微调(LTD 指令微调),并展示在少于与任务相关数据相关的0.5%数据条件下,任务特定的大语言模型也能达到具有竞争力的性能,对单一指令与多指令以及NLI任务的数据效率有重要发现。
Instruction tuning for large language models (LLMs) has gained attention from researchers due to its ability to unlock the potential of LLMs in following instructions. While instruction tuning offers advantages for facilitating the adaptation of large language models (LLMs) to downstream tasks as a fine-tuning approach, training models with tens of millions or even billions of parameters on large amounts of data results in unaffordable computational costs. To address this, we focus on reducing the data used in LLM instruction tuning to decrease training costs and improve data efficiency, dubbed as Low Training Data Instruction Tuning (LTD Instruction Tuning). Specifically, this paper conducts a preliminary exploration into reducing the data used in LLM training and identifies several observations regarding task specialization for LLM training, such as the optimization of performance for a specific task, the number of instruction types required for instruction tuning, and the amount of data required for task-specific models. The results suggest that task-specific models can be trained using less than 0.5% of the original dataset, with a 2% improvement in performance over those trained on full task-related data.
研究动机与目标
- 推动数据高效的指令微调,以降低大语言模型的训练成本。
- 研究是否可以用极小、面向任务的数据集来训练任务特定模型。
- 确定需要多少种指令类型以及为实现任务专业化需要多少数据。
- 提出一种数据选择方法,以从数据池中检索核心样本用于高效的指令微调。
提出的方法
- 将数据格式化为指令风格的提示并将句子编码为嵌入向量。
- 使用K-Means对嵌入进行聚类,识别面向任务的分布中心。
- 采用核心集方法(KCenterGreedy)选择少量、有代表性的任务数据子集。
- 从任务池中检索核心样本以对 Galactica-1.3b 进行 NLI 微调。
- 通过计算答案选项的令牌概率乘积来评估并选择最佳选项。
- 消融采样策略,以比较核心集选择与基于相似性的方法。
实验结果
研究问题
- RQ1任务特定的 LLM 是否能在少于完整任务相关数据的0.5% 条件下得到有效训练?
- RQ2在 LTD 指令微调下,指令类型的数量与多样性如何影响任务特定性能?
- RQ3哪种数据选择策略能为高效指令微调获得最具代表性的核心样本?
- RQ4对于 NLI,单一指令是否足以实现最优的任务特定性能,还是多条指令能带来边际提升?
主要发现
- 任务特定模型可以用原始数据集的少于0.5%来训练,其性能可与使用完整任务相关数据的模型相当甚至更好。
- 对于 NLI,仅使用目标任务数据和单一指令即可达到或超过使用完整多指令 P3 设置的结果。
- 指令格式的多样性对任务特定性能的影响有限;面向任务的数据可能已足够。
- 基于核心集的采样方法(KCenterGreedy)相较于原始基线在数据量极小(如0.5%数据)时表现出显著改进。
- 使用16k个实例(1.9M token,等于P3的0.5%)就足以训练一个NLI任务的任务特定模型。
- 基于余弦相似度的采样策略(topK/leastK/mixed)不及核心集方法,表明代表性核心样本的重要性。
- 与普通模型相比,NLI 核心集在 RTE、CB、ANLI R1-R3 上取得更高的平均准确率。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。