Barron paper, GNC paper

Two papers that go hand-in-hand. Barron (CVPR 2019) gives the loss: from least squares to very robust. Yang et al. (RA-L 2020) give the optimization strategy: how to use that loss during the solve without getting stuck, and why it is the same idea as Switchable Constraints.

In short

  • Barron: which loss, and one parameter that controls robustness.
  • GNC: start from a convex loss, make it non-convex gradually, and decide per measurement how much to trust it.
  • Switchable Constraints: an earlier, hand-tuned, local special case of the same weights + penalty formulation.

When to use GNC and when to use Switchable Constraints?

This will mostly be an ablation, I think. Switchable Constraints apply to loop closures while GNC can be applied on any measurement.

A General and Adaptive Robust Loss Function (Barron)

  • is the scale: the size of residual where the loss starts to “give up” on a point.
  • is the shape: it controls robustness.
Loss
L2 (least squares)
Charbonnier / pseudo-Huber
Cauchy
Geman-McClure
Welsch

Probabilistic view: is the neg log likelihood of a distribution that is a normal for and a Cauchy for — exactly the comparison from Gaussian vs. Cauchy, now as one continuous family.

The property that matters for GNC: the loss is monotonic in , . Start at (convex), then lower step by step more robust, more non-convex. That is graduated non-convexity with the shape as the knob.

  • The adaptive part ( learned by gradient descent, per output dimension) targets neural network training (VAEs, monocular depth). Not what I need for a pose solver.

Graduated Non-Convexity for Robust Spatial Perception (Yang et al.)

Problem: robust losses make the cost non-convex local solvers need a good initial guess, and global (certifiable) solvers only exist for least squares.

Black-Rangarajan duality: minimizing a robust loss is equivalent to

  • every measurement gets a weight (1 = inlier, 0 = outlier).
  • (the outlier process) penalizes switching a measurement off. Its form follows from .

GNC: replace by a surrogate that is convex for one value of and recovers in the limit. Then alternate:

  1. Variable update: weighted least squares with fixed (any solver, global or local).
  2. Weight update: minimize over with fixed — closed form.
  3. Anneal , repeat.

Truncated Least Squares (TLS), the one that works best:

  • starts small (convex) and grows, , until the weighted residual sum converges.
  • Weights end up binary: each measurement is in or out.
  • is the largest residual an inlier can have a threshold in metres or degrees I can reason about.

Geman-McClure: , with starting at and decreasing, , until .

Results: robust to - outliers, better than RANSAC, faster than specialized global solvers. On PGO (INTEL, CSAIL), GNC-TLS beats DCS and PCM and stays robust up to outliers on CSAIL.

Comparison with Switchable Constraints

The switch prior of Switchable Constraints is a hand-designed . The GNC paper says it directly: robotics used this outlier process “without acknowledging the connection with robust estimation, and with a heuristic design of the penalty terms”.

  • Switch weight: scales the information matrix, so .
  • Switch prior .
  • DCS (dynamic covariance scaling) is the closed-form version of switchable constraints.
Switchable ConstraintsGNC
Decision variableswitch , optimized jointly with the posesweight , closed-form update in a separate step
Starting pointall switches at , a prior pulls them backall weights at , because the loss starts convex
What controls the decisions (fixed, tuned to ) and the initial guessthe schedule on
Lossimplicit, from the switch priorexplicit: GM or TLS
Initial guessrequired (local method)not required with a global solver, wider basin with a local one
Applied toloop closures onlyany measurement

What neither solves

  • They only reject wrong associations, they cannot create correct ones no help for a poor initialization (HBA has the same limit).
  • Groups of mutually consistent outliers (the corridor case from SUN3DSfM and VPR) remain hard. PCM targets exactly that.
    • PCM: unlike Switchable Constraints and GNC, it rejects outliers before the optimisation rather than during it
      • PCM would fit as a gate on loop-closure candidates from VPR, before they enter the refinement, since they don’t need pose estimations

Ties to my pipeline

  • The pipeline already alternates “associate + one global solve”. GNC would add a closed-form weight update per round and anneal over the rounds, the same way the window doubles.
  • Candidates for weights:
    • closest-point pairs (replaces the hard cut),
    • plane merges (two parallel walls),
    • structural relationships (TLS on the angle would switch off a real corner instead of forcing ),
    • the ARKit trajectory prior (jumps). These factors persist across rounds, so a switchable-style decision fits best here.