TL;DR
MIMDepth introduces Masked Image Modeling (MIM) directly into the training loop of self-supervised monocular depth estimation. By forcing the model to predict depth from partially masked images, the authors significantly improve robustness against noise, weather, occlusions, and adversarial attacks while maintaining state-of-the-art performance on standard benchmarks.
What Problem Does This Paper Address?
Monocular depth estimation—predicting 3D structure from a single 2D image—is vital for autonomous driving and robotics. While self-supervised methods have made huge strides by learning from video sequences instead of expensive LiDAR labels, they have a "glass jaw": they are notoriously fragile.
Most models are trained and tested on "ideal" data (clear weather, no noise). In the real world, cameras face lens flare, rain, sensor noise, and even intentional adversarial attacks. Furthermore, these models often struggle with occlusions. The authors identify a gap: current research prioritizes high accuracy on clean datasets (i.i.d. performance) at the expense of reliability in the messy, unpredictable real world.
Methods
The researchers propose MIMDepth, which builds on top of a Transformer-based baseline (MT-SfMLearner). Their key innovation is integrating Masked Image Modeling (MIM)—a technique usually reserved for pre-training—directly into the task-specific training phase.
- Blockwise Masking: During training, the "target" image is divided into patches. A "Mask Generator" randomly selects blocks of these patches (covering about 25% of the image) and replaces them with learnable "mask tokens" (essentially noise).
- Global Context Learning: Because the Depth Estimation Network (a Vision Transformer) can't see the masked areas, it is forced to use the surrounding "global context" to infer what the depth should be in those missing regions.
- Complete Image Loss: Unlike standard MIM, which often only calculates loss on the masked patches, MIMDepth applies the self-supervised loss to the entire image. This ensures the model learns to reconstruct a coherent, dense depth map even when parts of the input are missing.
- Joint Training: The depth network is trained alongside an ego-motion (pose) network, using the standard "view synthesis" trick where adjacent video frames are used to cross-validate the predicted depth.
Datasets
The model was trained and evaluated on the KITTI dataset, the industry standard for autonomous driving benchmarks. Specifically:
- Eigen-Zhou split: Used for training and testing depth estimation.
- KITTI Odometry split: Used to evaluate the ego-motion (camera pose) estimation performance.
- Corrupted KITTI: The authors applied various digital filters (Gaussian noise, blur, weather effects, pixelation) to the test set to evaluate robustness.
Key Insights and Ideas
- MIM as a Task Regularizer: Traditionally, MIM is a "pre-training" step. This paper shows it is highly effective as a "live" training strategy for depth. It acts as a powerful form of data augmentation that prevents the model from over-relying on local textures.
- Information Redundancy: The authors found that a 25% mask ratio works best for depth. This is much lower than the 75% ratio often used in generative models like MAE. Why? Depth maps have less "redundancy" than RGB textures; a small change in a pixel's position can mean a huge change in depth, so the model needs more visible cues to stay accurate.
- Hallucinating through Occlusion: By training on masked images, the model naturally becomes better at handling real-world occlusions (like a car partially hidden behind a tree), as it has already practiced "filling in the blanks."
- Adversarial Shield: The reliance on global context makes the model much harder to "fool" with adversarial noise. Since the model looks at the whole scene to determine depth, local pixel-level attacks have less impact.
Key Results
- Robustness: MIMDepth outperformed the baseline (MT-SfMLearner) and popular CNN-based models (Monodepth2, PackNet) across almost all corruption types. For example, under heavy Gaussian noise, MIMDepth achieved an RMSE of 5.721m, compared to the baseline's 6.075m and Monodepth2’s 9.129m.
- Adversarial Defense: In untargeted adversarial attacks (PGD), MIMDepth remained significantly more stable. At high attack strengths ($\epsilon=16$), its error (RMSE 5.821m) was nearly 22% lower than the baseline.
- Ego-Motion Bonus: Surprisingly, integrating MIM into the depth network also improved the ego-motion (pose) estimation, reducing translation and rotation errors on the KITTI Odometry split.
- No Speed Penalty: Since masking is only used during training, the model's inference speed (prediction time) remains identical to the baseline.
Limitations and Future Work
- Masking Strategy: While blockwise masking worked best, the authors note that the optimal masking strategy might vary for different types of scenes (e.g., indoor vs. outdoor).
- Transformer Dependency: The method relies on the global receptive field of Transformers. It is unclear if a similar masking strategy would be as effective for standard Convolutional Neural Networks (CNNs) which have a more local focus.
- Future Directions: The authors suggest extending this to multi-frame depth estimation (using video sequences as input) or exploring overlapping image patches to further refine depth boundaries.
Summary updated