Abstract
Recent advances in generative models and adversarial training have led to a flourishing image-to-image (I2I) translation literature. The current I2I translation approaches require training images from the two domains that are either all paired (supervised) or all unpaired (unsupervised). In practice, obtaining paired training data in sufficient quantities is often very costly and cumbersome. Therefore solutions that employ unpaired data, while less accurate, are largely preferred. In this paper, we aim to bridge the gap between supervised and unsupervised I2I translation, with application to semantic image segmentation. We build upon pix2pix and CycleGAN, state-of-the-art seminal I2I translation techniques. We propose a method to select (very few) paired training samples and achieve significant improvements in both supervised and unsupervised I2I translation settings over random selection. Further, we boost the performance by incorporating both (selected) paired and unpaired samples in the training process. Our experiments show that an extremely weak supervised I2I translation solution using only one paired training sample can achieve a quantitative performance much better than the unsupervised CycleGAN model, and comparable to that of the supervised pix2pix model trained on thousands of pairs.
Introduction
Image-to-Image (I2I) translation involves mapping images from a source domain (e.g., natural photographs) to a target domain (e.g., semantic label maps). Existing methodologies typically fall into two categories: supervised learning, which requires expensive paired datasets, and unsupervised learning, which uses cheaper unpaired data but often fails to preserve structural integrity. This paper addresses the significant performance gap between these two paradigms by investigating whether high-quality results can be achieved using a large volume of unpaired data supplemented by a minimal amount of paired data—a setting termed "Extremely Weak Supervised I2I Translation."
Methodology
The proposed framework integrates the strengths of supervised and unsupervised learning through three primary pillars:
- Representative Sample Selection ($k$-medoids): To maximize the utility of limited labeling resources, the authors use a pre-trained ResNet to extract features from the dataset. By clustering these features and selecting the "medoid" (the most representative image) from each cluster, they ensure the labeled subset captures the dataset's diversity more effectively than random selection.
- Hybrid Objective Function: The model combines the $L_1$ reconstruction loss from supervised frameworks (like pix2pix) with the cycle-consistency and adversarial losses from unsupervised frameworks (like CycleGAN). This allows the model to learn from specific pairs while regularizing the overall distribution using unpaired data.
- Data Balancing: To prevent the model from ignoring the sparse paired data in favor of the abundant unpaired data, the authors employ oversampling, ensuring the model encounters labeled pairs as frequently as unlabeled ones during training.
Experimental Setup
The methodology was validated across several standard benchmarks:
- Cityscapes: Real-world urban driving scenes from German cities.
- Maps: Aerial satellite imagery paired with map data.
- Synthetic Datasets: GTA and Synscapes were utilized to explore the transferability of labels from simulated environments to real-world data.
Key Results and Discussion
The experiments yielded several critical insights into the efficiency of weak supervision:
- The "One Pair" Miracle: On the Cityscapes dataset, adding just a single $k$-medoid selected pair to 200 unpaired images boosted the Mean IoU from 0.152 (purely unsupervised) to 0.170. With 40 pairs, the model reached a Mean IoU of 0.251, significantly narrowing the gap toward the fully supervised baseline (0.402) which uses nearly 3,000 pairs.
- Unpaired Data as a Regularizer: In the Satellite-to-Maps task, a configuration of 20 pairs and 100 unpaired images achieved a pixel accuracy of 0.431, nearly matching the 0.439 accuracy of a pix2pix model trained on 1,096 pairs. This suggests that unpaired data helps the model generalize and prevents overfitting on small labeled sets.
- Diversity Over Quantity: The selection strategy is paramount; using $k$-medoids to pick diverse samples consistently outperformed random selection across all tests, proving that how you choose your pairs matters more than how many you have.
Conclusion
This research demonstrates that "extremely weak" supervision is a viable and efficient alternative to full supervision in I2I translation. By strategically selecting a few representative pairs and employing a hybrid loss function, models can achieve performance levels previously thought to require thousands of labeled examples. While a gap still exists compared to full supervision, the efficiency gains offer a promising path for practical applications where data labeling is a bottleneck.
Summary updated