Abstract
We present a novel unsupervised framework for instance-level image-to-image translation. Although recent advances have been made by incorporating additional object annotations, existing methods often fail to handle images with multiple disparate objects. The main cause is that, during inference, they apply a global style to the whole image and do not consider the large style discrepancy between instance and background, or within instances. To address this problem, we propose a class-aware memory network that explicitly reasons about local style variations. A key-values memory structure, with a set of read/update operations, is introduced to record class-wise style variations and access them without requiring an object detector at the test time. The key stores a domain-agnostic content representation for allocating memory items, while the values encode domain-specific style representations. We also present a feature contrastive loss to boost the discriminative power of memory items. We show that by incorporating our memory, we can transfer class-aware and accurate style representations across domains. Experimental results demonstrate that our model outperforms recent instance-level methods and achieves state-of-the-art performance.
Introduction
Unsupervised Image-to-image (I2I) translation—such as converting a sunny street scene into a rainy night—is a challenging task, particularly when images contain multiple disparate objects like cars, pedestrians, and buildings. Traditional methods often apply a global style to the entire image, which can lead to "style bleed." For example, the style of the sky might be incorrectly applied to a vehicle, resulting in unrealistic artifacts.
While some "instance-level" methods attempt to address this using object annotations, they typically either discard this information during testing or require a computationally heavy object detector at runtime. We introduce MGUIT (Memory-guided Unsupervised Image-to-image Translation), a framework that preserves local style variations while remaining "detector-free" during deployment.
Methodology
The core innovation of MGUIT is the Class-aware Memory Network, an external module that stores and propagates style information across domains.
- Key-Value Structure: The memory consists of pairs where the Key stores domain-agnostic content representations (the "what" of an object) and the Values store domain-specific style representations (the "how it looks" in different conditions).
- Read & Update Operations: During training, the model uses ground-truth object annotations to update the memory. During inference, the model performs a "read" operation, retrieving relevant styles based on feature similarity. This allows the model to apply the correct style to specific areas without an explicit detector.
- Feature Contrastive Loss: To prevent memory items from becoming generic or "blurry," a contrastive loss is used to push the model to make memory items more discriminative, effectively clustering similar styles and separating different ones.
Experimental Results
The authors evaluated MGUIT on the INIT dataset (155,000 street scenes) and tested domain adaptation capabilities using KITTI and Cityscapes.
Performance and Diversity
MGUIT achieved state-of-the-art performance across several metrics, including higher Inception Scores (IS) and Conditional Inception Scores (CIS). Using the LPIPS metric, MGUIT demonstrated significantly higher diversity than predecessors like CycleGAN or MUNIT. In human studies, the model was preferred 77.9% of the time for image quality.
Downstream Benefits
Beyond visual quality, MGUIT proved effective for domain adaptation. When translating KITTI images to the Cityscapes style, the model achieved a Mean Average Precision (mAP) of 54.6, outperforming specialized domain adaptation methods and showing that accurate style transfer directly aids object detection in new environments.
Conclusion
MGUIT successfully addresses the limitations of global style application in I2I translation. By using a class-aware memory network, the model implicitly learns to recognize object types and apply accurate, diverse styles without the overhead of a detector at test time. Future work may explore reducing the dependency on training-time annotations through unsupervised object discovery.
Summary updated