Abstract
Facial Attribute Editing (FAE) at high resolutions is often hindered by significant memory requirements and inefficient feature fusion. We present CooGAN (Cooperative GAN), a novel framework designed to enable 768×768 resolution editing on memory-constrained devices. By decoupling the task into a global path for structural consistency and a local path for fine-grained patch processing, CooGAN reduces GPU memory consumption from over 6GB to less than 1GB. Our approach incorporates a Light Selective Transfer Unit (LSTU) to optimize feature fusion, achieving state-of-the-art accuracy and image fidelity.
Introduction
Facial Attribute Editing involves modifying specific facial features—such as age, gender, or hair color—while preserving the subject's identity. While successful at low resolutions, scaling to high-resolution (HR) images (e.g., 768² pixels) introduces two primary challenges:
- The Memory Wall: Standard GANs process entire images, leading to quadratic growth in memory usage for feature maps, which often exceeds the capacity of consumer-grade GPUs.
- Inefficient Feature Fusion: Traditional skip connections often "leak" original attributes, making it difficult to implement significant changes without sacrificing identity preservation.
Methods
CooGAN employs a "divide-and-combine" strategy to bypass these constraints through two interdependent paths:
- Global Path: Processes a down-sampled, low-resolution version of the face to maintain global semantic consistency and structural alignment.
- Local Path: Operates on small HR patches (e.g., 128×128), using guidance from the Global Path to ensure seamless integration. These patches are stitched together to form the final HR output.
- Light Selective Transfer Unit (LSTU): Inspired by Simple Recurrent Units (SRU), the LSTU acts as an efficient gatekeeper for skip connections. It selectively filters information, discarding complex dependencies to reduce parameters and operations (FLOPs) by 60% compared to GRU-based units.
Experimental Setup
The framework was trained and evaluated using two primary datasets: CelebA for training the Global Module and CelebA-HQ for training the Local Module and high-resolution evaluation. The study focused on 13 attributes, including gender, age, and specific features like "Pale Skin" and "Bushy Eyebrows."
Key Results
CooGAN demonstrates significant improvements in both efficiency and quality:
- Memory Efficiency: Processes 768×768 images using only 985MB of GPU memory, a nearly 85% reduction compared to the 6306MB required by previous state-of-the-art models like STGAN.
- Editing Accuracy: Achieved 84.8% accuracy on CelebA-HQ, outperforming previous baselines.
- Image Fidelity: Maintained high reconstruction quality with a PSNR of 31.3 and SSIM of 0.923.
- Qualitative Performance: The dual-path approach allows for better handling of global changes (like aging) by providing necessary context for textures across the entire face, avoiding the artifacts common in patch-only methods.
Conclusion
CooGAN successfully addresses the memory bottleneck in high-resolution facial editing. While the patch-based approach introduces a slight increase in inference time and minor challenges in boundary smoothness, its ability to operate on consumer hardware makes it a scalable solution for HR image-to-image translation. Future work will explore extending this framework to 4K resolutions and other domain-specific editing tasks.
Summary updated