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

DiLM:将数据集蒸馏为语言模型以实现文本级数据集蒸馏

DiLM: Distilling Dataset into Language Model for Text-level Dataset Distillation

Tokyo Institute of Technology(东京工业大学)

Aru Maekawa, Satoshi Kosugi, Kotaro Funakoshi, Manabu Okumura

AI总结:

本文提出DiLM方法,通过训练语言模型生成文本形式的合成训练样本,解决嵌入级蒸馏无法跨模型使用的问题,并在文本分类和上下文学习任务中取得优于核心集方法的性能。

摘要:

数据集蒸馏旨在通过创建少量信息丰富的合成样本来压缩训练数据集,使得在这些合成样本上训练的神经网络能够达到与在原始训练数据集上训练的模型相当的性能。当前的文本数据集蒸馏方法将每个合成样本创建为词嵌入序列而非文本,以便应用基于梯度的优化;然而,这种嵌入级别的蒸馏数据集无法用于训练其他词嵌入权重与蒸馏所用模型不同的模型。为了解决这一问题,我们提出了一种新颖的文本数据集蒸馏方法,称为将数据集蒸馏为语言模型(DiLM),该方法训练一个语言模型以文本数据的形式生成信息丰富的合成训练样本,而不是直接优化合成样本。我们在多个文本分类数据集上评估了DiLM,结果表明DiLM生成的蒸馏合成数据集优于当前核心集选择方法生成的合成数据集。DiLM在训练不同类型的模型以及大语言模型的上下文学习方面取得了显著的泛化性能。我们的代码将在https://github.com/arumaekawa/DiLM上提供。

英文摘要:

Dataset distillation aims to compress a training dataset by creating a small number of informative synthetic samples such that neural networks trained on them perform as well as those trained on the original training dataset. Current text dataset distillation methods create each synthetic sample as a sequence of word embeddings instead of a text to apply gradient-based optimization; however, such embedding-level distilled datasets cannot be used for training other models whose word embedding weights are different from the model used for distillation. To address this issue, we propose a novel text dataset distillation approach, called Distilling dataset into Language Model (DiLM), which trains a language model to generate informative synthetic training samples as text data, instead of directly optimizing synthetic samples. We evaluated DiLM on various text classification datasets and showed that distilled synthetic datasets from DiLM outperform those from current coreset selection methods. DiLM achieved remarkable generalization performance in training different types of models and in-context learning of large language models. Our code will be available at https://github.com/arumaekawa/DiLM.

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

↑