Skip to main content
QUICK REVIEW

[Paper Review] HyperDomainNet: Universal Domain Adaptation for Generative Adversarial Networks

Aibek Alanov, В. В. Титов|arXiv (Cornell University)|Oct 17, 2022
Topic ModelingComputer Science14 citations
TL;DR

HyperDomainNet proposes a compact 6,000-dimensional domain vector for fine-tuning StyleGAN2 generators, reducing trainable parameters from 30 million to just 6,000 while maintaining performance comparable to full-weight fine-tuning. It introduces a novel regularization loss to improve diversity and a hypernetwork (HyperDomainNet) that enables multi-domain adaptation, generalizing to unseen domains with shared parameterization.

ABSTRACT

Domain adaptation framework of GANs has achieved great progress in recent years as a main successful approach of training contemporary GANs in the case of very limited training data. In this work, we significantly improve this framework by proposing an extremely compact parameter space for fine-tuning the generator. We introduce a novel domain-modulation technique that allows to optimize only 6 thousand-dimensional vector instead of 30 million weights of StyleGAN2 to adapt to a target domain. We apply this parameterization to the state-of-art domain adaptation methods and show that it has almost the same expressiveness as the full parameter space. Additionally, we propose a new regularization loss that considerably enhances the diversity of the fine-tuned generator. Inspired by the reduction in the size of the optimizing parameter space we consider the problem of multi-domain adaptation of GANs, i.e. setting when the same model can adapt to several domains depending on the input query. We propose the HyperDomainNet that is a hypernetwork that predicts our parameterization given the target domain. We empirically confirm that it can successfully learn a number of domains at once and may even generalize to unseen domains. Source code can be found at https://github.com/MACderRu/HyperDomainNet

Motivation & Objective

  • To reduce the number of trainable parameters in GAN domain adaptation without sacrificing performance.
  • To address mode collapse in few-shot domain adaptation by introducing a new regularization loss.
  • To enable multi-domain adaptation of a single generator using a hypernetwork that predicts domain-specific parameters.
  • To achieve generalization to unseen domains in multi-domain adaptation scenarios.
  • To provide a lightweight, scalable solution for domain adaptation in data-scarce settings.

Proposed method

  • Introduce a domain-modulation technique that injects a 6,000-dimensional vector into each convolutional layer of StyleGAN2 for domain adaptation.
  • Apply the domain vector to state-of-the-art methods like StyleGAN-NADA and MindTheGAP, replacing full generator fine-tuning.
  • Propose a novel in-domain angle consistency loss ($\mathcal{L}_{\text{indomain-angle}}$) that preserves CLIP-based image similarity during adaptation to enhance diversity.
  • Design HyperDomainNet, a hypernetwork that predicts the 6,000-dimensional domain vector based on input domain description (text or image).
  • Train HyperDomainNet on multiple domains simultaneously, using CLIP embeddings for domain supervision and data augmentation for generalization.
  • Use two training schemes: one with fixed domains and another with convex hull sampling of CLIP embeddings to simulate unseen domains.

Experimental results

Research questions

  • RQ1Can a compact 6,000-dimensional vector replace full generator fine-tuning in StyleGAN2 for domain adaptation with comparable quality?
  • RQ2Does the proposed in-domain angle consistency loss effectively improve the diversity of fine-tuned generators?
  • RQ3Can a single hypernetwork (HyperDomainNet) successfully adapt a single generator to multiple domains simultaneously?
  • RQ4Can HyperDomainNet generalize to unseen domains not seen during training?
  • RQ5Is the proposed method scalable and efficient compared to training separate models per domain?

Key findings

  • The proposed domain-modulation technique achieves generation quality comparable to full-weight fine-tuning while reducing trainable parameters by a factor of 5,000.
  • The in-domain angle consistency loss significantly improves diversity, as validated both qualitatively and quantitatively on text-based and one-shot adaptation benchmarks.
  • HyperDomainNet successfully adapts to 20 domains simultaneously, achieving results on par with training separate models for each domain.
  • When trained on over 200 domains with augmented CLIP embeddings, HyperDomainNet generalizes effectively to unseen domains, producing plausible and diverse samples.
  • The method reduces training time and parameter count by sharing a single hypernetwork across multiple domains, enabling efficient multi-domain adaptation.
  • Ablation studies confirm that the proposed loss terms are essential for effective training of HyperDomainNet in multi-domain settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.