Memory-Guided Unsupervised Image-to-Image Translation

Somi Jeong, Youngjung Kim, Eungbean Lee, Kwanghoon Sohn

Abstract

Unsupervised image-to-image (I2I) translation has seen significant progress, yet translating complex scenes with multiple disparate objects remains a challenge. Existing methods often apply a global style that ignores local variations between instances and backgrounds. We propose MGUIT (Memory-guided Unsupervised Image-to-image Translation), a class-aware memory network that explicitly reasons about local style variations. By using a key-value memory structure to record class-wise style representations, MGUIT can access these styles during inference without requiring an object detector. Our approach, bolstered by a feature contrastive loss, achieves state-of-the-art performance in producing accurate, instance-level translations.

Introduction: Beyond Global Style

Traditional unsupervised I2I translation models, such as CycleGAN or MUNIT, excel at capturing global domain shifts—for example, changing the overall lighting of a scene. However, they frequently struggle with "instance-level" details. In a complex urban environment, a global style might correctly darken the sky for a "night" translation but fail to render the specific appearance of car headlights or street signs under those same conditions. While some "instance-aware" models exist, they typically rely on computationally heavy object detectors during the inference phase, limiting their practical deployment.

The MGUIT Framework

The core of the proposed method is the Class-aware Memory Network. Built upon the DRIT framework, which disentangles images into domain-invariant content and domain-specific style, MGUIT introduces a structured way to store and retrieve these components.

  • Memory Structure: The memory consists of items represented as triplets: a Key ($k$) for domain-agnostic content (the "shape" or "concept") and two Values ($v^x, v^y$) for domain-specific styles in domains $X$ and $Y$.
  • Read and Update Operations: During the training phase, the model utilizes ground-truth object annotations to update the memory, ensuring that specific items (e.g., "car") learn the appropriate styles. At test time, the model performs a "Read" operation: it uses the content features of the input image as a query to find the most relevant keys and retrieves the corresponding style values. This allows for implicit object-specific styling without an active detector.
  • Feature Contrastive Loss: To ensure memory items remain discriminative and diverse, a contrastive loss is applied. This pushes query features toward their most relevant memory item while distancing them from others, preventing the memory from becoming redundant.

Experimental Results

The authors evaluated MGUIT on the INIT dataset (155K street scene images) and tested its utility for domain adaptation using KITTI and Cityscapes.

Qualitative results showing MGUIT's ability to translate between various weather and lighting conditions while maintaining instance-level fidelity.

Qualitative and Quantitative Success

MGUIT consistently outperformed baselines like MUNIT and DUNIT in metrics such as Inception Score (IS) and LPIPS. Visually, the model maintains sharper object boundaries and more realistic lighting. For instance, in "Sunny $\rightarrow$ Night" translations, vehicles retain their structural integrity and exhibit realistic illumination rather than merging into the background.

User Preference and Domain Adaptation

In human evaluations, MGUIT was preferred for image quality in 77.9% of cases. Furthermore, using MGUIT-translated data for training improved object detection performance (mAP) on the KITTI $\rightarrow$ Cityscapes task, demonstrating the practical value of high-fidelity synthetic data for downstream tasks.

Conclusion

MGUIT represents a significant advancement in I2I translation by enabling spatially varying, class-aware style application without the overhead of inference-time object detection. While the model currently depends on object annotations during training and uses a fixed memory size, its ability to "remember" and apply local styles provides a robust path forward for complex scene synthesis and domain adaptation.

Summary updated

BibTeX
@inproceedings{jeong2021memory,
  author = {Somi Jeong and Youngjung Kim and Eungbean Lee and Kwanghoon Sohn},
  title = {{Memory-Guided Unsupervised Image-to-Image Translation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=cVKgg9WUsj},
}
Figure