TL;DR
While interpreting unconditional GANs (like StyleGAN) is well-studied, class-conditional GANs have largely remained black boxes. This paper introduces channel awareness—an unsupervised metric derived directly from class-conditional batch normalization (CCBN) parameters—to quantify how individual feature channels contribute to specific categories or shared representations. This metric unlocks several novel applications without retraining: single-channel image editing, cross-category hybridization, unsupervised semantic part segmentation, and metric-free synthesis performance evaluation.
What Problem Does This Paper Address?
Class-conditional GANs (e.g., BigGAN) unify hundreds or thousands of distinct visual classes within a single network. However, existing interpretability techniques almost exclusively target unconditional generative models or focus on latent $z$-space trajectories, leaving it unclear how conditional generators organize class information.
The authors investigate how class-conditional batch normalization (CCBN) routes categorical information. Specifically, they aim to understand which channels are category-specific, which are shared across categories, and how these internal representations can be leveraged for downstream manipulation.
Methods
The authors analyze the mathematical interaction between CCBN and the subsequent ReLU activation:
$$\mathbf{y}^c = \gamma_e^c \mathbf{x}^c + \beta_e^c$$
Where $\mathbf{x}^c$ is the normalized feature map for channel $c$, and $\gamma_e^c, \beta_e^c$ are learned scale and shift parameters conditioned on both latent code $\mathbf{z}$ and class embedding $\mathbf{e}$.
Because ReLU clamps negative values to zero ($\mathbf{y}^c \le 0$), an input value $\mathbf{x}^c$ passes through only if it exceeds a threshold: $$t_e^c = -\frac{\beta_e^c}{\gamma_e^c}$$
The authors define $t_e^c$ as the channel probe and derive two key awareness statistics over sampled latent vectors $\mathbf{z}$:
- Category-Oriented Channel Awareness ($-\mathbb{E}_{\mathbf{z}}[t_e^c]$): Lower average thresholds mean more information passes through for class $e$. Channels with the highest awareness are primary drivers of class-specific semantics.
- Latent-Oriented Channel Awareness ($\text{Var}_{\mathbf{z}}(t_e^c)$): Measures sensitivity to the latent code independent of class. High-variance channels capture class-agnostic semantics (e.g., zoom, lighting, scene layout).
- Total Channel Awareness ($a_e = \sum_c |\mathbb{E}_{\mathbf{z}}[t_e^c]|$): Sums category-specific channel activation/suppression across all layers to gauge overall network conviction for class $e$.
Datasets
- ImageNet (ILSVRC 2012): Used to evaluate pre-trained BigGAN and BigGAN-Deep generators synthesizing 1,000 diverse categories at $256 \times 256$ resolution.
- Evaluation leverages pre-trained Inception-v3 and VGG-16 classifiers/feature extractors for validation metrics; no new datasets or ground-truth annotations are introduced.
Key Insights and Ideas
- Sparsity in Category Representation: Only a small subset of channels actively dictates the generation of any given class, while many channels remain effectively suppressed.
- Semantic Overlap Follows Taxonomy: Semantically related classes (e.g., different dog breeds) share a significant fraction of their top active channels, whereas distant categories (e.g., dogs vs. vehicles) have virtually zero overlap.
- Universal Shared Channels: Selecting just the top 10 latent-oriented channels per class reveals channels that are shared across all 1,000 ImageNet categories. These universal channels govern global attributes like background vegetation, zoom, or daylight.
- Channel Swapping Creates Hybrids: Transplanting top-awareness channels from a reference category into an input category's feature maps (and feeding the reference embedding to later layers) achieves realistic, unnatural hybridizations (e.g., dog-cat or bird-stork blends) that outperform standard style mixing.
Key Results
- Validation of Channel Importance: Masking top category-oriented channels caused dramatic drops in classifier confidence, with an average correlation between channel awareness and classification score drops of 0.503 for BigGAN and 0.603 for BigGAN-Deep across all 1,000 ImageNet classes.
- Speed: Computing channel awareness is closed-form and extremely lightweight—taking only 0.0012 seconds on average per layer on an NVIDIA Tesla V100 GPU.
- Synthesis Quality Prediction: Total channel awareness strongly predicts category synthesis behavior without running standard sample-comparison pipelines:
- Positively correlated with Precision ($r = 0.714$) and MS-SSIM ($r = 0.899$).
- Negatively correlated with Recall ($r = -0.792$) and FID ($r = -0.798$).
- Implication: High total awareness classes exhibit high fidelity/realism but lower intra-class sample diversity.
- Unsupervised Part Segmentation: Weighting generator feature maps with channel awareness before $K$-means clustering yielded noticeably crisper object-part masks across various categories.
Limitations and Future Work
- Architecture Specificity: The formulation assumes CCBN followed directly by ReLU activations. Adapting this formulation to architectures using Leaky ReLU or style modulation (e.g., StyleGAN-XL) requires further investigation.
- Diagnostic Focus: The work focuses on inspecting and repurposing existing pre-trained models; the authors do not integrate channel awareness directly into GAN training objectives to improve representation learning.
Summary updated