TL;DR
MGGC (Manifold Guided GAN Compression) is a novel framework that slims down heavy image-to-image translation GANs by ensuring the pruned model preserves the "local density structure" of the original model's learned manifold. By using collaborative pruning agents that balance the capacities of the generator and discriminator, MGGC achieves state-of-the-art compression ratios—up to 95%—while often maintaining or even improving image quality.
What Problem Does This Paper Address?
Generative Adversarial Networks (GANs) are the gold standard for tasks like turning sketches into photos or swapping horses for zebras. However, they are computationally massive, making them nearly impossible to run on mobile or edge devices.
Compressing GANs is significantly harder than compressing standard CNN classifiers. In a standard CNN, you just care about accuracy; in a GAN, you are managing a delicate "adversarial game" between a generator and a discriminator. If you prune the generator too much without touching the discriminator, the balance is destroyed, the Nash Equilibrium collapses, and the model fails to converge. Furthermore, most existing methods treat GANs like simple classifiers, ignoring their most vital trait: they are generative models that learn a complex data distribution (a manifold).
Methods
The authors introduce two primary innovations to tackle these challenges:
- Local Density Preservation: Instead of just matching pixels, the authors argue that a pruned GAN should "forget" as little as possible about the original model's learned manifold. They partition this manifold into local neighborhoods. Using a self-supervised encoder (fine-tuned on the target data), they identify the $k$-nearest neighbors for generated samples. They then use a novel adversarial objective to force the pruned model to mimic the local density of the original model within these neighborhoods, similar to a technique called Kernel Density Estimation (KDE).
- Collaborative Pruning Agents: To keep the adversarial game stable, the authors use two reinforcement-learning-style agents, $gen_G$ and $gen_D$, to determine the architecture of the generator and discriminator respectively.
- Feedback Loop: As shown in Figure 1, these agents exchange "architecture embeddings." When $gen_G$ decides which parts of the generator to cut, it looks at what $gen_D$ is doing, and vice versa. This ensures the two models stay "matched" in capacity throughout the pruning process.
- Differentiable Pruning: They use the Gumbel-Sigmoid trick and Straight-Through Estimators (STE) to allow gradients to flow through the discrete choices of which neural network channels to keep or kill.
Datasets
The researchers evaluated their method on two classic image-to-image translation frameworks:
- Pix2Pix: Tested on the Cityscapes (urban scenes) and Edges2Shoes datasets.
- CycleGAN: Tested on the Horse2Zebra and Summer2Winter datasets.
Key Insights and Ideas
- The Manifold Matters: The "aha moment" here is that the geometry of the learned space is a powerful supervision signal. By focusing on local neighborhoods (Figure 2), the complex task of global manifold matching becomes a series of simpler, local density matching problems.
- Don't Prune in a Vacuum: Pruning the generator alone is a recipe for failure. The discriminator must be pruned dynamically to maintain the "fairness" of the adversarial game.
- Stability through Communication: The exchange of feedback between pruning agents leads to much smoother training dynamics. Figure 4 in the paper illustrates how the losses of the generator and discriminator stay closely coupled and stable when the manifold regularization ($\lambda_1$) is properly tuned.
Key Results
MGGC consistently outperformed state-of-the-art baselines across all metrics:
- Efficiency: On Cityscapes (Pix2Pix), MGGC reduced computational costs (MACs) by 83.60% while actually improving the mean Intersection over Union (mIoU) by 1.92 points over the original, uncompressed model.
- Extreme Compression: For CycleGAN on Horse2Zebra, it achieved a massive 95.60% compression ratio with a Frechet Inception Distance (FID) of 55.06, significantly beating the previous best method (GCC) which scored 59.31.
- Visual Fidelity: Qualitative results (Figure 3) show that MGGC-compressed models retain sharp details and faithful background colors that other pruning methods often wash out or distort.
Limitations and Future Work
While the results are impressive, the paper leaves a few stones unturned:
- Dependency on Pre-trained Encoders: The method relies on a high-quality self-supervised encoder (like SwAV) to define the manifold neighborhoods. If such a model isn't available for a specific niche domain, the performance might degrade.
- Computational Overhead of Pruning: While the final model is tiny, the pruning process itself involves training two additional agents and performing neighborhood searches, which adds to the initial training time.
- Future Directions: The authors suggest that this manifold-centric approach could be extended beyond I2I GANs to other generative architectures, potentially including the now-dominant Diffusion Models.
Summary updated