arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.02551cs.LGcs.AIstat.ML
收藏

软标签数据集蒸馏和文本数据集蒸馏

Soft-Label Dataset Distillation and Text Dataset Distillation

University of Waterloo(滑铁卢大学)

Ilia Sucholutsky, Matthias Schonlau

摘要:

数据集蒸馏是一种通过学习包含大数据集所有信息的少量合成样本来减少数据集大小的方法。这有几个好处,例如加快模型训练,降低能耗,减少所需的存储空间。目前,每个合成样本被分配一个单一的“硬”标签,而且,数据集蒸馏目前只能用于图像数据。我们建议同时提取图像和它们的标签,从而为每个合成样本分配一个“软”标签(标签的分布)。我们的算法提高了2-4%的准确性比原来的算法的几个图像分类任务。使用“软”标签还可以使提取的数据集由比类少的样本组成,因为每个样本可以为多个类编码信息。例如,用10个提取图像(每个类一个)训练LeNet模型,在MNIST上的准确率超过96%,在5个提取图像上训练时,准确率接近92%。我们还扩展了数据集蒸馏算法,以提取包括文本的序列数据集。我们证明了文本蒸馏在多个数据集上优于其他方法。例如,模型在IMDB情感分析任务中仅使用20个提取的句子就达到了几乎其原始的准确性。我们的代码可以在$\href{https://github.com/ilia10000/dataset-distillation}{\text{https://github.com/ilia10000/dataset-distillation}}$中找到。

英文摘要:

Dataset distillation is a method for reducing dataset sizes by learning a small number of synthetic samples containing all the information of a large dataset. This has several benefits like speeding up model training, reducing energy consumption, and reducing required storage space. Currently, each synthetic sample is assigned a single `hard' label, and also, dataset distillation can currently only be used with image data. We propose to simultaneously distill both images and their labels, thus assigning each synthetic sample a `soft' label (a distribution of labels). Our algorithm increases accuracy by 2-4% over the original algorithm for several image classification tasks. Using `soft' labels also enables distilled datasets to consist of fewer samples than there are classes as each sample can encode information for multiple classes. For example, training a LeNet model with 10 distilled images (one per class) results in over 96% accuracy on MNIST, and almost 92% accuracy when trained on just 5 distilled images. We also extend the dataset distillation algorithm to distill sequential datasets including texts. We demonstrate that text distillation outperforms other methods across multiple datasets. For example, models attain almost their original accuracy on the IMDB sentiment analysis task using just 20 distilled sentences. Our code can be found at $\href{https://github.com/ilia10000/dataset-distillation}{\text{https://github.com/ilia10000/dataset-distillation}}$.

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

↑