Checking Monocular 3D Boxes Against the Road They Stand On

A single camera cannot tell a small nearby car from a large distant one. Monocular 3D detectors, which predict a 3D box for each object from one RGB image, resolve this mainly by assuming the road is a flat plane: an object's distance then follows from how high its tyres sit in the image. On slopes, crests and dips that rule fails. A car at the top of a hill appears high in the frame, so a flat-world model places it far away when it is close.

We propose to stop treating the ground as a rule for computing depth and to use it instead as a test that candidate boxes must pass. A metric depth model reconstructs the visible road as a height field, meaning a map of road elevation over the ground plane. Each candidate 3D box is then scored on two questions: do its four bottom corners touch that surface without sinking into it or floating above it, and does it overlap its neighbours? These physical clearance measurements become inputs to a learned box re-ranker. The claim is that a large part of monocular depth error on non-flat roads, and on objects whose tyres are hidden, comes from accepting physically impossible boxes. A verifier that can see terrain clearance should remove that error at low added latency.

Core Claim and Motivation

The strongest evidence that verification is the bottleneck comes from MonoXiver. It samples 25 candidate boxes within ±1.5 m of a detector's prediction, projects each back into the image, and re-scores the candidates with a cross-attention module that compares projected box geometry against image appearance. The paper reports that choosing the best candidate from that grid, if one knew it, would raise AP from about 19% to 76%. The candidate set already contains good boxes. What is missing is a better way to pick them. MonoXiver judges candidates only by 2D alignment, so a car sunk half a metre into the asphalt can win if its projected edges line up with image features.

Our addition targets that gap. For each candidate we compute signed clearances from its bottom corners to a reconstructed, non-planar road surface, plus its overlap volume with other accepted boxes. The re-ranker learns how to weigh these terms from data. This sidesteps the hand-tuned balance between attraction and repulsion that makes contact-versus-penetration penalties fragile, as discussed in Zhou et al.. It also matters for occlusion. Because the clearance is measured against road interpolated from the visible pavement, it constrains depth even when the object's own contact points cannot be seen. That is the small-footprint and occluded-contact failure that MonoGround reports for ground-anchored methods.

Relation to Prior Work

Several ground-prior detectors motivate this work, and their planarity defines what we must beat.

GPENet detects wheel and foot contact points and back-projects them onto a plane whose tilt comes from horizon estimation. MonoGround turns each camera ray into a single ray-plane intersection and supervises dense depth on the bottom faces of boxes. Ground-aware convolutions inject a per-pixel flat-ground depth prior and discard anchors far from the plane. MoGDE estimates camera pitch and roll but still assumes a plane extends out from the vehicle. MonoDGP predicts a residual on top of a depth computed from the ratio of 3D to 2D object height, and states that it assumes zero pitch and flat ground.

All five assume one global or local plane. We replace the plane with a reconstructed height field, and we use the ground to check candidate boxes rather than to compute depth in one step. The failure mode is documented: Geo-Aug shows that road slope introduces non-linear errors into mappings from image row to depth.

Two works constrain the design. Crowd4D shows that contact with a non-planar terrain mesh improves reconstruction on slopes and stairs. However, it needs about 4 hours of offline optimisation for 200 frames, which rules out joint terrain-and-object optimisation at driving rates. Floating No More removes floating artifacts by predicting pixel heights, but uses grid search and assumes a single flat ground. We keep their goal of grounded contact and replace slow optimisation with feature computation inside a fast re-ranker.

Three works supply methods. Clearance-from-a-surface follows the shared-interior signed-distance penalty of Grasping Field, simplified to box corners against a height field. Free-space reasoning follows Hurl et al., who flag hallucinated boxes by finding sensor returns in space a real object would have blocked. We use the analogous monocular check: road depth observed behind the position a candidate box claims to occupy counts as evidence against that candidate. Metric terrain comes from Metric3D v2, which handles focal-length differences by mapping images into a canonical camera space and reports 0.044 absolute relative error zero-shot on KITTI.

Research Program

The pipeline has three stages.

First, we build the road height field. Metric3D v2 predicts metric depth. We keep pixels that a road segmentation labels as road, lift them to 3D using the camera intrinsics, and fit a smooth elevation map on a 0.5 m bird's-eye grid with a robust spline. Each grid cell also carries an uncertainty that grows with distance from the nearest observed road pixel.

Second, we compute physical features for each candidate. Following MonoXiver, we sample 25 candidates around each base detection. For each candidate we compute four signed corner clearances, its overlap volume with higher-ranked boxes, and a free-space violation score: the fraction of the projected box footprint where observed road depth lies well behind the box. We also include the terrain uncertainty under each corner, so the re-ranker can discount clearance where the road was never seen.

Third, these features are concatenated to the per-candidate geometric tokens of a MonoXiver-style cross-attention re-ranker. The re-ranker is trained with MonoXiver's objective. During training only, we additionally supervise the clearances against road heights derived from LiDAR. The test-time pipeline remains camera-only.

The analytical question is where any gain comes from. We expect improvement to concentrate on objects on non-flat road and on objects whose contact points are occluded, and to be close to zero on flat, unoccluded cars. That pattern is the signature of the proposed mechanism. A uniform gain would instead suggest the extra features act only as regularisation.

Baselines

The naive reference is the base detector alone, MonoCon or MonoDLE with no re-ranking. Running it shows how much any verifier adds at all.

The strongest existing method on this question is MonoXiver on the same base detectors. It reports +3.39 Moderate AP3D on KITTI for MonoCon, +2.47 for MonoDLE, and +1.45 Level-1 AP on Waymo, with about 8 ms of overhead. It is the right competitor because it uses the same candidate grid and differs from our method only in what the re-ranker can see. We will retrain it ourselves with identical base detections, candidate grids, training schedule, and hyperparameter search budget. Beating it means a statistically reliable Moderate AP3D gain on KITTI validation over our reproduction, and a larger gain on the slope-stratified subset described below, at a latency cost we report explicitly.

We also compare against strong single-stage ground-prior detectors at their reported numbers: MonoDGP at 18.72% Moderate AP3D on the KITTI test set, MonoGround at 18.69% Moderate AP3D on KITTI validation, and MoGDE with +1.96 Moderate over MonoDETR. Where code allows, we also re-run them on the slope subset.

Two ablations isolate the key ingredient. The first replaces the height field with a single least-squares plane fitted to the same road points. This tests whether non-planarity matters or whether any metric ground suffices. The second keeps the Metric3D v2 features but removes the clearance and overlap features. This tests whether the gain comes from physical reasoning or simply from having access to a strong depth model.

Why not just…?

Why not just snap each predicted box down onto the Metric3D v2 road surface, with no learning? This is the most serious threat, and we run it as a baseline. The procedure slides each box along its viewing ray until its bottom face meets the height field. It should help on visible, isolated cars. We expect it to fail where its single hard decision is wrong: when the road under the object is occluded and the interpolated surface is uncertain, or when 3D-to-2D height cues contradict the terrain. The re-ranker can weigh those signals against each other; snapping cannot. If snapping matches our method on the slope subset and the occluded subset, the learned re-ranker is unnecessary and we would report that.

Why not just use a flat-ground detector with dynamic pitch, like MoGDE? Estimating pitch corrects camera motion but not road shape. Geo-Aug attributes slope errors to the terrain itself. The plane-only ablation answers this directly: if a fitted plane recovers most of the gain from the height field, non-planar terrain is not worth its cost on these datasets.

Why not just regress metric boxes end to end from a foundation-model backbone? Geo-Aug shows that unconstrained detectors break when cues of object size and image position are shifted. Floating and sinking artifacts persist in unconstrained depth outputs, as reported by Floating No More and From-Ground-To-Objects. The ablation that keeps Metric3D v2 features but drops the physical terms measures exactly what a strong backbone gives without the physics check.

Why not just run a physics engine after detection? Physics simulation is non-differentiable and gives no training signal. Offline terrain contact, as in Crowd4D, runs at hours per sequence. A rigid-body solver also does not know which box to trust when two boxes collide, whereas the re-ranker uses image evidence to decide.

Proposed Experiments

We train and evaluate on KITTI 3D detection, reporting AP3D and AP-BEV at IoU 0.7 for cars and 0.5 for pedestrians and cyclists, together with mean depth error. GPENet reports a reduction from 1.36 m to 0.99 m on KITTI validation, which gives a reference scale for depth error. We repeat the main comparison on Waymo, where we compare against MonoXiver's reported +1.45. We test KITTI-to-nuScenes transfer against Geo-Aug's reported 10.23 to 19.40 mAP, combining Geo-Aug's augmentations with ours to check that the gains are complementary.

Because these benchmarks are mostly flat, the decisive evaluation stratifies objects. Using LiDAR, we compute the road slope and curvature under each ground-truth box and, separately, whether its contact points are occluded. We then report AP and depth error per stratum. The proposal succeeds if three things hold: the gain over MonoXiver grows with terrain slope and with contact occlusion, the plane-only ablation loses most of that slope-dependent gain, and the training-free snapping baseline falls behind specifically on occluded objects.

We also measure physical plausibility directly, using mean penetration depth and floating height against LiDAR road, adapting the penetration-depth metric that CPF uses for hand-object contact.

Latency is a real cost because Metric3D v2 ViT-Large runs on every frame. We found no reported Metric3D v2 latency on Lacuna, so we will measure it, and we will also test a smaller backbone and height-field updates every few frames. Finally, because metric terrain depends on the camera intrinsics, we perturb focal length by ±5% to quantify how sensitive the verifier is to calibration errors.