When the Box Is Six Pixels Tall: Exact Depth Uncertainty for Distant Objects in Monocular 3D Detection

A single camera cannot measure distance directly. Monocular 3D detectors, which place 3D boxes around objects using one image, usually recover distance from a ratio: an object's physical height in meters divided by its height in pixels, times the focal length. This works well for nearby cars. For distant objects that appear only a few pixels tall, it breaks badly. A one-pixel labeling or prediction error on a 6-pixel box is a 17% error in the denominator, so the estimated distance can be off by many meters, and the error is lopsided: underestimating pixel height inflates distance far more than overestimating it shrinks distance. Current probabilistic detectors summarize this error with a symmetric bell-shaped curve, which describes a large, close object reasonably and a tiny, far one poorly.

We propose to represent the pixel height of each detected object as a discrete probability distribution over fine pixel bins, the kind used by modern 2D detectors. We then push that distribution through the projection formula exactly, bin by bin, rather than through a linear approximation. The result is a depth distribution that is skewed, possibly multimodal, and honest about how little the geometry says when the box is tiny. We multiply it with an appearance-based depth distribution predicted from context, so that the model trusts geometry when boxes are large and scene cues when they are small. The weighting comes from the predicted uncertainty, with no hand-set distance threshold. The claim is narrow and testable: almost all of the gain should appear in the small-pixel-height regime, and none should be lost on large objects.

Core Claim

The prior work splits into three strands that do not meet. Monocular detectors with uncertainty propagation model the projection's fragility but assume simple distributions. GUP Net treats physical height as a Laplace variable and propagates it into depth, but it keeps pixel height deterministic. GUPNet++ adds a Laplace distribution on pixel height too, but it assumes the two height errors are independent and names correlated, non-parametric modeling as future work. MonoRCNN++ addresses the independence problem by predicting a full covariance over physical height and reciprocal pixel height under a multivariate Laplace, so over- and under-estimates can cancel. None of the three evaluates objects a few pixels tall, and all three remain unimodal.

The tiny-object literature shows that exactly this regime is where box errors become non-Gaussian and sensitive to labels. NWD shows IoU collapsing from 0.53 to 0.06 under a one-pixel shift on a 6×6 box. TOLF finds that tiny-box errors are heavy-tailed and skewed enough to warrant normalizing flows. Both stay in 2D pixel space.

Discrete box distributions supply the representation we reuse. Generalized Focal Loss predicts coordinate histograms, GFL V2 shows that histogram shape tracks localization quality, and D-FINE refines such histograms across transformer decoder layers. None of these connects to depth.

Our contribution is the missing link. We use a discrete pixel-height distribution, a conditional physical-height distribution that captures the correlation MonoRCNN++ found, an exact change of variables into depth, and a fusion with an appearance depth distribution in the style of CaDDN's categorical depth bins.

Mechanism

For each object the head predicts probabilities $p_k$ over pixel-height bins $h_k$. The bins are one pixel wide or finer and are measured at native image resolution. For each bin, the head also predicts a Laplace distribution $q(H \mid h_k)$ over physical height $H$. Its location and scale depend on the bin, which lets the model express correlation between the two heights. The geometric depth density then follows from the exact change of variables $H = Z h_k / f$, where $f$ is the focal length:

$$p_{\text{geo}}(Z) = \sum_k p_k \, \frac{h_k}{f} \, q\!\left(\frac{Z h_k}{f} \,\Big|\, h_k\right).$$

This mixture is skewed toward large depths whenever small $h_k$ carry mass, and no linearization is involved. A second branch predicts an appearance depth distribution $p_{\text{app}}(Z)$ over depth bins from the object's features and scene context. The final estimate is the normalized product $p(Z) \propto p_{\text{geo}}(Z)\, p_{\text{app}}(Z)$, evaluated on a fine depth grid. Training minimizes the negative log-likelihood of the true depth under $p(Z)$, plus each branch's own likelihood loss so that neither collapses. At inference, we report the posterior mode as the depth. The detection score uses the probability mass within a depth interval consistent with a high 3D IoU, following the IoU-guided confidence of GUPNet++.

When the box is large, $p_{\text{geo}}$ is sharp and dominates the product. When the box is tiny, $p_{\text{geo}}$ spreads over tens of meters and the context branch takes over. We also propose uniform bins in log pixel height, which give fine resolution exactly where small objects live. This reverses the problem CaDDN's linearly increasing depth bins create for far targets.

Research Program

We build the head on a GUPNet++-style single-stage detector so that the backbone, training schedule, and 2D detection stay fixed and only the depth head changes. Using a single-stage detector also sidesteps the region-pooling degradation on tiny objects noted for MonoRCNN++. Existing benchmarks rarely score objects this small, so we construct a controlled small-object testbed. We downscale KITTI images by factors of 2, 3, and 4 and rescale the camera intrinsics accordingly. Every object keeps its exact 3D ground truth while its pixel footprint shrinks, which separates "small in pixels" from "rare or occluded." We complement this with long-range slices of the Waymo Open Dataset and nuScenes, stratified by 2D box height.

To test the annotation-noise story that TOLF raises, we inject controlled one- and two-pixel jitter into training box heights and measure how each method's depth error degrades. We report results by 2D pixel-height bin (under 10, 10–25, 25–40, and over 40 pixels) instead of only KITTI's Easy, Moderate, and Hard splits. The standard KITTI evaluation excludes boxes under 25 pixels, so the regime we care about is largely invisible to it.

Baselines

The naive reference point is a deterministic height-ratio detector: GUP Net's architecture with its uncertainty removed, regressing both heights with an L1 loss and dividing. It shows how bad the unprotected ratio becomes as boxes shrink.

The strongest competitor on uncorrelated-but-propagated uncertainty is GUPNet++. It reports a 2.28% gain over GUP Net on KITTI moderate cars and 34.8% mAP on the nuScenes test set. The file gives no absolute KITTI AP for it, and no reported result was found on Lacuna for any of these methods on sub-25-pixel objects or downscaled KITTI.

The strongest competitor on correlation is MonoRCNN++, which reports Waymo LEVEL 1 AP 59.11% above DEVIANT and KITTI AP3D gains of 9.37/8.46/13.06% over MonoRCNN. Its reciprocal-height parameterization already absorbs some of the skew, which makes it the most dangerous baseline.

We will reimplement both heads on our shared backbone. Every baseline gets the same data, the same downscaled and jittered variants, the same epochs, and the same hyperparameter search budget. We also run the published MonoRCNN++ and GUPNet++ code with their original backbones to confirm the reimplementations match.

We add two further baselines. MonoDETR represents strong direct, context-driven depth without geometry. A CaDDN-style categorical depth head represents the appearance branch alone.

Beating the baselines means two things. The first is a statistically clear reduction in depth error and a gain in AP3D in the sub-25-pixel bins, measured across three seeds. The second is parity (within seed noise) above 40 pixels, together with better calibration of depth intervals: the nominal 80% interval should contain the truth about 80% of the time within each pixel-height bin.

Three ablations isolate the key ingredient. Replacing the discrete pixel-height histogram with a Laplace while keeping exact propagation tests whether the non-Gaussian shape matters. Replacing exact propagation with first-order linearization tests whether the change of variables matters. Removing the appearance branch, or fixing the fusion weights by distance, tests whether uncertainty-driven fusion matters.

Why not just…?

Why not just use MonoRCNN++'s correlated Laplace on reciprocal height? This is the real threat. Predicting $1/h$ with a Laplace already produces an asymmetric depth error, and a full covariance handles correlation. Where it should fall short is on tiny boxes. There, pixel quantization and label jitter make the pixel-height posterior discrete and sometimes bimodal, for example when the model is torn between two adjacent pixel boundaries. A single Laplace in reciprocal space cannot express that, nor the context-dependent spread. The Laplace-histogram ablation, combined with head-to-head comparison against our MonoRCNN++-style reimplementation in the under-10-pixel bin, settles this. If the two match there, the discrete representation adds nothing and we will report exactly that.

Why not just drop the geometric cue for far objects and regress depth directly? MonoDETR-style context depth is strong, and a distance-gated switch is simple. CaDDN attributes the main failure of direct monocular depth to overconfident single-value estimates, and MonoRCNN++ argues that geometric decomposition generalizes better than appearance heuristics. A hard gate also throws away the geometric cue in the 10–25 pixel band, where it is noisy but still informative. We test this directly: the "fixed fusion by distance" ablation and the standalone MonoDETR and CaDDN heads are exactly this alternative. If they match our model across all bins, uncertainty-driven fusion is unnecessary.

Why not just preserve resolution with a better feature pyramid, or train the 2D head with NWD or TOLF losses? Better features and tiny-object 2D losses do help. On AI-TOD, NWD lifts Faster R-CNN from 11.1% to 17.8% AP and TOLF adds 1.7% AP. But they sharpen the pixel-height estimate without removing its irreducible one-pixel floor, and the projection amplifies whatever error is left. These methods are complementary rather than competing, so we give every baseline the same high-resolution feature pyramid and an NWD-style 2D assignment. Any remaining gap is then attributable to the depth head.

Decisive Checks

The first check is the error-versus-pixel-height curve on downscaled KITTI. Our method should track the baselines above 40 pixels and diverge below 25, and the gap should widen at downscale factors of 3 and 4. The second is interval calibration per pixel-height bin. Laplace-based baselines should be overconfident on the far side of the depth distribution for tiny boxes, and our model should not. The third is the label-jitter experiment, where our depth error should grow more slowly as injected noise increases. If the Laplace-histogram ablation erases the gains on the first check, the claim reduces to exact propagation plus fusion, and we will present it as that smaller finding.