TL;DR
FIANCEE introduces a dynamic "early exit" strategy for Generative Adversarial Networks (GANs), allowing simpler images to be synthesized using lightweight sub-networks. By using a predictor to estimate output quality and a small feature database to guide generation, the method can cut computational costs by up to 50% while maintaining high visual fidelity.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs), particularly GANs used for high-quality image synthesis, are notoriously computationally expensive. This makes real-time applications—like generating neural head avatars for video calls—difficult on consumer hardware.
The authors observe that not all generated images are equally "hard" to render. For example, a face in a neutral pose is easier for a model to generate than one with an extreme rotation or complex expression. Current acceleration methods like pruning or distillation create a fixed, smaller model that might struggle with these complex cases. FIANCEE addresses this by creating a dynamic pipeline that only uses the full power of the "backbone" model when absolutely necessary, routing easier inputs to faster, shallower branches.
Methods
The FIANCEE framework consists of three novel components integrated into a standard GAN architecture:
- Depth-Varying Exit Branches: The authors attach lightweight branches to intermediate layers of the backbone generator. These branches are composed of fewer modules and have a reduced number of channels (width). As shown in the pipeline overview, these branches "finish" the generation process early, saving the computations that would have occurred in the remaining backbone layers.
- Database-Guided Synthesis: To prevent quality loss in the early (and thus very thin) branches, the system uses a small database of pre-computed features. During inference, the model retrieves similar feature patches from this database and concatenates them to the branch inputs. This semi-parametric approach "harmonizes" quality across different exits.
- Exit Predictor: A small, separate DNN acts as a traffic controller. It looks at the initial input and predicts the perceptual quality (LPIPS score) that each available branch would produce. This allows the system to dynamically select the fastest branch that still meets a user-defined quality threshold.
Datasets
The authors evaluated their method on two distinct SOTA generative tasks:
- Cityscapes: Used for synthesizing outdoor photographs from semantic label maps (using the OASIS architecture as a backbone).
- VoxCeleb2: Used for neural head avatar synthesis, where a source face's traits are transferred to a driver's pose and expression (using the MegaPortraits architecture).
Key Insights and Ideas
- Generative Early Exits are Unique: Unlike classification tasks where an "early exit" is triggered by high confidence in a label, generative exits must be triggered by predicted visual quality.
- Difficulty is Quantifiable: The authors found that rendering difficulty in head avatars correlates strongly with the "distance" (e.g., rotation angle) from the reference images in the database. The further the target pose is from the known data, the more likely the predictor is to route it to a deeper, more complex branch.
- Semi-Parametric Boost: The use of a feature database acts as a "patch" for the limited capacity of early branches. It provides a high-frequency detail "hint" that the lightweight branches wouldn't be able to generate on their own.
Key Results
The method demonstrates significant computational savings without sacrificing perceived quality:
- Computational Reduction: For a target quality threshold of LPIPS $\le 0.1$, the method reduces GFLOPs by up to 50%.
- Efficiency Gains: The authors report a mean gain factor of $1.2 \times 10^3$ GFLOPs/LPIPS for semantic map synthesis and $1.3 \times 10^3$ GFLOPs/LPIPS for face reenactment.
- Dynamic Routing: As quality requirements decrease, the predictor successfully shifts the distribution of computations toward the earlier, lighter branches.
Limitations and Future Work
While effective, the authors note several areas for improvement:
- Architectural Constraints: The current method is designed for models with a multi-layer decoder (like convolutional GANs) and cannot be applied "as is" to pure Transformer-based generators.
- Memory Overhead: Storing the backbone, multiple branches, the predictor, and the feature database increases the total memory footprint compared to a single model.
- Batching Challenges: In a real-time scenario with a batch size of 1, the method shines. However, for large-batch processing, the fact that different images take different paths would require complex orchestration to maintain hardware efficiency.
- Database Selection: The current strategy for populating the feature database is random; the authors suggest that more sophisticated selection methods could further improve results.
Summary updated