Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 4.6 KB

README.md

File metadata and controls

63 lines (42 loc) · 4.6 KB

Overhaul

A Comprehensive Overhaul of Feature Distillation

Abstract

We investigate the design aspects of feature distillation methods achieving network compression and propose a novel feature distillation method in which the distillation loss is designed to make a synergy among various aspects: teacher transform, student transform, distillation feature position and distance function. Our proposed distillation loss includes a feature transform with a newly designed margin ReLU, a new distillation feature position, and a partial L2 distance function to skip redundant information giving adverse effects to the compression of student. In ImageNet, our proposed method achieves 21.65% of top-1 error with ResNet50, which outperforms the performance of the teacher network, ResNet152. Our proposed method is evaluated on various tasks such as image classification, object detection and semantic segmentation and achieves a significant performance improvement in all tasks. The code is available at link

Feature-based Distillation

feature_base

Margin ReLU

margin_relu

Results and models

1. Classification

Vanilla

Dataset Model Top-1 (%) Download
CIFAR10 WRN16-2 93.43 model | log
CIFAR10 WRN28-4 95.49 model | log

Distillation

Dataset Model Flops(M) Teacher Top-1 (%) Configs Download
CIFAR10 WRN16-2 101 WRN28-4 94.21 config model | log

Getting Started

Distillation training.

sh tools/slurm_train.sh $PARTITION $JOB_NAME \
  configs/distill/mmcls/ofd/ofd_backbone_resnet50_resnet18_8xb16_cifar10.py \
  $DISTILLATION_WORK_DIR

Test

sh tools/slurm_test.sh $PARTITION $JOB_NAME \
  configs/distill/mmcls/ofd/ofd_backbone_resnet50_resnet18_8xb16_cifar10.py \
  $DISTILLATION_WORK_DIR/latest.pth --eval $EVAL_SETTING

Citation

@inproceedings{heo2019overhaul,
  title={A Comprehensive Overhaul of Feature Distillation},
  author={Heo, Byeongho and Kim, Jeesoo and Yun, Sangdoo and Park, Hyojin and Kwak, Nojun and Choi, Jin Young},
  booktitle = {International Conference on Computer Vision (ICCV)},
  year={2019}
}