$λ$-learning: Temporal Difference Learning of the Value Function Gradient for State Estimation and Smoothing

Stefano Menchetti, Daniele Masti, Mario Zanon, Alberto BemporadarXiv 2026

TL;DR

Tracking the hidden states of complex, noisy systems usually forces an uncomfortable trade-off between fast, inaccurate approximations and slow, heavy-duty optimization. This paper introduces $\lambda$-learning, an algorithm that learns both a fast online state estimator and an offline trajectory smoother directly from noisy sensor measurements—with zero ground-truth state labels required. By learning the gradient of the estimation value function offline, it achieves the accuracy of top-tier nonlinear estimators at a fraction of their online runtime.

What Problem Does This Paper Address?

Imagine tracking a drone in a gusty wind using only noisy sensor readings. You face two related tasks: filtering (estimating where the drone is right now using past and current data) and smoothing (reconstructing its exact flight path after the fact using the entire data log).

For linear systems with well-behaved Gaussian noise, the classic Kalman Filter nails this. For nonlinear systems or heavy-tailed noise (think sudden, violent wind gusts), you usually turn to Particle Filters or Moving Horizon Estimation (MHE)—an optimization method that repeatedly solves a mini-puzzle over a sliding window of recent data. In MHE, everything that happened before your window is summarized into a single penalty term called the arrival cost.

Mathematically, this arrival cost is a Dynamic Programming value function. Unlike optimal control—where value functions are computed backward from a future goal—estimation value functions evolve forward in time as new measurements arrive. Existing Reinforcement Learning (RL)-inspired estimators either ignore this forward structure or rely on supervised learning, which demands ground-truth state trajectories that you rarely have in the real world. The authors ask: can we exploit this forward-evolving structure to learn an estimator and smoother from raw measurements alone?

Methods

Instead of approximating the scalar value function (the arrival cost) directly, the authors approximate its gradient, which they christen the $\lambda$-function.

Using Dynamic Programming on the Full Information Estimation problem, they prove that the $\lambda$-function obeys a neat forward recursion. Crucially, a single learned $\lambda$-function gives you both an online filter and an offline smoother.

To train a parameterized $\lambda$-function (like a neural network) without ground-truth states, they introduce a practical semi-gradient Temporal-Difference (TD) algorithm called $\lambda$-learning. For each sampled trajectory of sensor measurements, the algorithm performs a three-step dance:

  1. Forward Rollout: Steps forward through the measurements, solving small least-squares problems to generate candidate filtered and predicted state trajectories using the current $\lambda$-function.
  2. Backward Rollout: Starts from the final predicted state (nudged with a bit of Gaussian noise to encourage exploration) and steps backward in time to reconstruct a smoothed state trajectory.
  3. Parameter Update: Treats those reconstructed trajectories as fixed and takes a gradient step to minimize the mismatch (the TD error) in the $\lambda$-function's forward recursion.

In their nonlinear experiments, they parameterize $\lambda$ linearly in the prediction error, $\tilde{\boldsymbol{\lambda}} = \mathbf{\Lambda}(\hat{\mathbf{x}}; \boldsymbol{\theta})(\mathbf{s} - \hat{\mathbf{x}})$, using a neural network to output a Cholesky factor of the information matrix $\mathbf{\Lambda}$. This guarantees positive definiteness and mirrors the local quadratic arrival costs used in classical MHE.

Datasets

Rather than static external datasets, the authors evaluate their method on two synthetic simulation benchmarks—each split into 1,000 training, 200 validation, and 1,000 test trajectories of noisy measurements (no ground-truth states are used in training):

  • Linear-Gaussian System: A 2D state, 1D output linear system used as a sanity check against the exact Kalman Filter steady-state solution.
  • Nonlinear Vertical-Plane Motion: A newly formulated 6-state, 7-output nonlinear benchmark modeling an object moving in a 2D vertical plane (40 steps per trajectory). Crucially, it is battered by heavy-tailed multivariate Student-$t$ noise ($\nu = 3$ degrees of freedom), creating nasty outlier disturbances that trip up standard Gaussian assumptions.

Key Insights and Ideas

  • No Bootstrapping Headaches: In standard RL, TD targets evaluate the very value network you are trying to train ("bootstrapping"), which notoriously causes divergence when paired with neural networks. In the $\lambda$-function's forward recursion, past information enters implicitly through the optimality conditions that generate the trajectories—meaning the TD targets require zero evaluations of the learned network.
  • Flipping the Filtering Script: Classical filters find the filtered state first, then push it through the physics model to get the predicted state. Here, the order reverses: the predicted state is identified first (as the unique point where the $\lambda$-function vanishes), and the filtered state is recovered by applying one step of the backward smoothing map!
  • Offline Amortization: Classical MHE and particle filters burn CPU cycles online at every step—propagating thousands of particles or computing Hessians over long horizons. $\lambda$-learning front-loads this work into offline training, distilling complex history into a fast neural lookup.

Key Results

  • Exact Recovery in the Linear Case: Across initialization scales spanning nearly two orders of magnitude, $\lambda$-learning drives the TD residual down by ~9 orders of magnitude and recovers the true steady-state Kalman Filter information matrix to within a relative Frobenius error below $10^{-4}$.
  • Nonlinear Filtering Speed & Accuracy: On the heavy-tailed nonlinear benchmark, $\lambda$-learning achieves a filtered Mean Absolute Error ($\text{MAE} \times 10$) of 3.55, right on the heels of a 6,000-particle filter (3.33) and exact-Hessian MHE (3.34), while handily beating EKF (5.09) and UKF (4.57). Yet it runs in 0.342 ms per step—roughly 4$\times$ faster than both top baselines. It also maintains strong uncertainty calibration (predicted NEES of 6.52 vs. MHE's 6.10, compared to EKF's overconfident 20.80).
  • Nonlinear Smoothing: $\lambda$-learning reaches a smoothed $\text{MAE} \times 10$ of 2.97 in 0.567 ms per step—approaching the 6,000-particle backward-simulation smoother (2.85 at 3.467 ms, ~6$\times$ faster) and outperforming the 1,500-particle smoother (3.35 at 1.253 ms) in less than half the time.

Limitations and Future Work

  • Time-Invariant Approximation: The exact $\lambda$-function is time-varying and depends on the entire measurement history; summarizing history solely through the current predicted state is an approximation outside steady-state linear-Gaussian regimes.
  • Theory–Practice Gap: While the authors prove local convergence of gradient descent for an idealized formulation, the practical algorithm uses semi-gradient updates, single-trajectory sampling, and inexact rollouts, placing it outside the theoretical proof's guarantees.
  • Noise Mismatch: The experiments use standard quadratic stage costs despite the heavy-tailed Student-$t$ noise, leaving estimators vulnerable to rare outlier spikes (causing standard deviations to exceed the mean errors).
  • Future Directions: The authors aim to extend their convergence proofs to cover the practical rollout-based algorithm and explore richer $\lambda$-function parameterizations for higher-dimensional nonlinear systems.

Summary updated

BibTeX
@misc{menchetti2026learning,
  author = {Stefano Menchetti and Daniele Masti and Mario Zanon and Alberto Bemporad},
  title = {{$λ$-learning: Temporal Difference Learning of the Value Function Gradient for State Estimation and Smoothing}},
  year = {2026},
  eprint = {2611.36658},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36658},
}
Figure