Feature Structure Distillation with Centered Kernel Alignment in BERT Transferring

Hee-Jun Jung, Doyeon Kim, Seung-Hoon Na, Kangil Kim
4/1/2022
cs.CLcs.AIcs.LG
distillation

Official code: maroo-sky/FSD (11 stars, Python, last commit 2023-07-17).

Abstract

Knowledge distillation is an approach to transfer information on representations from a teacher to a student by reducing their difference. A challenge of this approach is to reduce the flexibility of the student's representations inducing inaccurate learning of the teacher's knowledge.

Show full abstract

To resolve it in transferring, we investigate distillation of structures of representations specified to three types: intra-feature, local inter-feature, global inter-feature structures. To transfer them, we introduce feature structure distillation methods based on the Centered Kernel Alignment, which assigns a consistent value to similar features structures and reveals more informative relations. In particular, a memory-augmented transfer method with clustering is implemented for the global structures. The methods are empirically analyzed on the nine tasks for language understanding of the GLUE dataset with Bidirectional Encoder Representations from Transformers (BERT), which is a representative neural language model. In the results, the proposed methods effectively transfer the three types of structures and improve performance compared to state-of-the-art distillation methods. Indeed, the code for the methods is available in https://github.com/maroo-sky/FSD.

View on arXivView PDF

Code Implementations(1)

maroo-sky/FSDOfficial100%

Feature Structure Distillation with Centered Kernel Alignment in BERT Transferring official code

113PythonMar 16, 20223 years ago

Similar Papers

Cite this paper

@article{jung2022feature,
  title  = {Feature Structure Distillation with Centered Kernel Alignment in BERT Transferring},
  author = {Hee-Jun Jung and Doyeon Kim and Seung-Hoon Na and Kangil Kim},
  year   = {2022},
  eprint = {2204.08922},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.08922}
}

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

Discussion