Geometry-Guided Domain Generalization for Monocular 3D Object Detection

Fan Yang, Hui Chen, Yuwei He, Sicheng Zhao, Chenghao Zhang, Kai Ni, Guiguang Ding

Abstract

Monocular 3D object detection (M3OD) models frequently struggle with domain shifts caused by varying camera parameters and environmental conditions. Traditional domain generalization (DG) methods often fail in this context because they attempt to remove domain-specific information that is actually critical for geometric reasoning. This paper presents MonoGDG, a framework that leverages geometry-based image reprojection and geometry-dependent feature disentanglement. By preserving and utilizing domain-specific geometric cues rather than discarding them, MonoGDG achieves state-of-the-art performance across diverse datasets and even outperforms models trained directly on target domains in several cross-domain scenarios.

Introduction: The Challenge of Domain Gaps in M3OD

Monocular 3D Object Detection—the task of estimating 3D bounding boxes from a single 2D image—is a cost-effective solution for autonomous vehicle perception. However, these models are notoriously sensitive to "domain gaps." A model trained in one environment (the source domain) often fails when deployed in a new city or under different weather conditions (the target domain).

Visualizing the domain gap: camera orientation shifts and adverse weather/simulation data.

The domain gap is primarily driven by three factors:

  1. Intrinsic Parameters: Variations in focal length and field of view (FOV) warp the perceived depth of objects.
  2. Extrinsic Parameters: Differences in camera pitch and roll shift the object's position within the image frame.
  3. Image Appearance: Changes in lighting, weather, or the shift from synthetic to real-world textures can confuse feature extractors.

Standard DG techniques typically aim to learn "domain-invariant" features. However, in M3OD, geometry and domain are intrinsically linked. For instance, different datasets may have different distributions of object heights or typical distances. Stripping away domain-specific data can inadvertently destroy the geometric cues necessary for accurate depth and size estimation, a problem known as negative transfer.

Methodology: MonoGDG

To address these issues, MonoGDG operates at both the camera (image) level and the feature level to standardize inputs while preserving essential geometric information.

Geometry-Based Image Reprojection

Instead of forcing the network to learn invariance to camera hardware, MonoGDG mathematically standardizes input images:

  • Intrinsic Parameter Unification (IPU): Reprojects images to a "meta-camera" with a standard focal length.
  • Camera Orientation Randomization (COR): To handle pitch and roll without requiring perfect depth maps, the authors project images onto a spherical meta-camera. In this space, orientation changes become simple 2D transformations.
  • FOV Range Unification: Crops images to a consistent FOV to prevent the model from using aspect ratios as a domain identifier.

Geometry-Dependent Feature Disentanglement

MonoGDG moves away from total domain erasure. It recognizes that domain-specific features contain vital geometric clues.

Height distributions across KITTI, nuScenes, Lyft, and PreSIL demonstrate inherent geometric differences between domains.
  • Disentangled Branches: The network architecture splits features into domain-shared and domain-specific branches.
  • Depth-Disentangled Domain Discriminator: Since depth distributions vary by dataset, the model uses separate domain discriminators for different depth bins. This ensures alignment between objects at similar distances rather than forcing a global, incorrect alignment.
  • Domain-Aware Geometry Regression Attention: An attention mechanism intelligently recombines shared and specific features to produce final 3D bounding box predictions.

Key Results and Insights

MonoGDG demonstrates significant improvements in domain generalization. In cross-domain tests (e.g., training on nuScenes and testing on KITTI), MonoGDG achieved an $AP_{40}$ (3D, Hard) of 21.40, significantly higher than previous state-of-the-art models like DGMono3D (17.72). Remarkably, it even outperformed the "Oracle" model (trained directly on KITTI), which scored 16.57.

The framework also shows high robustness to weather. When tested on KITTI images modified with simulated heavy rain, MonoGDG maintained an accuracy of 17.79 $AP_{40}$, compared to 13.59 for competing methods.

Conclusion

The core insight of MonoGDG is that the fundamental assumption of standard DG—that domain and label are independent—is false for 3D detection. By embracing the "geometry-domain dependency" and using spherical projections for augmentation, MonoGDG provides a robust path forward for deploying monocular 3D detection systems in the real world.

Summary updated

BibTeX
@inproceedings{yang2024geometry,
  author = {Fan Yang and Hui Chen and Yuwei He and Sicheng Zhao and Chenghao Zhang and Kai Ni and Guiguang Ding},
  title = {{Geometry-Guided Domain Generalization for Monocular 3D Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i6.28467},
}
Figure