Function-Consistent Feature Distillation

Dongyang Liu, Meina Kan, S. Shan, Xilin Chen
2/12/2026

No official code found. Best implementation: LiuDongyang6/FCFD (30 stars, last commit 2023-07-05).

Abstract

Feature distillation makes the student mimic the intermediate features of the teacher. Nearly all existing feature-distillation methods use L2 distance or its slight variants as the distance metric between teacher and student features. However, while L2 distance is isotropic w.r.t. all dimensions, the neural network's operation on different dimensions is usually anisotropic, i.e., perturbations with the same 2-norm but in different dimensions of intermediate features lead to changes in the final output with largely different magnitude. Considering this, we argue that the similarity between teacher and student features should not be measured merely based on their appearance (i.e., L2 distance), but should, more importantly, be measured by their difference in function, namely how later layers of the network will read, decode, and process them. Therefore, we propose Function-Consistent Feature Distillation (FCFD), which explicitly optimizes the functional similarity between teacher and student features. The core idea of FCFD is to make teacher and student features not only numerically similar, but more importantly produce similar outputs when fed to the later part of the same network. With FCFD, the student mimics the teacher more faithfully and learns more from the teacher. Extensive experiments on image classification and object detection demonstrate the superiority of FCFD to existing methods. Furthermore, we can combine FCFD with many existing methods to obtain even higher accuracy. Our codes are available at https://github.com/LiuDongyang6/FCFD.

View on arXivView PDF

Code Implementations(1)

LiuDongyang6/FCFDCommunity100%

Official implementation of the paper "Function-Consistent Feature Distillation" (ICLR 2023)

304Shell, PythonFeb 13, 20233 years ago

Similar Papers

Cite this paper

@article{liu2026functionconsistent,
  title  = {Function-Consistent Feature Distillation},
  author = {Dongyang Liu and Meina Kan and S. Shan and Xilin Chen},
  year   = {2026},
  eprint = {2304.11832},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2304.11832},
  journal = {ICLR 2023 2023}
}

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

Discussion