Beyond Classification: Knowledge Distillation using Multi-Object Impressions

Gaurav Kumar Nayak, Monish Keswani, Sharan Seshadri, Anirban Chakraborty

Knowledge Distillation (KD) is a cornerstone of model compression, enabling the transfer of knowledge from a high-capacity "Teacher" model to a lightweight "Student" model. However, traditional KD relies on access to the original training data, which is often restricted due to privacy, security, or proprietary concerns. While data-free KD has matured for image classification, extending it to object detection introduces significant complexities: localization requirements, variable object density, and diverse scales.

The Multi-Object Impression (MOI) Framework

To address these challenges, the authors propose a novel framework that synthesizes "Multi-Object Impressions" (MOIs). These are pseudo-images optimized to trigger the Teacher's detection capabilities, which are then used to train the Student model. The process is divided into two distinct phases: Generation and Distillation.

Overview of the MOI framework, showing (a) the generation of pseudo-images and (b) the subsequent distillation to a Student model.

1. Generation: Synthesizing the Transfer Set

In the generation phase, the goal is to create a diverse set of images that the Teacher recognizes as containing multiple objects.

  • Pseudo-Target Preparation: Without real labels, the system generates pseudo-targets by sampling from a Power Law distribution for object areas, guided by the Teacher's predefined anchor scales. This allows the framework to "remember" the data distribution through the Teacher's configuration.
  • Image Optimization: Starting from random texture backgrounds, pixels are optimized via backpropagation through the frozen Teacher. A combination of detection loss ($L_{gt}$) and a novel Diversity Loss ($L_{div}$) is used. $L_{div}$ is crucial; it prevents the generator from collapsing into a single "template" for each class, ensuring the Student learns robust, generalized features.
  • Batch Augmentation (BA): Differentiable augmentations like flipping and cutout are applied during generation to ensure the resulting MOIs are robust to standard training transformations.

2. Distillation: Training the Student

Once the MOIs are generated, they serve as the training data for the Student. The Student is trained to match the Teacher's predictions using standard detection losses and feature imitation ($L_{imitation}$), effectively "inheriting" the Teacher's expertise without ever seeing a real image.

Key Technical Insights

A pivotal finding of this work is the importance of object density within the synthesized images. Unlike classification, where one image typically maps to one label, detection requires the model to distinguish between multiple co-occurring instances.

Impact of the maximum number of objects (M) per MOI on detection performance (mAP).

As shown in the experimental results, increasing the number of objects synthesized per image significantly boosts the final mAP. This confirms that "Multi-Object" impressions are far more effective for distillation than single-object images, as they better represent the complexity of real-world detection tasks.

Furthermore, the authors found that initializing MOIs with textures—which the Teacher already views as "background"—provides a more stable optimization path than starting from pure Gaussian noise.

Experimental Performance

The framework was validated across three major benchmarks:

  • KITTI: Achieved 64.2% mAP (distilling from a 73.3% mAP Teacher) without real data—a remarkable result given the Student never saw a real car or road.
  • Pascal VOC: Reached 58.6% mAP on a ResNet-34 architecture.
  • MS COCO: Demonstrated scalability on complex scenes with 41.3% mAP (at IoU 0.5).

Beyond pure distillation, the generated MOIs proved useful as data augmentation. Adding MOIs to a small 5% subset of real KITTI data improved performance by over 6%, highlighting their value as high-quality proxy data.

Conclusion

This work presents the first successful attempt at data-free knowledge distillation for object detection. By leveraging the internal "memory" of a pretrained Teacher—specifically its anchor configurations and feature representations—the MOI framework bridges the gap between classification and detection in data-constrained environments. Future work may focus on extending this to anchor-free detectors and reducing the reliance on white-box access to Teacher weights.

Summary updated

BibTeX
@inproceedings{nayak2021beyond,
  author = {Gaurav Kumar Nayak and Monish Keswani and Sharan Seshadri and Anirban Chakraborty},
  title = {{Beyond Classification: Knowledge Distillation using Multi-Object Impressions}},
  booktitle = {BMVC},
  year = {2021},
  url = {https://openreview.net/forum?id=WiEEb1gnwM},
}
Figure