KPG: Reconstructing Policy Gradients with Kalman Filtering, Matching NPG in Sample Efficiency

KPG uses Kalman filtering to recursively estimate the inverse preconditioning matrix, achieving policy gradients equivalent to NPG without inversion.
The paper proposes Kalman Policy Gradient (KPG), which treats the inverse Fisher matrix in natural policy gradient as a state quantity to be recursively estimated and maintains it via Kalman filtering recursion, thereby avoiding explicit matrix inversion at every step. The authors prove that KPG's update direction is mathematically equivalent to NPG and provide two layers of convergence guarantees: sample complexity O(ε⁻²) to reach an ε-stationary point and O(ε⁻³) for global convergence, matching NPG and outperforming vanilla policy gradient by an order of magnitude. On MuJoCo benchmarks, KPG outperforms or matches TRPO, PPO, K-FAC, and Diagonal Fisher. This work shows that recursive preconditioning can both preserve the theoretical properties of natural gradient and reduce per-step computation to constant order, offering a new path for engineering natural gradient methods.
Policy gradient methods in reinforcement learning have long faced a core tension: first-order methods are computationally simple but converge slowly, while second-order methods (such as Natural Policy Gradient, NPG) converge quickly but require expensive matrix inversion. A new paper proposes Kalman Policy Gradient (KPG), which attempts to bypass this tension using recursive state estimation—it models the policy update as a Kalman filtering process, maintains an estimate of the inverse preconditioning matrix without explicit inversion, and proves that its update direction is mathematically equivalent to NPG.

Core Idea: Treating the Preconditioning Matrix as a State to Track
The starting point of KPG is this: natural gradient methods are effective because they precondition the gradient with the Fisher information matrix, making the update direction more "uniform" in parameter space. However, NPG must handle the inverse of the Fisher matrix at every step, and the computational cost grows rapidly with the number of parameters. KPG takes a different angle—rather than inverting directly, it treats the inverse preconditioning matrix as a state quantity to be recursively estimated, continuously updating it using the recursive formulas of Kalman filtering.
The significance of this transformation is that Kalman filtering is inherently designed for online estimation: each step requires only constant-order matrix operations, with no need for batch inversion. The authors rigorously prove in the paper that the resulting update direction is mathematically equivalent to the NPG direction. In other words, KPG "simulates" the effect of natural gradient through recursive estimation, but along a completely different computational path.
The Fisher information matrix is a tool in statistics for measuring the amount of information about parameter estimation; in reinforcement learning, it reflects how sensitive the policy distribution is to parameter changes. Natural gradient uses the inverse of the Fisher matrix to precondition the ordinary gradient, which amounts to re-measuring the step size according to the intrinsic geometry of the distribution in parameter space, thereby avoiding large steps in sensitive directions and small steps in flat directions. The dimension of the Fisher matrix equals the number of policy parameters, and the complexity of inversion is cubic in the number of parameters, so when the policy network is large, explicit inversion becomes the main computational bottleneck. The key to KPG bypassing this bottleneck is precisely to exploit the recursive nature of Kalman filtering, tracking the inverse matrix as a state quantity that evolves over time rather than re-factorizing it at every step.
Kalman filtering is a recursive Bayesian estimation method for online inference of the hidden state of a linear dynamical system from noisy observations. At each step it does only two things: predict the next state using the state transition equation, then correct the prediction with the new observation. The entire process involves only matrix-vector multiplications and additions, with no need to store historical data or solve large linear systems. When the state dimension is high, the covariance update in standard Kalman filtering still involves matrix operations, but KPG estimates the preconditioning matrix itself as the state, exploiting its structural properties to reduce the per-step cost to constant order. This "filtering as preconditioning" perspective is the key bridge connecting classical control theory with policy optimization.
Theoretical Guarantees: Matching NPG's Convergence Rate
The paper provides two layers of theoretical results. The first layer is stationary-point convergence: the sample complexity required for KPG to reach an ε-stationary point is O(ε⁻²), which matches the rate of standard policy gradient and NPG. The second layer is stronger—under standard regularity assumptions, KPG has a global convergence guarantee with sample complexity O(ε⁻³). This number is worth comparing: it matches NPG's global convergence rate while being an order of magnitude better than vanilla policy gradient.
For researchers working on theory, the value of this result lies in showing that recursive preconditioning is not merely an engineering trick but has rigorous convergence support. The recursive structure of Kalman filtering does not destroy the theoretical properties of natural gradient; instead, it makes the computation lighter.
Experimental Performance: Head-to-Head Comparison with TRPO and PPO on MuJoCo
The authors evaluated KPG on multiple MuJoCo benchmark tasks, with baselines including TRPO, PPO, K-FAC, and Diagonal Fisher. The results are consistent: KPG either outperforms these strong baselines or matches them.
You may not have noticed the choice of comparison targets here. TRPO and PPO are the two most commonly used practical algorithms in the policy gradient domain, K-FAC represents the classic engineering approach to approximating natural gradient, and Diagonal Fisher is the diagonal approximation route. That KPG holds its own against this set of baselines shows that recursive Kalman preconditioning can indeed provide effective curvature information in practical tasks, not just theoretical elegance.
The paper's conclusion is also carefully worded: "outperforms or matches." This means that on some tasks KPG's advantage may not be significant, but at least there is no obvious performance degradation—for a new method that changes the computational path of preconditioning, this is itself an acceptable result.
TRPO (Trust Region Policy Optimization) and PPO (Proximal Policy Optimization) are the two most mainstream policy gradient algorithms in deep reinforcement learning. TRPO constrains the KL divergence between the old and new policies to ensure that each update step stays within a safe range, thereby stabilizing training, but it requires solving a constrained optimization problem, making implementation more complex and per-step computation relatively heavy. PPO approximates this constraint by clipping importance sampling, making it simple to implement and easy to tune, and it has become the default baseline in industry. K-FAC approximates the Fisher matrix using a Kronecker factorization and is the classic engineering solution for natural gradient; Diagonal Fisher uses only the diagonal of the Fisher matrix, which is the most computationally economical but provides the crudest curvature information. KPG's comparison with this set of baselines covers the full spectrum from exact constraints to cheap approximations.
Why This Direction Is Worth Attention
Natural gradient methods have always been theoretically attractive, but engineering deployment is often constrained by the cost of Fisher matrix inversion. The path KPG offers is: replace explicit inversion with recursive estimation, reduce computational complexity to constant order per step, while maintaining a direction and convergence rate equivalent to NPG.
The potential for extending this line of thinking is considerable. The Kalman filtering framework is naturally suited to online, incremental scenarios. If KPG's recursive structure can be further combined with distributed training or streaming updates, it may exhibit additional advantages in reinforcement learning tasks that require continual learning. Of course, the paper's current experiments are concentrated on standard MuJoCo benchmarks; how numerically stable recursive estimation is on more complex, higher-dimensional tasks still requires more validation.
For readers interested in the engineering of policy optimization algorithms, KPG's core contribution can be condensed into one sentence: it proves that you don't need to invert to get the natural gradient direction.
Background Supplement
Sample complexity characterizes the growth rate of the number of samples or environment interactions required for an algorithm to reach a certain accuracy, as a function of the accuracy metric. O(ε⁻²) means that to reduce the gradient norm below ε, the required sample size is roughly inversely proportional to the square of ε; O(ε⁻³) corresponds to a stronger global convergence guarantee, typically appearing in analyses of non-convex optimization that need to escape saddle points or ensure monotonic decrease of the function value. When the text says that KPG's O(ε⁻³) is "an order of magnitude better" than vanilla policy gradient, it means that for the same ε, if vanilla policy gradient can only guarantee a sample requirement on the order of O(ε⁻⁴), KPG reduces the exponent from 4 to 3. This comparison holds in the asymptotic sense; in practice, constant factors still affect finite-sample performance.
One-line Summary
KPG uses Kalman filtering to recursively estimate the inverse preconditioning matrix, achieving policy gradients equivalent to NPG without inversion.
Paragraph Summary
The paper proposes Kalman Policy Gradient (KPG), which treats the inverse Fisher matrix in natural policy gradient as a state quantity to be recursively estimated and maintains it via Kalman filtering recursion, thereby avoiding explicit matrix inversion at every step. The authors prove that KPG's update direction is mathematically equivalent to NPG and provide two layers of convergence guarantees: the sample complexity to reach an ε-stationary point is O(ε⁻²), and global convergence is O(ε⁻³), matching NPG and outperforming vanilla policy gradient by an order of magnitude. On MuJoCo benchmarks, KPG is compared with TRPO, PPO, K-FAC, and Diagonal Fisher, performing better or on par. This work shows that recursive preconditioning can both preserve the theoretical properties of natural gradient and reduce per-step computation to constant order, offering a new path for the engineering deployment of natural gradient methods.
Related articles

Jensen Huang Testifies Before Congress: Key Takeaways on Chip Export Controls
NVIDIA CEO Jensen Huang faces questioning from the U.S. House Foreign Affairs Committee on AI chip export controls, commercial interests, and national security.

Tencent WorkBuddy in Practice: Building an AI Automated Testing Workbench with SKILL Capabilities
Based on Bilibili creator Baili Yang's sharing, this article analyzes how Tencent WorkBuddy AI agent desktop workbench can be used for automated testing: the shift from AI-assisted to AI-led, the relationship among large models, agents, and SKILL capabilities, zero-configuration installation and permission control, and practical ideas for building a personal AI automated testing workbench.

Adding Authentication to Remix SaaS Apps: A Practical Guide to WorkOS AuthKit
Based on the official WorkOS AuthKit guide, this article covers the full approach to integrating authentication in Remix or React Router SaaS apps, including session management, protected routes, multi-tenant organizations, enterprise SSO, and SCIM sync, and analyzes its engineering value for SaaS teams.