Posterior Coreset Construction with Kernelized Stein Discrepancy for Model-Based Reinforcement Learning

Souradip Chakraborty, Amrit Singh Bedi, Pratap Tokekar, Alec Koppel, Brian M. Sadler, Furong Huang, Dinesh Manocha

Introduction

Model-Based Reinforcement Learning (MBRL) is prized for its sample efficiency, achieved by learning a transition model of the environment to plan future actions. However, standard approaches like Posterior Sampling for RL (PSRL) suffer from "memory bloat." As an agent interacts with the environment, the dictionary of past state-action pairs grows indefinitely. In continuous spaces, this leads to a computational explosion—updating posterior estimates often scales as $O(N^3)$—and relies on restrictive assumptions like Gaussianity that fail in complex, multi-modal scenarios.

This paper introduces KSRL (Kernelized Stein Discrepancy-based Posterior Sampling for RL), a framework that maintains a compressed "coreset" of only the most informative past experiences. By leveraging Stein’s Method, KSRL achieves sublinear regret while significantly reducing computational overhead.

The KSRL Framework

The core innovation of KSRL is the application of Kernelized Stein Discrepancy (KSD) to coreset construction in MBRL. Unlike standard metrics like Total Variation distance, KSD can be evaluated in closed form using only the "score function" (the gradient of the log-likelihood) of the estimated model, bypassing the need for oracle access to true environment dynamics.

KSD-Thinning and Coreset Construction

After each episode, KSRL performs a "thinning" operation. It greedily removes state-action pairs from the dictionary that contribute the least to the KSD. This results in a Bayesian Coreset—a small subset of data that preserves the statistical properties of the entire history. A tunable parameter $\alpha \in (0, 1]$ allows users to balance the trade-off between regret (performance) and coreset size (memory/speed).

Experimental Evaluation

The authors evaluated KSRL on continuous control benchmarks including Stochastic Pendulum, Continuous Cartpole, Reacher, and Pusher.

Performance and Efficiency

KSRL demonstrates competitive performance against state-of-the-art methods like MPC-PSRL, SAC, and DDPG. Crucially, it achieves this while maintaining a significantly smaller model complexity.

Average rewards across training steps, showing KSRL matching or exceeding baseline performance.

As shown in the reward curves, KSRL (blue) quickly reaches optimal performance, comparable to the full-memory MPC-PSRL (orange), while significantly outperforming model-free baselines like SAC and DDPG in sample efficiency.

Breaking the Complexity Bottleneck

The primary advantage of KSRL is its ability to break the linear growth of model complexity. While standard MBRL methods see their dictionary size grow linearly with time steps, KSRL's coreset approach leads to sublinear growth.

Model complexity (dictionary size) over time, comparing KSRL's sublinear growth to MPC-PSRL's linear growth.

This reduction in complexity translates to a 50% reduction in wall-clock time in continuous control tasks. The paper mathematically establishes that sublinear Bayesian regret can be achieved without linear growth in model complexity, a significant theoretical and practical advancement.

Conclusion

KSRL addresses the scalability bottleneck of MBRL by introducing a principled way to prune redundant data. By using KSD-thinning to construct Bayesian coresets, it maintains high performance and theoretical guarantees while slashing memory and computational requirements. While sensitive to kernel selection and currently relying on greedy thinning, KSRL represents a robust step toward making model-based agents practical for long-term, complex robotics tasks.

Summary updated

BibTeX
@inproceedings{chakraborty2023posterior,
  author = {Souradip Chakraborty and Amrit Singh Bedi and Pratap Tokekar and Alec Koppel and Brian M. Sadler and Furong Huang and Dinesh Manocha},
  title = {{Posterior Coreset Construction with Kernelized Stein Discrepancy for Model-Based Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25853},
}
Figure