Skip to main content
QUICK REVIEW

[Paper Review] P-KDGAN: Progressive Knowledge Distillation with GANs for One-class Novelty Detection

Zhiwei Zhang, Shifeng Chen|arXiv (Cornell University)|Jul 14, 2020
Anomaly Detection Techniques and ApplicationsComputer Science25 references5 citations
TL;DR

This paper proposes P-KDGAN, a progressive knowledge distillation framework that transfers knowledge from a large, pre-trained teacher GAN to a compact student GAN for one-class novelty detection. By using a novel distillation loss on intermediate features and a two-step training process—first fixed-weight knowledge transfer, then joint fine-tuning—the method achieves state-of-the-art performance while compressing model size and FLOPs by up to 700×, with only a 0.18% AUC drop on FMNIST.

ABSTRACT

One-class novelty detection is to identify anomalous instances that do not conform to the expected normal instances. In this paper, the Generative Adversarial Networks (GANs) based on encoder-decoder-encoder pipeline are used for detection and achieve state-of-the-art performance. However, deep neural networks are too over-parameterized to deploy on resource-limited devices. Therefore, Progressive Knowledge Distillation with GANs (PKDGAN) is proposed to learn compact and fast novelty detection networks. The P-KDGAN is a novel attempt to connect two standard GANs by the designed distillation loss for transferring knowledge from the teacher to the student. The progressive learning of knowledge distillation is a two-step approach that continuously improves the performance of the student GAN and achieves better performance than single step methods. In the first step, the student GAN learns the basic knowledge totally from the teacher via guiding of the pretrained teacher GAN with fixed weights. In the second step, joint fine-training is adopted for the knowledgeable teacher and student GANs to further improve the performance and stability. The experimental results on CIFAR-10, MNIST, and FMNIST show that our method improves the performance of the student GAN by 2.44%, 1.77%, and 1.73% when compressing the computation at ratios of 24.45:1, 311.11:1, and 700:1, respectively.

Motivation & Objective

  • Address the challenge of deploying large, over-parameterized GANs for one-class novelty detection on resource-limited devices.
  • Overcome the limitations of random initialization in student networks, which hinders effective knowledge transfer from teacher GANs.
  • Develop a novel distillation loss that measures similarity between intermediate representations (latent codes and reconstructed images) of teacher and student GANs.
  • Design a two-step progressive training strategy to stabilize learning and improve student network performance beyond single-step distillation.
  • Achieve high detection accuracy with significantly reduced computational and parameter costs for real-world deployment.

Proposed method

  • Propose a distillation loss $K_l = w_1K_1 + w_xK_x + w_2K_2$ that compares intermediate features: $K_1$ and $K_2$ measure differences in latent vectors $z_1, z_2$ and $\hat{z}_1, \hat{z}_2$, while $K_x$ compares reconstructed images $\hat{x}$ and $\widetilde{x}$.
  • Introduce four distinct distillation structures (KDGAN-1 to KDGAN-4) that vary in whether the teacher’s weights are frozen and whether the distillation loss is combined with student GAN’s generator and discriminator losses.
  • Implement a two-step progressive training process: first, train the student GAN with fixed teacher weights using the distillation loss; second, jointly fine-tune both teacher and student networks.
  • Use a standard encoder-decoder-encoder GAN architecture for both teacher and student, with losses for reconstruction ($S_{con}$), latent space consistency ($S_{enc}$), and adversarial training ($S_{adv}$).
  • Apply the distillation loss in combination with standard GAN losses ($L_g^S, L_d^S$ for student and $L_g^T, L_d^T$ for teacher) to guide student learning.
  • Optimize hyperparameters $w_{con}, w_{enc}, w_{adv}$ and $w_1, w_x, w_2$ via manual tuning, setting them to 10, 1, 1 and 1, respectively, for stable training.

Experimental results

Research questions

  • RQ1Can a distillation loss based on intermediate representations (latent codes and reconstructed images) effectively transfer knowledge from a teacher GAN to a student GAN in one-class novelty detection?
  • RQ2Does a two-step progressive training strategy—first knowledge transfer with fixed teacher weights, then joint fine-tuning—improve student performance and training stability compared to single-step distillation?
  • RQ3Can a student GAN trained from random initialization achieve performance comparable to a teacher GAN when using the proposed distillation framework?
  • RQ4To what extent can the proposed P-KDGAN method compress model size and FLOPs while maintaining high detection accuracy on benchmark datasets?
  • RQ5How does the performance of the student GAN trained via P-KDGAN compare to state-of-the-art methods in terms of AUC across CIFAR-10, MNIST, and FMNIST?

Key findings

  • P-KDGAN-II-2-3 achieves the best performance across all datasets, outperforming the best single-step distillation method (KDGAN-3) on MNIST and FMNIST, and KDGAN-4 on CIFAR-10.
  • The student GAN trained via P-KDGAN achieves an AUC of 0.7305 on CIFAR-10, a 2.44% improvement over the baseline student GAN, with a 24.45× reduction in FLOPs.
  • On MNIST, P-KDGAN improves student AUC by 1.77% (to 0.9725) while compressing the model by 311.11× in FLOPs and 52.22× in parameters.
  • On FMNIST, P-KDGAN achieves a 1.73% AUC gain (to 0.9293) with a 700× reduction in FLOPs and 105.45× in parameters.
  • The final student model trained with P-KDGAN has only 0.18% lower AUC than the teacher on FMNIST, demonstrating minimal performance drop despite extreme compression.
  • Training curves show that P-KDGAN reduces training shock and enables the student network to surpass the teacher in AUC on some datasets, confirming the effectiveness of progressive learning.

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.