Sparse Generative Adversarial Network

Shahin Mahdizadehaghdam, Ashkan Panahi, Hamid Krim

Introduction

Generative Adversarial Networks (GANs) have revolutionized image synthesis but continue to face significant hurdles: mode collapse and the complexity of scale. Mode collapse occurs when a generator produces a limited variety of outputs to fool the discriminator, failing to represent the true diversity of the training data. Furthermore, modeling the high-dimensional manifold of full-sized images is computationally intensive, often resulting in outputs that lack fine-grained detail.

The Sparse Generative Adversarial Network (Sparse GAN) addresses these issues by decomposing image generation into smaller, sparse components. By generating images as a collection of sparse patches and introducing a "reconstructor" to enforce injectivity, Sparse GAN significantly reduces mode collapse and improves synthesis quality.

Methodology

Sparse GAN introduces two primary architectural innovations to the standard GAN framework.

The Sparse Generator

Instead of synthesizing a full image in one step, the Sparse Generator focuses on patch-based synthesis. This process begins with Dictionary Learning, where a set of "atoms"—fundamental visual building blocks—is extracted from the training data. The generator then outputs a sparse coefficient vector for individual patches. These coefficients weight the dictionary atoms, which are then tiled to form the final image. This approach restricts the generator to a "Union of Subspaces" (UoS) model, ensuring the output adheres to the structural "language" of real image features.

The Reconstructor

To combat mode collapse, the authors introduce a third player: the Reconstructor (or Encoder). This component creates a bidirectional mapping between the latent space and the image space.

Architecture of the Sparse GAN showing the patch-based generator and the reconstructor mapping between embeddings and images.

The Reconstructor serves two critical functions:

  1. Ensuring Injectivity: It attempts to map generated images back to their original noise vectors ($z$). Successful reconstruction proves the generator is not collapsing multiple inputs into a single output.
  2. Ensuring Coverage: By training on real images, it ensures that the entire dataset is represented within the generator's latent space.

Experimental Results

The model was evaluated on the CIFAR-10 and CelebA datasets. Quantitative performance was measured using the Inception Score (IS), which tracks both image quality and diversity.

On CIFAR-10, Sparse GAN achieved an Inception Score of 6.6, a notable improvement over the baseline WGAN's 5.76. When integrated with ResNet architectures, Sparse GAN continued to outperform Improved WGAN (WGAN-GP), reaching a score of 7.95 compared to 7.86.

Qualitative comparison of generated images on CIFAR-10, showing SPGAN (top) vs. WGAN (middle).

Qualitatively, results on the CelebA dataset demonstrated that Sparse GAN produces sharper facial features with fewer blurry artifacts than traditional GANs. The structural constraints imposed by the dictionary act as a regularizer, preventing the generation of unrealistic pixel combinations.

Discussion and Limitations

The success of Sparse GAN lies in its "divide and conquer" strategy. By focusing on patches, the model avoids the curse of dimensionality associated with full-scale image distributions. However, the approach has limitations. Performance is heavily dependent on the quality of the pre-trained dictionary. Additionally, patch-based methods can occasionally introduce "blocking" artifacts at patch boundaries, though overlapping and averaging can mitigate this. Future research may explore how this sparse representation scales to high-definition synthesis, where its computational efficiency could offer even greater advantages.

Summary updated

BibTeX
@inproceedings{mahdizadehaghdam2019sparse,
  author = {Shahin Mahdizadehaghdam and Ashkan Panahi and Hamid Krim},
  title = {{Sparse Generative Adversarial Network}},
  booktitle = {Workshops @ ICCV},
  year = {2019},
  doi = {10.1109/iccvw.2019.00369},
}
Figure