[Paper Review] Generation-Distillation for Efficient Natural Language Understanding in Low-Data Settings
This paper proposes generation-distillation, a method that uses a large language model (GPT-2) to generate synthetic training examples and a finetuned BERT model to distill knowledge into a small student network for low-resource text classification. The approach achieves 98% of BERT's accuracy on AG News, DBPedia, and Yahoo Answers with 300× fewer parameters and outperforms prior distillation methods by using 3× fewer parameters.
Over the past year, the emergence of transfer learning with large-scale language models (LM) has led to dramatic performance improvements across a broad range of natural language understanding tasks. However, the size and memory footprint of these large LMs makes them difficult to deploy in many scenarios (e.g. on mobile phones). Recent research points to knowledge distillation as a potential solution, showing that when training data for a given task is abundant, it is possible to distill a large (teacher) LM into a small task-specific (student) network with minimal loss of performance. However, when such data is scarce, there remains a significant performance gap between large pretrained LMs and smaller task-specific models, even when training via distillation. In this paper, we bridge this gap with a novel training approach, called generation-distillation, that leverages large finetuned LMs in two ways: (1) to generate new (unlabeled) training examples, and (2) to distill their knowledge into a small network using these examples. Across three low-resource text classification datsets, we achieve comparable performance to BERT while using 300x fewer parameters, and we outperform prior approaches to distillation for text classification while using 3x fewer parameters.
Motivation & Objective
- To close the performance gap between small task-specific models and large pretrained language models in low-data regimes.
- To address the challenge of deploying large language models (e.g., BERT) on resource-constrained devices like mobile phones.
- To improve knowledge distillation in low-data settings by augmenting training data through generative modeling.
- To demonstrate that combining data generation and distillation yields superior performance compared to standard distillation or training from scratch.
Proposed method
- A large language model (GPT-2) is fine-tuned on a small labeled dataset and used to generate synthetic, unlabeled training examples in the style of the original data.
- The generated examples are used to train a small student model (CNN) via knowledge distillation from a finetuned BERT model.
- Distillation uses the soft label probabilities from BERT (via KL divergence loss) rather than hard labels, preserving richer supervision.
- The student model is trained on a combination of original labeled data and generated synthetic data, with the distillation process enhancing generalization.
- Two student architectures are evaluated: a Kim-style CNN and a ResNet-style CNN, to assess generalization across model structures.
- The method is evaluated on three low-resource text classification benchmarks: AG News, DBPedia, and Yahoo Answers.
Experimental results
Research questions
- RQ1Can data generation from a large language model improve the performance of small, task-specific models in low-data text classification?
- RQ2Does knowledge distillation from a finetuned BERT model into a small student network yield better results when combined with synthetic data generation?
- RQ3How does the performance of generation-distillation compare to standard distillation and training from scratch in low-data regimes?
- RQ4Can the proposed method achieve performance comparable to BERT while using significantly fewer parameters?
- RQ5Does the choice of student architecture affect the effectiveness of the generation-distillation pipeline?
Key findings
- On AG News, the generation-distillation method achieves 89.9% accuracy with only 1,124 parameters—matching BERT-Large’s performance while using 300× fewer parameters.
- On DBPedia, the method reaches 96.3% accuracy with the same 1,124-parameter student model, outperforming prior distillation methods by 1.7 percentage points.
- On Yahoo Answers, the method achieves 65.0% accuracy with a 1,091-parameter model, surpassing the previous state-of-the-art by 1.6 percentage points while using 3× fewer parameters.
- Performance improves with more generated examples, reaching 60% accuracy with just 500 synthetic examples (50 per class), and continuing to rise with increased data.
- Distillation using soft labels from BERT outperforms hard labeling of generated examples by 1.3 percentage points on Yahoo Answers, confirming the benefit of soft label supervision.
- The method generalizes across architectures, with both Kim-style and ResNet-style student models showing consistent improvements over standard distillation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.