TL;DR
This paper introduces a novel "multi-stage patch-based training" method to significantly reduce the GPU memory requirements for training Implicit Neural Representation (INR)-based Generative Adversarial Networks (GANs). By training on small image patches in a progressive, coarse-to-fine manner, their approach achieves comparable image quality to existing methods while drastically cutting down on computational costs.
What Problem Does This Paper Address?
Generative Adversarial Networks (GANs) have revolutionized realistic image synthesis. A recent advancement involves using Implicit Neural Representations (INRs) – essentially MLPs that map 2D coordinates to RGB values – to represent images as continuous signals. This approach unlocks exciting capabilities like zero-shot super-resolution and image extrapolation. However, a major hurdle is the immense computational cost associated with training these INR-based GANs. Unlike traditional GANs that process images as pixel grids, INR-based GANs require an MLP inference for every single pixel coordinate to generate an image. This scales poorly with resolution, demanding significantly more GPU memory than standard GANs, making them impractical for many researchers.
Methods
The core innovation is a multi-stage patch-based training strategy. Instead of generating entire high-resolution images for the discriminator, the proposed method generates and discriminates smaller image patches. This immediately reduces the computational load.
To overcome the limitation that patch-based training alone can lead to a loss of global structure, the authors introduce two key components:
- Sparse-to-Dense Coordinate Sampling: The training progresses through stages. In the initial stage, coordinates are sampled sparsely across the image to capture coarse global information. In subsequent stages, the sampling becomes progressively denser, focusing on finer details.
- Patch Regularization: A novel loss function is introduced to ensure consistency between patches generated in later stages and the corresponding regions in images generated in previous stages. This "patch regularization" acts as a bridge, transferring learned global structural knowledge from earlier stages to the later, detail-focused stages. This is achieved by resizing the generated patch from the current stage and comparing it to a cropped region from the previous stage's output.
The generators are initialized with weights from the previous stage, facilitating a "coarse-to-fine" learning process.
Datasets
The authors evaluate their method on several standard benchmark datasets:
- FFHQ (Flickr-Faces-HQ)
- LSUN Church
- AFHQ (Animal Faces-HQ)
Key Insights and Ideas
- Patching is not enough for global structure: Simply training on patches with adversarial loss leads to globally inconsistent images. The proposed multi-stage approach with regularization is crucial for maintaining coherence.
- Coarse-to-fine learning is effective: Progressively refining the image generation from sparse, global representations to dense, local details allows the network to learn both structure and fine textures efficiently.
- Implicit Representations are Memory-Hungry: The paper clearly quantifies the significant memory overhead of INR-based GANs compared to traditional ones, highlighting the need for memory-efficient training strategies.
- Patch Regularization as a Knowledge Transfer Mechanism: The proposed loss function effectively guides the network to learn global context even when only processing local patches.
Key Results
- Significant GPU Memory Reduction: The proposed method achieves a 2.8x reduction in GPU memory usage compared to the original image-based INR-GAN (CIPS). For example, their method uses 31GB compared to 86GB for the image-based approach.
- Comparable Image Quality: Despite the memory savings, the proposed method maintains image quality comparable to or better than baseline methods, as measured by Fréchet Inception Distance (FID) scores. For FFHQ, their FID is 24.38, significantly better than the patch-based method's 41.65, and close to the original image-based method's 8.51.
- Faster Training Iterations: Because they process smaller patches, each training iteration is much faster than full-image generation, allowing for more iterations within the same training time.
Limitations and Future Work
The authors acknowledge a few limitations:
- Restrictive Patch Regularization: The current patch regularization might be overly restrictive, forcing generated patches to match previous stages too strongly.
- Potential for Improvement: Performance on specific datasets like FFHQ could potentially be further improved.
Future work could focus on developing more flexible regularization techniques to better capture global structures and exploring ways to enhance the multi-stage training for even better performance.
Summary updated