A hybrid visual odometry system tracks a moving camera by combining two kinds of evidence. The first is "direct" evidence: how well raw pixel brightness lines up between frames. The second is "indirect" evidence: how well matched keypoints, meaning distinctive corners with descriptors, line up geometrically. Each source fails under different conditions. Brightness alignment breaks when the camera's exposure, vignetting or rolling shutter distorts intensities. Keypoint matching breaks in low-texture scenes and under blur. Today's hybrids decide how much to trust each source with hand-written rules. These rules cannot tell when a source is confidently wrong, as opposed to merely noisy.
We propose to use simulation for something it is unusually good at: labeling which evidence source misled the estimator on each frame. A simulator knows the true camera pose, so it can label this. A real dataset cannot, at least per frame and per residual type. We would inject realistic sensor faults into synthetic sequences, run a hybrid estimator, and record which weighting of the two error terms would have produced the correct pose. We would then train a tiny model to predict that weighting. The model does not look at images. It looks at statistics the estimator computes internally, such as residual distributions, inlier ratios, brightness-drift parameters and solver conditioning. The bet is that these internal statistics differ far less between simulation and reality than pixels do, so the weighting policy can transfer zero-shot to real cameras.
Core Claim
The weighting between photometric and geometric residuals in a hybrid estimator can be learned from simulation alone and transferred zero-shot to real sequences. Two conditions must hold. First, simulation must supply supervision for systematic bias, meaning which term pulled the pose away from ground truth, and not just noise magnitude. Second, the learned model must consume estimator-internal statistics, not image appearance. The intended result is a hybrid system that stays accurate on uncalibrated, rolling-shutter, auto-exposure footage. That is exactly where the strongest current hybrid admits it degrades. The approach should also add negligible latency.
Concretely, consider a window of keyframes. Let $\mathbf{T}(\lambda)$ be the pose estimate obtained by minimizing $\lambda\, E_{\text{photo}} + (1-\lambda)\, E_{\text{geom}}$, where $E_{\text{photo}}$ and $E_{\text{geom}}$ are the robustified photometric and reprojection costs and $\lambda \in [0,1]$ is the trust placed on pixels. In simulation, with ground-truth pose $\mathbf{T}_{\text{gt}}$, the training label is
$$\lambda^\star = \arg\min_{\lambda} \big\| \log\!\big(\mathbf{T}_{\text{gt}}^{-1}\,\mathbf{T}(\lambda)\big) \big\|,$$
which is the weighting that would have produced the most accurate relative pose. A small regressor $g$ maps a vector $s$ of internal statistics to $\hat\lambda = g(s)$. The regressor can be gradient-boosted trees or a two-layer network. At deployment, $\hat\lambda$ replaces the hand-written weighting rule.
Where This Sits in Prior Work
The motivating gap comes from the hybrid line. H-SLAM stores a photometric patch and an ORB descriptor in each map point and jointly minimizes both residuals. Its balance between them comes from a logistic utility function driven by feature density and image pyramid level. The authors themselves note that the system degrades on sequences without photometric calibration such as KITTI. That failure is the target here. Our proposal keeps H-SLAM's single map and joint cost, and replaces only the rule that sets the balance.
Inline Photometrically Calibrated Hybrid Visual SLAM attacks the same failure differently. It estimates the camera response and vignetting online and rectifies the frames. That fixes radiometry, but it still assumes Lambertian surfaces and does nothing about rolling shutter or blur. Online photometric calibration for DSO plays the same role for purely direct tracking. We treat both as complements: rectification removes the part of the gap that can be modeled, and learned weighting handles what remains.
Two further findings constrain the design. Challenges in Monocular Visual Odometry shows that photometric calibration helps DSO but makes ORB-SLAM fail on 6 TUM Mono sequences. It also shows that rolling shutter hurts direct methods more on synthetic data, while texture matters more on real rolling-shutter footage. So the right weighting depends on the sensor fault and the scene, and no fixed rule can be right. The same paper also implies a cheap fix that we must test against: feed rectified images to the direct term and raw images to the feature detector.
The sim-to-real literature supplies the method and its main risk. TartanAir offers highly varied 6-DoF trajectories with ground-truth depth and pose, but it omits rolling shutter, sensor noise and motion blur. Bergmann et al. show that exposure and vignetting faults can be injected into synthetic sequences (ICL-NUIM) in a way that reproduces real DSO failures, and we reuse that injection strategy. TartanVO shows that training on synthetic data alone can transfer to KITTI and EuRoC. However, it transfers a pose regressor over optical flow and has no map or bundle adjustment. We transfer a far smaller object, a scalar trust policy, inside a classical optimizer.
Benchmarking Domain Randomisation found that rendering fidelity dominates transfer for image-input networks: error fell from 4.37 cm to 0.53 cm between fidelity levels. That finding pushes us toward inputs that do not depend on rendering fidelity, and it is why $g$ never sees pixels. Incorporating learnt local and global embeddings and Gladkova et al. buy robustness with deep features, at roughly 220 ms per frame on CPU. Our approach targets a different budget, close to zero added latency, and could be stacked with their keyframe-only deep features.
Research Program
The first component is a fault-injected synthetic corpus built from TartanAir. TartanAir provides per-frame depth and pose, so we can synthesize rolling shutter by warping each image row with the pose interpolated at that row's readout time. Motion blur comes from averaging depth-warped sub-frame renderings along the trajectory. Auto-exposure drift, a nonlinear camera response and vignetting are applied as in Bergmann et al., and shot and read noise are added. Each fault is sampled over physically plausible ranges. Non-Lambertian effects cannot be injected this way. We say so openly and keep real glare and specular scenes as an explicitly out-of-distribution test.
The second component is the labeling pipeline. We run an H-SLAM-style joint optimizer at 11 log-spaced values of $\lambda$ per keyframe window, record $\lambda^\star$, and log the statistics vector $s$. That vector contains:
- quantiles of the photometric and reprojection residuals after robustification;
- the estimated affine brightness parameters and how fast they change;
- the descriptor inlier ratio and the spatial coverage of keypoints;
- the ratio of photometric to geometric Hessian eigenvalues;
- disagreement between the pose from each term alone.
Everything in $s$ is computed in sim and real alike, with identical code.
The third component is the deployed system. $g$ sets $\lambda$ per window, and it can optionally do so per pyramid level, mirroring H-SLAM's structure. All variants run on top of online photometric rectification for the direct branch, with raw images going to the detector, so that any gain is attributable to weighting rather than to the calibration paradox. Analysis focuses on which statistics carry transferable signal. We measure the gap between the sim and real distributions of $s$ directly, using a classifier two-sample test on simulated versus real windows. This tests the premise that internal statistics transfer better than pixels.
Baselines
The naive reference is the hybrid estimator with a fixed $\lambda$. The value is tuned once on the synthetic training split and then frozen, which shows whether any adaptive weighting matters at all. Alongside it we run DSO and LDSO as the direct reference points. LDSO reports KITTI sequence 00 ATE dropping from 126.7 m for DSO to 9.3 m with loop closure. Since our contribution is front-end weighting, comparisons on KITTI will be run with and without loop closure so this effect is not confounded.
The strongest existing competitor is H-SLAM with inline online photometric calibration (Abboud et al.). It is the only hybrid that already addresses radiometric mismatch, and it reportedly beats systems given ground-truth static calibration on TUM Mono VO. It also kept tracking in glare corridors where ORB-SLAM3 and DSO lost their pose. No reported numeric result was found on Lacuna for this system's ATE or alignment error on TUM Mono VO, EuRoC or KITTI, so we will rerun it ourselves on identical sequences, image resolution and keyframe settings. Beating it means lower median alignment error on TUM Mono VO and lower Sim(3)-aligned ATE on EuRoC and KITTI. Both must be stable across 5 runs, and the advantage must not be bought with additional tracking failures.
The variance baseline estimates each term's noise scale online from its own residuals (median absolute deviation) and weights inversely. It is the cheapest adaptive alternative and is detailed below. It receives the same robust kernels and the same rectified-direct, raw-feature image routing.
The pixel-input ablation trains a small CNN on the same fault-injected synthetic data to predict $\lambda^\star$ from images. It shares the data and labels, has a matched training budget, and differs only in its input. The no-injection ablation trains $g$ on clean TartanAir. Together these two ablations isolate the proposal's two key ingredients, internal-statistics inputs and fault-injected supervision. Finally, TartanVO is run zero-shot as the learned-from-simulation reference, with ground-truth scale alignment as in its own evaluation.
Why not just…?
Why not just route rectified images to the direct term and raw images to the feature detector? This addresses the calibration paradox from Challenges in Monocular Visual Odometry at almost no cost, and it is a real threat for radiometric faults. We therefore make it the default in every variant rather than a competitor. It does nothing about rolling shutter, blur or non-Lambertian error, which no rectification models. The question becomes whether learned weighting adds accuracy on top of it. The decisive test is EuRoC and KITTI, both used by H-SLAM, where rolling-shutter-like effects and missing calibration coexist.
Why not just estimate each residual's noise level online and weight by inverse variance? This is the strongest simple alternative. If the two terms failed only by becoming noisier, it would match our method. The failures we target are different: they are biases. A rolling-shutter-distorted frame can be aligned photometrically with small, tight residuals at the wrong pose, and inverse-variance weighting would then increase trust in that term. Only ground truth reveals such bias, and simulation provides it. If the variance baseline matches $g$ on real data, we will report that the bias signal does not survive transfer and that the simpler method suffices.
Why not just train an end-to-end network on simulation, as TartanVO does? TartanVO has no map, no bundle adjustment and no scale consistency, and it drifts over long sequences. It also transfers a high-dimensional appearance mapping, which the domain randomisation benchmark suggests is sensitive to rendering fidelity. We keep the optimizer and learn one scalar policy. Running TartanVO zero-shot on the same sequences shows whether its robustness to aggressive motion covers the cases where our system still fails.
Why not just use frozen pretrained visual features that are already appearance-invariant? Suomela et al. show that a frozen encoder of about 12M parameters closes the gap for navigation policies. Encoders of this kind cost far more per frame than our statistics vector, and the deep features evaluated by Gladkova et al. cost roughly 220 ms on CPU. More importantly, appearance invariance is not the target. The model must detect when brightness evidence is lying, which an appearance-invariant encoder is designed to ignore. The pixel-input ablation is a lower-cost stand-in for this family of models.
Proposed Experiments and Decisive Checks
We train only on fault-injected TartanAir and evaluate with no real-data tuning on:
- TUM Mono VO, using the cumulative alignment error and tracking-failure counts that Abboud et al. report;
- EuRoC MAV, using Sim(3)-aligned ATE, broken out by Easy, Medium and Difficult sequences;
- KITTI odometry, which is uncalibrated and where H-SLAM degrades, using ATE and relative drift;
- ICL-NUIM rolling-shutter and exposure-perturbed sequences, as a controlled synthetic check outside the TartanAir renderer.
We also log per-frame latency to confirm the cost of $g$ stays below a millisecond.
Three outcomes would be decisive. If $g$ beats calibrated H-SLAM and the variance baseline on KITTI and Difficult EuRoC, the core claim holds. If the pixel-input predictor transfers worse than the statistics-input predictor despite identical labels, the premise that estimator-internal signals cross the domain gap is supported. That conclusion should be cross-checked against the measured sim-to-real separability of $s$. If the clean-TartanAir ablation recovers most of the gain, then fault injection is not doing the work, and the result is simply a better heuristic, which we would report as such. We would also report a negative result on glare and specular footage, since those faults were never injected. That result would mark where the approach fails rather than being hidden.
References
- H-SLAM: Hybrid direct-indirect visual SLAM
- Inline Photometrically Calibrated Hybrid Visual SLAM
- Online Photometric Calibration for Auto Exposure Video for Realtime Visual Odometry and SLAM
- Challenges in Monocular Visual Odometry: Photometric Calibration, Motion Bias and Rolling Shutter Effect
- TartanAir: A Dataset to Push the Limits of Visual SLAM
- TartanVO: A Generalizable Learning-based VO
- Benchmarking Domain Randomisation for Visual Sim-to-Real Transfer
- Incorporating learnt local and global embeddings into monocular visual SLAM
- Tight Integration of Feature-based Relocalization in Monocular Direct Visual Odometry
- LDSO: Direct Sparse Odometry with Loop Closure
- Synthetic vs. Real Training Data for Visual Navigation