[Paper Review] Penalizing Top Performers: Conservative Loss for Semantic Segmentation Adaptation
This paper proposes Conservative Loss, a novel adversarial loss for semantic segmentation domain adaptation that penalizes extreme confidence in predictions to improve generalization from synthetic to real images. By combining gradient descent for hard examples and gradient ascent for high-confidence predictions, it achieves state-of-the-art performance with a 9.3 mIoU gain on Synthia-to-Cityscapes, without extra inference cost.
Due to the expensive and time-consuming annotations (e.g., segmentation) for real-world images, recent works in computer vision resort to synthetic data. However, the performance on the real image often drops significantly because of the domain shift between the synthetic data and the real images. In this setting, domain adaptation brings an appealing option. The effective approaches of domain adaptation shape the representations that (1) are discriminative for the main task and (2) have good generalization capability for domain shift. To this end, we propose a novel loss function, i.e., Conservative Loss, which penalizes the extreme good and bad cases while encouraging the moderate examples. More specifically, it enables the network to learn features that are discriminative by gradient descent and are invariant to the change of domains via gradient ascend method. Extensive experiments on synthetic to real segmentation adaptation show our proposed method achieves state of the art results. Ablation studies give more insights into properties of the Conservative Loss. Exploratory experiments and discussion demonstrate that our Conservative Loss has good flexibility rather than restricting an exact form.
Motivation & Objective
- Address the domain shift problem in semantic segmentation when training on synthetic data and testing on real images.
- Improve model generalization to real-world domains without increasing inference cost.
- Develop a loss function that balances discriminative power on the source domain and invariance to domain shift.
- Enable effective domain adaptation in dense prediction tasks where traditional classification-based methods fail.
- Design a flexible loss mechanism that does not rely on a fixed functional form but maintains key invariance and discriminative properties.
Proposed method
- Propose Conservative Loss, a differentiable loss that applies gradient descent for low-confidence predictions and gradient ascent for high-confidence predictions.
- Use a piecewise function to penalize extreme confidence (p_t > threshold) by assigning negative gradients, discouraging overfitting to the source domain.
- Integrate a generative adversarial network (GAN) with a reconstruction discriminator to enforce domain-invariant feature representations.
- Apply the loss in a two-stage training framework: first optimize for source segmentation, then jointly optimize for domain invariance and segmentation accuracy.
- Use a balanced factor λ to scale the loss, enabling flexibility in tuning the trade-off between discriminativeness and invariance.
- Implement the loss without introducing additional computational overhead during inference, maintaining efficiency.
Experimental results
Research questions
- RQ1Can a loss function that penalizes extreme predictions improve domain generalization in semantic segmentation?
- RQ2How does combining gradient descent and gradient ascent in a single loss function affect model robustness to domain shift?
- RQ3Does Conservative Loss outperform existing losses like Cross Entropy and Focal Loss in synthetic-to-real segmentation adaptation?
- RQ4To what extent is the exact functional form of the loss critical to performance, or can similar properties be achieved with alternative homogeneous functions?
- RQ5Can the proposed loss be flexibly adapted to different architectures and datasets without retraining?
Key findings
- The Conservative Loss achieves 38.1 mIoU on the GTAV-to-Cityscapes adaptation benchmark, a 9.3-point improvement over the previous SOTA.
- The method outperforms both Cross Entropy (34.4 mIoU) and Focal Loss (35.8 mIoU), demonstrating superior generalization under domain shift.
- Ablation studies confirm that penalizing high-confidence predictions is critical for improving target domain performance.
- Homogeneous losses with similar properties (e.g., cubic functions) achieve comparable results, indicating that the exact form of the loss is not essential.
- The loss is flexible and effective across different architectures and datasets, showing broad applicability.
- Visualization and analysis show that the model learns features that are both discriminative on the source and robust to domain shift.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.