Self-supervised Monocular Depth Estimation with Large Kernel Attention

Xuezhi Xiang, Yao Wang, Lei Zhang, Denis Ombati, Himaloy Himu, Xiantong ZhenarXiv 2024 · DOI

Abstract

Self-supervised monocular depth estimation has emerged as a powerful alternative to supervised methods, eliminating the need for expensive LiDAR data. However, existing models often struggle with the trade-off between global context and spatial resolution, leading to blurred object boundaries. This paper introduces a novel architecture that replaces standard Transformers with Large Kernel Attention (LKA) and incorporates a learnable upsampling module. By combining the long-range dependency modeling of Transformers with the spatial efficiency of convolutions, the proposed model achieves state-of-the-art accuracy on the KITTI dataset, producing significantly sharper depth maps with finer object details.

Introduction

Estimating 3D depth from a single 2D image is a fundamental challenge in autonomous driving and augmented reality. Self-supervised methods address this by learning from video sequences, using geometric consistency (reprojection error) as a supervisory signal. Despite their success, two major hurdles remain:

  1. The Transformer Trade-off: While Transformers capture long-range dependencies, they often treat images as 1D sequences, destroying 2D spatial structures and lacking channel adaptivity.
  2. The "Blurry Edge" Problem: Standard decoders rely on simple bilinear interpolation, which causes depth "bleeding" at object boundaries, potentially compromising safety in navigation tasks.

Proposed Method

The authors propose an encoder-decoder architecture utilizing HRNet18 as the backbone, enhanced by two primary innovations in the decoder stage.

Overview of the self-supervised depth estimation framework, featuring the Depth and Pose networks.

1. Large Kernel Attention (LKA)

To bridge the gap between CNNs and Transformers, the model employs LKA. This module decomposes a large-kernel convolution into three distinct components:

  • Spatial Local Convolution: Captures immediate neighborhood information.
  • Spatial Long-range Convolution: Utilizes dilated depth-wise convolution to achieve a global receptive field without the computational overhead of standard self-attention.
  • Channel Convolution (1x1): Restores the channel-wise adaptivity typically missing in pure convolutional approaches.

This hybrid approach allows the network to maintain the inductive bias of CNNs (spatial locality) while gaining the global context of Transformers.

2. Learned Upsampling Module

To combat the "blurry edge" problem, the authors replace standard bilinear interpolation with a learnable upsampling module. This module uses a linear layer and pixel shuffling to predict spatial offsets, which are then used by a GridSample function to resample the feature map. By treating upscaling as a coordinate-based resampling problem, the network learns to "snap" depth boundaries to the actual semantic edges of objects.

Experimental Results

The model was evaluated on the KITTI dataset using the standard Eigen split (640 × 192 resolution).

Quantitative Performance

The proposed method achieved an Absolute Relative Error (AbsRel) of 0.095 and a $δ < 1.25$ accuracy of 90.7%. These results outperform prominent Transformer-based models such as MonoViT and MonoFormer while maintaining lower computational complexity.

Qualitative Analysis

Visual comparisons demonstrate the model's superior ability to delineate thin structures and maintain sharp boundaries for pedestrians, roadside trees, and traffic signs. As shown in the results, the proposed method significantly reduces the "halo" effect common in previous baselines.

Qualitative comparison of depth maps. Our method shows significantly sharper edges and better detail for small objects compared to Monodepth2 and RA-Depth.

Conclusion and Future Work

By integrating Large Kernel Attention and learned upsampling, this work demonstrates that self-supervised models can achieve high-fidelity depth maps without the heavy computational burden of full Transformers. While the results on the KITTI benchmark are state-of-the-art, future research should explore the model's generalization to adverse weather conditions and dynamic scenes where the static-world assumption of self-supervised learning is challenged.

Summary updated

BibTeX
@misc{xiang2024self,
  author = {Xuezhi Xiang and Yao Wang and Lei Zhang and Denis Ombati and Himaloy Himu and Xiantong Zhen},
  title = {{Self-supervised Monocular Depth Estimation with Large Kernel Attention}},
  year = {2024},
  eprint = {2409.17895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.17895},
}
Figure