Abstract
It is commonly perceived that the strongest language models (LMs) rely on a combination of massive scale, instruction data, and human feedback to perform specialized tasks -- e.g. summarization and paraphrasing, without supervision. In this paper, we propose that language models can learn to summarize and paraphrase sentences, with none of these 3 factors. We present Impossible Distillation, a framework that distills a task-specific dataset directly from an off-the-shelf LM, even when it is impossible for the LM itself to reliably solve the task. By training a student model on the generated dataset and amplifying its capability through self-distillation, our method yields a high-quality model and dataset from a low-quality teacher model, without the need for scale or supervision. Using Impossible Distillation, we are able to distill an order of magnitude smaller model (with only 770M parameters) that outperforms 175B parameter GPT-3, in both quality and controllability, as confirmed by automatic and human evaluations. Furthermore, as a useful byproduct of our approach, we obtain DIMSUM+, a high-quality dataset with 3.4M sentence summaries and paraphrases. Our analyses show that this dataset, as a purely LM-generated corpus, is more diverse and more effective for generalization to unseen domains than all human-authored datasets -- including Gigaword with 4M samples.
Introduction
The prevailing paradigm for developing high-performance, compact language models involves "Knowledge Distillation," where a large "teacher" model (e.g., GPT-4) guides a smaller "student" model. However, this approach creates a bottleneck: it requires access to massive, often proprietary, frontier models. This paper introduces Impossible Distillation, a framework that challenges this dependency. We demonstrate that it is possible to distill a high-quality task model using a teacher that is fundamentally too small to perform the task itself through direct prompting.
Methodology
The Impossible Distillation pipeline consists of four primary stages designed to transform noisy outputs from a "low-quality" teacher into a high-quality training corpus:
- Pair Generation via Paraphrastic Proximity: We utilize the internal distribution of a small LM (like GPT-2) to generate multiple completions for a given context. These completions naturally cluster into semantically similar groups.
- Critic Filtering: Raw generations are filtered using a composition of small, off-the-shelf "critic" models. This includes Natural Language Inference (NLI) to ensure semantic equivalence and metrics like ROUGE or Tree Edit Distance (TED) to ensure lexical and structural diversity.
- Student Learning: A student model (e.g., T5-Large, 770M parameters) is fine-tuned on the resulting high-quality synthetic data.
- Self-Distillation: The student model undergoes an iterative refinement process, generating its own paraphrases which are then filtered and used for further training.
Key Insights: Paraphrastic Proximity
The core intuition behind this work is "Paraphrastic Proximity." While a small model might fail to follow the instruction "paraphrase this sentence," its next-token prediction distribution naturally groups semantically related sentences when constrained by the same preceding context. By sampling from these high-probability regions, we can extract paraphrases that the model could not produce via explicit instruction following.
Datasets and Results
We introduce two significant synthetic datasets: DIMPLE (4.2M paraphrase pairs) and DIMSUM (1.5M sentence-summary pairs). Our evaluations show that the 770M parameter Impossible-T5 model consistently outperforms larger models, including those distilled from ChatGPT, across benchmarks like MRPC, Quora, and Gigaword.
Key findings include:
- Superior Fidelity: Human evaluations indicate that Impossible-T5 is often more faithful to the source text than ChatGPT, which is prone to hallucinations.
- Effective Domain Adaptation: By changing the teacher model (e.g., to BioGPT), the framework generates high-quality domain-specific data without human labels.
- Syntactic Control: The model excels at following structural constraints (e.g., converting a statement to a question) better than much larger counterparts.
Conclusion
Impossible Distillation proves that the quality of synthetic data and the rigor of the filtering process are more critical than the scale of the teacher model. This approach enables the creation of state-of-the-art models for specialized tasks using only modest computational resources and no human supervision.
Summary updated