Improving Domain Generalization in Self-supervised Monocular Depth Estimation via Stabilized Adversarial Training

Yuanqi Yao, Gang Wu, Kui Jiang, Siao Liu, Jian Kuai, Xianming Liu, Junjun Jiang

Self-supervised monocular depth estimation (MDE) represents a significant advancement in computer vision, enabling autonomous systems to perceive 3D geometry from single-camera inputs without the need for costly LiDAR or manual labels. However, these models often lack robustness, performing well in clear conditions but failing significantly in adverse weather like fog, rain, or night. This paper introduces SCAT (Stabilized Conflict-optimization Adversarial Training), a framework designed to enhance the generalization of MDE models to diverse real-world environments.

The Challenge: Why Adversarial Training Fails in MDE

While Adversarial Data Augmentation (ADA) is a standard technique for improving robustness in supervised learning, its application to self-supervised MDE is fraught with difficulties. The authors identify two primary "pitfalls" that lead to training instability or performance degradation:

  1. Architectural Sensitivity: Modern depth models typically utilize UNet-style architectures with Long Skip Connections (LSCs). While LSCs preserve high-frequency details, they also serve as conduits for adversarial noise, amplifying perturbations and potentially leading to model collapse.
  2. Dual Optimization Conflict: In self-supervised MDE, the model attempts to reconstruct scenes through photometric consistency. Adversarial perturbations often generate gradients that directly oppose those from clean data, creating a "tug-of-war" that hinders convergence.

The SCAT Framework

To address these issues, the SCAT framework introduces two core innovations: the Scaling Depth Network (SDN) and Conflict Gradient Surgery (CGS).

The SCAT framework architecture, featuring Conflict Gradient Surgery (CGS) for optimization stability and the Scaling Depth Network (SDN) to mitigate noise amplification.

Scaling Depth Network (SDN)

Instead of standard skip connections, SDN introduces a scaling coefficient ($\kappa$). By strategically reducing the weight of these connections (e.g., setting $\kappa = 0.7$), the model becomes significantly more resilient to input noise while maintaining the ability to capture fine geometric details. This acts as a "safety valve" against the amplification of adversarial perturbations.

Conflict Gradient Surgery (CGS)

CGS manages the interaction between clean and adversarial data. By monitoring the cosine similarity between their respective gradients, CGS progressively integrates adversarial examples only when they do not conflict with the primary optimization path. This ensures that the model learns robust features without sacrificing its ability to reconstruct clean scenes.

Experimental Evaluation

The researchers evaluated SCAT by training on the standard KITTI dataset and testing across multiple "Out-of-Distribution" (OoD) benchmarks, including KITTI-C (digital corruptions), DrivingStereo (real-world rain/fog), Foggy CityScapes, and NuScenes-Night.

Radar charts comparing SCAT against standard data augmentation (DA), adversarial data augmentation (ADA), and different scaling factors across five generalization benchmarks.

Key Results

  • Superior Generalization: SCAT consistently outperformed existing methods. On the challenging NuScenes-Night dataset, it improved the Absolute Relative Error (Abs Rel) of the MonoDepth2 baseline from 0.397 to 0.355.
  • Model Agnostic: The framework proved effective across various backbones, including CNN-based (HR-Depth) and transformer-based (MonoVit) architectures.
  • Visual Fidelity: Qualitative results indicate that SCAT-enabled models produce much sharper contours for distant objects in low-visibility conditions where baseline models typically produce blurred or inaccurate depth maps.

Conclusion

SCAT provides a robust solution for deploying self-supervised MDE in the real world. By addressing the inherent architectural and optimization sensitivities of these models, the framework enables significant gains in generalization without requiring additional ground-truth data. Future work may explore adaptive scaling factors and more complex iterative adversarial generators to further push the boundaries of depth estimation robustness.

Summary updated

BibTeX
@inproceedings{yao2024improving,
  author = {Yuanqi Yao and Gang Wu and Kui Jiang and Siao Liu and Jian Kuai and Xianming Liu and Junjun Jiang},
  title = {{Improving Domain Generalization in Self-supervised Monocular Depth Estimation via Stabilized Adversarial Training}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72691-0\_11},
}
Figure