[Paper Review] Is Discriminator a Good Feature Extractor?
This paper investigates whether the discriminator in Generative Adversarial Networks (GANs) serves as a good feature extractor for transfer learning. Using linear algebraic analysis, it shows that the discriminator's feature quality stems not from its classification task, but from its role in preventing mode collapse during GAN training—resulting in robust, noise-robust features. The study finds that while classifier-based feature extractors generally outperform discriminator-based ones when source and target tasks are similar, the discriminator’s unique ability to suppress noise makes it irreplaceable in certain scenarios.
The discriminator from generative adversarial nets (GAN) has been used by researchers as a feature extractor in transfer learning and appeared worked well. However, there are also studies that believe this is the wrong research direction because intuitively the task of the discriminator focuses on separating the real samples from the generated ones, making features extracted in this way useless for most of the downstream tasks. To avoid this dilemma, we first conducted a thorough theoretical analysis of the relationship between the discriminator task and the features extracted. We found that the connection between the task of the discriminator and the feature is not as strong as was thought, for that the main factor restricting the feature learned by the discriminator is not the task, but is the need to prevent the entire GAN model from mode collapse during the training. From this perspective and combined with further analyses, we found that to avoid mode collapse, the features extracted by the discriminator are not guided to be different for the real samples, but divergence without noise is indeed allowed and occupies a large proportion of the feature space. This makes the features more robust and helps answer the question as to why the discriminator can succeed as a feature extractor in related research. Consequently, to expose the essence of the discriminator extractor as different from other extractors, we analyze the counterpart of the discriminator extractor, the classifier extractor that assigns the target samples to different categories. We found the performance of the discriminator extractor may be inferior to the classifier based extractor when the source classification task is similar to the target task, which is the common case, but the ability to avoid noise prevents the discriminator from being replaced by the classifier.
Motivation & Objective
- To resolve the debate on whether GAN discriminators are effective feature extractors despite their primary role in distinguishing real vs. generated samples.
- To analyze the underlying mechanism that enables discriminator features to generalize well in transfer learning, challenging the assumption that task alignment is the key factor.
- To compare discriminator-based feature extractors with classifier-based ones in terms of performance and robustness, especially under domain shift.
- To uncover the role of a specific ratio in GAN training that prevents mode collapse, contributing to foundational GAN research.
Proposed method
- Conducting a theoretical linear algebraic analysis of the relationship between the discriminator’s task and the features it learns.
- Using a shared-encoder framework to compare feature extractors from discriminators and classifiers on MNIST and CIFAR-10 datasets.
- Systematically removing shared layers between source and target networks to evaluate the impact on feature transfer performance.
- Measuring transfer accuracy under varying degrees of architectural sharing to assess feature robustness and task alignment.
- Analyzing the null space of the feature representation to identify components unaffected by task-specific noise.
- Identifying a critical ratio in GAN training that contributes to mode collapse prevention, suggesting a new training metric.
Experimental results
Research questions
- RQ1Why do discriminator-based features perform well in transfer learning despite not being explicitly trained for feature disentanglement?
- RQ2How does the discriminator’s role in preventing mode collapse influence the quality and generalization of its learned features?
- RQ3How does the performance of a discriminator-based feature extractor compare to a classifier-based one when the source and target tasks are similar?
- RQ4What is the role of noise robustness in the success of discriminator-based feature extractors, and why is it irreplaceable?
- RQ5What underlying ratio in GAN training governs mode collapse, and how might it inform better training strategies?
Key findings
- The discriminator does not guide features to be different for real samples; instead, its primary role in preventing mode collapse leads to feature representations that are robust to noise.
- In experiments on MNIST, the classifier-based extractor outperformed the discriminator-based one by up to 2.69% when all shared layers were removed, indicating superior task alignment.
- On CIFAR-10, the performance gap between classifier and discriminator extractors increased to 6.62% when two shared layers were removed, showing that the classifier-based approach generalizes better under domain shift.
- Despite being outperformed in accuracy when tasks are similar, the discriminator-based extractor maintains strong performance due to its inherent noise-robustness, which is not matched by the classifier.
- The study identifies a critical ratio in GAN training that plays a key role in preventing mode collapse, offering a new direction for improving GAN training stability.
- The null space of the feature representation captures noise-robust components, suggesting that the discriminator’s strength lies in excluding task-irrelevant variations rather than in task-specific feature learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.