LM-Reloc
von Stumberg 2020 · Paper
One-line summary — Deep direct relocalization: learns CNN features tailored for Levenberg-Marquardt-based direct image alignment, estimating relative pose between query and reference images without feature matching or RANSAC.
Problem
Visual relocalization is almost universally tackled with a feature-based formulation — detect keypoints, match descriptors, reject outliers with RANSAC, solve for pose. That pipeline throws away everything except corners. Direct image alignment can exploit any image region with gradients, but raw photometric alignment breaks under lighting, weather, and seasonal change, and its narrow basin of convergence makes it fragile under the large baselines typical of relocalization. LM-Reloc asks how to keep the direct formulation while making it robust across conditions.
Method & architecture
LM-Reloc estimates the 6DoF pose between images and , given sparse depths from a direct SLAM system (Stereo DSO). Three components work together: LM-Net (Siamese encoder-decoder producing multi-scale feature maps , ), CorrPoseNet (coarse pose initialization), and a classical Levenberg-Marquardt optimizer.
Direct alignment on learned features. Instead of raw intensities, the optimizer minimizes a feature-metric energy in a coarse-to-fine pyramid ( at up to at full resolution):
with Huber norm and per-point depth . Each LM iteration builds the Gauss-Newton system , , damps it via (Levenberg) or (Marquardt), and updates , ; is halved after successful and quadrupled after failed steps.
Loss designed around the optimizer. The central idea: train the features so LM behaves well on them, distinguishing the four states a projected point can be in during optimization, each with its own sampled correspondence and loss term:
- Correct location: should vanish.
- Outlier (negative sampled anywhere): with margin — wrong matches must produce large residuals.
- Far from optimum (negative ~5 px away, large , gradient-descent regime): a damped per-point flow step must move toward the truth: (widens the convergence basin; , ).
- Near the optimum (negative within 1 px, small , Gauss-Newton regime): the probabilistic Gauss-Newton loss from GN-Net, (sharpens the minimum for subpixel accuracy).
CorrPoseNet for initialization. A regression network with a correlation layer, , regresses Euler angles and translation to bootstrap LM under large baselines/rotations; it is robust but inaccurate, so the final estimate always comes from the geometric optimization.
Results
Evaluated on the relocalization tracking benchmark (CARLA + Oxford RobotCar), reporting AUC of cumulative pose-error curves up to 0.5 m / 0.5°:
- CARLA (test): LM-Reloc reaches of 80.65 / 77.83 vs SuperGlue 78.99 / 59.31, R2D2 73.47 / 54.42, SuperPoint 72.76 / 53.38, D2-Net 47.62 / 16.47; without CorrPoseNet 63.88 / 61.9, and GN-Net 43.72 / 44.08 — the LM loss alone already outperforms GN-Net substantially.
- Oxford RobotCar (6 cross-condition pairs among sunny/overcast/rainy/snowy): LM-Reloc almost consistently wins on rotation AUC (e.g. Sunny-Overcast 55.48 vs SuperGlue’s 52.83) while staying competitive on translation; the LiDAR-ICP ground truth itself has ~16 cm RMS error, masking sub-0.15 m translation gains.
- Head-to-head vs GN-Net (no CorrPoseNet, same alignment pipeline): better on all six sequences, e.g. Sunny-Rainy 70.46 / 42.86 vs 64.58 / 37.27.
- Ablation: mainly improves robustness, accuracy; only together do they yield both.
Why it matters for SLAM
LM-Reloc comes from the TUM direct SLAM lineage (DSO and its descendants) and addresses a core weakness of direct methods: relocalization and map reuse under appearance change. It exemplifies a productive design pattern — keep the classical geometric optimizer, but learn the representation it operates on, shaping the training loss around the optimizer’s actual convergence behavior. Use this family of ideas when you need direct-method accuracy but must relocalize across sessions or conditions.
Related
- DSO — the direct odometry lineage this builds on
- D3VO — same group’s deep direct odometry; inspired CorrPoseNet
- PoseNet — pure pose regression, used here only for initialization
- CNN Pose Regression Limitations — why regression alone is not enough
- HF-Net — the feature-matching-based alternative for relocalization
- Visual Place Recognition (VPR) — retrieving the reference images to relocalize against