Interpretable Generative Adversarial Networks

Chao Li, Kelu Yao, Jin Wang, Boyu Diao, Yongjun Xu, Quanshi Zhang

Abstract

Generative Adversarial Networks (GANs) have achieved remarkable success in image synthesis but remain largely uninterpretable "black boxes." This paper introduces a generic framework to transform standard GANs into Interpretable GANs. By enforcing filters in the generator's intermediate layers to encode specific, disentangled visual concepts—such as eyes, noses, or hair—the researchers enable precise, localized image editing without requiring manual part annotations during training. The framework utilizes a Gaussian Mixture Model (GMM) for filter grouping and an Energy-Based Model (EBM) to maintain image realism, achieving state-of-the-art performance in surgical part swapping and identity preservation.

The Challenge of Localized Disentanglement

While GANs represent complex information in their latent spaces, pinpointing which specific neurons or filters are responsible for individual features remains difficult. Existing research into "disentanglement" typically focuses on global attributes like age or gender. This paper addresses the challenge of localized disentanglement: ensuring that specific filters in the generator correspond to specific physical parts of an object.

Comparison between interpretable GAN filters (left) which map to specific facial parts, and traditional GAN filters (right) which exhibit scattered activations.

Solving this allows for "symbolic" manipulation—editing one part of an image (e.g., swapping a nose) without unintentionally altering the rest of the generated scene.

Methodology

The proposed framework modifies the training of traditional GANs (such as BigGAN or StyleGAN) by adding interpretability constraints to target convolutional layers.

  1. Filter Grouping via GMM: The authors assume visual concepts are represented by groups of filters. A Gaussian Mixture Model (GMM) automatically partitions filters into $C$ groups based on activation patterns across images.
  2. Interpretability Loss ($L_{interp}$): This novel loss function encourages filters within the same group to activate in the same spatial regions (the "receptive field" of a concept) while pushing different groups to separate regions.
  3. Energy-Based Model (EBM) for Realism: To prevent interpretability constraints from degrading image quality, an EBM evaluates the realism of feature maps, ensuring specialized filters still produce high-quality outputs.
  4. Langevin Dynamics: During inference, iterative sampling via Langevin dynamics is used to refine latent vectors, further improving the realism of images after parts have been modified.

Key Results and Evaluation

The framework was evaluated on the FFHQ and CelebA-HQ benchmarks. The model successfully discovered "parts" (eyes, chin, forehead) entirely through unsupervised learning, without needing labeled part annotations.

Demonstration of the proposed method's ability to perform localized part replacement (e.g., mouth shape) compared to other attribute manipulation techniques.

Quantitative Performance

  • Locality Metric: The method achieved significantly lower scores (0.01–0.06) compared to baselines (0.18–1.36), proving that edits are "surgical" and do not bleed into unrelated areas.
  • Human Evaluation: In user studies, volunteers correctly identified swapped parts with an 80-92% success rate, vastly outperforming baseline methods like "Editing in Style" (34-37%).
  • Identity Preservation: When swapping entire faces, the method achieved a face verification accuracy of 90.25%, outperforming specialized algorithms like SimSwap.

Discussion and Limitations

A key insight of this work is the "Interpretability-Quality Trade-off." While adding constraints can hurt raw performance (measured by FID), the use of EBM refinement and Langevin dynamics allows the model to maintain interpretability while recovering image realism.

Current limitations include resolution constraints (tested up to $128 \times 128$) and a slight increase in FID compared to unconstrained GANs. Future work may involve extending this framework to other generative architectures, such as Diffusion models or Variational Autoencoders (VAEs), to achieve similar localized control in broader contexts.

Summary updated

BibTeX
@inproceedings{li2022interpretable,
  author = {Chao Li and Kelu Yao and Jin Wang and Boyu Diao and Yongjun Xu and Quanshi Zhang},
  title = {{Interpretable Generative Adversarial Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i2.20015},
}
Figure