Skip to main content
QUICK REVIEW

[论文解读] GANalyzer: Analysis and Manipulation of GANs Latent Space for Controllable Face Synthesis

Ali Pourramezan Fard, Mohammad H. Mahoor|arXiv (Cornell University)|Feb 2, 2023
Face recognition and analysisComputer Science被引用 3
一句话总结

本文提出 GANalyzer,一种用于分析和操作预训练 GAN 的潜在空间的框架,以实现可控的人脸生成。通过利用现成的分类器和按面部属性划分的潜在向量协方差分析,GANalyzer 学习到变换函数,以解耦并编辑表情、年龄、性别和种族等属性,从而实现精确的面部属性编辑与基于特征的合成,并公开发布了一个 46K 平衡的、逼真的面部数据集。

ABSTRACT

Generative Adversarial Networks (GANs) are capable of synthesizing high-quality facial images. Despite their success, GANs do not provide any information about the relationship between the input vectors and the generated images. Currently, facial GANs are trained on imbalanced datasets, which generate less diverse images. For example, more than 77% of 100K images that we randomly synthesized using the StyleGAN3 are classified as Happy, and only around 3% are Angry. The problem even becomes worse when a mixture of facial attributes is desired: less than 1% of the generated samples are Angry Woman, and only around 2% are Happy Black. To address these problems, this paper proposes a framework, called GANalyzer, for the analysis, and manipulation of the latent space of well-trained GANs. GANalyzer consists of a set of transformation functions designed to manipulate latent vectors for a specific facial attribute such as facial Expression, Age, Gender, and Race. We analyze facial attribute entanglement in the latent space of GANs and apply the proposed transformation for editing the disentangled facial attributes. Our experimental results demonstrate the strength of GANalyzer in editing facial attributes and generating any desired faces. We also create and release a balanced photo-realistic human face dataset. Our code is publicly available on GitHub.

研究动机与目标

  • 解决 GAN 潜在空间可解释性不足的问题,该问题阻碍了对生成面部属性的控制。
  • 克服现有 GAN 训练数据中严重的类别不平衡问题,该问题导致面部属性生成纠缠且缺乏多样性。
  • 同时实现面部属性编辑(在保持身份不变的前提下修改生成人脸的属性)和基于特征的合成(从随机噪声生成具有特定属性的人脸)。
  • 开发一种监督方法,通过分析每类属性下潜在向量分布的统计特性,将潜在向量映射到特定面部属性。
  • 创建并发布一个包含 23 种属性组合的平衡、逼真的人脸数据集,以支持多样化的下游应用。

提出的方法

  • 使用 StyleGAN3 合成 100K 张图像,作为潜在空间分析的训练集。
  • 应用四个预训练的现成分类器,为每张图像标注面部属性:表情、性别、年龄和种族。
  • 计算每类面部属性(例如所有“愤怒”表情)的潜在向量协方差矩阵,并提取其特征向量,以建模潜在空间中特定属性的方向。
  • 定义一个变换函数 Ψ(z, S),将潜在向量 z 分解为保持身份的(z_id)和基于特征的(z_fb)分量,以实现目标属性编辑。
  • 使用协方差矩阵的主特征向量作为方向向量,对潜在码进行操作,实现解耦的属性编辑。
  • 应用变换函数生成具有期望属性组合的新图像,例如“愤怒女性”或“年长非裔男性”,通过沿学习到的属性方向投影并调整潜在向量。
Figure 1: Our proposed transformation function $\Psi$ gets an arbitrary latent vector $z$ , a facial attribute $fa$ , and manipulates $z$ to generate the latent vectors $z_{fb}$ , and $z_{id}$ . While the latent vector $z_{id}$ is used for facial attribute editing, the feature latent vector $z_{fb}$
Figure 1: Our proposed transformation function $\Psi$ gets an arbitrary latent vector $z$ , a facial attribute $fa$ , and manipulates $z$ to generate the latent vectors $z_{fb}$ , and $z_{id}$ . While the latent vector $z_{id}$ is used for facial attribute editing, the feature latent vector $z_{fb}$

实验结果

研究问题

  • RQ1如何分析预训练 GAN 的潜在空间,以识别并解耦特定面部属性(如表情、年龄、性别和种族)?
  • RQ2GAN 训练数据中的类别不平衡在多大程度上导致了属性的纠缠以及特定属性组合的生成质量低下?
  • RQ3基于分类器的监督方法是否能有效学习解耦的潜在空间方向,以实现精确的面部属性编辑与基于特征的合成?
  • RQ4所提出的变换函数 Ψ(z, S) 如何同时实现身份保持的属性编辑与目标属性组合的直接合成?
  • RQ5能否系统性地生成并发布一个平衡、多样且逼真的面部数据集,以支持下游的识别与心理学研究?

主要发现

  • StyleGAN3 生成的验证集中,仅 2.03% 为“快乐非裔”人脸,且“愤怒女性”人脸少于 1%,表明存在严重的属性不平衡。
  • 应用 GANalyzer 后,新生成的平衡数据集实现了 12.58% 的“快乐非裔”和 15.65% 的“愤怒女性”样本,证明了对类别不平衡的有效缓解。
  • 所提出的变换函数 Ψ(z, S) 有效实现了解耦编辑:在保持身份和其他属性不变的前提下,成功改变了面部表情或性别。
  • 基于 GANalyzer 的特征合成生成了高质量图像,包含特定属性组合(如“年长非裔女性”),这些组合在标准 GAN 输出中此前极为稀少或完全缺失。
  • 基于协方差的特征向量分析有效捕捉了潜在空间中的属性特定方向,实现了精确操作,同时最小化了身份的破坏。
  • 公开发布的 46K 张图像数据集包含 23 种属性组合,其平衡性显著优于现有 GAN 验证集,如图 11 和图 19 中属性分布的对比结果所示。
Figure 2: The figure shows a performance of our proposed transformation function $\Psi$ for facial attribute editing.
Figure 2: The figure shows a performance of our proposed transformation function $\Psi$ for facial attribute editing.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。