Symbolic Error-State Iterated KF on Manifolds
- Symbolic Error-State IKFoM is a framework for nonlinear state estimation on differentiable manifolds using minimal-parameter error-state representations.
- It employs iterated Gauss-Newton updates in the tangent space to mitigate linearization errors and handle non-Euclidean geometries such as SO(3) and SE(3).
- The method combines analytical retraction and covariance propagation to deliver efficient, robust performance in applications like SLAM, navigation, and sensor fusion.
The Symbolic Error-State Iterated Kalman Filter on Manifolds (IKFoM) is an advanced statistical estimation framework for recursively estimating the state of a nonlinear dynamic system whose state evolves on a differentiable manifold. IKFoM generalizes the classical Kalman Filter by combining a symbolic, minimal-parameter error-state formulation with the robustness of iterated least-squares updates, thereby enabling efficient and accurate filtering for systems exhibiting non-Euclidean geometry, such as those involving rotations or constrained vector spaces (Im, 2024, Huai et al., 2023, Solà, 2017, He et al., 2021).
1. Mathematical Foundations and System Representation
IKFoM targets systems whose state , evolves on a smooth manifold (e.g., , , , ). At any time, the filter maintains a nominal estimate and a small error-state vector in the tangent space at , where the true state is expressed as (Im, 2024, Huai et al., 2023, He et al., 2021).
Two fundamental manifold operations are central:
- Retraction (0) or boxplus (1): 2 maps a small tangent-vector error to the manifold, typically approximated locally by the exponential map.
- Difference (3) or boxminus (4): 5 computes the local tangent-vector difference between two nearby manifold points, usually via the logarithm map.
IKFoM operates by “lifting” distributions and uncertainty to the tangent space, performing linear-Gaussian Kalman updates there, and then “retracting” the updated state back onto the manifold, thereby respecting manifold structure at all times (Im, 2024, He et al., 2021). This is exemplified for 6 in quaternion and rotation matrix coordinates (Solà, 2017).
2. Time Update and Error-State Propagation
Let 7 be the (possibly nonlinear) system dynamics, with 8 the control input and 9 process noise. The propagation step consists of:
- Nominal state propagation:
0
The nominal is advanced by one timestep using the zero-noise model.
- Linear error-state propagation:
1
The error dynamics are linearized around the nominal. Jacobians are given by
2
3
- Covariance prediction:
4
The covariance is evolved in the tangent space at the newly predicted nominal.
This formulation enables leveraging standard linear-Gaussian prediction machinery, regardless of the manifold’s topology (He et al., 2021).
3. Measurement Update and Iterated Correction
The measurement model is 5, with 6 and 7 possibly highly nonlinear. The critical IKFoM innovation is the iterative Gauss-Newton update strategy, implemented in the tangent space:
- Linearize measurement at current iterate: For each iteration 8,
9
where 0 (Im, 2024).
- Residual evaluation:
1
- Gauss-Newton step: Solve
2
(Im, 2024), and update
3
4
- Convergence check: Repeat until 5.
- Posterior update: At the final iterate 6, set
7
8
with 9 (Im, 2024).
This procedure refines the state estimate by repeatedly relinearizing the measurement function at the current best guess, yielding improved results over a single-shot linearization (as in EKF), particularly in the presence of strong nonlinearity or large uncertainty (Huai et al., 2023, Im, 2024).
4. Symbolic Structure and Manifold-Aware Implementation
IKFoM is fully symbolic: all update operations, including state, error, Jacobians, and retractions, are specified in terms of symbolic manifold calculus. The approach is generic; each manifold (e.g., 0, 1) requires only explicit definitions for 2, 3, and oplus, along with their associated Jacobians (He et al., 2021, Huai et al., 2023). For instance, on 4, 5 involves the matrix exponential and 6 the matrix logarithm, and linearizations can be computed using closed-form series for the right Jacobian 7 (He et al., 2021). The covariance is always expressed in the local coordinates of the tangent space, and is aligned by appropriate pushforward/pullback transforms during state retractions.
A key feature is that after each state correction, both the nominal state and the covariance are “retracted” (or “reset”) onto the updated manifold reference, ensuring global consistency and numerical stability. This is critical for, e.g., attitude estimation, where naive representations may suffer from parameterization singularities (Solà, 2017). All compound states (products of manifold and Euclidean primitives) are handled by block-diagonal composition of the respective manifold operators (He et al., 2021).
5. Algorithmic Summary and Computational Workflow
A standard IKFoM iteration, as specified in the literature (Huai et al., 2023, He et al., 2021, Im, 2024), proceeds as follows:
| Step | Operation | Coordinate System |
|---|---|---|
| State Prediction | 8 | Manifold |
| Covariance Propagate | 9 | Tangent at 0 |
| Initialize Update | 1, 2 | Tangent at 3 |
| Iterative Correction | For 4: | Tangent at 5 |
| Residual: 6 | Measurement space | |
| Jacobian: 7 | Linear in 8 | |
| Gauss-Newton: 9 as above | Tangent space | |
| Retract: 0, 1 | ||
| Terminate | When 2 | |
| Posterior State/Cov | 3, 4 | Tan. at 5 |
A canonical C++-style pseudocode reflecting these symbolic operations is provided in (He et al., 2021).
6. Advantages and Applications
By leveraging error-states and iterated relinearization on the manifold, IKFoM significantly attenuates local linearization errors inherent to EKF and single-linearization ESKF, especially in the presence of high measurement nonlinearity or large a priori uncertainty (Im, 2024, Huai et al., 2023). Gauss-Newton iteration drives the estimate toward the exact local Maximum A Posteriori (MAP) solution, with quadratic convergence under regularity and small-residual conditions (Im, 2024).
The use of tangent-space error vectors and manifold retraction/difference operators enables minimal, non-singular parameterizations and seamless mixing of Euclidean and non-Euclidean components. This improves both accuracy and computational efficiency for systems such as Visual/IMU-based navigation, tightly-coupled lidar-inertial systems, and general Simultaneous Localization and Mapping (SLAM) pipelines, as demonstrated in practical open-source implementations (He et al., 2021).
7. Implementation and Numerical Considerations
Proper implementation requires accurate definitions of the manifold operations (6, 7), their derivatives, and careful covariance transformation and normalization after each update (He et al., 2021, Solà, 2017). For compound manifolds, block-diagonalization of Jacobians is standard.
Numerical stability is enhanced by regular covariance resets, careful normalization of unit-norm quantities (e.g., quaternions), and condition number checks. Four to six Gauss-Newton iterations usually suffice for practical convergence; excessive iterations are discouraged due to diminishing returns and potential numerical issues (He et al., 2021).
The C++ toolkit referenced in (He et al., 2021) encapsulates the symbolic machinery for general differentiable manifolds, requiring the user only to supply system- and measurement-specific functions and Jacobians. New manifold types are incorporated by defining their primitive operations and associated Jacobians.
References:
- (Im, 2024) Notes on Kalman Filter (KF, EKF, ESKF, IEKF, IESKF)
- (Huai et al., 2023) A Quick Guide for the Iterated Extended Kalman Filter on Manifolds
- (Solà, 2017) Quaternion kinematics for the error-state Kalman filter
- (He et al., 2021) Kalman Filters on Differentiable Manifolds