Sparse Teachers Can Be Dense with Knowledge

Yi Yang, Chen Zhang, Dawei Song
10/8/2022
cs.CLcs.LG

Official code: GeneZC/StarK (10 stars, Python, Apache-2.0, last commit 2023-08-06).

Abstract

Recent advances in distilling pretrained language models have discovered that, besides the expressiveness of knowledge, the student-friendliness should be taken into consideration to realize a truly knowledgable teacher. Based on a pilot study, we find that over-parameterized teachers can produce expressive yet student-unfriendly knowledge and are thus limited in overall knowledgableness.

Show full abstract

To remove the parameters that result in student-unfriendliness, we propose a sparse teacher trick under the guidance of an overall knowledgable score for each teacher parameter. The knowledgable score is essentially an interpolation of the expressiveness and student-friendliness scores. The aim is to ensure that the expressive parameters are retained while the student-unfriendly ones are removed. Extensive experiments on the GLUE benchmark show that the proposed sparse teachers can be dense with knowledge and lead to students with compelling performance in comparison with a series of competitive baselines.

View on arXivView PDF

Code Implementations(1)

GeneZC/StarKOfficial100%
Apache-2.0

Code for EMNLP 2022 paper titled "Sparse Teachers Can Be Dense with Knowledge"

101Python, ShellOct 10, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{yang2022sparse,
  title  = {Sparse Teachers Can Be Dense with Knowledge},
  author = {Yi Yang and Chen Zhang and Dawei Song},
  year   = {2022},
  eprint = {2210.03923},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03923}
}

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

Discussion