λ-learning: Learning Value Function Gradients with Temporal-Difference Learning, Unifying State Estimation and Smoothing

λ-learning uses temporal-difference learning of value function gradients to unify state estimation and smoothing without ground-truth state labels.
This article introduces λ-learning, a new method that transforms state estimation and smoothing into temporal-difference learning of the value function gradient (λ-function). Unlike Kalman and particle filters that rely on explicit system modeling, λ-learning directly learns a λ-function satisfying optimality conditions using only measurement data, without ground-truth state labels. The learned λ-function defines both a forward recursive estimator and a backward smoother with shared parameters, avoiding redundant separate algorithm design. Training uses a semi-gradient algorithm alternating forward estimation rollouts, backward smoothing rollouts, and gradient updates. Theoretical analysis gives local convergence guarantees under idealized settings; experiments show it recovers the steady-state Riccati solution in the linear Gaussian case and matches classical Bayesian methods in accuracy on nonlinear heavy-tailed noise benchmarks with significantly lower online cost. Limitations in sample efficiency, hyperparameter sensitivity, and high-dimensional scalability are discussed.
State estimation and smoothing are core problems in control, signal processing, and robotics. Classical methods such as the Kalman filter and its nonlinear variants (extended Kalman filter, unscented Kalman filter) as well as particle filters typically rely on explicit modeling of system dynamics and noise. In recent years, temporal-difference (TD) methods from reinforcement learning have offered new ideas for solving dynamic programming problems. A recent study proposes λ-learning, which unifies state estimation and smoothing into a gradient-based learning framework by directly learning the gradient of the value function (called the λ-function) rather than the value function itself.

From Value Functions to λ-Functions: A Dynamic Programming Perspective
Traditional dynamic programming methods encode future cost through a value function in fully observed estimation problems. This research takes a different path, focusing on the gradient of the value function—the λ-function. The authors prove that the λ-function satisfies a forward recursion in which past information enters implicitly through optimality conditions. This property means the learning problem no longer requires a bootstrapped value function target, but instead becomes a temporal-difference residual on the λ-function.
The key advantage of this transformation is that the learning process directly enforces the optimality conditions of estimation and smoothing, and relies only on measurement data without requiring ground-truth states as supervision. This means the method has stronger practicality in real systems, where precise state labels are often difficult to obtain.
Temporal-difference (TD) learning is one of the core methods in reinforcement learning. Its basic idea is to update the estimate of the current state using the estimate of subsequent states—so-called "bootstrapping." The classic TD(λ) algorithm trades off bias and variance through eligibility traces, with the λ parameter controlling the degree of decay for distant information. However, standard TD learning aims to approximate the value function itself, and its updates rely on the bootstrapping consistency of the value function across different states. The λ-learning proposed in this paper instead turns to learning the gradient of the value function, so that its residual form no longer requires a bootstrapped target for the value function, but instead directly applies temporal differences to the optimality conditions. The key to understanding this distinction is that the value function encodes the expectation of future cost, whereas the value function gradient encodes the sensitivity of cost to state perturbations—and the latter corresponds exactly to the gain structure of information filtering and smoothing in estimation and smoothing problems.
A Learning Objective that Unifies Estimation and Smoothing
The learned λ-function simultaneously defines a recursive estimator and a smoother, both sharing the same set of parameters. The estimator runs in a forward manner, using current and historical measurements; the smoother fuses future information through backward rollouts. This unified formulation avoids the redundancy of designing separate algorithms for estimation and smoothing.
To train the λ-function, the authors propose a practical semi-gradient algorithm called λ-learning. The algorithm combines three components: forward estimation rollouts, backward smoothing rollouts, and gradient-based parameter updates. This alternating procedure enables the model to learn estimation and smoothing policies satisfying the optimality conditions from measurement sequences without ground-truth states.
Recursive estimation and smoothing are two fundamental tasks in state estimation. Recursive estimation (filtering) infers the current state using only current and historical measurements, with the Kalman filter as a typical representative; smoothing infers the state at a past time using the entire measurement sequence (including future measurements), with the Rauch-Tung-Striebel (RTS) smoother as a typical representative. In the classical framework, filters and smoothers usually need to be derived separately, and the smoother is often based on filtering results for backward recursion. What is unique about λ-learning is that the learned λ-function parameterizes both the forward estimator and the backward smoother, sharing the same set of parameters, thereby naturally maintaining consistency during training. This unification not only simplifies algorithm design but also means that information transfer between estimation and smoothing is realized implicitly through the learned gradient structure, rather than relying on manually designed two-stage recursion.
Theoretical Guarantees and Experimental Validation
For an idealized version of the learning problem, the authors establish theoretical results showing that gradient descent locally converges to critical points under smoothness and regularity assumptions. This provides some guarantee of the algorithm's stability, although non-convexity and sampling noise in practical applications still require further analysis.
Numerical experiments demonstrate the effectiveness of λ-learning. In the linear Gaussian case, the method can recover the steady-state Riccati solution, verifying its theoretical consistency with the classical Kalman filter. In nonlinear benchmarks with heavy-tailed noise, λ-learning achieves accuracy and empirical consistency comparable to the best classical Bayesian estimators and smoothers, while its online computational cost is only a fraction of theirs. This result suggests that by learning the value function gradient, it is possible to significantly reduce computational burden while maintaining performance.
The steady-state Riccati equation is a core equation in linear Gaussian state estimation, and its solution gives the steady-state gain and estimation error covariance of the Kalman filter. Under linear time-invariant systems with constant noise statistics, the error covariance of the Kalman filter converges to the unique positive definite solution of the Riccati equation, at which point the filter enters steady state. The fact that λ-learning can recover this steady-state solution in the linear Gaussian case has important theoretical significance: it shows that the λ-function learned from data coincides in the limit with the gain structure of the classical optimal estimator, thereby verifying the method's intrinsic compatibility with Bayesian estimation theory. This is also a key benchmark for assessing whether data-driven state estimation methods "learn the right thing."
Semi-gradient algorithms are a class of approximate gradient methods used under function approximation. Their characteristic is that when computing gradients, they differentiate only with respect to some parameters (usually the learnable parameters) while treating target values or bootstrapped terms as constants. In reinforcement learning, because the target itself depends on the value function being learned, strict gradient computation would introduce derivatives of the target with respect to the parameters; semi-gradient methods ignore this term, thereby obtaining more stable and computationally simpler update rules. The semi-gradient algorithm adopted by λ-learning uses residuals produced by forward estimation rollouts and backward smoothing rollouts as update signals to perform gradient-style corrections on the parameters of the λ-function, while treating intermediate quantities generated during rollouts as constants. In theory, this treatment can only guarantee convergence to critical points rather than global optimality, but in practice it often exhibits good stability and sample efficiency.
Comparison with Classical Methods and Implications
Classical Bayesian methods usually require precise system models and assumptions about noise distributions, whereas λ-learning directly learns optimality conditions from data, giving it stronger adaptability to model errors and noise characteristics. Compared with optimization-based smoothers (such as factor graph optimization), the recursive structure of λ-learning is more suitable for online applications and has lower computational cost.
However, the method is still in its early stages. Theoretical convergence guarantees apply only to idealized settings, and sample efficiency, hyperparameter sensitivity, and scalability to high-dimensional state spaces in practical deployment remain to be studied. In addition, the parameterization of the λ-function (such as neural networks) may affect final performance and needs to be designed for specific problems.
Conclusion
λ-learning offers a novel perspective: treating state estimation and smoothing as a temporal-difference learning problem for the gradient of the value function. By eliminating dependence on ground-truth state labels and unifying estimation and smoothing, the method substantially reduces online computational cost while maintaining accuracy comparable to classical methods. For applications requiring real-time processing and subject to high model uncertainty (such as robot localization and financial time series analysis), this idea is worth attention.
Tags: Frontier Research, Reinforcement Learning, State Estimation, Temporal-Difference Learning, Dynamic Programming
Related articles

Bonsai 2.5 27B Hands-On: Opus-Level Performance on a Single 6GB GPU
Bonsai 2.5 27B hands-on: just 5.9GB, runs on a single consumer GPU, agentic coding close to full-precision Qwen 3.8, impressive front-end generation, and major speed gains.

GPT-6 Astra Accused of Sabotaging AI Safety Efforts: Community Controversy Intensifies
A Hacker News post claims GPT-6 Astra sabotages AI safety efforts, drawing 70 points and 20 comments. This article reviews the background, controversy, and community reaction, analyzing trust challenges from the safety-capability tension in frontier models.

SoftREU: Differentiable and Numerically Stable Revisable Evidence Update
SoftREU presents a differentiable and numerically stable revisable evidence update framework, solving evidence retraction, numerical cancellation, and discrete authorization in Bayesian conditioning via conflict-penalized variational free energy, subtraction-free segment trees, and commit-gated straight-through gradient analysis.