NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adversarial Network Compression

Vasileios Belagiannis, Azade Farshad, Fabio Galasso

Abstract

Deep learning models often suffer from high computational costs, limiting their deployment on resource-constrained devices. This paper introduces Adversarial Network Compression, a framework that leverages Generative Adversarial Network (GAN) principles to transfer knowledge from a large "teacher" model to a compact "student" model. By training the student to produce internal features indistinguishable from the teacher's via a discriminator, the method achieves state-of-the-art compression results without requiring ground-truth labels during the student's training phase.

Introduction

Modern deep learning architectures like ResNet or VGG achieve high accuracy at the cost of massive computational and memory requirements. While Knowledge Distillation (KD) is a common approach for model compression, standard KD often fails to capture the complex internal representations of deep models. This work addresses the performance gap between heavy-duty and lightweight models by forcing their internal feature distributions to align through an adversarial training process.

Methods

The proposed framework consists of a "two-player game" involving three primary components: a fixed Teacher, a trainable Student, and a trainable Discriminator.

The Training Process

  1. Adversarial Loss: The student is trained to generate features that the discriminator cannot distinguish from the teacher's. The authors found that aligning intermediate features is more effective than aligning final logits due to the higher dimensionality and richer information content of internal layers.
  2. Data Loss ($L_2$): To ensure class-specific accuracy, an $L_2$ loss minimizes the distance between the teacher’s and student’s final outputs.
  3. Discriminator Regularization: To prevent the discriminator from overpowering the student too early, the authors introduce "adversarial samples"—student samples labeled as teacher samples—to maintain a balanced competition throughout training.

Notably, this process is label-free; the student relies solely on the teacher's guidance and input images.

Datasets and Evaluation

The framework was evaluated across five computer vision benchmarks: CIFAR-10, CIFAR-100, SVHN, Fashion-MNIST, and ImageNet (2012). These datasets range from small-scale classification to large-scale recognition tasks.

Key Insights

  • Feature Alignment vs. Logit Matching: Internal features provide a more challenging and informative signal for the discriminator than final logits, leading to better student performance.
  • Surpassing Supervised Baselines: Students trained via adversarial compression frequently outperform the same architectures trained directly on ground-truth labels. This suggests that the teacher provides a "smoother" learning signal than hard labels.
  • Unlabeled Compression: The method enables model compression using large sets of unlabeled data, provided a pre-trained teacher is available.

Results

On CIFAR-10, a ResNet-20 student achieved an error of 8.08%, surpassing both supervised training (8.58%) and traditional distillation (8.88%). On ImageNet, a ResNet-50 student trained by a ResNet-152 teacher achieved a Top-1 error of 27.48%, significantly better than the standard supervised ResNet-50 (30.30%) and specialized architectures like MobileNets (29.27%). Overall, student models achieved up to 10x parameter reduction and 9x fewer FLOPs with minimal accuracy loss.

Limitations and Future Work

The method's success depends on the quality of the teacher model, as the student may inherit its biases. Additionally, the training process is more computationally intensive than standard distillation due to the simultaneous training of a discriminator. Future research will explore the applicability of adversarial alignment to more complex tasks like object detection and semantic segmentation.

Summary updated

BibTeX
@inproceedings{belagiannis2018adversarial,
  author = {Vasileios Belagiannis and Azade Farshad and Fabio Galasso},
  title = {{Adversarial Network Compression}},
  booktitle = {Workshops @ ECCV},
  year = {2018},
  doi = {10.1007/978-3-030-11018-5\_37},
}
Figure