An Efficient Explorative Sampling Considering the Generative Boundaries of Deep Generative Neural Networks

Giyoung Jeon, Haedong Jeong, Jaesik Choi

Introduction

Deep Generative Neural Networks (DGNNs), such as Generative Adversarial Networks (GANs), have revolutionized our ability to synthesize hyper-realistic images from random noise vectors in a latent space. However, these models remain largely "black boxes." While we understand that moving a point in the latent space alters the output image, the internal layers' highly non-linear nature means that small linear movements can lead to unpredictable and massive changes in the generated content. This paper introduces Explorative Generative Boundary Aware Sampling (E-GBAS), a novel algorithm designed to navigate the internal logic of DGNNs by identifying the specific boundaries in latent space that trigger internal neurons.

The Challenge of Latent Space Geometry

Standard techniques for exploring a model's output often rely on $ε$-based sampling, which involves selecting points within a small hypersphere (an $ε$-ball) around a query point. The fundamental flaw in this approach is that the model's internal logic is not spherical. Instead, the latent space is partitioned into complex, non-convex "Generative Regions" by generative boundaries—the specific thresholds where internal neurons (e.g., those using ReLU activations) switch between active and inactive states.

When a sampling method crosses these boundaries, it alters the internal representation of the image, often changing core semantic attributes like identity, pose, or global structure. To achieve consistent sampling, we must identify these regions where the model's internal state remains stable.

Comparison of E-GBAS and ε-based sampling across MNIST and LSUN Church datasets, illustrating how E-GBAS maintains semantic consistency by respecting generative boundaries.

The E-GBAS Framework

E-GBAS operates on the principle of Neural Representation Sharing (NRS): if two latent vectors result in the same activation pattern (the same "signs" after a ReLU layer), they share the same internal representation. The framework consists of two primary stages:

  1. Identifying Critical Boundaries (BerOpt): A single layer in a DGNN can contain thousands of neurons, creating an astronomical number of potential boundaries. E-GBAS uses a Bernoulli dropout approach to optimize a mask, identifying the "Smallest Supporting Generative Boundary Set" (SSGBS). This process filters out minor boundaries that do not significantly impact the final image, focusing only on the essential ones that define the region's characteristics.
  2. Stochastic Exploration (GB-RRT): Once the boundaries of a Generative Region are defined, the algorithm must find samples within it. Because these regions are often oddly shaped and non-convex, the authors adapted the Rapidly-exploring Random Tree (RRT) algorithm—a standard tool in robotics path planning—to navigate the latent space while remaining strictly within the identified generative boundaries.

Experimental Results

The researchers evaluated E-GBAS on standard benchmarks including MNIST (handwritten digits), LSUN Church (high-resolution architecture), and CelebA (facial attributes).

Quantitative Consistency

In quantitative evaluations, E-GBAS produced samples with significantly higher consistency than standard methods. On the PGGAN-LSUN dataset, E-GBAS achieved a standard deviation in image space of 0.1748 at layer 6, compared to 0.4735 for traditional $L_2$-based sampling. Furthermore, samples generated via E-GBAS showed higher cosine similarity in the discriminator's feature space, indicating that the model itself perceives these samples as more semantically related.

Qualitative Superiority

Visually, the difference is stark. While $ε$-based sampling often inadvertently changes the identity of a subject or the entire composition of a scene, E-GBAS generates "variations on a theme." For instance, it can produce the same church building from slightly different perspectives or the same person with varying expressions, without altering the fundamental identity of the generated object.

Conclusion

E-GBAS provides a robust method for probing the internal architecture of generative models. By respecting the geometric constraints imposed by a network's own neurons, it allows for the efficient discovery of semantically consistent variations. Future work may extend this "boundary-aware" logic to classification models, potentially offering new insights into decision boundaries and improving robustness against adversarial attacks.

Summary updated

BibTeX
@inproceedings{jeon2020efficient,
  author = {Giyoung Jeon and Haedong Jeong and Jaesik Choi},
  title = {{An Efficient Explorative Sampling Considering the Generative Boundaries of Deep Generative Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5852},
}
Figure