Trust Region Value Optimization using Kalman Filtering

Shirli Di-Castro Shashua, Shie MannorarXiv 2019

Introduction

In Reinforcement Learning (RL), the "Critic"—the value function estimator—is as crucial as the "Actor" policy. Traditional approaches treat value function optimization as a standard regression problem, typically minimizing Mean Squared Error (MSE) using deterministic optimizers like Adam. However, this ignores the inherent uncertainty in value estimates and the non-stationary nature of RL environments.

The paper "Trust Region Value Optimization using Kalman Filtering" introduces KOVA (Kalman Optimization for Value Approximation). KOVA moves beyond deterministic updates by adopting a Bayesian perspective, creating a "trust region" over value parameters to improve learning stability and performance in complex continuous control tasks.

Methodology: The KOVA Framework

KOVA leverages the Extended Kalman Filter (EKF) to optimize the value function. Unlike standard optimizers that treat every update with similar weight, KOVA tracks both the mean and the covariance of the value function parameters $\theta$.

Conceptual framework of KOVA, illustrating uncertainty in observation noise and value parameters.

Key Components:

  • Bayesian Parameter Tracking: KOVA treats neural network weights as random variables, maintaining a distribution that reflects uncertainty and correlations between weights.
  • Implicit Trust Region: The EKF formulation naturally regularizes the objective function. This prevents the value function from deviating drastically from its previous state unless new data is significantly informative, effectively enforcing a trust region for the critic.
  • Adaptive Learning via Kalman Gain: The "Kalman Gain" serves as an automated, per-parameter learning rate. It allows the optimizer to update uncertain weights more aggressively when presented with new evidence.
  • Computational Efficiency: To handle high-dimensional neural networks, KOVA utilizes the matrix inversion lemma (Woodbury identity), avoiding the direct inversion of large covariance matrices and making it feasible for deep learning architectures.

Experimental Setup

The effectiveness of KOVA was evaluated using the MuJoCo physics engine benchmarks within the OpenAI Gym. The tasks included high-dimensional continuous control environments such as Swimmer-v2, Hopper-v2, HalfCheetah-v2, Ant-v2, and Walker2d-v2. KOVA was integrated as a drop-in replacement for the Adam optimizer in the value-function update step of two prominent algorithms: PPO (Proximal Policy Optimization) and TRPO (Trust Region Policy Optimization).

Results and Discussion

Experimental results demonstrate that KOVA consistently enhances performance and stability compared to standard optimizers.

Performance comparison of PPO and TRPO using Adam vs. KOVA across MuJoCo benchmarks.

Key Findings:

  • Superior Convergence: In PPO-based experiments, KOVA outperformed Adam in 4 out of 5 MuJoCo environments, showing significantly faster convergence and higher final rewards in Swimmer and HalfCheetah.
  • Stability and Noise Resilience: KOVA proved less sensitive to the noise inherent in Bellman targets, resulting in smoother learning curves.
  • Enhanced Exploration: Interestingly, using KOVA for the value function increased policy entropy. By providing more precise signals regarding value uncertainty, the agent was encouraged to explore the environment more effectively.
  • Theoretical Bridge: The authors show that EKF is essentially an online version of the Natural Gradient algorithm, where the error covariance matrix functions similarly to the inverse Fisher Information Matrix.

Conclusion and Future Work

While KOVA provides significant benefits, its primary limitation is scalability. Tracking a full covariance matrix requires $O(d^2)$ memory and computation, where $d$ is the number of parameters. This makes it challenging for very large models.

Future research directions include layer-wise factorization to reduce matrix sizes, applying KOVA only to the final layer of deep networks, and developing a unified framework that enforces simultaneous trust regions on both the actor and the critic.

Summary updated

BibTeX
@misc{shashua2019trust,
  author = {Shirli Di-Castro Shashua and Shie Mannor},
  title = {{Trust Region Value Optimization using Kalman Filtering}},
  year = {2019},
  eprint = {1901.07860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.07860},
}
Figure