Skip to main content
QUICK REVIEW

[Paper Review] Meta-KD: A Meta Knowledge Distillation Framework for Language Model Compression across Domains

Haojie Pan, Chengyu Wang|arXiv (Cornell University)|Dec 2, 2020
Topic ModelingComputer Science44 references4 citations
TL;DR

Meta-KD proposes a meta-teacher learning framework that distills transferable knowledge across multiple NLP domains to improve cross-domain knowledge distillation for language model compression. By jointly learning instance-level and feature-level meta-knowledge from diverse domains, the meta-teacher enables student models to achieve superior performance, especially under low-data regimes, outperforming single-domain distillation by up to 10% accuracy gain on 1% training data.

ABSTRACT

Pre-trained language models have been applied to various NLP tasks with considerable performance gains. However, the large model sizes, together with the long inference time, limit the deployment of such models in real-time applications. One line of model compression approaches considers knowledge distillation to distill large teacher models into small student models. Most of these studies focus on single-domain only, which ignores the transferable knowledge from other domains. We notice that training a teacher with transferable knowledge digested across domains can achieve better generalization capability to help knowledge distillation. Hence we propose a Meta-Knowledge Distillation (Meta-KD) framework to build a meta-teacher model that captures transferable knowledge across domains and passes such knowledge to students. Specifically, we explicitly force the meta-teacher to capture transferable knowledge at both instance-level and feature-level from multiple domains, and then propose a meta-distillation algorithm to learn single-domain student models with guidance from the meta-teacher. Experiments on public multi-domain NLP tasks show the effectiveness and superiority of the proposed Meta-KD framework. Further, we also demonstrate the capability of Meta-KD in the settings where the training data is scarce.

Motivation & Objective

  • To address the limitation of single-domain knowledge distillation in pre-trained language models, which fails to leverage transferable knowledge from other domains.
  • To improve model generalization and distillation performance in low-data or emerging domain scenarios where in-domain training data is scarce or unavailable.
  • To develop a meta-teacher model that captures and selectively transfers domain-agnostic, transferable knowledge across multiple domains to guide student model training.

Proposed method

  • The meta-teacher is trained jointly on multi-domain datasets to learn transferable knowledge at both instance-level and feature-level across domains.
  • A meta-distillation module minimizes distillation loss from intermediate and output layers, incorporating transferable knowledge with domain-expertise weighting.
  • The framework uses a meta-learning paradigm to train the meta-teacher to generalize across domains, enabling it to guide student models in new domains.
  • Transferable knowledge is explicitly distilled using a loss factor γ₂, which is tuned to balance domain-specific and cross-domain knowledge transfer.
  • The student model is trained using knowledge from the meta-teacher, even when no in-domain data is available during meta-teacher training.
  • The method is evaluated using a combination of distillation losses from logits, hidden states, and transferable knowledge components.

Experimental results

Research questions

  • RQ1Can a meta-teacher model trained across multiple domains improve knowledge distillation performance for downstream student models in low-data settings?
  • RQ2How does the inclusion of transferable knowledge from multiple domains affect distillation performance compared to single-domain KD?
  • RQ3To what extent does Meta-KD outperform standard KD when in-domain training data is scarce or absent?
  • RQ4How does the weighting of transferable knowledge (via γ₂) affect model performance across different domains?
  • RQ5Can the meta-teacher generalize to new domains without any in-domain data during meta-teacher training?

Key findings

  • Meta-KD achieves a 10% accuracy improvement on the MNLI dataset when only 1% of the training data is available, demonstrating strong performance under low-data regimes.
  • When no in-domain data is used during meta-teacher training, Meta-KD still achieves 89.4% accuracy on Amazon Reviews, outperforming standard KD and approaching performance from in-domain teacher models.
  • The optimal transferable knowledge loss factor γ₂ lies in the range of 0.2–0.5, with performance varying across domains, indicating domain-dependent benefits from meta-knowledge.
  • On the MNLI dataset, Meta-KD improves accuracy by 3.1% over standard KD when using 1% of the training data, highlighting its effectiveness in data-scarce scenarios.
  • The meta-teacher trained without any in-domain data for the 'fiction' domain still enables student models to achieve 88.2% accuracy, comparable to using an in-domain teacher.
  • Ablation studies confirm that the inclusion of transferable knowledge distillation loss significantly improves performance, especially in low-data settings.

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.