TL;DR
This paper introduces a novel data augmentation pipeline for semantic segmentation that uses Generative Adversarial Networks (GANs) to combat class imbalance. By "reconstructing" new label maps and using a GAN to generate corresponding realistic images, the authors significantly boost the performance of segmentation models on rare classes and improve overall mean Intersection over Union (mIoU) by up to 2.1%.
What Problem Does This Paper Address?
Semantic segmentation—the task of assigning a category label to every single pixel in an image—is notoriously "data-hungry." While deep learning models have made massive strides, they rely on massive datasets with fine, pixel-level annotations, which are incredibly expensive and time-consuming to produce manually.
Furthermore, real-world datasets like Cityscapes are often highly unbalanced. Common classes like "road" or "sky" appear in almost every frame, while critical but rarer classes like "wall," "fence," or "bus" have much lower "appearance frequency." Standard data augmentation (like flipping or rotating images) helps with general robustness but does nothing to fix this underlying distribution problem. The authors aim to fill this gap by generating high-quality, synthetic training data that specifically targets these underrepresented classes.
Methods
The authors propose a three-step pipeline:
- Train a Data Generator: They utilize Pix2pix HD, a high-resolution image-to-image translation GAN. This model is trained on existing image/label pairs to learn how to "translate" a semantic label map into a photographic image.
- Synthesize Training Pairs: This is the core innovation. Instead of just using existing maps, they create new ones in two ways:
- Overlaying: Taking a rare class (like a "wall") from one label map and "pasting" it onto another existing map that lacks that class.
- Reconstruction: Building entirely new label maps from scratch by combining individual class masks (e.g., taking a "road" from image A, "cars" from image B, and "trees" from image C) to create a diverse, balanced scene.
- Segmentation Training: They use the GAN to generate realistic images for these new, "human-designed" label maps. Finally, they train a segmentation network (PSPNet) using a mix of original and synthetic data.
Datasets
The study primarily uses the Cityscapes dataset, a benchmark for urban scene understanding.
- It contains 30 visual classes, though the authors focus on the standard 19 classes used for evaluation.
- The authors specifically analyze the correlation between a class's appearance frequency in the training set and its resulting segmentation accuracy, identifying "wall," "fence," and "pole" as high-priority targets for augmentation.
Key Insights and Ideas
- Distribution over Transformation: Traditional augmentation (scaling, cropping) only changes the "view" of the data. This method changes the content and distribution of the data, allowing the model to see rare objects in new contexts.
- The "Sweet Spot" for Synthetic Data: The authors found that more isn't always better. Accuracy peaks when supplementary data makes up about 30% to 70% of the training set (with 50% often being optimal). Beyond that, the model may start over-fitting to the specific "style" or potential artifacts of the GAN-generated images.
- GANs as "Texture Engines": By separating labels into single-class maps and recombining them, the authors treat the GAN as a tool that can intelligently apply realistic textures to any arbitrary geometric layout they design.
Key Results
The proposed GAN-based augmentation consistently outperformed both the baseline and traditional augmentation methods:
- Overall Accuracy: The "Reconstruction" method achieved a 79.41% mIoU, a significant jump from the 77.31% baseline.
- Class-Specific Gains: Adding specific labels like "wall" improved that specific class's IoU by 5.0%.
- Comparison: The GAN-based reconstruction outperformed traditional geometric augmentation (77.31%) and style-transfer-based augmentation (79.10%).
- Initialization: Using synthetic data to provide a "better initialization" (pre-training) before fine-tuning on real data proved to be a highly effective strategy for rare class recognition.
Limitations and Future Work
While the results are promising, the paper leaves a few stones unturned:
- Computational Overhead: Training a high-resolution GAN like Pix2pix HD is computationally expensive. The paper doesn't explicitly discuss the trade-off between the time spent training the generator versus the accuracy gains.
- Artifacts: GANs can sometimes produce "hallucinations" or blurry boundaries. While these didn't seem to hurt the mIoU here, the impact of GAN artifacts on safety-critical applications (like autonomous driving) requires deeper scrutiny.
- Complexity of Reconstruction: Manually or procedurally "reconstructing" label maps that look realistic (e.g., not putting a car on top of a building) is a challenge. Future work could involve using automated scripts or even another AI to ensure the "reconstructed" label maps follow logical spatial constraints.
Summary updated