Transferable text data distillation by trajectory matching
Rong Yao, Hailin Hu, Yifei Fu, Hanting Chen, Wenyi Fang, Fanyi Du, Kai Han, Yunhe Wang
TL;DR
This work tackles the escalating data demands of large-language-model training by introducing neighbor-aware corpus distillation (NACD), a text data distillation method that learns pseudo prompt data via trajectory matching and neighbor-based regularization. By extracting long-range expert trajectories from full-data training and distilling them into a small prompt-embedding dataset, NACD enables instruction tuning with much reduced data while preserving or surpassing full-data performance. The method demonstrates cross-architecture transfer (OPT to Llama) and outperforms strong data-selection baselines like LESS on ARC-Easy and MMLU, with notable gains at 5% data. The approach offers practical data compression benefits for LLM training and suggests avenues for extending text distillation to more NLP tasks and multimodal settings.
Abstract
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).
