Data-driven Optimal Filtering for Linear Systems with Unknown Noise Covariances

Shahriar Talebi, Amirhossein Taghvaei, Mehran Mesbahi

Introduction

This paper provides a theoretical breakthrough for learning optimal Kalman filters directly from data when noise statistics are unknown. By leveraging the mathematical duality between control (Linear Quadratic Regulator, or LQR) and estimation (Kalman filtering), the authors prove that Stochastic Gradient Descent (SGD) can globally and efficiently find the optimal steady-state Kalman gain using only noisy output observations.

The Challenge of Unknown Noise

The Kalman filter is widely considered the "gold standard" for estimating the hidden state of a linear system. However, it has a major practical catch: to work optimally, you must precisely know the covariance matrices of the process noise ($Q$) and measurement noise ($R$). In real-world engineering—from robotics to chemical plants—these values are rarely known and are notoriously difficult to tune.

While "adaptive Kalman filtering" has existed for decades, most methods lack "non-asymptotic" guarantees, meaning we do not know exactly how much data is needed to reach a certain level of accuracy. Furthermore, existing subspace identification methods often struggle with high-dimensional systems because their complexity scales poorly with the number of parameters. This paper seeks a purely data-driven way to learn the optimal filter gain directly from output data, complete with provable convergence and efficiency guarantees.

Methodology: A Stochastic Policy Optimization Approach

The authors transform the traditional filtering problem into a stochastic policy optimization problem.

  1. Surrogate Objective: Because the true state of the system is hidden, we cannot minimize the state estimation error directly. Instead, the authors minimize the output prediction error—how well the filter predicts the next observation.
  2. The Duality Bridge: The core innovation is leveraging the duality between LQR and the Kalman Filter. They show that optimizing a filter gain is mathematically equivalent to optimizing a controller for an "adjoint" (dual) system.
Comparison of problem settings
  1. SGD Algorithm: The authors employ Stochastic Gradient Descent (SGD) to update the filter gain. Because the objective function is non-convex, standard theory would not typically guarantee a global optimum. However, the authors prove the objective satisfies the Polyak-Łojasiewicz (PL) property (or gradient dominance) on sublevel sets. This ensures that even though the "landscape" of the problem is non-convex, the gradient always points toward the global best.
  2. Bias-Variance Analysis: Using high-dimensional statistics, they prove that the error in their learned gain scales logarithmically with the system's dimension, making it highly efficient for complex systems.

Key Insights and Results

  • Duality as a Tool for Learning: The critical realization is that recent breakthroughs in data-driven LQR control—which proved policy gradients work globally—can be ported over to the filtering world via duality.
  • Built-in Stability: A major danger in learning filters is accidentally picking a gain that makes the filter unstable. The authors show that the cost function naturally "blows up" (becomes coercive) as you approach the boundary of instability. This acts as a natural barrier, keeping the SGD algorithm in the "safe" zone.
  • Global Convergence: The paper proves that SGD converges linearly and globally to the optimal steady-state Kalman gain, starting from any initial stable filter.
  • Sample Complexity: To achieve an error of $\epsilon$, the required trajectory length $T$ scales as $O(\ln(1/\epsilon))$ and the number of trajectories $M$ scales roughly as $O(1/\epsilon)$. The length of the data trajectories ($T$) only affects the bias of the estimate, while the number of independent trajectories ($M$) affects the variance.

To validate their findings, the authors tested the algorithm on a simulated undamped mass-spring system. The algorithm successfully reduced the optimality gap linearly until hitting a "noise floor" determined by the finite length of the data, exactly as the theory predicted.

Limitations and Future Work

While a significant step forward, the current approach assumes the system matrices ($A$ and $H$) are known. A fully "model-free" version where these dynamics are also unknown remains a challenge. Additionally, the analysis currently assumes the learner can access many independent, short trajectories. Adapting the proof to a single-trajectory setting—which is more common in continuous real-world data streams—is a primary goal for future research. Finally, the authors hope to use this linear framework as a stepping stone toward a data-driven theory for nonlinear filtering.

Summary updated

BibTeX
@inproceedings{talebi2023data,
  author = {Shahriar Talebi and Amirhossein Taghvaei and Mehran Mesbahi},
  title = {{Data-driven Optimal Filtering for Linear Systems with Unknown Noise Covariances}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=8S9Fbee743},
}
Figure