EigenGAN: Layer-Wise Eigen-Learning for GANs

Zhenliang He, Meina Kan, Shiguang Shan

Overview

EigenGAN introduces a novel architecture that embeds interpretability directly into the generative process of Generative Adversarial Networks (GANs). By incorporating linear subspaces into each generator layer, the model unsupervisedly learns "eigen-dimensions"—controllable axes representing semantic attributes such as pose, gender, or color—organized hierarchically across different levels of abstraction.

The Interpretability Gap in GANs

While GANs excel at synthesizing high-fidelity images, they typically function as "black boxes." Standard architectures lack direct mechanisms to control specific semantic attributes during generation. Although convolutional layers are known to handle different levels of detail (structure in deeper layers, texture in shallower ones), manipulating these features usually requires post-hoc analysis. Existing methods often rely on external algorithms like PCA or supervised classifiers to identify latent controls after training. EigenGAN addresses this by making interpretability a fundamental part of the generator's learning objective.

Methodology: Layer-Wise Subspace Learning

The core innovation of EigenGAN is the Layer-Wise Subspace Model. Instead of standard feature map transformations, the generator embeds a linear subspace with an orthogonal basis into every layer.

The mechanism consists of:

  • Orthonormal Basis ($U_i$): Each layer possesses a set of "eigen-dimensions." Orthogonality encourages the disentanglement of attributes, preventing overlap between distinct concepts like "pose" and "gender."
  • Importance Matrix ($L_i$): A diagonal matrix that learns the relative significance of each dimension for a specific layer's semantics.
  • Latent Coordinates ($z_i$): User-provided coordinates that allow for explicit navigation along the learned eigen-dimensions.

Mathematically, the authors demonstrate that in a linear case, this algorithm effectively derives the principal components of the data, establishing a theoretical link between GANs and hierarchical Principal Component Analysis (PCA).

Hierarchical attribute control in anime portraits. Deeper layers control structure and pose, while shallower layers manage color and lighting.

Experimental Evaluation

EigenGAN was evaluated on three diverse datasets:

  1. CelebA: 200,000 celebrity images used to verify if unsupervisedly learned dimensions align with human-labeled attributes.
  2. FFHQ: 70,000 high-quality human faces.
  3. Danbooru2019 Portraits: Over 300,000 anime character faces.

Key Results and Interpretability

The model naturally organizes attributes into a semantic hierarchy. Deeper layers (early in the generation) discover high-level concepts like face shape and pose, while shallower layers (near the output) handle low-level details like hue and background.

Unsupervised Attribute Discovery

EigenGAN identifies complex attributes like "smiling" or "eyeglasses" without any supervision. By traversing the learned eigen-dimensions, these attributes emerge naturally from the data distribution. Quantitative analysis on CelebA showed high correlations between learned dimensions and real attributes, such as an 89% correlation with Gender and an 81% correlation with Smiling.

Attribute traversals across human and anime datasets. The model demonstrates smooth control over gender, hair color, skin tone, and artistic style.

Comparison with State-of-the-Art

Compared to post-processing methods like SeFa and GLD, EigenGAN produces more natural transitions. It avoids common artifacts, such as unintended skin tone shifts when modifying hair color, due to the inherent disentanglement provided by the orthogonal subspace basis.

Discussion and Future Directions

While EigenGAN significantly advances GAN interpretability, some limitations remain. In very deep layers, complex attributes like "gender" and "pose" can occasionally become entangled if the network perceives them as a single high-level composition. Additionally, rare attributes (e.g., specific accessories) may not receive dedicated eigen-dimensions if they lack sufficient representation in the training data. Future work may involve combining layer-wise learning with advanced disentanglement techniques to further refine control.

Summary updated

BibTeX
@inproceedings{he2021eigengan,
  author = {Zhenliang He and Meina Kan and Shiguang Shan},
  title = {{EigenGAN: Layer-Wise Eigen-Learning for GANs}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01414},
}
Figure