# Improving Deep Generative Models on Many-To-One Image-to-Image Translation

다대일 이미지-이미지 변환에서 심층 생성 모델 개선

Sagar Saxena, Mohammad Nayeem Teli · arXiv · 2024년 2월 19일

- **연구 문제** 많은 이미지 간 변환 데이터는 도메인 사이가 다대일로 비대칭이지만 기존 생성 모델은 대칭 구조를 가정합니다.
- **연구 방법** StarGAN V2에 도메인별 채널 매핑, 단일 모달 도메인의 스타일 벡터 0 설정, 다중 모달 도메인에만 적용한 다양성 손실을 더한 비대칭 구조입니다.
- **주요 결과** Colorized MNIST에서 HMU는 StarGAN V2보다 MNIST MSE를 크게 낮추고 빨강과 파랑의 Color Recall을 높이며, ADE20K 장면 생성에서도 개선을 보입니다.

## 대일 변환 데이터에서 대칭 구조가 어려운 이유

많은 이미지 간 변환 데이터셋은 두 도메인 사이가 일대일이나 다대다로 깔끔하게 대응하지 않고, 한 도메인의 이미지 하나가 다른 도메인에서 하나의 표현만 갖거나 여러 표현을 갖는 비대칭적 관계를 보입니다. 기존 GAN과 확산 모델 기반 방법은 대체로 모든 도메인을 단일 모달 또는 다중 모달 중 하나로 가정하는 대칭적 설정으로 학습됩니다. 이 논문은 이런 구조가 다대일 관계에서 부적합하다고 보고, 도메인마다 모달리티 특성이 다르면 모델 구조와 손실 함수도 그에 맞춰 비대칭으로 바꾸는 프레임워크를 제안합니다. 이 프레임워크는 StarGAN V2에 적용되며, 비지도와 준지도 설정에서 다대일 변환의 성능을 높이는지 확인하는 것이 연구의 중심 질문입니다.

![Figure 1: Different relationships between domains on \[19\]](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-c99326090a3b24088d49354db7c6bd1a.png?thumb=512)

**Figure 1** : Different relationships between domains on \[19\]

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## HMU와 HMS의 구성

제안 방법의 핵심은 단일 모달 도메인에서는 내용 공간만 사용해 고정된 경로로 생성하고, 다중 모달 도메인에서만 다양성을 장려하는 것입니다. 먼저 CA→S, CS→A, CB→S, CS→B라는 학습 가능한 1x1 합성곱 층을 두어 각 도메인의 채널 공간을 공유 채널 공간 S로 옮기고 되돌립니다. 이 왕복 과정에는 L1 기반 cycle consistency 손실이 붙습니다. 기본 구조는 StarGAN V2의 AdaIN 대신 Weight Demodulation 층을 사용하며, 스타일 벡터 s가 밀집 층을 거쳐 합성곱 가중치의 크기를 조정합니다. 단일 모달 도메인 B에서는 s를 0으로 두어 밀집 층이 편향항만 반영하게 하므로 생성기가 고정된 네트워크가 되고, 밀집 층 가중치로 가는 그래디언트도 0이 됩니다.

원래 StarGAN V2의 다양성 손실 Lds는 서로 다른 스타일 s1과 s2에 대해 두 생성 결과의 차이를 키우는 항이라서 단일 모달 도메인의 일관된 생성까지 벌점을 줍니다. 이를 바꾼 손실은 s1과 s2가 서로 다르고 0이 아닐 때에만 다중 모달 도메인 입력 xB에 적용됩니다. 이 수정 모델이 HMU이며, 쌍 이미지 (xA, xB)가 제공되면 단일 모달 도메인의 출력 G(xA, 0)을 xB에 맞추는 감독 손실 Lsup을 추가한 모델이 HMS입니다.

## Colorized MNIST와 Color Recall 지표

Colorized MNIST는 MNIST 이미지 xB에 무작위 색 ci를 곱해 xA를 만드는 3채널 데이터셋이며, 기본 MNIST는 60k 학습 이미지와 10k 테스트 이미지로 구성됩니다. 이 과제는 입력 숫자를 재생성한 뒤 무작위 색을 칠하는 두 과제로 나뉘며, 출력 색은 입력과 독립적입니다. 따라서 내용 공간은 숫자를, 스타일 공간은 색을 담도록 나뉘어야 한다는 것이 이 데이터셋의 설계 의도입니다. Color Recall은 생성 이미지마다 채널별 최대 강도 픽셀을 뽑아 n개 구간의 빈도 F̂를 실제 데이터의 빈도 F와 비교하는 지표입니다. 구간별로 F̂\[b\]를 F\[b\]로 나눈 값과 1 중 작은 값을 구해 평균하므로, 색을 고르게 샘플링할수록 높아집니다.

이 지표는 FID나 Precision·Recall처럼 pre-training 신경망 임베딩을 쓰지 않아 해석하기 쉽다고 제시됩니다. 같은 목적으로 생성 데이터셋의 서로 다른 색 개수를 세는 Unique Color Count도 함께 사용됩니다.

![Figure 2: 5 paired samples from the Colorized MNIST dataset](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-bf6c9d6a280ae23de9f6d9c190385a95.png?thumb=512)

**Figure 2** : 5 paired samples from the Colorized MNIST dataset.

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## Colorized MNIST에서 HMU와 HMS의 결과

Colorized MNIST와 MNIST 사이 변환에서 StarGAN V2의 평균 Color Recall은 .6279, HMU는 .6002, HMS는 .5710이며, 생성된 고유 색 개수는 각각 9374, 9357, 8743입니다. HMU는 빨강과 파랑 채널에서 StarGAN V2보다 높아서 Red .7037 대 .6235, Blue .7126 대 .6183입니다. 반면 초록 채널은 HMU가 .3843으로 StarGAN V2의 .6420보다 낮습니다. MNIST 도메인의 MSE는 StarGAN V2가 .1016이고, HMU는 .0094로 낮아지며, HMS는 .0109입니다. 이는 단일 모달 도메인 MSE가 약 열 배 개선된 결과입니다.

대신 Colorized MNIST 쪽 FID는 StarGAN V2 54.00, HMU 60.83, HMS 89.34로 악화되고, MNIST 쪽 F-8은 StarGAN V2 .4518이 HMU .2760보다 높아 원래 모델이 FID와 Precision·Recall에서 약간 더 좋았습니다. HMU는 다중 모달 도메인의 다양성을 조금 잃는 대신 단일 모달 도메인의 MSE를 크게 줄이는 절충을 얻는다고 볼 수 있습니다. HMS는 감독 손실 때문에 MSE는 HMU와 비슷하지만 다양성 손실이 더 큽니다. 감독 손실 가중치를 낮추면 성능이 나아질 수 있다는 점은 저자들의 추측입니다.

![Table 1: Color Recall Scores](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-463ea97c9d20af9538cb87bdc9d49ddd.png?thumb=512)

**Table 1** : Color Recall Scores

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Table 2: Colorized MNIST ↔ MNIST Task Results](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-5fcae9baf40bd60a7a43a202d74ee310.png?thumb=512)

**Table 2** : Colorized MNIST ↔ MNIST Task Results

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Figure 5: 5 randomly sampled translations on the test set from Colorized-MNIST images to MNIST images (left) and MNIST images to Colorized MNIST images (right)](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-f511eaef6e30957620db99587601233c.png?thumb=512)

**Figure 5** : 5 randomly sampled translations on the test set from Colorized-MNIST images to MNIST images (left) and MNIST images to Colorized MNIST images (right).

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## CycleGAN과 Palette의 색상 분포 비교

Color Recall 비교표에는 쌍이 없는 데이터로 학습한 CycleGAN과 지도 학습 조건부 확산 모델 Palette가 기준 모델로 포함됩니다. CycleGAN의 Color Recall은 .4098이고 고유 색은 2474개이며, Palette는 .1294와 1096개입니다. 저자들은 CycleGAN이 높은 강도의 파랑 값을 과도하게 샘플링하여 파란 색조의 이미지를 만들고, Palette는 높은 강도의 초록 값을 과도하게 샘플링한다고 해석합니다. 또 Palette는 모든 채널에서 높은 강도 값을 과도하게 샘플링하여 색 분포의 작은 부분만 포착하는 것으로 나타납니다. 이 분석은 Colorized MNIST처럼 색의 분포를 직접 측정할 수 있는 과제에서 얻은 것입니다.

![Figure 4: Red, Green, and Blue, Color Recall Histograms. The black dashed line represents the real uniform distribution of color values](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-e216ff1ad5720930c9a370662c721bda.png?thumb=512)

**Figure 4** : Red, Green, and Blue, Color Recall Histograms. The black dashed line represents the real uniform distribution of color values.

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## ADE20K 장면 생성과 레이블 분류의 결과

ADE20K는 20k 학습과 2k 테스트 장면 이미지 및 150개 객체의 의미 분할 맵으로 구성되며, Colorized MNIST보다 어려운 데이터셋으로 사용됩니다. 장면 생성에서 HMU는 StarGAN V2보다 장면 쪽 FID가 153.08 대 159.27로 낮고 모든 장면 지표에서 앞서며, HMS는 FID 146.29로 가장 낮습니다. 레이블 쪽에서는 HMS가 F-8과 MSE에서 더 좋지만 F-1/8은 StarGAN V2의 .0778보다 낮은 .0765입니다. 레이블 MSE는 StarGAN V2 .4459, HMU .3373, HMS .2787입니다. 레이블 분류 정확도는 모든 설정에서 낮습니다. 분류 헤드를 붙인 StarGAN V2 생성기를 Sparse Categorical Cross Entropy로 학습했을 때 정확도는 None 초기화에서 .0685, HMS 가중치 초기화에서 .0724입니다.

저자들은 StarGAN V2 생성기가 레이블 맵 생성에 적합하지 않은 구조라고 해석하며, 레이블을 클래스 값의 2D 맵으로 두고 L2 손실을 쓴 점도 분류 목표와 맞지 않는다고 설명합니다.

![Figure 3: 5 samples from the ADE20K training set](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-4426c98eed6cd2d19c970b4d03f9611a.png?thumb=512)

**Figure 3** : 5 samples from the ADE20K training set.

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 3: ADE20K Scenes ↔ ADE20K Labels Task Results](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-c17fa6bf6cb6bf227862b8f82a6380d2.png?thumb=512)

**Table 3** : ADE20K Scenes ↔ ADE20K Labels Task Results

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Figure 6: 5 randomly sampled translations on the test set from ADE20K scenes to ADE20K label maps (left) and ADE20K label maps to ADE20K scenes (right)](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-f836b7fd757390225f9e03fc791010d1.png?thumb=512)

**Figure 6** : 5 randomly sampled translations on the test set from ADE20K scenes to ADE20K label maps (left) and ADE20K label maps to ADE20K scenes (right).

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Table 4: Classification model accuracy on ADE20K dataset](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f/figures/figure-5168e75235a9b52a15d82020e7675d52.png?thumb=512)

**Table 4** : Classification model accuracy on ADE20K dataset.

[원문](https://arxiv.org/abs/2402.12531v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sagar Saxena, Mohammad Nayeem Teli · Improving Deep Generative Models on Many-To-One Image-to-Image Translation · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 미확정 질문

이 방법은 스타일 공간과 내용 공간을 분리하는 모델에 적용된 것입니다. 노이즈 벡터로 다양성을 넣는 다른 모델에 확장하는 방법은 제안되어 있으나 이 논문에서는 평가하지 않았습니다. Color Recall은 Colorized MNIST에 맞춰진 지표이므로 모든 데이터셋의 일반 지표로 제시되지 않습니다. ADE20K에서는 장면과 레이블 생성 모두 전반적으로 성능이 낮고, 레이블 분류 실험의 정확도도 약 7% 수준에 머뭅니다. 이는 이 논문이 새로운 최고 성능 기법을 목표로 하지 않았기 때문이며, 더 나은 기반 구조와 pre-training 응용은 향후 과제로 남습니다. pre-training 응용은 제안되었지만 이 논문에서는 측정되지 않았습니다.

## 논문 정보

- **저자**: Sagar Saxena, Mohammad Nayeem Teli
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2024년 2월 19일
- **등록일**: 2026년 11월 5일
- **수정일**: 2024년 2월 22일
- **버전**: v2
- **arXiv**: 2402.12531
- **분류**: cs.CV · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Deep generative models have been applied to multiple applications in image-to-image translation. Generative Adversarial Networks and Diffusion Models have presented impressive results, setting new state-of-the-art results on these tasks. Most methods have symmetric setups across the different domains in a dataset. These methods assume that all domains have either multiple modalities or only one modality. However, there are many datasets that have a many-to-one relationship between two domains. In this work, we first introduce a Colorized MNIST dataset and a Color-Recall score that can provide a simple benchmark for evaluating models on many-to-one translation. We then introduce a new asymmetric framework to improve existing deep generative models on many-to-one image-to-image translation. We apply this framework to StarGAN V2 and show that in both unsupervised and semi-supervised settings, the performance of this new model improves on many-to-one image-to-image translation.

## 원문 인용

Sagar Saxena, Mohammad Nayeem Teli (2024). Improving Deep Generative Models on Many-To-One Image-to-Image Translation. arXiv:2402.12531v2. https://arxiv.org/abs/2402.12531v2

**BibTeX**

```
@misc{saxena2024improving,
  title = {{Improving Deep Generative Models on Many-To-One Image-to-Image Translation}},
  author = {Sagar Saxena and Mohammad Nayeem Teli},
  year = {2024},
  eprint = {2402.12531},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.12531v2}
}
```

## 이 논문의 용어

- [MNIST](https://refivu.com/terms/28b9bb66d1c6-mnist)
- [ADE20K](https://refivu.com/terms/5adea765479c-ade20k)
- [CycleGAN](https://refivu.com/terms/aa174ef15835-cyclegan)
- [AdaIN](https://refivu.com/terms/9c09e5f9c9d5-adain)
- [Fréchet Inception Distance](https://refivu.com/terms/ec3a8fbff2d3-frechet-inception-distance)
- [cycle consistency loss](https://refivu.com/terms/6d0fc150199d-cycle-consistency-loss)
- [Palette](https://refivu.com/terms/6e61fdbb0170-palette)

## 다른 논문 해설

- [Tailoring Generative Adversarial Networks for Smooth Airfoil Design](https://refivu.com/papers/a06589f0-bc41-4ee1-a8ed-9bad35ece7e1-tailoring-generative-adversarial-networks-for-smooth-airfoil.md)
- [Generative Diffusion Models for Fast Simulations of Particle Collisions at CERN](https://refivu.com/papers/3a63aa10-a096-49de-8000-d8794fc60090-generative-diffusion-models-for-fast-simulations-of-particle.md)
- [Anchor-Controlled Generative Adversarial Network for High-Fidelity Electromagnetic and Structurally Diverse Metasurface Design](https://refivu.com/papers/dac5fcab-8159-4e86-9445-cab7d8e284d1-anchor-controlled-generative-adversarial-network-for-high.md)
- [Generative Adversarial Networks for Imputing Sparse Learning Performance](https://refivu.com/papers/87bc737c-4111-44e5-bfdb-1faaa75c24b6-generative-adversarial-networks-for-imputing-sparse-learning.md)
- [On the MIA Vulnerability Gap Between Private GANs and Diffusion Models](https://refivu.com/papers/3925f840-3e3c-4fab-8511-78199c7eba77-on-the-mia-vulnerability-gap-between-private-gans.md)
- [SAR Image Synthesis with Diffusion Models](https://refivu.com/papers/9b1d3093-b3e0-4e2b-8f52-7c3d05dd5c4e-sar-image-synthesis-with-diffusion-models.md)
- [Certified Guidance for Planning with Deep Generative Models](https://refivu.com/papers/a5b3b20b-2078-4033-a839-40a3a61ab276-certified-guidance-for-planning-with-deep-generative-models.md)
- [ImageGem: In-the-wild Generative Image Interaction Dataset for Generative Model Personalization](https://refivu.com/papers/99c0d2fc-529c-46a7-808f-bf34028e7ec3-imagegem-in-the-wild-generative-image-interaction-dataset.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/bff93574-362a-4005-af66-3fced9629f6f-improving-deep-generative-models-on-many-to-one)
