Model-based Reinforcement Learning for Continuous Control with Posterior Sampling

Ying Fan, Yifei Ming

Introduction

In reinforcement learning (RL), agents must constantly navigate the exploration-exploitation dilemma: balancing the need to explore unknown states to gather information against exploiting known states to maximize rewards. In continuous state-action spaces, this challenge is magnified, requiring function approximation techniques like neural networks to generalize across infinite possibilities.

Historically, algorithms based on Upper Confidence Bounds (UCB) have provided the strongest theoretical guarantees—specifically, tight regret bounds—for this setting. However, UCB methods require optimizing over complex confidence sets, making them computationally prohibitive for practical applications.

Posterior Sampling for RL (PSRL) offers a much more computationally tractable alternative. In PSRL, the agent samples a single Markov Decision Process (MDP) from a posterior distribution and solves it. Unfortunately, prior theoretical regret bounds for PSRL in continuous spaces were either vague or scaled exponentially with the episode length ($H$). This paper bridges the gap between theoretical guarantees and computational tractability, proving the first regret bound for PSRL in continuous spaces that is polynomial in episode length, matching state-of-the-art UCB methods. It also introduces MPC-PSRL, a practical algorithm that achieves state-of-the-art sample efficiency on continuous control benchmarks.

Bridging Theory and Practice: The Methods

The authors tackle the exploration problem from both theoretical and practical angles:

  • Theoretical Analysis: The unknown reward and transition functions are modeled using Gaussian Processes, specifically Bayesian Linear Regression. To avoid the dreaded exponential dependency on episode length ($H$), the authors leverage the properties of symmetric noise distributions. This allows them to derive a closed-form, polynomial Lipschitz constant for the future value function. They successfully extend this proof to non-linear cases using feature embeddings.
  • Practical Algorithm (MPC-PSRL): To translate this theory into a working algorithm, the authors train neural networks to predict environment transitions and rewards. They extract the penultimate layer of these networks to serve as a learned feature representation ($\phi$). Bayesian Linear Regression is then performed strictly on these extracted features to capture epistemic (model) uncertainty. For action selection, the algorithm uses Model Predictive Control (MPC) via the Cross-Entropy Method (CEM) to plan optimal trajectories over the sampled MDP.

Key Insights

  • Symmetric Noise is the Key to Polynomial Bounds: Previous works assumed a generic Lipschitz constant for the future value function, which naturally blows up exponentially over an episode horizon $H$ as errors compound. By assuming the environment noise has a symmetric probability distribution—a common and reasonable assumption—the authors proved this constant only needs to scale polynomially.
  • PSRL Matches UCB: PSRL is not merely a computationally cheaper heuristic alternative to UCB. It theoretically matches the best-known frequentist regret bounds while remaining significantly easier to compute.
  • Feature Embeddings Bridge Theory and Practice: By treating the penultimate layer of a deep neural network as a linear feature space, MPC-PSRL enjoys the massive representational power of deep learning while maintaining the rigorous, mathematically sound uncertainty quantification of Bayesian Linear Regression.

Results

Theoretical Guarantees

The authors established a Bayesian regret bound of $\tilde{O}(H^{3/2}d\sqrt{T})$ for linear MDPs, and $\tilde{O}(H^{3/2}d_\phi\sqrt{T})$ for non-linear MDPs using feature embeddings (where $d_\phi$ is the dimension of the feature space and $T$ is total time steps). This matches the state-of-the-art bounds previously only achieved by computationally heavy UCB methods.

Empirical Performance

The authors evaluated MPC-PSRL on standard continuous control benchmarks, modifying some to explicitly test stochasticity (e.g., adding Gaussian noise to Cartpole and Pendulum).

Empirically, MPC-PSRL significantly outperforms state-of-the-art model-based baselines like PETS and MBPO in low-dimensional stochastic environments.

Learning curves on Stochastic Pendulum and Cartpole benchmarks, comparing MPC-PSRL against MBPO and PETS.

Furthermore, in higher-dimensional tasks such as the 7-DOF Reacher and Pusher, MPC-PSRL learns faster and converges to higher rewards than PETS and MBPO. It even matches the asymptotic performance of heavily optimized model-free methods like Soft Actor-Critic (SAC), but with vastly superior sample efficiency.

Performance on the higher-dimensional Reacher task without oracle rewards.

Limitations and Future Work

While MPC-PSRL represents a significant step forward, its practical implementation relies heavily on Model Predictive Control (MPC) for planning actions. MPC is known to struggle or fail in extremely high-dimensional tasks due to the sheer size of the search space.

To scale the method to even more complex environments, the authors suggest replacing or augmenting the MPC action-selection mechanism with policy gradient techniques. Additionally, optimizing the exact dimension of the penultimate layer for more efficient feature representation remains an open question for future research.

Summary updated

BibTeX
@inproceedings{fan2021model,
  author = {Ying Fan and Yifei Ming},
  title = {{Model-based Reinforcement Learning for Continuous Control with Posterior Sampling}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure