[论文解读] StyleAlign: Analysis and Applications of Aligned StyleGAN Models
本文提出StyleAlign,一种利用父模型与微调后的子StyleGAN2模型之间语义对齐潜在空间的框架,实现零样本跨域图像操作。通过利用微调后潜在空间中保留的语义结构,该方法仅通过简单的微调和图像重建,无需成对数据或重新训练,即可在图像到图像翻译、跨域形态变换和零样本视觉任务中实现最先进性能。
In this paper, we perform an in-depth study of the properties and applications of aligned generative models. We refer to two models as aligned if they share the same architecture, and one of them (the child) is obtained from the other (the parent) via fine-tuning to another domain, a common practice in transfer learning. Several works already utilize some basic properties of aligned StyleGAN models to perform image-to-image translation. Here, we perform the first detailed exploration of model alignment, also focusing on StyleGAN. First, we empirically analyze aligned models and provide answers to important questions regarding their nature. In particular, we find that the child model's latent spaces are semantically aligned with those of the parent, inheriting incredibly rich semantics, even for distant data domains such as human faces and churches. Second, equipped with this better understanding, we leverage aligned models to solve a diverse set of tasks. In addition to image translation, we demonstrate fully automatic cross-domain image morphing. We further show that zero-shot vision tasks may be performed in the child domain, while relying exclusively on supervision in the parent domain. We demonstrate qualitatively and quantitatively that our approach yields state-of-the-art results, while requiring only simple fine-tuning and inversion.
研究动机与目标
- 研究通过微调形成的StyleGAN2模型在语义和结构上的特性。
- 理解在迁移学习过程中,知识如何在潜在空间中被继承、转化或隐藏。
- 证明父模型的语义控制可无需重新训练直接复用于子模型。
- 利用父模型的监督信号和子模型的微调权重,开发新应用(如跨域形态变换和零样本视觉任务)。
- 量化在不同相似度的域之间潜在空间对齐的程度。
提出的方法
- 在新领域(如教堂、狗)上微调预训练的StyleGAN2模型(父模型),生成具有相同架构的子模型。
- 使用图像重建网络(如e4e)将子领域的真实图像映射到子模型的潜在空间。
- 将父模型的潜在码迁移至子模型,以实现图像到图像的翻译。
- 直接将父模型通过StyleCLIP等工具学习到的语义操纵方向应用于子模型的潜在空间。
- 通过层交换或权重插值在父模型与子模型之间生成中间风格过渡。
- 将子模型微调回父领域,以恢复并验证先前隐藏的语义控制是否重新出现。
实验结果
研究问题
- RQ1微调后,父模型与子模型的潜在空间在多大程度上保持语义对齐?
- RQ2网络中的哪些组件(映射网络、生成网络、仿射层)在微调过程中变化最大,这对语义迁移有何影响?
- RQ3子模型中的语义控制是丢失了还是仅被隐藏?能否被恢复?
- RQ4是否可以仅使用父领域的监督信号,在子领域中执行零样本视觉任务(如属性编辑)?
- RQ5当父模型与子模型的领域相似度不同时,语义对齐程度如何变化?
主要发现
- 即使在相距较远的领域(如人脸与教堂)之间,父模型与子模型的潜在空间仍保持语义对齐,且微调后语义方向仍能保持其语义含义。
- 对于相似领域,映射网络和仿射层在微调过程中变化最小,而生成网络权重变化最大,从而保持了潜在空间的结构。
- 看似在子模型中消失的语义控制并未被遗忘,而是被隐藏;将子模型微调回父领域后可成功恢复。
- 来自同一z的父模型与子模型对应潜在码(w)之间的L1距离在相似领域(如Mega,0.033)中显著小于在远距离领域(如无关的FFHQ,0.391)中,且仍小于两个独立训练模型之间的距离。
- 仅使用父模型的语义方向和子模型的微调生成器,即可成功实现跨域图像形态变换和零样本属性编辑(如胡须、发色)。
- 该方法在图像到图像翻译和保持结构的纹理迁移任务中实现了最先进性能,且无需成对数据或额外训练。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。