Abstract
Monocular 3D object detection is a critical yet challenging task for autonomous driving. While some existing methods utilize off-the-shelf depth estimators to provide 3D priors, they often suffer from significant computational overhead and performance bottlenecks caused by inaccurate depth predictions. We introduce MonoDTR, an end-to-end depth-aware transformer network designed to alleviate these issues. MonoDTR consists of two primary components: the Depth-Aware Feature Enhancement (DFE) module, which implicitly learns depth features via auxiliary supervision, and the Depth-Aware Transformer (DTR) module, which integrates context and depth information globally. Furthermore, we propose a novel Depth Positional Encoding (DPE) to inject spatial depth hints into the transformer architecture. Our approach achieves state-of-the-art performance on the KITTI benchmark while maintaining real-time inference speeds of 27 FPS.
Introduction
Monocular 3D object detection—the ability to localize and size objects in 3D space using only a single 2D camera—is often considered a "holy grail" for low-cost autonomous driving systems. Unlike LiDAR-based systems, monocular setups lack inherent depth data, making the recovery of 3D geometry from 2D pixels an ill-posed problem.
Existing research typically follows two paths: Pseudo-LiDAR methods, which convert estimated depth maps into 3D point clouds, and Fusion-based methods, which combine image features with depth maps. Both approaches are hindered by the computational cost of standalone depth estimators and the risk of error propagation from inaccurate depth priors. MonoDTR addresses these gaps by building a "depth-aware" architecture that learns to reason about 3D geometry implicitly, eliminating the need for heavy external depth models during inference.
Methodology
MonoDTR introduces three core innovations to the transformer architecture to bridge the gap between 2D images and 3D space.
Depth-Aware Feature Enhancement (DFE)
The DFE module enables the network to discretize depth into discrete "bins." It utilizes auxiliary supervision by comparing internal depth predictions against ground-truth LiDAR data during the training phase. Crucially, this supervision is discarded during testing, allowing the model to remain lightweight. The module also employs "Depth Prototypes" to aggregate global depth context, helping the model understand the broader geometric structure of the scene.
Depth-Aware Transformer (DTR)
In standard vision transformers (like DETR), the decoder typically uses learned object queries. MonoDTR replaces these generic queries with the depth-aware features generated by the DFE. This transition allows the transformer to better account for scale variance—the geometric reality where distant objects appear significantly smaller than those nearby.
Depth Positional Encoding (DPE)
Traditional transformers rely on 2D pixel coordinates for positional encoding. However, in 3D detection, a pixel's depth is a more critical spatial hint than its X/Y position on the image plane. DPE injects 3D spatial hints based on the predicted depth category of each pixel, effectively allowing the model to "see" the world through a 3D coordinate system.
To ensure the model remains viable for real-time applications, the authors utilize Linear Attention. This modification reduces the computational complexity of the transformer from quadratic to linear relative to the number of pixels, significantly boosting inference speed.
Experimental Results
Benchmark Performance
The model was evaluated primarily on the KITTI 3D Object Detection Benchmark. On the KITTI test set, MonoDTR established a new state-of-the-art for monocular methods in the "Car" category, achieving an $AP_{3D}$ of 15.39% (Moderate setting).
Efficiency and Versatility
One of MonoDTR's most significant advantages is its efficiency. The model runs in approximately 37ms (~27 FPS) on a single NVIDIA V100 GPU. In contrast, other high-performing depth-assisted models like CaDDN require 630ms—making MonoDTR nearly 17 times faster. Furthermore, the DFE and DTR modules are "plug-and-play"; when integrated into other existing detectors (such as M3D-RPN or MonoDLE), they consistently improved detection accuracy, demonstrating the robustness of the depth-aware features.
Discussion and Conclusion
MonoDTR demonstrates that implicit depth reasoning is often superior to explicit depth estimation for 3D detection tasks. By training the model to understand depth categories as an intermediate feature, the network becomes more robust to the geometric nuances of the scene.
However, challenges remain. The model's performance is sensitive to the accuracy of its internal depth reasoning; significant errors in center-depth estimation can lead to poorly localized 3D bounding boxes. Additionally, while the model excels at detecting cars, smaller or non-rigid objects like pedestrians and cyclists remain difficult to localize accurately due to their varied poses and limited pixel footprint. Future work will likely focus on further lightweight feature extraction to push the boundaries of single-camera 3D perception.
Summary updated