Skip to main content
QUICK REVIEW

[Paper Review] Self-distillation with Batch Knowledge Ensembling Improves ImageNet Classification

Yixiao Ge, Xiao Zhang|arXiv (Cornell University)|Apr 27, 2021
Advanced Neural Network ApplicationsComputer Science58 references16 citations
TL;DR

This paper proposes Batch Knowledge Ensembling (BAKE), a self-distillation method that improves ImageNet classification by online ensembling of knowledge from other samples within the same mini-batch using inter-sample affinities. It achieves state-of-the-art performance with only 1.5% additional FLOPs and zero parameter increase, boosting Swin-T by +0.7% top-1 accuracy.

ABSTRACT

The recent studies of knowledge distillation have discovered that ensembling the "dark knowledge" from multiple teachers or students contributes to creating better soft targets for training, but at the cost of significantly more computations and/or parameters. In this work, we present BAtch Knowledge Ensembling (BAKE) to produce refined soft targets for anchor images by propagating and ensembling the knowledge of the other samples in the same mini-batch. Specifically, for each sample of interest, the propagation of knowledge is weighted in accordance with the inter-sample affinities, which are estimated on-the-fly with the current network. The propagated knowledge can then be ensembled to form a better soft target for distillation. In this way, our BAKE framework achieves online knowledge ensembling across multiple samples with only a single network. It requires minimal computational and memory overhead compared to existing knowledge ensembling methods. Extensive experiments demonstrate that the lightweight yet effective BAKE consistently boosts the classification performance of various architectures on multiple datasets, e.g., a significant +0.7% gain of Swin-T on ImageNet with only +1.5% computational overhead and zero additional parameters. BAKE does not only improve the vanilla baselines, but also surpasses the single-network state-of-the-arts on all the benchmarks.

Motivation & Objective

  • To address the limitation of one-hot labels in supervised image classification, which hinder performance improvements.
  • To reduce the computational and memory cost of knowledge distillation while maintaining or improving performance.
  • To enable online, lightweight knowledge ensembling across samples in a mini-batch using a single network.
  • To improve generalization and robustness in image classification through refined soft targets derived from cross-sample knowledge propagation.

Proposed method

  • BAKE performs on-the-fly knowledge ensembling by propagating and aggregating predictions from other samples in the same mini-batch, weighted by their inter-sample affinities.
  • Inter-sample affinities are estimated using the current network's features, ensuring that similar samples contribute more to knowledge ensembling.
  • Knowledge propagation and ensembling are iteratively applied until convergence, approximated via efficient inference to avoid high computational cost.
  • The method uses a single network to generate refined soft targets for self-distillation, eliminating the need for multiple teacher networks or additional branches.
  • The framework is compatible with various architectures, including ResNet and Swin Transformer, and supports distributed training with sync BatchNorm.

Experimental results

Research questions

  • RQ1Can knowledge ensembling across samples in a mini-batch improve distillation performance without adding parameters or computational overhead?
  • RQ2How does on-the-fly, inter-sample knowledge propagation affect the quality of soft targets in self-distillation?
  • RQ3To what extent can BAKE improve accuracy on ImageNet and downstream tasks compared to state-of-the-art single-network methods?
  • RQ4How robust is BAKE to label noise and distribution shifts in test-time robustness benchmarks?

Key findings

  • BAKE improves ResNet-50 accuracy on ImageNet by +1.2% (76.8% → 78.0%) with only 3.7% additional FLOPs at training time.
  • BAKE boosts Swin-T accuracy on ImageNet by +0.7% (81.3% → 82.0%) with just +1.5% computational overhead and zero additional parameters.
  • BAKE consistently outperforms single-network state-of-the-art methods on all evaluated benchmarks, including CIFAR-100, TinyImageNet, CUB-200-2011, MIT67, and Stanford Dogs.
  • The method improves transfer learning performance on COCO detection and segmentation tasks, demonstrating better generalization of learned representations.
  • BAKE enhances test-time robustness on perturbed datasets such as ImageNet-R, ImageNet-A, and ImageNet-P, indicating improved model robustness.
  • Ablation studies confirm that infinite-iteration knowledge ensembling via approximate inference yields more robust performance than single-iteration ensembling, and sync BatchNorm is critical for distributed training with per-class sampling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.