Saved in:
Bibliographic Details
Main Authors: Hu, Chengming, Wu, Haolun, Li, Xuan, Ma, Chen, Chen, Xi, Yan, Jun, Wang, Boyu, Liu, Xue
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2312.15112
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929247374802944
author Hu, Chengming
Wu, Haolun
Li, Xuan
Ma, Chen
Chen, Xi
Yan, Jun
Wang, Boyu
Liu, Xue
author_facet Hu, Chengming
Wu, Haolun
Li, Xuan
Ma, Chen
Chen, Xi
Yan, Jun
Wang, Boyu
Liu, Xue
contents Knowledge distillation aims to train a compact student network using soft supervision from a larger teacher network and hard supervision from ground truths. However, determining an optimal knowledge fusion ratio that balances these supervisory signals remains challenging. Prior methods generally resort to a constant or heuristic-based fusion ratio, which often falls short of a proper balance. In this study, we introduce a novel adaptive method for learning a sample-wise knowledge fusion ratio, exploiting both the correctness of teacher and student, as well as how well the student mimics the teacher on each sample. Our method naturally leads to the intra-sample trilateral geometric relations among the student prediction ($S$), teacher prediction ($T$), and ground truth ($G$). To counterbalance the impact of outliers, we further extend to the inter-sample relations, incorporating the teacher's global average prediction $\bar{T}$ for samples within the same class. A simple neural network then learns the implicit mapping from the intra- and inter-sample relations to an adaptive, sample-wise knowledge fusion ratio in a bilevel-optimization manner. Our approach provides a simple, practical, and adaptable solution for knowledge distillation that can be employed across various architectures and model sizes. Extensive experiments demonstrate consistent improvements over other loss re-weighting methods on image classification, attack detection, and click-through rate prediction.
format Preprint
id arxiv_https___arxiv_org_abs_2312_15112
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Less or More From Teacher: Exploiting Trilateral Geometry For Knowledge Distillation
Hu, Chengming
Wu, Haolun
Li, Xuan
Ma, Chen
Chen, Xi
Yan, Jun
Wang, Boyu
Liu, Xue
Machine Learning
Knowledge distillation aims to train a compact student network using soft supervision from a larger teacher network and hard supervision from ground truths. However, determining an optimal knowledge fusion ratio that balances these supervisory signals remains challenging. Prior methods generally resort to a constant or heuristic-based fusion ratio, which often falls short of a proper balance. In this study, we introduce a novel adaptive method for learning a sample-wise knowledge fusion ratio, exploiting both the correctness of teacher and student, as well as how well the student mimics the teacher on each sample. Our method naturally leads to the intra-sample trilateral geometric relations among the student prediction ($S$), teacher prediction ($T$), and ground truth ($G$). To counterbalance the impact of outliers, we further extend to the inter-sample relations, incorporating the teacher's global average prediction $\bar{T}$ for samples within the same class. A simple neural network then learns the implicit mapping from the intra- and inter-sample relations to an adaptive, sample-wise knowledge fusion ratio in a bilevel-optimization manner. Our approach provides a simple, practical, and adaptable solution for knowledge distillation that can be employed across various architectures and model sizes. Extensive experiments demonstrate consistent improvements over other loss re-weighting methods on image classification, attack detection, and click-through rate prediction.
title Less or More From Teacher: Exploiting Trilateral Geometry For Knowledge Distillation
topic Machine Learning
url https://arxiv.org/abs/2312.15112