Variational Bayesian Adaptive Kalman Filter
- Variational Bayesian Adaptive Kalman Filtering is a state estimation method that uses variational Bayes to treat unknown measurement noise covariances as random variables.
- It employs a mean-field factorization to decouple the state posterior (Gaussian) and covariance posterior (inverse-Wishart), using techniques like the unscented transform for nonlinear integration.
- Empirical studies demonstrate improved tracking performance and RMSE reduction by adaptively estimating full covariance structures in time-varying measurement noise environments.
Variational Bayesian Adaptive Kalman Filtering (VB-AKF) denotes a class of filtering schemes that treat unknown noise covariances as random variables and infer them online via variational Bayesian updates while performing Kalman state estimation (Zhang et al., 2023). In the nonlinear formulation developed by Särkkä and Hartikainen, VB-AKF jointly estimates the state and a time-varying measurement noise covariance in a nonlinear stochastic state-space model by approximating the filtering posterior with a mean-field factorization , where is Gaussian and is inverse-Wishart; the process noise covariance is assumed known and is not adapted in the validated algorithm (Hartikainen, 2013). The method is often described more precisely as a variational Bayesian adaptive Gaussian filter, because the state update is realized through Gaussian filtering rules based on unscented, cubature, Gauss–Hermite, or Taylor-series approximations (Hartikainen, 2013).
1. State-space model and adaptive covariance dynamics
The canonical nonlinear VB-AKF is posed for the state-space model
with , , known , and unknown, time-varying 0. The construction assumes the usual conditional independence and Markov properties: given 1, 2 is conditionally independent of past measurements 3, and given 4 and 5, 6 is conditionally independent of past states and measurements. The filtering priors are approximated as
7
8
These assumptions define the adaptive target: recursive estimation of both the latent state and the contemporaneous measurement covariance (Hartikainen, 2013).
A distinctive element of the method is the covariance-evolution model for 9. The transition density 0 is not written explicitly; instead, the sufficient statistics of the inverse-Wishart prior are propagated through a discounting rule chosen so that inverse-Wishart priors remain closed under prediction:
1
2
with 3 typically chosen as 4 and 5. When 6, the covariance is stationary; values close to 7 yield smoother covariance evolution, while smaller values allow faster adaptation. This discounting mechanism is the operational dynamic model for the measurement covariance in the original nonlinear VB-AKF (Hartikainen, 2013).
2. Variational Bayes formulation
The central approximation is the mean-field factorization
8
with the variational families
9
Coordinate-ascent variational Bayes yields the fixed-point equations
0
1
The Gaussian factor is updated through a Kalman-type correction that uses the current expectation of 2, while the inverse-Wishart factor is updated from the expected squared measurement residual under the current Gaussian state posterior (Hartikainen, 2013).
For an inverse-Wishart distribution 3 on an 4 covariance matrix, the required expectations are
5
The moment conditions are explicit: 6 is required for 7 to exist, and 8 is required for 9 to exist. These constraints are not merely formal; they determine whether the adaptive covariance entering the Gaussian filtering step is well-defined (Hartikainen, 2013).
The measurement-covariance posterior update has a closed form. After the Gaussian state update,
0
1
In the nonlinear case, the expectation is the integral
2
which is approximated by Gaussian integration. The variational structure therefore couples a Gaussian state posterior with an inverse-Wishart covariance posterior through expected residual statistics (Hartikainen, 2013).
3. Gaussian filtering realization in nonlinear models
The nonlinear VB-AKF is implemented through Gaussian filtering approximations. From 3, the prediction step computes
4
From the predicted state distribution, the method forms the measurement statistics
5
6
7
followed by the usual Gaussian correction
8
9
The nonlinear integrals can be approximated by the unscented transform, cubature integration, Gauss–Hermite integration, or Taylor/EKF linearization. In the UKF realization, for example, 0 sigma points are propagated through 1 and 2; CKF uses 3 spherical-radial points; Gauss–Hermite uses tensor-product quadrature; EKF replaces the nonlinear measurement map with its Jacobian 4 evaluated at 5 (Hartikainen, 2013).
Because 6 depends on 7 and 8 depends on 9, the algorithm uses inner variational iterations at each time step. A standard realization is:
- Predict the state to obtain 0.
- Predict the covariance hyperparameters 1 by discounting.
- Precompute 2, 3, and 4 from the predicted state.
- Initialize
5
- Iterate for 6:
7
8
9
0
1
- Output
2
with 3, 4, and 5.
The stopping rule may be a fixed 6 or a tolerance on the relative change in 7 or 8; in practice, 9–0 is often sufficient, while the paper also notes examples such as 1–2 (Hartikainen, 2013).
4. Special cases, interpretation, and numerical issues
In linear models with 3 and 4, the Gaussian integrals are exact and the method reduces to a linear VB-AKF. In that case, the adaptive covariance recursion becomes
5
6
The state update is then the Kalman filter with an adaptive measurement covariance equal to 7. This linear reduction clarifies that the nonlinear algorithm is not a distinct estimator family, but a Gaussian-filter generalization of the same variational construction (Hartikainen, 2013).
The original method also sits in a well-defined relation to classical adaptive Kalman filtering and expectation-maximization. Classical adaptive KF schemes often tune covariances heuristically or by covariance matching, while EM estimates static 8 and 9 in batch by maximizing likelihood. VB-AKF is instead recursive, online, Bayesian, and explicitly quantifies uncertainty in 0 through the inverse-Wishart posterior. A common misconception is that the nonlinear algorithm jointly adapts both process and measurement covariances; in the validated formulation, only the measurement covariance is adapted. The paper states that extending VB adaptation to 1 is not straightforward because 2 appears in the dynamic model in a non-conjugate way relative to a tractable 3, and a rigorous derivation leads away from the simple filtering recursion. The same section notes that simultaneous estimation of 4 and 5 can be ill-posed without strong priors or constraints, so restricting adaptation to 6 avoids confounding (Hartikainen, 2013).
Numerically, the method requires maintaining 7, enforcing symmetry and positive definiteness of 8, and computing square roots and inverses stably, typically by Cholesky factorization. Near-singular innovation covariances 9 may require regularization, for example by adding a small jitter term 00. These considerations are integral to practical implementations, since the covariance adaptation is embedded directly inside the Kalman correction loop (Hartikainen, 2013).
5. Empirical behavior in the original nonlinear study
The original paper evaluates the method in two nonlinear tracking scenarios. The first is range-only tracking in a non-homogeneous noise field, where a 2D target is tracked by range-only sensors and the measurement covariance exhibits spatially varying correlations induced by a structured random field along signal paths. The comparison includes UKF with true 01 (UKF-t), UKF with fixed diagonal 02 (UKF-o), VB-AUKF with full adaptive 03 (VB-AUKF-f), and VB-AUKF with diagonal adaptive 04 (VB-AUKF-d). VB-AUKF-f improves RMSE over VB-AUKF-d and UKF-o, while UKF-t performs best, as expected. The estimated covariance entries track the true time variation reasonably, and larger 05 yields smoother but lagged covariance estimates (Hartikainen, 2013).
The second scenario is multi-sensor bearings-only tracking with a coordinated turn model in 2D and four sensors. Here the measurement noise has time-varying variances and cross-correlations. The comparison includes CKF with true 06 (CKF-t), CKF with fixed diagonal 07 (CKF-o), VB-ACKF with full adaptive 08 (VBCKF-f), and VB-ACKF with diagonal adaptive 09 (VBCKF-d). VBCKF-f outperforms VBCKF-d and CKF-o, while CKF-t again provides the best performance. In this setting, the advantage of estimating the full covariance rather than only diagonal terms is clear in RMSE. These experiments establish the characteristic empirical pattern of the method: adaptive full-covariance estimation is beneficial when measurement noise varies over time and sensor correlations matter, but performance remains bounded above by an oracle filter using the true covariance (Hartikainen, 2013).
6. Extensions, variants, and related research directions
Subsequent work has extended the basic VB-AKF template in several directions.
| Direction | Main modification | Representative paper |
|---|---|---|
| Adaptive MCMC | Uses VB-AKF to update the Metropolis proposal covariance inside the variational Bayesian adaptive Metropolis algorithm; proves a strong law of large numbers for VBAM | (Mbalawata et al., 2013) |
| Correntropy-based robustness | Integrates VB-AKF with MCCKF to form VB-AMCCKF, adapts both 10 and 11 on a sliding window with forgetting, and reports CPU usage of 58%/65% for VB-AMCCKF versus 40%/46% for R-AMCCKF on UAV/Husky platforms | (Fakoorian et al., 2021) |
| Threshold-gated variance learning | Proposes threshold-based VB Kalman filtering that updates measurement-noise hyperparameters only for residuals classified as background; reported RMSE improvements include 1.6187 to 0.4218 in one Gaussian-mixture case | (Zhang et al., 2023) |
| Huber and conformal protection | Combines VB parameter learning, Huber M-estimation, and Conformal Outlier Detection; fingerprint matching accuracy increases from 81.25% to 93.75%, and positioning errors decrease from 0.62–6.87 m to 0.03–0.35 m | (Zhou et al., 13 May 2025) |
| Distributed sensing with missing and corrupted data | Introduces a dual-mask generative model with observable dropouts and latent authenticity variables, jointly estimating 12, 13, network survival rate, and clean rate; numerical experiments report asymptotic convergence toward the oracle lower bound as the number of sensors increases | (Sun et al., 3 Apr 2026) |
| Unified robust-adaptive filtering | Builds a variational robust Kalman filter from a Student’s 14-distribution induced loss and switching rules; the framework recovers conventional KF, robust KF, and adaptive KF by adjusting parameters | (Li et al., 17 Dec 2025) |
| Alternative variance-latent formulation | Represents process and measurement variances through auxiliary Gaussian latent variables and online variational Bayes; in a replication of the Särkkä setting, RMSE is 0.6859 versus 0.6858 for VB-AKF | (Vilmarest et al., 2021) |
These variants preserve the core VB-AKF idea—recursive variational estimation of latent states together with unknown noise statistics—while changing the observation model, the sufficient statistics, or the robustness mechanism. This suggests a broader interpretation of VB-AKF as a variational design pattern rather than a single fixed algorithm. In that broader usage, the original nonlinear filter of Särkkä and Hartikainen remains the reference point for mean-field Gaussian/inverse-Wishart recursion with Gaussian integration, while later work extends the framework to sliding-window smoothing, non-Gaussian robustness, distributed sensing, conformal gating, and adaptive proposal construction in MCMC.