Prune Your Model Before Distill It

Jinhyuk Park, Albert No
9/30/2021
cs.LG
distillation

Official code: ososos888/prune-then-distill (50 stars, Python, last commit 2022-09-24).

Abstract

Knowledge distillation transfers the knowledge from a cumbersome teacher to a small student. Recent results suggest that the student-friendly teacher is more appropriate to distill since it provides more transferable knowledge.

Show full abstract

In this work, we propose the novel framework, "prune, then distill," that prunes the model first to make it more transferrable and then distill it to the student. We provide several exploratory examples where the pruned teacher teaches better than the original unpruned networks. We further show theoretically that the pruned teacher plays the role of regularizer in distillation, which reduces the generalization error. Based on this result, we propose a novel neural network compression scheme where the student network is formed based on the pruned teacher and then apply the "prune, then distill" strategy. The code is available at https://github.com/ososos888/prune-then-distill

View on arXivView PDF

Code Implementations(1)

506PythonJul 12, 20224 years ago

Similar Papers

Cite this paper

@article{park2021prune,
  title  = {Prune Your Model Before Distill It},
  author = {Jinhyuk Park and Albert No},
  year   = {2021},
  eprint = {2109.14960},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.14960}
}

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/2109.14960.svg)](https://codeofpaper.com/paper/2109.14960)

Discussion