TL;DR
This paper presents a gradient-based method for learning the parameters of observation models in robot state estimation, even when using non-differentiable incremental optimizers like iSAM2. By leveraging the Implicit Function Theorem and numerical differentiation, the authors achieve orders-of-magnitude faster training and superior tracking accuracy compared to existing sampling-based state-of-the-art methods.
What Problem Does This Paper Address?
Robot state estimation—determining a robot's position and orientation from sensor data—is often framed as a Maximum a Posteriori (MAP) inference problem over a factor graph. In these graphs, nodes represent robot states, and "factors" represent constraints derived from sensor measurements (like GPS or odometry).
To solve these problems in real-time, researchers use incremental optimizers like iSAM2. While iSAM2 is the industry standard for efficiency, it is inherently non-differentiable. It uses discrete operations like "fluid relinearization" and "tree editing" (removing and re-inserting nodes in a Bayes tree) to maintain speed as the robot moves.
The challenge is that the accuracy of the final estimate depends heavily on properly tuning the parameters ($\theta$) of the observation models (e.g., how much to trust a specific sensor). Because iSAM2 isn't differentiable, you can't easily use standard backpropagation to learn these parameters. Previous solutions relied on slow, sampling-based methods that often converged to sub-optimal results.
Methods
The authors propose a bilevel optimization approach to tune these parameters with iSAM2 "in the loop":
- Inner Loop: iSAM2 solves the factor graph to find the optimal state estimate $\hat{\mathbf{x}}(\theta)$ for a given set of parameters.
- Outer Loop: A gradient-based optimizer updates the parameters $\theta$ to minimize a tracking error loss—the difference between the estimated trajectory and the ground truth.
To bridge the non-differentiability gap, they use the Implicit Function Theorem (IFT). The IFT allows them to compute the gradient of the solution of the optimization problem with respect to the parameters, even if the path taken by the optimizer to get there involves non-differentiable steps.
Because the parameter space for sensor noise models is typically small (e.g., just a few values for GPS and odometry noise), they found that numerical differentiation (finite differences) was highly efficient and stable, especially when parallelized. They also extended these calculations to work correctly on Lie Groups (manifolds like $SE(2)$), which are essential for representing 3D rotations and translations in robotics.
Datasets
The method was evaluated on two synthetic planar robot navigation datasets, $D_1$ and $D_2$.
- Structure: The datasets consist of trajectories generated from a factor graph containing unary GPS factors and binary odometry factors.
- Simulation: Gaussian noise was injected into ground truth measurements to simulate realistic sensor behavior.
- Scale: Training used 5 trajectories (length 100-300), while testing was performed on 20 unseen trajectories (length 300).
Key Insights and Ideas
- The "Solution Gradient" is what matters: Even if an algorithm's internal logic is discrete or non-differentiable, the final output (the "fixed point" of the optimization) can still vary smoothly with respect to its inputs. This makes IFT a powerful tool for "differentiating through" complex robotics pipelines.
- Numerical Gradients are Underrated: While the deep learning community favors analytical gradients via auto-diff, numerical differentiation is surprisingly effective for low-dimensional parameter tuning in robotics, avoiding the complexity and memory overhead of unrolling optimizers.
- Direct Loss is Superior: By minimizing the actual tracking error rather than a surrogate energy-based loss (like the baseline LEO method), the model learns parameters that generalize much better to unseen trajectories.
Key Results
The authors compared their method against LEO (Learning Energy-based models in factor graph Optimization), a recent sampling-based baseline.
- Speed: The proposed method is orders-of-magnitude faster. On dataset $D_1$, one training iteration took just 0.025 minutes, compared to 2.863 minutes for LEO.
- Accuracy: The method consistently achieved lower Root Mean Squared Error (RMSE) in both translation and rotation across all test trajectories.
- Convergence: The gradient-based approach converged in seconds, whereas the sampling-based baseline required significantly more time and often reached a higher error floor.
Limitations and Future Work
- Parameter Scaling: While numerical differentiation works well for small sets of parameters (like noise covariance matrices), it may not scale to high-dimensional parameters, such as the weights of a large neural network.
- Neural Network Integration: The authors suggest a future direction where a neural network predicts the observation model parameters. In this case, they would use their method to get the gradient $\partial \hat{\mathbf{x}} / \partial \theta$ and then use standard auto-diff to backpropagate through the network weights.
- Real-World Validation: The current results are based on synthetic data. The authors plan to test the algorithm on real robotics platforms and datasets in the future.
Summary updated