Policy-Aware Model Learning for Policy Gradient Methods

Romina Abachi, Mohammad Ghavamzadeh, Amir-massoud FarahmandarXiv 2020

Abstract

This paper addresses the fundamental challenge of model learning in model-based reinforcement learning (MBRL). Traditional approaches typically utilize Maximum Likelihood Estimation (MLE) to learn a predictive model of the environment, often ignoring how the planning module will ultimately utilize that model. This disconnect can lead to an "objective mismatch," where the model excels at predicting irrelevant environmental details but fails to capture dynamics critical for policy optimization. We propose Policy-Aware Model Learning (PAML), a framework that incorporates the planner's requirements directly into the model learning objective. By focusing on policy gradient methods, we derive new loss functions that minimize the discrepancy between the policy gradient calculated in the real world and the one calculated using the learned model. We provide theoretical convergence guarantees and demonstrate through empirical evaluation that PAML outperforms standard MLE-based approaches, particularly in environments with limited model capacity or significant irrelevant noise.

Introduction

In Model-Based Reinforcement Learning (MBRL), an agent learns a "world model" to simulate experiences and plan its actions. The standard paradigm for training these models is Maximum Likelihood Estimation (MLE), which seeks to minimize the error between predicted and actual next states. However, this approach assumes that a perfect simulator is both possible and necessary for effective planning.

In practice, neural networks have limited capacity, and environments often contain complex but irrelevant dynamics—such as the movement of leaves on a tree in a driving simulation. An MLE-based model might exhaust its capacity trying to predict these irrelevant details, neglecting critical factors like road friction. PAML addresses this by aligning the model's training objective with the agent's ultimate goal: finding the optimal policy. The model does not need to be a perfect simulator; it only needs to be accurate enough to provide the correct direction for policy improvement.

The PAML Framework

The core innovation of PAML is the transition from state-prediction error to gradient-prediction error. Instead of training the model to minimize $\|s_{t+1} - \hat{s}_{t+1}\|$, PAML minimizes the difference between the Policy Gradient (PG) estimated on the real environment and the PG estimated using the learned model.

Decision-Awareness

PAML falls under the broader category of Decision-Aware Model Learning (DAML). While previous DAML research (such as Value-Aware Model Learning, or VAML) focused on value-function-based planners, PAML is specifically tailored for policy gradient algorithms like REINFORCE or DDPG. This ensures that the model is "aware" of the specific gradient-based updates the planner will perform.

Theoretical Foundations

The authors extend recent global convergence proofs for policy gradients to the model-based setting. They demonstrate that if a model provides a sufficiently accurate estimate of the policy gradient, the resulting policy will converge to a neighborhood of the global optimum. This provides a rigorous justification for prioritizing gradient accuracy over general predictive accuracy.

Experimental Evaluation

The researchers evaluated PAML across three distinct types of environments to test its robustness and efficiency.

1. Limited Capacity in Tabular MDPs

Using 2-state and 3-state "toy" problems, the authors intentionally restricted the model's parameter norm to simulate limited capacity. In these settings, the PAML agent significantly outperformed the MLE agent. Because the model could not learn the entire transition matrix, PAML forced it to prioritize the transitions most relevant to the current policy's improvement.

2. Robustness to Noise in LQR

In a Linear Quadratic Regulator (LQR) task, the researchers added 48 dimensions of irrelevant random noise to the state. Standard MLE models were "distracted" by this noise, as it represented a significant portion of the total prediction error. In contrast, PAML maintained high performance because the noise did not contribute to the policy gradient, allowing the model to ignore it entirely.

3. High-Dimensional Continuous Control

PAML was also tested on MuJoCo and OpenAI Gym benchmarks, including HalfCheetah-v0, Ant, and Hopper. In these complex tasks, PAML performed as well as or better than MLE. While the performance gap was less pronounced than in the restricted-capacity experiments—likely because the neural networks used had sufficient capacity to learn most dynamics—the results proved that PAML scales effectively to high-dimensional, continuous state spaces.

Discussion and Conclusion

PAML offers a compelling alternative to traditional model learning by focusing on the functional utility of the model rather than its descriptive accuracy. By co-evolving the model with the policy, PAML ensures that the model's limited capacity is always directed toward the most task-relevant dynamics.

Limitations and Future Directions

Despite its advantages, PAML introduces higher computational costs, as calculating the loss requires taking gradients through the model's own predictions. Additionally, the model can become "expired" if the policy changes significantly before the model is retrained, requiring careful balancing of update frequencies. Future work involves integrating PAML with state-of-the-art algorithms like Proximal Policy Optimization (PPO) and Soft Actor-Critic (SAC) to further enhance its applicability in complex, real-world reinforcement learning scenarios.

Summary updated

BibTeX
@misc{abachi2020policy,
  author = {Romina Abachi and Mohammad Ghavamzadeh and Amir-massoud Farahmand},
  title = {{Policy-Aware Model Learning for Policy Gradient Methods}},
  year = {2020},
  eprint = {2003.00030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.00030},
}
Figure