Spider GAN: Leveraging Friendly Neighbors to Accelerate GAN Training

Siddarth Asokan, Chandra Sekhar Seelamantula

Training Generative Adversarial Networks (GANs) remains one of the most computationally intensive tasks in deep learning. Traditionally, a generator is tasked with transforming a high-entropy, unstructured latent vector (typically Gaussian noise) into a complex, low-entropy image manifold. This "noise-to-image" paradigm requires the model to learn both the fundamental structure of images and the specific distribution of the target dataset from scratch, often leading to slow convergence and instability.

In the paper "Spider GAN: Leveraging Friendly Neighbors to Accelerate GAN Training," researchers from the Indian Institute of Science propose a paradigm shift. Instead of starting with chaos, Spider GAN leverages the inherent structure of existing image datasets—termed "friendly neighbors"—to provide a more informative starting point for the generator.

The Spider GAN Framework

The core intuition behind Spider GAN is that mapping one structured manifold to another is mathematically simpler than mapping a cloud of random noise to a structured manifold. In a standard GAN, the generator $G$ maps $z \sim \mathcal{N}(0, I)$ to the target distribution. In contrast, Spider GAN replaces $z$ with samples from a source dataset $X_{source}$.

Conceptual comparison between classical GANs and Spider GAN. Classical GANs map from a high-entropy sphere of noise, while Spider GAN maps from a structured source manifold to a target manifold.

This approach does not require paired data or explicit supervision. The generator simply uses the low-entropy features of the source images as a "structural prior." For example, the verticality of a "Trouser" image in Fashion-MNIST can serve as a natural precursor for generating the digit "1" in MNIST. This structural alignment allows the model to bypass the initial stages of learning basic geometric primitives, focusing instead on the nuances of the target distribution.

Identifying "Friendly Neighbors" with SID

A critical challenge in this framework is selecting an appropriate source dataset. Not all datasets are equally helpful; a source that is too simple may lack the diversity to cover the target manifold, while one that is too disparate may hinder learning.

To address this, the authors introduced the Signed Inception Distance (SID). Unlike the standard Fréchet Inception Distance (FID), which provides a symmetric measure of distance between distributions, SID is asymmetric and "signed." Drawing inspiration from electrostatic potential theory, SID treats data points as charged particles. A negative SID value suggests that the source dataset is less diverse than the target, signaling a potential risk of mode collapse. By using SID alongside traditional metrics, researchers can quantitatively identify which "neighbor" is most likely to accelerate training for a specific target.

Accelerating Convergence

The most striking result of the Spider GAN framework is the significant reduction in training time. By starting with structured inputs, the generator reaches high-quality outputs much faster than its noise-based counterparts.

FID vs. training iterations for various input distributions across MNIST, CIFAR-10, and Ukiyo-E datasets. Spider GAN variants (Neighbors) converge significantly faster than Gaussian noise baselines.

Empirical evaluations across benchmarks like MetFaces, AFHQ-Cats, and FFHQ demonstrate that Spider GAN can achieve state-of-the-art FID scores in approximately one-fifth of the training iterations required by standard StyleGAN2 or StyleGAN3 baselines. On the MetFaces dataset, for instance, a Spider-StyleGAN2 model achieved an FID of 15.60, outperforming the StyleGAN2-ADA baseline (18.75) while using 80% less compute.

Conclusion and Future Directions

Spider GAN demonstrates that the "blank slate" approach to GAN training is often inefficient. By repurposing the structural information already present in existing datasets, we can drastically reduce the environmental and financial costs of training generative models.

While the current implementation requires the selection of a source dataset, the authors' "Cascading" approach—where the output of one GAN serves as the input for the next—points toward a future of modular, hierarchical generative modeling. Future work aims to automate the selection of "friendly neighbors" and extend the framework to even larger, class-conditional models and VQGAN architectures.

Summary updated

BibTeX
@inproceedings{asokan2023spider,
  author = {Siddarth Asokan and Chandra Sekhar Seelamantula},
  title = {{Spider GAN: Leveraging Friendly Neighbors to Accelerate GAN Training}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure