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

通过轨迹匹配的可迁移文本数据蒸馏

Transferable text data distillation by trajectory matching

Huawei Noah’s Ark Lab(华为诺亚实验室)

Rong Yao, Hailin Hu, Yifei Fu, Hanting Chen, Wenyi Fang, Fanyi Du, Kai Han, Yunhe Wang

AI总结:

本文提出基于轨迹匹配的文本数据蒸馏方法,通过合成伪提示数据并匹配最近邻实现跨架构迁移,在ARC-Easy和MMLU基准上优于SOTA数据选择方法LESS,并展现出从OPT到Llama的良好可迁移性。

摘要:

在大语言模型(LLM)领域,随着大模型规模的增大,训练成本也随之升高。因此,迫切需要最小化LLM训练中的数据规模。与数据选择方法相比,数据蒸馏方法旨在合成少量数据样本以达到全数据集的训练效果,并且具有更好的灵活性。尽管数据蒸馏在计算机视觉领域取得了成功,但文本数据的离散性迄今阻碍了其在自然语言处理(NLP)中的探索。在这项工作中,我们提出了一种方法,该方法基于轨迹匹配学习伪提示数据,并通过寻找其最近邻ID来实现跨架构迁移。在蒸馏过程中,我们引入了正则化损失以提高蒸馏数据的鲁棒性。据我们所知,这是首个适用于指令微调等文本生成任务的数据蒸馏工作。在两个基准(包括ARC-Easy和MMLU指令微调数据集)上的评估表明,我们的蒸馏方法优于最先进的数据选择方法LESS。此外,我们的方法在大语言模型结构(即从OPT到Llama)上表现出良好的可迁移性。

英文摘要:

In the realm of large language model (LLM), as the size of large models increases, it also brings higher training costs. There is a urgent need to minimize the data size in LLM training. Compared with data selection method, the data distillation method aims to synthesize a small number of data samples to achieve the training effect of the full data set and has better flexibility. Despite its successes in computer vision, the discreteness of text data has hitherto stymied its exploration in natural language processing (NLP). In this work, we proposed a method that involves learning pseudo prompt data based on trajectory matching and finding its nearest neighbor ID to achieve cross-architecture transfer. During the distillation process, we introduce a regularization loss to improve the robustness of our distilled data. To our best knowledge, this is the first data distillation work suitable for text generation tasks such as instruction tuning. Evaluations on two benchmarks, including ARC-Easy and MMLU instruction tuning datasets, established the superiority of our distillation approach over the SOTA data selection method LESS. Furthermore, our method demonstrates a good transferability over LLM structures (i.e., OPT to Llama).

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

↑