Keeping Scale Uncertainty Alive in One-Step Depth Generators for Monocular Odometry

A single camera cannot tell a short walk past a small object from a long drive past a large one. Monocular visual odometry, which tracks camera motion from video, therefore recovers its trajectory only up to an unknown size factor. Worse, that factor slowly wanders over a long sequence, a failure called scale drift. A common fix is to feed the tracker a learned guess of absolute (metric) depth. That fix has a weakness: the tracker needs to know how much to trust each guess, and a single deterministic depth network gives no principled answer.

Diffusion models are generators that learn to turn random noise into samples by removing noise step by step. A diffusion model trained to predict depth gives a natural answer: draw several depth maps for the same image, and their spread in overall size is the model's uncertainty about scale. The obstacle is speed. Each sample needs many sequential network calls, far too slow for a tracker that runs at tens of frames per second. Distillation into a one-step generator removes that cost. The most popular one-step method, however, is known to collapse diversity, and diversity is exactly the uncertainty the tracker needs. This note proposes a one-step distillation that keeps the teacher's spread over global scale while sharpening everything else. It then tests whether that preserved spread, used as a weighted scale prior inside the tracker's pose optimization, reduces drift more than heuristic trust rules do.

Core Claim

Our central claim is about what distillation should preserve. Depth factors into a shape that ignores scale and a single global log-scale per frame. Mode-seeking distillation is harmless for the shape but destructive for the scale. A student trained to match the teacher's full distribution over that one scalar, while matching the shape in the usual mode-seeking way, can turn a slow sequential sampler into a fast parallel one: K noise draws evaluated in one batch, in one network pass. The spread of those K draws then gives calibrated scale weights that the tracker can use. The latency problem is not removed outright. It is moved from sequential depth, which blocks the frame loop, to batch width, which a GPU absorbs.

This combines the three directions as follows. Single-step distillation is the mechanism. Monocular scale drift is the application and the evaluation. Iterative sampling latency is the constraint that rules out simply using the teacher. Direction 1 of the file notes that distilling models that output dense 3D geometry "remains largely unexplored". The file's section on prior combinations at this intersection was truncated before it reached us. We therefore cannot confirm that no one-step diffusion depth model exists. Our claimed novelty rests on the scale-distribution objective and its use inside pose optimization, not on one-step depth as such.

Relation to Prior Work

The method draws on distribution-matching distillation. One-Step Diffusion with Distribution Matching Distillation trains a one-step generator by minimizing reverse KL divergence. It uses a "real" score from the frozen teacher and a "fake" score from a second network that tracks the student. It reaches FID 2.62 on ImageNet 64×64 and 20 FPS at 512×512. One-Step Diffusion Policy applies the same idea to robot actions. It goes from 1.49 Hz to 62.5 Hz and slightly beats its teacher (84.3% vs 82.9% Robomimic success). The file attributes that gain partly to the fact that mode-seeking suits unimodal actions.

That same property limits our design. The file's open-problems list for Direction 1 warns that reverse KL drops modes in dense spatial outputs. We therefore reuse DMD-style matching only for the scale-free shape. We replace it for the scale variable with a distribution-matching loss. This choice is informed by Score-of-Mixture Training, which avoids trajectory simulation by estimating scores of mixtures. A one-dimensional variable lets us go simpler still and use a proper scoring rule directly. Consistency-style distillation is a second family we compare against but do not adopt. See Further When Clear: Curriculum Consistency Model reports one-step FID 1.64 on CIFAR-10. Consistency distillation maps each noise to one fixed output, which says nothing about whether the spread across noises is calibrated.

The work on scale drift both motivates and constrains the design. Mapping Large Loops with a Single Hand-Held Camera identified the feedback loop: wrong baseline, wrong triangulated depth, wrong next pose. LDSO handles the resulting drift by optimizing over 7-degree-of-freedom similarity transforms. Deep Patch Visual Odometry (DPVO) is our host tracker. It is a fast learned patch tracker at 60 FPS, but it is scale-free and drifts.

RoMeO is the closest system to ours. It injects metric depth priors from a deterministic network (DPT-Hybrid) into DPVO's bundle adjustment, which is the joint refinement of poses and 3D points. It guards the priors with an adaptive noise filter based on photometric error, and it reports KITTI ATE 2.73 m with no scale alignment. We differ in one place: the trust assigned to each depth prior comes from a generative posterior over scale, not from a photometric heuristic.

Improving Monocular Visual Odometry Using Learned Depth uses relative depth to reject bad matches in ORB-SLAM, cutting KITTI 02 RMSE from 41.00 m to 28.79 m. VGGT-Motion fights drift in 3D foundation models through motion segmentation and Sim(3) submap alignment, with an 84–96% ATE reduction on 4Seasons and Complex Urban. Both are complementary to ours, since they change which frames and matches are used rather than how much a depth prior is trusted.

Research Program

Teacher. The file names no pretrained diffusion depth teacher. We will therefore fine-tune an image latent diffusion model to produce log-metric depth on standard synthetic plus driving data, sampled with many steps. We will verify one thing before any distillation: across seeds, the spread of the teacher's samples in per-frame log-scale must be calibrated against ground truth. We measure this with interval coverage and the continuous ranked probability score (CRPS), which rewards distributions that are both sharp and correct. If the teacher's own scale spread is not calibrated, the project stops there and reports that negative result.

Student and objective. Each output is split into a log-scale $s$, defined as the median log-depth, and a shape $d - s$. The student $G_\theta(z, x)$ maps image $x$ and noise $z$ to depth in one pass. Its loss is

$$ \mathcal{L} = \mathcal{L}_{\text{DMD}}(\text{shape}) + \lambda \, \mathbb{E}_x\left[\mathrm{ED}\big(\{s(G_\theta(z_k,x))\}_{k=1}^K,\ \{s^{T}_j(x)\}_{j=1}^M\big)\right]. $$

Here $\mathcal{L}_{\text{DMD}}$ is the real-versus-fake score loss applied to the scale-free shape. $\mathrm{ED}$ is the energy distance, a proper two-sample discrepancy on scalars that penalizes both lost spread and wrong spread. The $s^{T}_j(x)$ are $M$ teacher log-scale samples cached offline per training image. $\lambda$ weights the scale term.

Integration. On each DPVO keyframe the student runs once with K=8 noises batched together. The median of the K draws gives the metric depth prior. The variance of their log-scales becomes the inverse weight on a per-keyframe scale factor in the bundle adjustment cost. If the draws split into separate clusters, we use a max-mixture factor, which lets the optimizer pick whichever cluster best fits the geometry. The latency target is to stay within the slack DPVO leaves at its 60 FPS budget when the student runs only on keyframes.

Baselines

The naive reference is DPVO with no scale anchor, evaluated without scale alignment. RoMeO reports its unscaled KITTI ATE as 196.9 m.

A second simple reference is DPVO with each keyframe's scale set to the median of a deterministic metric depth network and no weighting. This isolates what any metric prior buys.

The strongest existing method is RoMeO, with KITTI ATE 2.73 m without manual scale alignment as reported in RoMeO. It is the strongest competitor because it already solves this exact problem with the same tracker and a metric prior, differing from us only in how trust is assigned. We will rerun it with its released configuration. Its depth network will be retrained on our teacher's training data so that data is not the confound. We will then report both our rerun and the paper figure. Beating it means lower unscaled ATE on KITTI and on 4Seasons night and rural sequences at equal per-frame latency. Matching it on KITTI while winning on 4Seasons would also count, since that is where the file says drift worsens.

A heteroscedastic baseline uses the same student backbone trained to regress a mean and a variance of log-scale with a Gaussian likelihood, and gets the same compute and tuning budget.

The multi-step teacher with K samples gives the accuracy ceiling at its true latency.

Two ablations isolate the key ingredient. The first is the student trained with $\mathcal{L}_{\text{DMD}}$ on full depth and no scale term, which should collapse the spread. The second is our student with its predicted variance replaced by a constant.

Why not just…?

Why not just use a deterministic metric depth network, as RoMeO does? This is a real threat. RoMeO's photometric filter may already capture most of the value of knowing when to distrust a prior. The head-to-head on 4Seasons settles it. If calibrated generative variance does not lower drift beyond RoMeO's filter in feature-poor and night sequences, the generative route is unnecessary and we will say so.

Why not just regress a mean and a variance? On unimodal scale errors this baseline plausibly matches us, because one Gaussian then describes the spread fully, and we treat it as the default to beat. The generative student can only win where the teacher's scale posterior has more than one mode: close-up textures, aerial-like views, and scenes without recognizable objects. Before reading any drift result, we will measure how often the teacher's posteriors are multimodal on each benchmark. If they almost never are, we will report that the heteroscedastic head suffices.

Why not just run the teacher with a few steps, or a deep ensemble? Few-step sampling still runs its steps one after another, and step-skipping degrades samples. A deep ensemble multiplies the number of models and still has no generative prior. Both get the same latency budget in our comparison. We expect the few-step teacher to miss the frame budget at matched calibration, but this is a measurement, not an assumption.

Decisive Experiments

All methods are evaluated on KITTI odometry, 4Seasons (4Seasons), and Complex Urban, with TartanAir used for training sanity checks. We report ATE without scale alignment, scale drift as the slope of the estimated-to-true scale ratio over distance, per-frame latency, and the calibration of scale draws (CRPS and coverage).

Three checks decide the project. The first is whether the scale term keeps teacher-level calibration in one step while the DMD-only ablation collapses. The second is whether the preserved variance lowers unscaled drift relative to the constant-variance ablation; without that, the variance carries no useful information. The third is whether the full system beats both RoMeO and the heteroscedastic head on 4Seasons at matched latency. A failure on the first check ends the generative approach. A failure on the third, after passing the first two, would show that the uncertainty is real but that cheaper estimators already capture it.