Bayesian regularization of empirical MDPs

Samarth Gupta, Daniel N. Hill, Lexing Ying, Inderjit S DhillonRRL @ ICLR 2022 · DOI

TL;DR

This paper introduces a Bayesian approach to improve the robustness of policies learned from noisy, estimated Markov Decision Process (MDP) models. By incorporating prior knowledge about action preferences as regularization, their methods (L¹ and relative entropy) significantly outperform standard approaches on both simulated and real-world data, leading to more reliable decision-making in uncertain environments.

What Problem Does This Paper Address?

In many real-world applications, we don't have perfect knowledge of the environment's dynamics, often modeled as an MDP. Instead, we estimate these dynamics (transition probabilities and rewards) from observed data. This estimation process is inherently noisy, leading to an "empirical MDP" that differs from the true underlying MDP. When a policy is learned from this noisy empirical model and then deployed in the real world, it can perform poorly, a phenomenon known as "suboptimal performance" or "poor generalization." This is particularly problematic in scenarios like online shopping, where a flawed recommendation policy can lead to lost sales. The core challenge is to learn policies from empirical data that are robust to this estimation noise and generalize well to the true, unknown environment.

Methods

The authors propose a Bayesian approach to regularize the objective function of the MDP. Instead of directly optimizing the policy based on the noisy empirical model, they incorporate prior information about action preferences. This prior information is used to penalize actions that are less likely to be optimal, effectively guiding the learning process towards more robust solutions.

Two specific regularization techniques are introduced:

  • L¹-type regularization: This method penalizes the deviation of the learned policy from a preferred action at each state. It effectively reduces the reward associated with non-preferred actions, leading to a deterministic policy that favors the prior.
  • Relative Entropy Regularization: This approach uses relative entropy to bias the learned policy towards a prior distribution. It introduces a penalty based on the difference between the learned policy and the prior, resulting in a stochastic policy. This method is shown to be equivalent to Shannon entropy regularization with modified rewards.

Both methods aim to make the learned policy more resilient to noise in the estimated MDP parameters.

Datasets

The paper evaluates their proposed algorithms on:

  • Synthetic simulations: These are generated MDP environments designed to test specific aspects of the algorithms.
  • Real-world search logs: Data from an online shopping store is used, representing user interactions with different search algorithms (actions) and queries (states). This dataset is used to demonstrate the practical effectiveness of their approach.

Key Insights and Ideas

  • The "Curse of the Empirical Model": Simply learning from noisy data leads to policies that are suboptimal in the true environment. This is a fundamental challenge in model-based reinforcement learning.
  • Prior Knowledge as a Powerful Regularizer: Incorporating even simple prior knowledge (e.g., one action is generally better than another) can significantly improve policy robustness and performance.
  • Bayesian Regularization for Robustness: Framing the problem as a Bayesian inference task allows for the principled incorporation of prior information, leading to more reliable policies.
  • L¹ vs. Relative Entropy: Both regularization methods offer distinct advantages. L¹ regularization leads to deterministic policies, while relative entropy yields stochastic policies, offering flexibility depending on the application.
  • The Value of Session Modeling: For applications like online shopping, modeling the entire user session (delayed rewards) is crucial, and MDP-based approaches that account for this outperform simpler, immediate-reward-focused methods.

Key Results

  • Synthetic Examples: Both L¹ and relative entropy regularized policies significantly outperform the unregularized policies on simulated MDPs, demonstrating improved value per state. The regularization benefit decreases as the number of samples used to estimate the MDP increases, indicating that regularization is most crucial when data is scarce.
  • Real-world Experiments: On the online shopping dataset, the L¹-regularized policy showed improvements of up to 0.7% over a baseline "ranker 2" policy and 21-22% over a "ranker 1" policy. It also outperformed one-shot policies (which don't account for delayed rewards) and the unregularized MDP policy. Similar improvements were observed for the relative entropy regularized policy.
  • Robustness to Noise: The regularized policies consistently outperformed baselines, highlighting their ability to handle noise in both transition probabilities and reward tensors.

Limitations and Future Work

  • Hyperparameter Tuning: The performance of the regularized policies depends on regularization parameters (λ for L¹, and κ, q for relative entropy). The paper mentions these can be learned on a validation set, but finding optimal hyperparameters can still be a challenge.
  • Action Space Size: The paper notes that their approach is more practical for smaller action spaces, as the complexity of incorporating priors can increase with the number of actions.
  • Future Work: The authors suggest that their approaches can be extended to settings where a subset of actions is preferred, not just a single action. Further exploration of different prior structures and their impact on policy robustness would also be valuable.

Summary updated

BibTeX
@misc{gupta2022bayesian,
  author = {Samarth Gupta and Daniel N. Hill and Lexing Ying and Inderjit S Dhillon},
  title = {{Bayesian regularization of empirical MDPs}},
  year = {2022},
  eprint = {2208.02362},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.02362},
}
Figure