Differentiable Factor Graph Optimization for Learning Smoothers

Brent Yi, Michelle A. Lee, Alina Kloss, Roberto Martín-Martín, Jeannette Bohg
5/18/2021
cs.RO

Official code: brentyi/jaxlie (342 stars, MIT, JAX, last commit 2025-04-24). 2 more implementations below.

Abstract

A recent line of work has shown that end-to-end optimization of Bayesian filters can be used to learn state estimators for systems whose underlying models are difficult to hand-design or tune, while retaining the core advantages of probabilistic state estimation. As an alternative approach for state estimation in these settings, we present an end-to-end approach for learning state estimators modeled as factor graph-based smoothers. By unrolling the optimizer we use for maximum a posteriori inference in these probabilistic graphical models, we can learn probabilistic system models in the full context of an overall state estimator, while also taking advantage of the distinct accuracy and runtime advantages that smoothers offer over recursive filters. We study this approach using two fundamental state estimation problems, object tracking and visual odometry, where we demonstrate a significant improvement over existing baselines. Our work comes with an extensive code release, which includes training and evaluation scripts, as well as Python libraries for Lie theory and factor graph optimization: https://sites.google.com/view/diffsmoothing/

View on arXivView PDF

Code Implementations(3)

brentyi/jaxlieOfficial100%
JAXMIT

Rigid transforms + Lie groups for JAX

34218PythonNov 28, 20201 years agoMIT
computer-visiongeometryjaxlie-groupsrobotics
brentyi/dfgoOfficial100%
MIT

Differentiable Factor Graph Optimization @ IROS 2021

9713PythonAug 16, 20213 years agoMIT
brentyi/jaxfgOfficial100%
MIT

new version: https://github.com/brentyi/jaxls

30PythonJul 9, 20242 years agoMIT

Cite this paper

@article{yi2021differentiable,
  title  = {Differentiable Factor Graph Optimization for Learning Smoothers},
  author = {Brent Yi and Michelle A. Lee and Alina Kloss and Roberto Martín-Martín and Jeannette Bohg},
  year   = {2021},
  eprint = {2105.08257},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.08257}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.08257.svg)](https://codeofpaper.com/paper/2105.08257)

Discussion