Improving Generative Adversarial Networks With Local Coordinate Coding

Jiezhang Cao, Yong Guo, Qingyao Wu, Chunhua Shen, Junzhou Huang, Mingkui Tan · DOI

TL;DR

This paper introduces LCCGAN and its successor LCCGAN++, which replace the standard practice of sampling GAN inputs from generic noise (like Gaussian distributions) with a method that samples directly from a learned latent manifold. By using Local Coordinate Coding (LCC), the authors demonstrate that GANs can generate higher-quality, more semantically meaningful images using significantly lower-dimensional inputs while providing rigorous theoretical bounds on generalization.

What Problem Does This Paper Address?

Most Generative Adversarial Networks (GANs) rely on a "global coordinate system." They take random noise from a predefined distribution—usually a high-dimensional Gaussian—and try to map it to complex data like images.

The authors identify three major flaws in this approach:

  1. Semantic Disconnect: Generic noise is independent of the actual data distribution. This often leads to "meaningless" samples or distorted structures because the generator hasn't captured the underlying geometry of the data.
  2. Local Geometry Neglect: Global systems fail to exploit the local information of the data manifold.
  3. The Dimensionality Mystery: It has historically been unclear how the dimension of the latent space affects a GAN's ability to generalize. Researchers often just guess a high number (like $d=100$) and hope for the best.

Methods

The authors propose a framework that moves from global noise to Local Coordinate Coding (LCC). The process follows three main steps:

  1. Manifold Learning: They first use an autoencoder to learn embeddings of real data, effectively mapping the "latent manifold" where the data lives.
  2. Local Basis Construction: Instead of a global grid, they learn a set of "anchor points" (local bases) on this manifold. Any point on the manifold can then be approximated as a linear combination of its nearby bases.
  3. LCC Sampling: To generate a new image, they sample a point on the manifold by picking a local neighborhood and using LCC to interpolate between bases.

LCCGAN vs. LCCGAN++: While the original LCCGAN uses a linear approximation for the generator, LCCGAN++ introduces a higher-order Taylor expansion term (incorporating gradient directions). This allows for a much more accurate approximation of the generator function, leading to more stable training and sharper images.

Datasets

The researchers evaluated their models on several standard computer vision benchmarks:

  • MNIST: Handwritten digits.
  • Oxford-102: A dataset of flower categories.
  • LSUN (Bedroom & Classroom): Large-scale scene understanding.
  • CelebA: Professional celebrity face images.
  • ImageNet: Specifically the "Promontory" and "Volcano" categories for unconditional generation.

Key Insights and Ideas

  • The Manifold Assumption: The core "aha" moment is treating the latent space as a geometric surface rather than a cloud of noise. By sampling locally, the model stays "on the manifold," ensuring the generated content remains semantically consistent.
  • Efficiency of Low Dimensions: The paper theoretically proves that a low-dimensional input is sufficient for good generalization. In practice, they show that LCCGAN++ with just $d=5$ can outperform standard DCGANs using $d=100$.
  • Theoretical Rigor: Unlike many empirical GAN papers, this work derives a generalization bound based on Rademacher complexity. It links the error of the GAN to the intrinsic dimensionality of the latent manifold, providing a mathematical justification for why their sampling method works.

Key Results

The quantitative results show a clear lead over baselines like DCGAN, WGAN-GP, and StackGAN:

  • Oxford-102: On the flowers dataset, LCCGAN++ achieved an Inception Score (IS) of 3.267 and a FID of 71.0 with only $d=5$. For comparison, DCGAN with $d=100$ only managed an IS of 2.683 and a much worse FID of 182.2.
  • CelebA: At $d=30$, LCCGAN++ produced face images with significantly higher visual fidelity and diversity (FID of 29.2) compared to Progressive GAN (FID of 52.8).
  • High-Resolution Scalability: The method scales well to 256x256 resolutions, maintaining sharp details even when the input dimensionality is kept low.

Limitations and Future Work

  • Computational Overhead: The authors note that training 1,000 separate models for every category in ImageNet is currently "infeasible and impractical," suggesting that scaling to massive, highly diverse datasets remains a challenge.
  • Multi-stage Training: The current best results come from a multiple-stage training strategy (Autoencoder -> LCC -> GAN). While they tested an end-to-end version, it performed slightly worse because the bases became less accurate when trying to satisfy multiple objectives simultaneously. Improving the stability of end-to-end LCC-GAN training is a clear path for future research.

Summary updated

BibTeX
@article{cao2022improving,
  author = {Jiezhang Cao and Yong Guo and Qingyao Wu and Chunhua Shen and Junzhou Huang and Mingkui Tan},
  title = {{Improving Generative Adversarial Networks With Local Coordinate Coding}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  doi = {10.1109/tpami.2020.3012096},
}
Figure