Skip to main content
QUICK REVIEW

[Paper Review] Data Distillation for Text Classification

Yongqi Li, Wenjie Li|arXiv (Cornell University)|Apr 17, 2021
Machine Learning and Data ClassificationComputer Science17 references8 citations
TL;DR

This paper proposes a novel data distillation method for text classification that generates synthetic, small-scale training data by optimizing numeric representations to mimic the knowledge of a large original dataset. Using an iterative optimization scheme with gradient backpropagation through the distilled data, the method achieves ~90% of the original model's accuracy using only 0.1% of the training data size.

ABSTRACT

Deep learning techniques have achieved great success in many fields, while at the same time deep learning models are getting more complex and expensive to compute. It severely hinders the wide applications of these models. In order to alleviate this problem, model distillation emerges as an effective means to compress a large model into a smaller one without a significant drop in accuracy. In this paper, we study a related but orthogonal issue, data distillation, which aims to distill the knowledge from a large training dataset down to a smaller and synthetic one. It has the potential to address the large and growing neural network training problem based on the small dataset. We develop a novel data distillation method for text classification. We evaluate our method on eight benchmark datasets. The results that the distilled data with the size of 0.1% of the original text data achieves approximately 90% performance of the original is rather impressive.

Motivation & Objective

  • To address the high computational and storage costs of training large deep learning models on massive text datasets.
  • To explore data distillation as an orthogonal alternative to model distillation, focusing on compressing training data rather than model architecture.
  • To generate synthetic, small-scale training data that retains the essential knowledge of the original dataset for efficient model training.
  • To improve training efficiency and reduce redundancy by distilling knowledge from large datasets into compact synthetic data.
  • To evaluate the method's effectiveness across diverse text classification benchmarks under minimal data conditions.

Proposed method

  • The method initializes a small number of synthetic text samples per class as learnable numeric tensors (distilled data).
  • It employs an alternating optimization process: training a student model on the distilled data and backpropagating gradients from the original data’s loss to update the distilled data.
  • The distilled data are updated via differentiable optimization, using Hessian-vector products to efficiently compute second-order gradients.
  • The process iteratively refines the synthetic data to better approximate the decision boundaries and representations of the original dataset.
  • The final distilled data are used to train any downstream model as standard training data, enabling fast and efficient learning.
  • The method ensures that the optimization process is differentiable with respect to the synthetic data, allowing gradient flow from the original data’s loss to the distilled data parameters.

Experimental results

Research questions

  • RQ1Can a small, synthetic dataset distilled from a large text dataset achieve classification performance close to that of the full dataset?
  • RQ2How does data distillation compare to random sampling or heuristic selection of training data in terms of model accuracy and training efficiency?
  • RQ3To what extent can the distilled data reduce training time and computational cost while preserving model generalization?
  • RQ4What is the impact of distilled data size on model performance, and does it approach the upper bound of full-data performance?
  • RQ5Can the optimization process effectively transfer knowledge from the original dataset to synthetic data through gradient-based refinement?

Key findings

  • The distilled data, at just 0.1% of the original dataset size, achieved approximately 90% of the performance of the full dataset across eight benchmark text classification tasks.
  • On average, the distilled data outperformed randomly selected subsets of the same size by a significant margin, with accuracy gains ranging from 10 to 30 percentage points across datasets.
  • The model trained on distilled data converged faster and achieved higher accuracy more quickly than the model trained on random data, indicating a smoother optimization landscape.
  • For datasets with very few samples per class (e.g., AG’s News with 30 samples per class), the distilled data still enabled effective learning, achieving 85.64% accuracy on AG’s News, compared to 71.33% on random data.
  • As the size of the distilled data increased from 0.01% to 0.1% of the full dataset, model accuracy consistently improved and approached the performance of the full dataset, demonstrating scalability.
  • The method demonstrated that generating synthetic data can surpass the upper bound of subset selection by capturing knowledge not present in any single subset.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.