arXiv:2610.05743cs.CVOct 2026

Manuscript Offprint

arXiv:2610.05743

Robust Local Optimization Done Right

James Pritts, Kevin Köser

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

James Pritts and Kevin Köser

Kiel University, Kiel, Germany

Abstract. RANSAC scoring and local optimization (LO) impose different robustness requirements, motivating the separation of hypothesis selection from refinement. We systematically isolate the effects of robust-loss shape, incorrectly specified inlier scales, and optimization strategy on essential matrix, fundamental matrix, and homography estimation. A profile-marginal score marginalizes the nuisance inlier scale and selects an inlier partition, from which we estimate the scale that sets the LO loss width; this makes LO robust to an inlier scale specified too large, whereas one specified too small degrades selection itself. Refinement needs gradient from correspondences the seed currently rejects: optimizers that reweight from current residuals stay pinned to their seed, whereas methods with broad basins recover strongly perturbed seeds yet degrade accurate score-selected hypotheses, so basin size alone is insufficient to assess RANSAC LO. Joint half-quadratic optimization balances the two and is the most consistent strategy across model classes. An optimizer matched to the profile-marginal score, which never decreases it, does not reach the best accuracy, challenging the prescription that scoring and refinement objectives should match. Composed from these findings, our RANSAC reduces the median essential-matrix pose error of a state-of-the-art RANSAC on PhotoTourism from 2.23° to 1.58° with a correctly specified inlier scale and from 38° to 6.2° when it is grossly misspecified (128× too large). 1^{1}

Keywords: robust estimation · RANSAC · local optimization · half-quadratic lifting · graduated non-convexity

1 Introduction

Robust geometric estimation from contaminated correspondences is central to computer vision [13, 20, 26]. Modern RANSAC variants separate global search from local optimization (LO): minimal samples generate hypotheses, a score ranks them, and LO refines promising hypotheses using their tentative support [8, 24]. These stages impose different requirements: scoring must reliably rank hypotheses, whereas LO needs informative descent directions despite contamination and an imperfect initial estimate. Both typically depend on an approximate inlier scale, whose miscalibration can distort ranking and either amplify outlier influence or suppress valid measurements during refinement. Even

1^{1} Project page: https://localoptimizationdoneright.github.io/.

J. Pritts and Köser

with a well-calibrated scale, valid measurements may have large residuals under an imperfect model. Hard truncation, common in RANSAC scoring functions, provides no gradient beyond its cutoff and can prevent these measurements from guiding refinement.

Iteratively reweighted least squares (IRLS) [19,26] sets weights from current residuals, potentially suppressing valid measurements prematurely; classical LO-RANSAC mitigates this through threshold reduction and inner resampling [8,24]. Graduated non-convexity (GNC) instead progressively transforms smoother surrogate losses into the target objective [6,7,34]. Joint half-quadratic (HQ) optimization introduces an independent weight for each observation. Initializing these weights near one lets large-residual observations continue to influence the model, while minimizing over the weights recovers the target objective [6,35,36].

Matching scoring and refinement objectives, with updates accepted only when they preserve or improve the objective, ensures a nondecreasing score [31], but does not guarantee geometric accuracy. The scoring objective can also restrict the optimization strategy, for example by precluding an independent observation-wise HQ representation. We therefore separate the scoring rule, scale supply, and optimization path.

Shekhovtsov [31] unifies Gaussian-uniform mixture scores through the Bayes decision threshold τ\tau between inliers and outliers, which depends on the inlier noise standard deviation σ\sigma. RANSAC [13], MSAC and MLESAC [33], and MAGSAC and MAGSAC++ [4,5] retain a residual-unit parameter fixed at test time: a threshold or, for MAGSAC and MAGSAC++, an upper scale bound σˉ\bar{\sigma}. We call these scores threshold-based. SIMFIT [18] alternates RANSAC fitting with scale estimation; SIMFIT++ [11] reduces fitting and truncation bias using held-out residuals and a corrected estimator. We instead use the profile-marginal score of Pritts et al. [27], which marginalizes the inlier scale and selects an inlier-outlier partition, retaining only an outlier half-width in residual units. It integrates readily into RANSAC, adds negligible runtime to the RANSAC pipeline, and is the most resilient to scale miscalibration among the scores evaluated in our supplementary experiments (Appendix D).

We make four contributions. First, we introduce partition anchoring, which uses the selected inlier partition to estimate the scale for a separately chosen LO objective, leaving only a dimensionless width multiplier to tune. Second, controlled comparisons isolate the effects of scale supply, loss shape, and optimization strategy. Third, we derive a block-coordinate optimizer, nondecreasing in its score, for the profile-marginal score and use it as an objective-matched control. Finally, we evaluate the resulting RANSAC pipeline against SupeR-ANSAC [2] on PhotoTourism and find higher mAA@10° across the tested scale conditions.

References (36)