KNOT: Knowledge Distillation using Optimal Transport for Solving NLP Tasks

Rishabh Bhardwaj, Tushar Vaidya, Soujanya Poria
10/6/2021
15 citations
cs.CLcs.AIcs.LG
distillation

Official code: declare-lab/KNOT (15 stars, Python, MIT, last commit 2022-09-15).

Abstract

We propose a new approach, Knowledge Distillation using Optimal Transport (KNOT), to distill the natural language semantic knowledge from multiple teacher networks to a student network. KNOT aims to train a (global) student model by learning to minimize the optimal transport cost of its assigned probability distribution over the labels to the weighted sum of probabilities predicted by the (local) teacher models, under the constraints, that the student model does not have access to teacher models' parameters or training data.

Show full abstract

To evaluate the quality of knowledge transfer, we introduce a new metric, Semantic Distance (SD), that measures semantic closeness between the predicted and ground truth label distributions. The proposed method shows improvements in the global model's SD performance over the baseline across three NLP tasks while performing on par with Entropy-based distillation on standard accuracy and F1 metrics. The implementation pertaining to this work is publicly available at: https://github.com/declare-lab/KNOT.

View on arXivView PDF

Code Implementations(1)

declare-lab/KNOTOfficial100%
MIT

This repository contains the implementation of the paper -- KNOT: Knowledge Distillation using Optimal Transport for Solving NLP Tasks

151Python, ShellOct 6, 20214 years agoMIT
federated-learningtransformers

Similar Papers

Cite this paper

@article{bhardwaj2021knot,
  title  = {KNOT: Knowledge Distillation using Optimal Transport for Solving NLP Tasks},
  author = {Rishabh Bhardwaj and Tushar Vaidya and Soujanya Poria},
  year   = {2021},
  eprint = {2110.02432},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.02432}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.02432.svg)](https://codeofpaper.com/paper/2110.02432)

Discussion