Abstract
Generative Adversarial Networks (GANs) are powerful but often lack interpretability. RPGAN (Random Path GAN) addresses this by introducing a generator architecture where randomness is derived from the specific "path" taken through a sequence of layer instances. This design enables unsupervised interpretability, revealing a natural hierarchy where layers specialize in geometry, semantics, and colorization without requiring external labels.
Introduction
While GANs have revolutionized image generation, their internal mechanisms remain largely a "black box." Traditional interpretability methods often rely on supervised auxiliary models or labeled datasets to map latent vectors to specific features. RPGAN proposes a data-agnostic alternative: Random Routing. By structuring the generator as a series of buckets containing multiple layer instances, the model's internal logic becomes visible through the paths it chooses.
The Random Routing Architecture
The core innovation of RPGAN is the replacement of a continuous noise vector with a discrete random path.
In this architecture:
- Buckets of Layers: The generator is divided into several sequential buckets ($B_1, B_2, \dots, B_n$).
- Multiple Instances: Each bucket contains multiple independent versions (instances) of the same layer type (e.g., ResNet blocks).
- Random Path Selection: To generate an image, the model uses a fixed input $Z$ and randomly selects exactly one instance from each bucket. The latent space is effectively defined by the set of all possible paths through these buckets.
- Diversity Loss: A specialized loss term ensures that instances within a single bucket do not converge to identical weights, forcing them to specialize and represent different factors of variation.
Natural Specialization and Interpretability
One of the most significant findings of RPGAN is the emergence of a natural hierarchy of responsibility across layers. By freezing all buckets except one and varying the instances within that "unfrozen" bucket, researchers observed consistent specialization:
- Early Layers: Control viewpoint, position, and basic geometry of the object.
- Intermediate Layers: Handle "semantics"—the actual content and shape of the object.
- Late Layers: Responsible for color schemes, lighting, and fine textures, acting as a final filter.
This hierarchy confirms theories from previous supervised works but proves they hold true even in a purely self-organized, unsupervised system.
Key Results and Performance
RPGAN achieves image quality comparable to standard GANs while offering unique functional advantages:
- Quality: On the CIFAR-10 benchmark, RPGAN reached a Fréchet Inception Distance (FID) of 16.9, nearly identical to the 16.75 of a standard SN-ResNet GAN.
- Efficiency: For fully-connected architectures, multiple linear layers can be collapsed into a single operation post-training, resulting in a 2.2x speedup in the generation process.
- Incremental Learning: Because the model is modular, it can learn new data (e.g., adding new digits to a model trained on MNIST) by adding instances to relevant buckets and training only those, rather than retraining the entire network.
- Path Inversion: The discrete nature of the paths makes "inversion" (finding the path that created a specific image) highly accurate, which is useful for targeted image editing.
Limitations and Future Work
Despite its advantages, RPGAN's latent space is discrete and finite, which lacks the continuous interpolation properties of standard GAN latent vectors. Additionally, training complexity increases with the number of instances per bucket. Future research may focus on applying this routing logic to other deep learning architectures beyond GANs and exploring ways to prune redundant network components for further efficiency.
Summary updated