Abstract
Combined with the generative prior of pre-trained models and the flexibility of text, text-driven generative domain adaptation can generate images from a wide range of target domains. However, current methods still suffer from overfitting and the mode collapse problem. In this paper, we analyze the mode collapse from the geometric point of view and reveal its relationship to the Hessian matrix of generator. To alleviate it, we propose the spectral consistency regularization to preserve the diversity of source domain without restricting the semantic adaptation to target domain. We also design granularity adaptive regularization to flexibly control the balance between diversity and stylization for target model. We conduct experiments for broad target domains compared with state-of-the-art methods and extensive ablation studies. The experiments demonstrate the effectiveness of our method to preserve the diversity of source domain and generate high fidelity target images. Source code has been released in https://github.com/Victarry/Adaptation-SCR.
Introduction
Generative models like StyleGAN are incredibly powerful but typically require massive datasets to train. Text-driven domain adaptation offers a solution, allowing researchers to take a pre-trained model (e.g., trained on human faces) and "fine-tune" it to a new domain (e.g., "Pixar characters") using only a text description and a Vision-Language model like CLIP.
However, these methods often suffer from mode collapse. Because the optimization process focuses solely on moving images toward the target text description, the model often "forgets" the diversity of the original domain. Instead of generating thousands of distinct "werewolf" faces, it might produce the same few patterns repeatedly, losing the unique identities and features of the original source model. This paper introduces Spectral Consistency Regularization (SCR) to address this issue by analyzing the generator's geometry through its Hessian matrix.
Methodology
The authors approach the problem of mode collapse from a geometric perspective, introducing several key innovations:
Hessian Analysis
The researchers demonstrate that the Hessian matrix of the generator reflects the diversity of the generated images. Specifically, the eigenvalues of the Hessian correspond to the variance in the output. A decrease in these values during training indicates that the model is collapsing toward a few modes.
Spectral Consistency Regularization (SCR)
To prevent collapse, the authors introduce a loss term that encourages the "spectrum" (eigenvalues) of the target model's Hessian to remain consistent with that of the source model. This preserves the capacity for variation without restricting the semantic shift to the target style.
Efficient Estimation
Calculating a full Hessian matrix is computationally prohibitive. The authors employ Hutchinson’s method, a stochastic estimator that approximates the Hessian trace efficiently using Jacobian-vector products.
Granularity Adaptive Regularization
StyleGAN is hierarchical, with different layers controlling features at various scales (coarse vs. fine). The authors use an adaptive mask to allow the model to flexibly determine which layers need more freedom to change for the new style and which should remain regularized to preserve identity.
Key Insights
- Diversity as Geometry: The core insight is the mathematical link between the curvature of the generator's latent manifold (the Hessian) and the statistical diversity of the images.
- Preserving Capacity: Unlike previous methods that attempted to keep images visually similar to the source, SCR focuses on keeping the capacity for variation similar. This allows for drastic stylistic changes (like human to werewolf) while maintaining underlying structural diversity.
- Layer-wise Flexibility: By using an adaptive mask, the model learns to change fine textures more aggressively than coarse structures (like head shape), satisfying the text prompt while maintaining recognizable identity.
Experiments and Results
The method was evaluated using StyleGANv2 pre-trained on the FFHQ (Flickr-Faces-HQ) dataset, with target domains defined by text prompts such as "Sketch," "Mona Lisa," "Werewolf," "Van Gogh painting," and "Pixar Style."
Qualitative Performance
Compared to the previous state-of-the-art, StyleGAN-NADA, the proposed method produces images that are significantly more diverse and better preserve the identity of the original subjects. In the "Werewolf" task, for instance, StyleGAN-NADA often produces identical hair patterns, whereas SCR maintains unique facial structures across different inputs.
Quantitative Metrics
The authors utilized Perceptual Path Length (PPL) and Hessian trace values to measure diversity. SCR consistently outperformed baselines, maintaining higher diversity scores across all tested domains. Furthermore, a user study revealed a 91.2% preference for SCR over StyleGAN-NADA regarding attribute preservation.
Conclusion
While the current implementation is tailored to GAN architectures like StyleGAN, the underlying theory of Hessian analysis is general. Future work may involve adapting these spectral approaches to modern Diffusion models or other zero-shot tasks where preserving prior knowledge is critical. SCR effectively balances the tension between heavy stylization and diversity preservation, enabling high-fidelity image generation across broad target domains.
Summary updated