Abstract
In this work, we propose an approach to learn attention maps based on the features learned by a convolutional network. This network is trained to estimate dense depth maps using a view synthesis approach, in which sequences of frames are used as a supervised signal. The attention maps are used to increase the error contribution of the meaningful regions on the error computation between the synthesized and the real views. The attention maps are learned simultaneously with the depth network in an end-to-end manner. We evaluate our method on the depth estimation and odometry tasks of the KITTI benchmark. The inclusion of the attention maps shows an improvement in both tasks when compared to a competitive baseline method.
Introduction
Estimating depth from a single camera (monocular) is a fundamental challenge in robotics and autonomous driving. While sensors like LiDAR provide ground truth depth, they are expensive. Deep learning offers a cheaper alternative, but training these models usually requires massive amounts of labeled data.
To circumvent this, researchers use unsupervised learning via "view synthesis." If the depth of a scene and the camera's motion between two frames are known, one frame can be mathematically "warped" to reconstruct the next. The difference between this synthesized frame and the actual frame—the reconstruction error—serves as the training signal. However, standard approaches treat every pixel as equally important. In reality, regions like moving objects, occlusions, or textureless skies provide unreliable signals. This paper addresses the need to quantify the importance of different image regions to make the learning process more robust.
Methodology
The proposed end-to-end framework consists of two primary neural networks: a Depth Network (CNN) that predicts a dense depth map from a single image, and a Pose Network (CNN) that estimates camera motion (rotation and translation) between adjacent frames.
The Key Innovation: Attention Maps
The authors extract features from the encoder part of the depth network to generate a pixel-wise weight for the reconstruction loss. If the attention map assigns a high value to a pixel, the model prioritizes the error in that region. To prevent the network from trivially setting all attention values to zero to minimize loss, a constraint is added: the sum of the attention map must be proportional to the image resolution. This forces the model to distribute its "attention budget" across the scene, focusing on the most meaningful regions while ignoring noise.
Experimental Results
The method was evaluated using the KITTI benchmark for both depth estimation and odometry. By allowing the network to focus on "meaningful regions," it ignores the noise inherent in complex, real-world video sequences. Furthermore, because the attention mechanism leverages features already learned by the depth encoder, it is computationally efficient.
Depth Estimation Performance
The inclusion of attention maps yielded clear quantitative improvements over the baseline. In depth estimation, the Absolute Relative (Abs Rel) error dropped from 0.1963 to 0.1642, and the Root Mean Square Error (RMSE) improved from 6.7384 to 6.1079.
Odometry and Camera Tracking
The approach also significantly improved odometry performance. Better depth estimation provides a cleaner signal to the pose network, leading to more stable camera tracking. Translation error accumulation was substantially lower than the baseline, and rotation stability was consistently higher across all sampled path lengths.
Conclusion
This work demonstrates that learning attention maps in an unsupervised manner significantly enhances the performance of monocular depth and ego-motion estimation. By selectively weighting the reconstruction loss, the model becomes robust to common pitfalls in view synthesis, such as dynamic objects and occlusions. Future work could explore handling highly dynamic scenes where the "static world" assumption of view synthesis is frequently violated.
Summary updated