Neighborhood relation-based knowledge distillation for image classification.

Journal: Neural networks : the official journal of the International Neural Network Society
Published Date:

Abstract

As an efficient model compression method, recent knowledge distillation methods primarily transfer the knowledge from a large teacher model to a small student model by minimizing the differences between the predictions from teacher and student. However, the relationship between different samples has not been well-investigated, since recent relational distillation methods mainly construct the knowledge from all randomly selected samples, e.g., the similarity matrix of mini-batch samples. In this paper, we propose Neighborhood Relation-Based Knowledge Distillation (NRKD) to consider the local structure as the novel relational knowledge for better knowledge transfer. Specifically, we first find a subset of samples with their K-nearest neighbors according to the similarity matrix of mini-batch samples and then build the neighborhood relationship knowledge for knowledge distillation, where the characterized relational knowledge can be transferred by both intermediate feature maps and output logits. We perform extensive experiments on several popular image classification datasets for knowledge distillation, including CIFAR10, CIFAR100, Tiny ImageNet, and ImageNet. Experimental results demonstrate that the proposed NRKD yields competitive results, compared to the state-of-the art distillation methods. Our codes are available at: https://github.com/xinxiaoxiaomeng/NRKD.git.

Authors

  • Jianping Gou
    School of Computer Science and Communication Engineering and Jiangsu Key Laboratory of Security Tech. for Industrial Cyberspace, Jiangsu University, Zhenjiang, Jiangsu, 212013, China. Electronic address: goujianping@ujs.edu.cn.
  • Xiaomeng Xin
    School of Computer Science and Communication Engineering, Jiangsu University, Zhenjiang, 212013, Jiangsu, China. Electronic address: 2212108001@stmail.ujs.edu.cn.
  • Baosheng Yu
    School of Computer Science, University of Sydney, Sydney, Australia. Electronic address: baosheng.yu@sydney.edu.au.
  • Heping Song
    School of Computer Science and Communication Engineering, Jiangsu University, Zhenjiang, 212013, Jiangsu, China. Electronic address: songhp@ujs.edu.cn.
  • Weiyong Zhang
    College of Computer and Information Science, College of Software, Southwest University, Chongqing, 400715, China. Electronic address: vvpsyche@swu.edu.cn.
  • Shaohua Wan