SPAN: Spatial-Projection Alignment for Monocular 3D Object Detection

Yifan Wang, Yian Zhao, Fanqi Pu, Xiaochen Yang, Yang Tang, Xi Chen, Wenming Yang

TL;DR

SPAN (Spatial-Projection Alignment) is a plug-and-play geometric regularization framework for monocular 3D object detection that fixes the "spatial drift" caused by predicting bounding box attributes independently. By enforcing global 3D corner alignment and tight 3D-to-2D projection constraints through a progressive hierarchical training strategy, SPAN significantly boosts detection accuracy across multiple architectures with zero added inference cost.

What Problem Does This Paper Address?

Monocular 3D object detection—estimating full 3D bounding boxes from a single RGB image—is highly desirable for autonomous driving due to its low cost compared to LiDAR sensors. However, inferring 3D spatial information from a 2D image is an inherently ill-posed problem.

To simplify the learning process, mainstream detectors use a decoupled regression paradigm. They employ separate network branches to independently estimate individual attributes like depth, 3D center, dimensions, and rotation angle.

Figure 1. Previous methods typically neglect the geometric collab- orative constraints between different attributes, resulting in spatial errors and projection misalignment. Our method aligns 3D corners and matches 3D projections with 2D boxes to improve detection accuracy and consistency.

The catch? This decoupling strategy completely ignores the geometric collaborative constraints between these attributes. If the depth head is slightly off, it can lead to physically inconsistent 3D boxes that violate basic perspective rules or drift away from the true object boundaries (as shown in Figure 1). Previous attempts to fix this either relied on fragile algebraic solvers or heavy multi-stage refinement pipelines that slowed down inference.

Methods

The authors introduce SPAN, a framework that introduces two unified geometric consistency constraints optimized end-to-end, managed by a staged training scheduler.

Figure 2. Overview of the proposed Spatial-Projection Alignment (SPAN). After a monocular detector predicts 2D and 3D attributes, SPAN adds two constrains: (a) Spatial Point Alignment that aligns predicted box corners with ground-truth in 3D space, and (b) 3D-2D Projection Alignment that constrains the projected 3D box to fit tightly inside the 2D detection. Hierarchical Task Learning controls the relative weights of these losses during training.
  1. Spatial Point Alignment: Instead of treating box attributes in isolation, SPAN derives the 8 corner coordinates from the predicted 7-DoF parameters and directly minimizes the distance to the ground-truth corners. To avoid the heavy computation of standard 3D GIoU (Generalized Intersection over Union), they use a Modified Generalized Intersection over Union (MGIoU) scheme, breaking the 3D overlap problem down into three simpler 1D projections.
  2. 3D-2D Projection Alignment: Based on perspective geometry, the 2D bounding box should tightly enclose the projected 3D cuboid on the image plane. SPAN projects the predicted 3D corners onto the image plane and forces their minimal enclosing rectangle to align perfectly with the 2D detection box using a differentiable 2D GIoU loss.
Figure 3. Correspondence between the projected 3D box and the 2D bounding box. The 2D bounding box is shown as a green solid rectangle, while the projected region of the 3D box is out- lined in orange. The minimal enclosing rectangle of the projec- tion is indicated by a red dashed line. As the figure demonstrates, when the eight corner points of the 3D box are projected onto the 2D image plane, at least four of these points are guaranteed to lie on the four boundaries of the 2D bounding box.
  1. Hierarchical Task Learning (HTL): Enforcing strict geometric constraints early in training can destabilize the model because initial predictions are highly noisy. HTL dynamically schedules loss weights across four sequential stages: 2D attributes $\rightarrow$ 3D dimensions/rotation $\rightarrow$ depth estimation $\rightarrow$ spatial-projection alignment. A subsequent stage only receives significant loss weight once its prerequisite tasks have stabilized.
The four sequential stages of the Hierarchical Task Learning strategy.

Datasets

  • KITTI Benchmark: The primary dataset used for evaluation, containing 7,481 training and 7,518 test images across Car, Pedestrian, and Cyclist categories.
  • Waymo Open Dataset: Used in the supplementary material to demonstrate the generalizability of the method on a larger, more diverse dataset.

Key Insights and Ideas

  • Soft Constraints > Hard Solvers: Traditional methods use hard algebraic equations to solve for 3D parameters from 2D boxes, making them extremely sensitive to 2D detection noise. SPAN uses differentiable soft constraints via gradient-based learning, making the network resilient to jitter.
  • The "Single Failure to Zero" Fix: The authors improved upon previous Hierarchical Task Learning methods by using a geometric mean rather than an arithmetic mean to calculate task readiness. This ensures that if even a single prerequisite task fails or fluctuates, the higher-level geometric loss is sharply suppressed, preventing early-stage error propagation.
  • Mutual Regularization: Projection alignment and depth estimation regularize each other. Projection alignment uses reliable 2D boxes as anchors to correct long-range depth errors, while the depth loss prevents the projection alignment from converging to degenerate, physically impossible solutions.

Key Results

  • Plug-and-Play Improvements: SPAN was integrated into three distinct baseline models (MonoDETR, MoVis, and MonoDGP) and consistently improved performance across the board. For example, it boosted MonoDGP's moderate $AP_{3D}$ by 0.92% on the KITTI validation set and 0.58% on the test set.
  • State-of-the-Art Performance: On the KITTI test benchmark, MonoDGP + SPAN achieved top-tier results for the Car category without using any extra data (like LiDAR or depth pre-training), outperforming some models that did use extra data. It also showed massive gains for smaller, non-rigid categories, outperforming the second-best model by 0.87% in moderate $AP_{3D}$ for Cyclists.
  • Robustness to Noise: In simulation tests, SPAN maintained stable performance even when uniform random noise up to $\pm10\text{px}$ was added to the 2D bounding box corners during training.
  • Zero Inference Cost: Because SPAN only introduces losses during the training phase, the final model runs at the exact same speed as the baseline architecture during deployment.

Limitations and Future Work

  • Breakdown under Extreme Noise: While robust to moderate jitter, SPAN's performance drops sharply when 2D localization errors exceed $\pm15\text{px}$, as the geometric constraints can no longer compensate for such severe mismatches.
  • Future Directions: The authors note that while this study focuses on monocular (single-camera) 3D perception, they plan to extend this explicit geometric regularization framework to multi-view 3D object detection in future work.

Summary updated

BibTeX
@misc{wang2025span,
  author = {Yifan Wang and Yian Zhao and Fanqi Pu and Xiaochen Yang and Yang Tang and Xi Chen and Wenming Yang},
  title = {{SPAN: Spatial-Projection Alignment for Monocular 3D Object Detection}},
  year = {2025},
  eprint = {2511.06702},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.06702},
}
Figure