# StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows

StyleFlow: 조건부 연속 정규화 흐름을 이용한 StyleGAN 생성 이미지의 속성 조건 기반 탐색

Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · arXiv · 2020년 8월 6일

- **연구 문제** 조건부 GAN은 속성을 학습 시점에 지정해야 하고, 비조건부 StyleGAN의 잠재 공간에서의 편집은 속성 간 얽힘으로 정체성이 쉽게 바뀌는 문제가 있습니다.
- **연구 방법** StyleFlow는 StyleGAN W 공간의 w와 속성 벡터 사이의 대응을 조건부 연속 정규화 흐름으로 학습하고, Joint Reverse Encoding, Conditional Forward Editing, 편집별 부분집합 선택으로 이미지를 편집합니다.
- **주요 결과** 모든 편집을 합친 얼굴 정체성 코사인 유사도는 StyleFlow(V2) 0.941로 Image2StyleGAN 0.870, InterfaceGAN 0.895, GANSpace 0.902보다 높게 보고되었고, 순차 편집 FID는 53.15로 비교 방법보다 낮게 보고되었습니다.

## 연구 문제와 기존 방식의 한계

StyleGAN은 고해상도이고 사실적인 얼굴과 자동차 이미지를 무조건부로 생성하지만, 생성 과정을 나이나 표정 같은 의미 속성으로 제어하는 방법은 제한적입니다. 조건부 GAN은 속성을 학습 시점에 지정해야 하므로 새로운 속성을 추가하기 어렵고, 학습되지 않은 속성이 편집 과정에서 함께 바뀌어 객체의 정체성을 잃을 수 있습니다. 이 논문은 이러한 문제를 조건부 생성이 아니라 이미 학습된 비조건부 GAN의 잠재 공간에서 조건부 탐색 문제로 다룹니다. 두 과제는 속성 조건부 샘플링과 속성 제어 편집입니다. 샘플링은 목표 속성을 만족하는 이미지를 여러 개 얻는 과제이고, 편집은 주어진 이미지의 속성을 바꾸면서 정체성을 보존하는 과제입니다.

## 조건부 연속 정규화 흐름의 구성

StyleFlow는 StyleGAN의 W 공간에 있는 벡터 w와 속성 벡터 a\_t 사이의 대응을 조건부 연속 정규화 흐름으로 학습합니다. 가우시안 prior z에서 출발하여 목표 속성 a\_t가 조건으로 주어질 때 w를 만드는 함수 Φ(z, a)를 학습합니다. 이 흐름은 neural ODE로 정의되며, 로그 밀도 변화는 야코비안 행렬식 대신 trace로 계산됩니다. 학습 데이터는 잠재 벡터 z를 샘플링해 W 공간의 w를 얻고, 이미지를 생성한 뒤 얼굴 분류 API와 조명 추정 모델로 속성을 측정하여 만듭니다. 속성 벡터는 얼굴에 대해 17차원으로 구성됩니다. 여러 속성을 한 번에 입력으로 연결해 학습하는 방식이 단일 속성별 학습보다 얽힘을 줄인다고 저자들은 보고합니다.

## 편집 절차와 적용 범위

실제 이미지 편집은 세 단계로 이루어집니다. 첫째, Joint Reverse Encoding은 w와 현재 속성을 함께 역방향으로 추론하여 z0를 얻습니다. 둘째, Conditional Forward Editing은 z0를 고정하고 목표 속성 a′\_t로 순방향 추론하여 편집된 w′를 얻습니다. 셋째, Edit Specific Subset Selection은 편집 종류에 따라 W+ 공간의 일부 층 인덱스에만 w′를 적용합니다. 예를 들어 조명은 후반 층, 표정은 중간 층에 적용하도록 저자들이 경험적으로 정했습니다. 실제 이미지는 먼저 W+ 공간으로 투영한 뒤 이 절차를 적용합니다. 편집 결과가 W 공간의 분포 안에 머무르도록 설계되어 순차 편집이 안정적이라고 보고합니다.

![Figure 9: Real image non-sequential edits using our StyleFlow framework. Note that the method is able to handle extreme pose (first and second rows), asymmetri…](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-eb371b376e9148c1f5c5e7cdbf8ad381.png?thumb=512)

**Fig. 9** . Real image non-sequential edits using our StyleFlow framework. Note that the method is able to handle extreme pose (first and second rows), asymmetrical expressions (fourth row) and age diversity (first and last rows) well compared to the concurrent methods.

[원문](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 데이터셋과 평가 지표

실험은 FFHQ 얼굴 데이터셋과 LSUN-Car 자동차 데이터셋에서 수행되었습니다. 평가 지표는 세 가지입니다. FID는 생성 또는 편집 이미지의 현실감과 다양성을 측정하며 낮을수록 좋습니다. 얼굴 정체성 점수는 편집 전후 얼굴 임베딩의 코사인 유사도와 유클리드 거리로 조명, 자세, 표정 편집에 대해 계산됩니다. 편집 일관성 점수는 편집 순서를 바꿔도 같은 속성이 나타나는지 평균 절대 오차로 확인합니다. 비교 대상은 Image2StyleGAN, InterfaceGAN, GANSpace이며 StyleRig는 사용자 연구와 실제 이미지 비교에서 다룹니다.

## 주요 비교 결과

순차 편집의 FID에서 Our(V2)는 53.15로 보고되어 Image2StyleGAN 82.49, InterfaceGAN 67.08, GANSpace 64.69보다 낮습니다. 얼굴 정체성 표에서 모든 편집을 합친 코사인 유사도는 V2 기준 0.941로 Image2StyleGAN 0.870, InterfaceGAN 0.895, GANSpace 0.902보다 높게 보고됩니다. 이 수치들은 저자가 StyleGAN2 기반으로 재구현한 비교 조건에서 얻은 결과입니다. 편집 일관성 평가에서도 StyleFlow(V2)의 평균 절대 오차가 비교 대상보다 낮게 나타납니다. 다만 표현 편집에서는 GANSpace가 비슷하게 좋은 결과를 보였습니다.

![Figure 14: Real image editing comparison with competing methods](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-403cc252363c4f1bc97c5fc4c445138f.png?thumb=512)

**Fig. 14** . Real image editing comparison with competing methods.

[원문](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

![Figure 15: Real image editing comparison with competing methods (cont.)](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-323d623f0d6307b28943636a12f9d551.png?thumb=512)

**Fig. 15** . Real image editing comparison with competing methods (cont.).

[원문](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

![Figure 19: Comparison of StyleFlow with other contemporary systems Image2StyleGAN (Abdal et al. 2019) and InterfaceGAN (Shen et al. 2019)](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-99579eb9027200e2b4b748bc947d8e84.png?thumb=512)

**Fig. 19** . Comparison of StyleFlow with other contemporary systems Image2StyleGAN (Abdal et al. 2019) and InterfaceGAN (Shen et al. 2019).

[원문](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.

## CNF 함수 개수와 학습 설정

CNF 함수 개수를 2개부터 6개까지 바꾼 절제 실험에서 4개를 쌓은 모델이 선택 모델로 보고됩니다. 이 모델의 파라미터 수는 1128449이고 최종 로그우도는 -4327872입니다. 6개를 쌓은 모델은 추론 시간이 짧지만 얽힘 제거 품질이 약간 낮아진다고 설명됩니다. 로그우도는 높을수록 좋은 지표입니다. 학습 설정으로는 Adam 옵티마이저와 초기 학습률 1e-3을 사용했으며, 이 값은 본 연구의 CNF 학습 설정에 한정된 것입니다.

![Table 4: Ablation Study of StyleFlow CNF functions](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-89e3e2e13c2a0b6683dbb3550b230fff.png?thumb=512)

**Table 4** . Ablation Study of StyleFlow CNF functions.

[원문](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

## 한계와 적용 범위

저자들은 세 가지 한계를 제시합니다. 첫째, 방법은 속성 레이블의 가용성에 의존하므로 새 데이터셋에서는 수동 레이블링이 필요할 수 있습니다. 둘째, 좋은 결과는 주로 고품질 FFHQ로 학습한 StyleGAN에서 얻어졌습니다. 셋째, 실제 이미지 편집은 합성 이미지에 비해 아티팩트가 나타날 수 있습니다. 또한 속성 분류기는 얼굴 속성에 맞춰 선택되었으므로 자동차 편집의 정량 평가는 일부 측정에 한정됩니다. 회전 편집은 정량 평가 모델이 없어 시각 예시로만 보고됩니다.

## 논문 정보

- **저자**: Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 8월 6일
- **등록일**: 2026년 11월 6일
- **수정일**: 2020년 9월 20일
- **버전**: v2
- **arXiv**: 2008.02401
- **DOI**: 10.1145/3447648
- **분류**: cs.CV · cs.GR
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2008.02401v2) · [원문 PDF ↗](https://arxiv.org/pdf/2008.02401v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

High-quality, diverse, and photorealistic images can now be generated by unconditional GANs (e.g., StyleGAN). However, limited options exist to control the generation process using (semantic) attributes, while still preserving the quality of the output. Further, due to the entangled nature of the GAN latent space, performing edits along one attribute can easily result in unwanted changes along other attributes. In this paper, in the context of conditional exploration of entangled latent spaces, we investigate the two sub-problems of attribute-conditioned sampling and attribute-controlled editing. We present StyleFlow as a simple, effective, and robust solution to both the sub-problems by formulating conditional exploration as an instance of conditional continuous normalizing flows in the GAN latent space conditioned by attribute features. We evaluate our method using the face and the car latent space of StyleGAN, and demonstrate fine-grained disentangled edits along various attributes on both real photographs and StyleGAN generated images. For example, for faces, we vary camera pose, illumination variation, expression, facial hair, gender, and age. Finally, via extensive qualitative and quantitative comparisons, we demonstrate the superiority of StyleFlow to other concurrent works.

## 원문 인용

Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka (2020). StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows. arXiv:2008.02401v2. https://doi.org/10.1145/3447648

**BibTeX**

```
@article{abdal2020styleflow,
  title = {{StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows}},
  author = {Rameen Abdal and Peihao Zhu and Niloy Mitra and Peter Wonka},
  year = {2020},
  eprint = {2008.02401},
  archivePrefix = {arXiv},
  doi = {10.1145/3447648},
  url = {https://arxiv.org/abs/2008.02401v2}
}
```

## 이 논문의 용어

- [FFHQ](https://refivu.com/terms/77fa6feda97a-ffhq)
- [DPR](https://refivu.com/terms/f295583cf0b4-dpr)
- [Neural ODE](https://refivu.com/terms/651dc406d45a-neural-ode)
- [StyleGAN](https://refivu.com/terms/cb0e94aec3fd-stylegan)
- [adjoint method](https://refivu.com/terms/8eb073ecf6a6-adjoint-method)
- [Continuous Normalizing Flows (CNF)](https://refivu.com/terms/f2f923b2af6b-continuous-normalizing-flows-cnf)
- [NORMALIZING FLOWS](https://refivu.com/terms/4aa425199153-normalizing-flows)
- [StyleGAN2](https://refivu.com/terms/77cd7d2c5d81-stylegan2)

## 다른 논문 해설

- [Automatic detection of relevant information, predictions and forecasts in financial news through topic modelling with Latent Dirichlet Allocation](https://refivu.com/papers/e43ca448-947b-4287-a94b-42e9fabc916f-automatic-detection-of-relevant-information-predictions-and.md)
- [METER: a mobile vision transformer architecture for monocular depth estimation](https://refivu.com/papers/eaaaad14-544d-4256-827f-af94bc91d105-meter-a-mobile-vision-transformer-architecture-for-monocular.md)
- [One Metric to Measure them All: Localisation Recall Precision (LRP) for Evaluating Visual Detection Tasks](https://refivu.com/papers/e8473a0a-98be-40cc-858d-b86eef9c3ff5-one-metric-to-measure-them-all-localisation-recall.md)
- [MonoMPC: Monocular Vision Based Navigation with Learned Collision Model and Risk-Aware Model Predictive Control](https://refivu.com/papers/b97a008d-57fb-43b2-9d76-a5e71940a176-monompc-monocular-vision-based-navigation-with-learned.md)
- [Adaptive DropBlock Enhanced Generative Adversarial Networks for Hyperspectral Image Classification](https://refivu.com/papers/945e6407-396c-4d06-851d-f5adc92a6e8c-adaptive-dropblock-enhanced-generative-adversarial-networks.md)
- [CapsField: Light Field-based Face and Expression Recognition in the Wild using Capsule Routing](https://refivu.com/papers/244ff41b-3664-4bfa-82b2-90f0f3306a49-capsfield-light-field-based-face-and-expression-recognition.md)
- [Deep Reinforcement Learning for Stochastic Computation Offloading in Digital Twin Networks](https://refivu.com/papers/3abcd222-e3a8-4466-ab8d-04aeace1e847-deep-reinforcement-learning-for-stochastic-computation.md)
- [Medical Text Classification using Convolutional Neural Networks](https://refivu.com/papers/6c6ab56b-0c08-4daf-8166-fc31659cb292-medical-text-classification-using-convolutional-neural.md)
- [Warped Hypertime Representations for Long-term Autonomy of Mobile Robots](https://refivu.com/papers/027e164d-5004-446f-a111-76276cceafe8-warped-hypertime-representations-for-long-term-autonomy-of.md)
- [Inverse reinforcement learning for autonomous navigation via differentiable semantic mapping and planning](https://refivu.com/papers/0ab0f6fd-fd2b-4168-9f77-1d6bbc4443b9-inverse-reinforcement-learning-for-autonomous-navigation-via.md)
- [Wireless Agentic AI with Retrieval-Augmented Multimodal Semantic Perception](https://refivu.com/papers/4fad3a90-0503-4227-86aa-d43fbcaac150-wireless-agentic-ai-with-retrieval-augmented-multimodal.md)
- [A quantum information theoretic analysis of reinforcement learning-assisted quantum architecture search](https://refivu.com/papers/5d37d8c6-6130-4013-bae7-992b6c471e4f-a-quantum-information-theoretic-analysis-of-reinforcement.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2-styleflow-attribute-conditioned-exploration-of-stylegan)
