TL;DR
Training reinforcement learning (RL) agents with standard policy gradients is like hiking down a mountain in the dark without knowing the slope's curvature—you can easily get stuck or take wildly unstable steps. Kalman Policy Gradient (KPG) solves this by treating policy updates as a recursive state-estimation problem using a Kalman filter. It naturally tracks the curvature of the policy landscape without ever explicitly building or inverting a massive Fisher Information Matrix, matching the theoretical guarantees of Natural Policy Gradient (NPG) while outperforming strong baselines like PPO and TRPO on several MuJoCo benchmarks.
What Problem Does This Paper Address?
In reinforcement learning, first-order policy gradient methods (like REINFORCE) update a policy's parameters along the standard Euclidean gradient. While simple, this approach is notoriously sensitive to ill-conditioned curvature and how the policy is parameterized, often leading to high sample complexity and unstable training.
Curvature-aware methods like Natural Policy Gradient (NPG) fix this by preconditioning the gradient with the inverse of the Fisher Information Matrix (FIM)—a mathematical object that captures the local geometry of the policy's probability distribution. NPG is invariant to smooth reparameterizations and converges much faster, but there is a catch: computing and inverting an $n \times n$ FIM for modern neural networks is computationally brutal.
Meanwhile, researchers in supervised learning have shown that Kalman filtering—a classic algorithm from control theory for estimating hidden states from noisy measurements—is mathematically equivalent to online natural gradient descent. Yet in RL, Kalman filters had only been used to estimate value functions or smooth noisy reward signals, never to optimize the policy directly. This paper bridges that gap.
Methods
The authors introduce Kalman Policy Gradient (KPG), which casts policy optimization as a recursive state-estimation problem:
- Latent States & Observations: KPG treats the policy parameters $\boldsymbol{\theta}$ as the hidden state of a dynamical system, and the empirical advantage estimates (collected from trajectory rollouts) as noisy observations. The observation matrix is constructed directly from the policy's score functions ($\nabla_{\boldsymbol{\theta}} \log \pi_{\boldsymbol{\theta}}(\mathbf{a}|\mathbf{s})$).
- Fading Memory for Non-Stationarity: Because the true FIM changes as the policy updates, a standard Kalman filter would eventually become overconfident and stop learning. KPG introduces a fading memory factor ($\lambda_i \in [0, 1)$) that inflates the prior covariance matrix at each step, progressively discounting old curvature information.
- No Explicit Matrix Inversion: By leveraging the Kalman filter's recursive covariance update, KPG maintains a running estimate of the inverse preconditioner ($P_i$) without ever explicitly forming or inverting the FIM.
- Theoretical Equivalence & Guarantees: The authors prove that under a specific hyperparameter mapping, KPG's updates are mathematically equivalent to Online NPG. They also establish a stationary convergence rate of $\mathcal{O}(\varepsilon^{-2})$ and a global convergence rate of $\mathcal{O}(\varepsilon^{-3})$—matching NPG and improving over vanilla PG by an order of magnitude.
Datasets
Rather than static datasets, the paper evaluates KPG on simulated control environments:
- 1-Step Continuous-Action Bandit: A simple Gaussian policy toy problem used to visually compare KPG's update directions against analytical NPG, empirical NPG, and vanilla PG.
- MuJoCo Benchmarks: Eight standard continuous-control tasks (
Ant-v4,HalfCheetah-v4,Hopper-v4,Humanoid-v4,HumanoidStandup-v4,InvertedDoublePendulum-v4,Reacher-v4, andWalker2d-v4), trained for 5 million environment steps across 5 random seeds. - Pendulum-v1: Used for an ablation and hyperparameter sensitivity study.
Key Insights and Ideas
- Kalman Filtering Is Online NPG for Policies: Just as Ollivier (2018) showed for supervised learning, the covariance-tracking mechanism of a Kalman filter naturally approximates the Fisher geometry of the policy manifold in RL.
- A Principled Bias–Variance Trade-off: Standard NPG estimates the FIM from scratch at every step using a single mini-batch, which incurs zero tracking bias but suffers from high sampling variance (demanding huge batches). KPG's recursive exponential moving average suppresses this variance by a factor of $2\lambda$, trading an uncontrollable source of instability (environment noise) for a controllable one (tracking bias governed by the learning rate).
- Small Batches Work Better: In sensitivity ablations on
Pendulum-v1, smaller mini-batches ($N \in \{128, 256, 512\}$) converged rapidly, whereas larger batches ($N = 2048$) plateaued or failed to converge within the training budget.
Key Results
- Visual Alignment: On the toy bandit task, KPG's update directions are visually indistinguishable from both Analytical-NPG and Empirical-NPG, pointing directly toward the optimum while Vanilla PG tilts away.
- MuJoCo Performance: KPG achieved the highest mean episodic return on 4 out of 8 benchmarks, often by a wide margin:
HalfCheetah-v4: 6267.48 (vs. TRPO's 5832.54 and PPO's 1638.91)HumanoidStandup-v4: 182,202.26 (vs. TRPO's 158,914.29)Walker2d-v4: 3747.50 (vs. K-FAC's 3553.72)InvertedDoublePendulum-v4: 8744.36 (vs. Diag-Fisher's 8625.47)- Across most tasks, KPG also converged noticeably faster during the early stages of training.
- Runtime Scaling: On an NVIDIA A100 GPU, KPG's per-iteration wall-clock time is comparable to TRPO—slightly slower on low-dimensional
InvertedDoublePendulum-v4(69.73 ms vs. 57.28 ms), but faster on medium-dimensionalHalfCheetah-v4(156.89 ms vs. 162.38 ms) and high-dimensionalHumanoid-v4(236.29 ms vs. 253.54 ms).
Limitations and Future Work
While KPG avoids explicit $n \times n$ matrix inversions, maintaining a full recursive covariance matrix still carries computational overhead, making it slower per iteration than first-order PPO (e.g., 236.29 ms vs. 31.05 ms on Humanoid-v4). To address this, the authors suggest developing structured, sparse, or low-rank covariance approximations to scale KPG to massive architectures like transformer-based policies. They also highlight extending KPG to off-policy learning and shared actor–critic architectures as promising next steps.
Summary updated