# Image-to-Image Translation with Disentangled Latent Vectors for Face Editing

얼굴 편집을 위한 분리된 잠재 벡터를 이용한 이미지-이미지 변환

Yusuf Dalva, Hamza Pehlivan, Cansu Moran, Öykü Irmak Hatipoğlu, Ayşegül Dündar · arXiv · 2023년 1월 11일

- **연구 문제** 얼굴 속성 편집은 목표 속성만 바꾸고 나머지를 보존해야 하며, 기존 인버전 방법은 재구성과 편집 가능성 사이에서 어려움을 겪습니다.
- **연구 방법** VecGAN++는 인코더와 디코더 사이의 잠재 공간에서 속성별 선형 방향을 학습하고, 어텐션 기반 스킵 연결로 세부 정보를 전달합니다.
- **주요 결과** 설정 I의 bangs 추가 FID는 VecGAN++ 19.64로 VecGAN 20.45보다 낮고, 설정 II 미소 편집과 사용자 연구에서도 비교 대상 대비 우수한 결과를 보고합니다.

## 얼굴 속성 편집의 어려움

얼굴 속성 편집은 입력 얼굴에서 한 속성만 바꾸고 나머지 속성과 정체성은 보존해야 하므로 어려운 번역 과제입니다. 기존 접근은 크게 두 갈래입니다. 하나는 스타일 코드를 주입하는 종단 간 이미지 번역 네트워크이고, 다른 하나는 사전 학습된 StyleGAN의 잠재 공간에 이미지를 임베딩한 뒤 방향을 따라 편집하는 StyleGAN 인버전 기반 방법입니다. 후자는 인버전이 재구성 충실도와 편집 가능성 사이의 트레이드오프를 겪는다는 문제가 있습니다. 이 논문은 종단 간으로 학습되는 번역 프레임워크에서 이 문제를 다루며, 선행 연구 VecGAN을 개선한 VecGAN++를 제안합니다.

![Figure 1: VecGAN++ image translation results](https://refivu.com/papers/9e4a2eb7-f833-45c7-b107-9f5a07742fd9/figures/figure-5600ccae4ea1fd3b80da51bd1eb2d3fa.png?thumb=512)

**Fig. 1** : VecGAN++ image translation results.

[원문](https://arxiv.org/abs/2301.04628v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yusuf Dalva, Hamza Pehlivan, Cansu Moran, Öykü Irmak Hatipoğlu, Ayşegül Dündar · Image-to-Image Translation with Disentangled Latent Vectors for Face Editing · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## 잠재 방향 기반 이동과 어텐션 스킵 연결

VecGAN++는 인코더 E가 입력 이미지를 잠재 표현 e로 바꾸고, 태그 i의 학습된 방향 Ai에 스케일 α를 곱해 e에 더한 뒤 디코더 G로 복원합니다. 이동 모듈은 e′ = e + α × Ai로 주어지며, 이동 스케일은 목표 스케일 αt에서 원본 스케일 αs를 뺀 α = αt − αs입니다. 목표 스케일은 잠재 안내 경로에서 z ∈ U\[0, 1)를 선형 변환 αt = wi,j·z + bi,j로 얻거나, 참조 안내 경로에서 참조 이미지를 인코딩한 er을 Ai에 투영해 얻습니다. 방향 행렬 A는 태그별로 학습되며 원문에서 6 × 2048 크기로 보고됩니다. 스킵 연결에서는 인코더 특징 e와 디코더 특징 d를 연결해 얻은 어텐션 마스크로 d′ = e·σ(S(e\|\|d)) + d·(1 − σ(S(e\|\|d)))를 계산합니다.

이 식은 어텐션 마스크가 인코더 특징과 디코더 특징의 가중 합을 정한다는 점을 보여 주며, 마스크 계산에 쓰는 S는 U-Net 형태로 구성됩니다.

![Figure 2: Our translator is built on the idea of interpretable latent directions. We encode images with an Encoder to a latent representation from which we cha…](https://refivu.com/papers/9e4a2eb7-f833-45c7-b107-9f5a07742fd9/figures/figure-23ff934639552ce3e6696ad674fc45b7.png?thumb=512)

**Fig. 2** : Our translator is built on the idea of interpretable latent directions. We encode images with an Encoder to a latent representation from which we change a selected tag ( i), e.g. hair color with a learnable direction Ai and a scale α. To calculate the scale, we subtract the target style scale from the source style. This operation corresponds to removing an attribute and adding an attribute. To remove the image’s attribute, the source style is encoded and projected from the source image. To add the target attribute, the target style scale is sampled from a distribution mapped for the given attribute (j), e.g. black, blonde, or encoded and projected from a reference image. We also propose an attention-based skip connection module to transfer selected features without an information bottleneck to the decoder.

[원문](https://arxiv.org/abs/2301.04628v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yusuf Dalva, Hamza Pehlivan, Cansu Moran, Öykü Irmak Hatipoğlu, Ayşegül Dündar · Image-to-Image Translation with Disentangled Latent Vectors for Face Editing · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## 학습 목표와 분리 손실

학습은 비이동 경로와 순환 이동 경로를 함께 사용합니다. 적대적 손실은 실제 이미지와 순환 경로의 중간 이미지 및 최종 이미지를 판별하며, 이동 재구성 손실은 매핑된 목표 스케일과 참조 인코딩 스케일의 L1 차이를 줄입니다. 재구성 손실은 비이동 경로와 순환 경로의 출력을 원본과 L1로 맞춥니다. 직교성 손실은 ∥AT A − I∥F로 방향들이 서로 직교하도록 장려합니다. 분리 손실은 편집 대상 태그 i가 아닌 태그 k의 스케일 변화에 벌점을 주며, 원문은 이것이 직교성 목표와 상호보완적이라고 설명합니다. 전체 목표에서는 λa = 1, λrec = 1.5, λs = 1, λo = 1, λsp = 0.1을 사용하며 학습률 10−4, 배치 크기 8, 600K 반복으로 학습합니다.

이 값들은 원문이 보고한 학습 설정입니다.

## 설정 I의 bangs 편집 비교와 절제 실험

설정 I은 HiSD의 프로토콜을 따라 CelebA-HQ의 첫 3000장을 테스트 세트로, 27000장을 학습 세트로 사용하며 이미지를 128 × 128로 조정합니다. 평가는 bangs 추가 작업의 FID로 수행하며, 잠재 안내에서는 테스트 이미지마다 5장을, 참조 안내에서는 참조 이미지 5장을 사용합니다. 절제 실험에서 VecGAN의 잠재 안내 FID는 20.17, 참조 안내 FID는 20.72이고 분리 손실을 추가한 Disent.은 20.23과 20.57입니다. 따라서 분리 손실 단독 추가가 모든 열에서 FID를 낮춘다고는 볼 수 없습니다. 원문은 분리 손실이 학습을 안정시키고 결과를 개선한다고 보고하며, 어텐션 UNet 스킵과 디코더 특징 입력이 추가될수록 FID가 낮아져 최종 VecGAN++는 평균 19.64를 기록합니다.

같은 표의 HiSD 평균은 21.43입니다.

![Table 1: Ablation Study on Setting I. Lat: Latent guided, Ref: Reference guided](https://refivu.com/papers/9e4a2eb7-f833-45c7-b107-9f5a07742fd9/figures/figure-9bae7b41804bb9de04d0515c8ab8382e.png?thumb=512)

**TABLE 1** : Ablation Study on Setting I. Lat: Latent guided, Ref: Reference guided.

[원문](https://arxiv.org/abs/2301.04628v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yusuf Dalva, Hamza Pehlivan, Cansu Moran, Öykü Irmak Hatipoğlu, Ayşegül Dündar · Image-to-Image Translation with Disentangled Latent Vectors for Face Editing · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 2: Quantitative results for Setting I](https://refivu.com/papers/9e4a2eb7-f833-45c7-b107-9f5a07742fd9/figures/figure-285eaff2b1f846380d0aa9ceaf3b3a9e.png?thumb=512)

**TABLE 2** : Quantitative results for Setting I.

[원문](https://arxiv.org/abs/2301.04628v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yusuf Dalva, Hamza Pehlivan, Cansu Moran, Öykü Irmak Hatipoğlu, Ayşegül Dündar · Image-to-Image Translation with Disentangled Latent Vectors for Face Editing · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Figure 5: Qualitative results of bangs attribute of VecGAN++, VecGAN and HiSD. Given reference images, methods extract reference attributes and edit input imag…](https://refivu.com/papers/9e4a2eb7-f833-45c7-b107-9f5a07742fd9/figures/figure-d9efbce8f7eeb7ed07bb9263fc8c2c58.png?thumb=512)

**Fig. 5** : Qualitative results of bangs attribute of VecGAN++, VecGAN and HiSD. Given reference images, methods extract reference attributes and edit input images accordingly. VecGAN++ achieves better edit quality compared to VecGAN and preserves the other facial details better. It is important to note that, HiSD learns feature-based local translators, which is a successful approach on local edits, e.g. bangs, eyeglasses, hair color but not smile, age, or gender. Our method achieves comparable visual and better quantitative results than HiSD on this local task and can also achieve global edits.

[원문](https://arxiv.org/abs/2301.04628v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yusuf Dalva, Hamza Pehlivan, Cansu Moran, Öykü Irmak Hatipoğlu, Ayşegül Dündar · Image-to-Image Translation with Disentangled Latent Vectors for Face Editing · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 설정 II의 미소 편집과 정량·사용자 비교

설정 II는 CelebA-HQ를 원래 CelebA로 재색인한 표준 분할을 사용하며 학습 세트 27,176장, 테스트 세트 2,824장, 256 × 256 해상도입니다. 단일 모델을 머리 색, 안경, 앞머리, 나이, 미소, 성별에 대해 학습합니다. 미소 편집의 Acc, Id, BG 지표를 통해 StyleGAN 인버전 기반 방법과 비교하며, 표 3의 Smile (+) FID는 VecGAN++ 17.43, VecGAN 17.70입니다. 사용자 연구는 검증 세트 앞 6장에 5개 속성 편집을 적용한 30개 샘플을 20명이 평가한 것으로, VecGAN 대비 73.3%, StyleRes 대비 67.3%의 선택 비율을 보고합니다.

원문은 이 결과가 FID 결과와 일치한다고 해석합니다.

![Table 3: Quantitative results for Setting II](https://refivu.com/papers/9e4a2eb7-f833-45c7-b107-9f5a07742fd9/figures/figure-e10d152ed011431860df3859e86be1c8.png?thumb=512)

**TABLE 3** : Quantitative results for Setting II.

[원문](https://arxiv.org/abs/2301.04628v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yusuf Dalva, Hamza Pehlivan, Cansu Moran, Öykü Irmak Hatipoğlu, Ayşegül Dündar · Image-to-Image Translation with Disentangled Latent Vectors for Face Editing · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

원문은 종단 간 번역 방식이 StyleGAN 인버전의 재구성과 편집 가능성 트레이드오프를 피한다고 논의하지만, 이 프레임워크는 학습된 속성 편집만 수행하며 StyleGAN 인버전 방법이 가진 텍스트 기반 등 폭넓은 편집 능력을 보이지는 않습니다. 실패 사례로는 드문 포즈의 회전되거나 기울어진 얼굴이 제시되며, bangs 제거에서 잔여 아티팩트가 남을 수 있다고 보고됩니다. 따라서 이 결과는 CelebA-HQ와 정해진 속성 집합에서 얻은 것이며, 얼굴 편집이 여전히 열린 문제라는 저자의 결론을 함께 읽어야 합니다.

## 논문 정보

- **저자**: Yusuf Dalva, Hamza Pehlivan, Cansu Moran, Öykü Irmak Hatipoğlu, Ayşegül Dündar
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2023년 1월 11일
- **등록일**: 2026년 11월 6일
- **수정일**: 2025년 3월 28일
- **버전**: v2
- **arXiv**: 2301.04628
- **DOI**: 10.1109/tpami.2023.3308102
- **분류**: cs.CV
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

We propose an image-to-image translation framework for facial attribute editing with disentangled interpretable latent directions. Facial attribute editing task faces the challenges of targeted attribute editing with controllable strength and disentanglement in the representations of attributes to preserve the other attributes during edits. For this goal, inspired by the latent space factorization works of fixed pretrained GANs, we design the attribute editing by latent space factorization, and for each attribute, we learn a linear direction that is orthogonal to the others. We train these directions with orthogonality constraints and disentanglement losses. To project images to semantically organized latent spaces, we set an encoder-decoder architecture with attention-based skip connections. We extensively compare with previous image translation algorithms and editing with pretrained GAN works. Our extensive experiments show that our method significantly improves over the state-of-the-arts.

## 원문 인용

Yusuf Dalva, Hamza Pehlivan, Cansu Moran, Öykü Irmak Hatipoğlu, Ayşegül Dündar (2023). Image-to-Image Translation with Disentangled Latent Vectors for Face Editing. arXiv:2301.04628v2. https://doi.org/10.1109/tpami.2023.3308102

**BibTeX**

```
@article{dalva2023image,
  title = {{Image-to-Image Translation with Disentangled Latent Vectors for Face Editing}},
  author = {Yusuf Dalva and Hamza Pehlivan and Cansu Moran and Öykü Irmak Hatipoğlu and Ayşegül Dündar},
  year = {2023},
  eprint = {2301.04628},
  archivePrefix = {arXiv},
  doi = {10.1109/tpami.2023.3308102},
  url = {https://arxiv.org/abs/2301.04628v2}
}
```

## 이 논문의 용어

- [CelebA-HQ](https://refivu.com/terms/55be90c6f5a7-celeba-hq)
- [Frechet Inception Distance (FID)](https://refivu.com/terms/acc493d5381a-frechet-inception-distance-fid)

## 다른 논문 해설

- [AG-ReID.v2: Bridging Aerial and Ground Views for Person Re-identification](https://refivu.com/papers/e52cf4a2-d784-492b-8778-6e84586ef557-ag-reid-v2-bridging-aerial-and-ground-views.md)
- [Vicinity Vision Transformer](https://refivu.com/papers/277a96d1-6b97-4de4-be02-fddaa35ed0e2-vicinity-vision-transformer.md)
- [Personal Privacy Protection via Irrelevant Faces Tracking and Pixelation in Video Live Streaming](https://refivu.com/papers/a305a9bb-874f-4e9c-82d7-0982d443dc1a-personal-privacy-protection-via-irrelevant-faces-tracking.md)
- [FedMix: Mixed Supervised Federated Learning for Medical Image Segmentation](https://refivu.com/papers/3a45da24-f4a5-40fb-bbaf-3eac2013b2b8-fedmix-mixed-supervised-federated-learning-for-medical-image.md)
- [GraphMamba: An Efficient Graph Structure Learning Vision Mamba for Hyperspectral Image Classification](https://refivu.com/papers/07bc27b8-112a-4c37-a2a6-1f8b8af9f0b5-graphmamba-an-efficient-graph-structure-learning-vision.md)
- [Cross-aware Early Fusion with Stage-divided Vision and Language Transformer Encoders for Referring Image Segmentation](https://refivu.com/papers/8a0d2f66-27b5-43a8-85cb-525496d2b434-cross-aware-early-fusion-with-stage-divided-vision.md)
- [Local Minima Prediction using Dynamic Bayesian Filtering for UGV Navigation in Unstructured Environments](https://refivu.com/papers/53ca8215-53c7-46df-82b7-91f13f6981ee-local-minima-prediction-using-dynamic-bayesian-filtering-for.md)
- [Hybrid quantum neural network for drug response prediction](https://refivu.com/papers/fa7730bd-6959-46af-bf18-25e088d035c1-hybrid-quantum-neural-network-for-drug-response-prediction.md)
- [Self-optimizing adaptive optics control with Reinforcement Learning for high-contrast imaging](https://refivu.com/papers/c5e92ea7-6316-47cd-9fd8-63fa4649be72-self-optimizing-adaptive-optics-control-with-reinforcement.md)
- [Bi-objective trail-planning for a robot team orienteering in a hazardous environment](https://refivu.com/papers/6c90805d-bfff-4a14-af02-3392f09d3600-bi-objective-trail-planning-for-a-robot-team.md)
- [Cluster-guided Asymmetric Contrastive Learning for Unsupervised Person Re-Identification](https://refivu.com/papers/5c9cff44-98ae-46da-bb1a-ad82fd20713d-cluster-guided-asymmetric-contrastive-learning-for.md)
- [Recipes for when Physics Fails: Recovering Robust Learning of Physics Informed Neural Networks](https://refivu.com/papers/26ea9c6f-9b15-4890-94b7-3aa0cf32f5ab-recipes-for-when-physics-fails-recovering-robust-learning.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/9e4a2eb7-f833-45c7-b107-9f5a07742fd9-image-to-image-translation-with-disentangled-latent-vectors)
