Introduction
Generative Adversarial Networks (GANs) have revolutionized image synthesis but at a significant computational cost. Their high parameter counts and memory requirements often preclude deployment on resource-constrained edge devices. Traditional approaches to mitigating this involve model compression—specifically pruning or distillation. However, these methods typically follow a "dense-to-sparse" paradigm: a large, dense model is trained to convergence before being pruned. This process is inherently inefficient, consuming vast amounts of compute and energy to build a model that is ultimately discarded.
Training sparse GANs from scratch (sparse-to-sparse) has historically been difficult due to training instability. If the generator is too sparse, it lacks the capacity to challenge the discriminator, leading to a collapse of the adversarial minimax game. This paper introduces STU-GAN (Sparse Training Unbalanced GAN), a method that enables efficient end-to-end sparse training by dynamically managing parameter connectivity.
The STU-GAN Framework
STU-GAN moves away from static sparsity, where connections are fixed at initialization, in favor of Dynamic Sparsity. This approach allows the network to "re-wire" itself during the training process, exploring the parameter space to find optimal sparse structures.
The framework relies on three core innovations:
- Sparse Initialization (ERK): Rather than uniform pruning, STU-GAN utilizes the Erdős-Rényi-Kernel (ERK) method. ERK allocates more parameters to smaller, bottleneck layers while enforcing higher sparsity in larger layers, preserving critical information flow.
- Prune-and-Redistribute: Periodically during training, the model identifies and prunes weights with the lowest magnitudes. Simultaneously, it "grows" new connections in regions with high gradients. This exploration phase ensures the sparse generator can adapt its connectivity to better capture the underlying data distribution.
- Sparse Exponential Moving Average (SEMA): Standard EMA is essential for stabilizing GAN training but fails in dynamic sparse settings because newly grown weights lack a history. SEMA addresses this by properly initializing new weights, preventing them from being prematurely suppressed by the averaging process.
Experimental Evaluation
The authors evaluated STU-GAN across diverse architectures and datasets to demonstrate its robustness:
- CIFAR-10 (32x32): Used for baseline comparisons with SNGAN and BigGAN.
- ImageNet (128x128): A large-scale benchmark to test the scalability of sparse BigGAN.
- FFHQ: High-resolution human faces used to evaluate the performance of StyleGAN2 under sparse constraints.
Results and Discussion
The experimental results demonstrate that STU-GAN matches or exceeds the performance of dense counterparts while significantly reducing training overhead.
- Performance Parity: On CIFAR-10, STU-GAN achieved a Fréchet Inception Distance (FID) superior to the dense BigGAN baseline while utilizing only 20-30% of the original parameters.
- Computational Efficiency: For SNGAN, the method yielded a reduction in training FLOPs (Floating Point Operations) ranging from 75% to 84%.
- Unbalanced Sparsity Advantage: A key insight is the benefit of "unbalanced" training. The authors found that a very sparse generator (e.g., 80% sparse) competing against a moderately sparse discriminator (e.g., 70% sparse) maintains the necessary adversarial tension for effective learning.
- Comparison with LTH: STU-GAN outperformed the Lottery Ticket Hypothesis (LTH) approach. While LTH identifies "winning tickets" through expensive iterative pruning, STU-GAN finds effective sparse sub-networks in a single training pass.
Conclusion
STU-GAN proves that dense pre-training is not a prerequisite for high-quality GAN synthesis. By leveraging dynamic sparsity and unbalanced architectures, it is possible to train generative models with a fraction of the traditional compute budget.
While the theoretical FLOP reductions are substantial, the authors note that current hardware—optimized for dense matrix operations—may not yet realize the full speedup potential of unstructured sparsity. Future research into structured sparsity (removing entire channels or blocks) and the application of these techniques to Diffusion Models represents a promising path forward for sustainable AI.
Summary updated