Deep Exploration with PAC-Bayes

Bahareh Tasdighi, Manuel Haussmann, Nicklas Werge, Yi-Shan Wu, Melih Kandemir · Submission to ICLR 2025 · Rejected

TL;DR

Learning continuous control policies under sparse rewards requires "deep exploration"—propagating uncertainty across multi-step Bellman backups to coordinate long horizons of action. This paper introduces PAC-Bayesian Actor-Critic (PBAC), which leverages PAC-Bayes generalization bounds to train an ensemble of critics regularized by a data-informed function-space prior. Across challenging sparse MuJoCo and DeepMind Control benchmarks, PBAC is the only tested model capable of consistently discovering and exploiting sparse rewards.

What Problem Does This Paper Address?

Reinforcement learning (RL) in continuous action spaces predominantly relies on dense reward shaping (e.g., giving a robot small positive rewards just for staying upright or moving slightly forward). In open-world tasks with sparse, delayed rewards—such as learning to stand before walking, or reaching a distant goal without breadcrumb feedback—standard exploratory noise (like Gaussian action perturbations) fails because the probability of accidentally hitting high-reward sequences is near zero.

While "deep exploration" methods (which propagate value uncertainty across temporal difference updates) solve this in discrete spaces, extending them to continuous actor-critic setups has been an open challenge. Existing continuous approaches either incur prohibitive model-based overhead or struggle to maintain directed exploration over extended horizons.

Methods

The authors reframe deep exploration through the lens of PAC-Bayesian learning:

  1. PAC-Bayes Bellman Error Bound: The authors derive a generalization bound on the value error $\|Q_\pi - X\|_{P_\pi}^2$ using the contraction property of the Bellman operator, bounding the true risk of a stochastic Q-function $X \sim \rho$ against its empirical Bellman loss and a Kullback-Leibler (KL) divergence to a prior $\rho_0$.
  2. Empirical Posterior & Function-Space Prior:
  3. The posterior $\rho$ is parameterized as an ensemble of $K$ critic networks trained on bootstrapped data masks.
  4. The prior $\rho_0$ is a data-informed function-space prior constructed directly from the critic target networks (which store the most recent stable estimates of the next-state value distribution).
  5. Decomposed Critic Objective: Deriving the loss from the PAC-Bayes bound yields three distinct, interpretable terms:
  6. Diversity: Trains individual critics on bootstrapped targets to quantify epistemic uncertainty.
  7. Coherence: Pulls ensemble predictions toward the target prior mean.
  8. Propagation: Maximizes the log-variance of ensemble predictions across states, preventing premature collapse and explicitly propagating uncertainty across multi-step updates.
  9. Multi-Head Deterministic Actor: The policy consists of a shared neural trunk with $K$ distinct heads (one per critic). During training, the agent explores via posterior sampling—randomly picking one actor head and executing it deterministically for a fixed window of steps. At test time, actions are determined via Bayesian model averaging across heads.

Datasets

The authors evaluated PBAC on eleven continuous control benchmarks:

  • DeepMind Control (DMC) Suite: Three natively sparse tasks—ballincup, cartpole, and reacher.
  • MuJoCo (Gymnasium v4): ant, hopper, and humanoid.
  • Novel Sparse Locomotion Benchmarks: The authors introduce two difficulty tiers on top of standard MuJoCo tasks:
  • Sparse: Removes the per-step health reward entirely, penalizing actuator use and eliminating intermediate stability signals.
  • Very Sparse: In addition to zero health reward, forward velocity reward is granted only after crossing a physical positional threshold ($x > c$).

Key Insights and Ideas

  • Target networks make great priors: In PAC-Bayesian learning, the prior cannot depend on current minibatch data, but it can depend on prior iterations. Using target network evaluations as a function-space prior naturally links temporal difference learning to PAC-Bayes theory.
  • Uncertainty propagation via variance regularization: The bound naturally introduces a negative log-variance penalty ($-\log \sigma_\pi^2(s)$). Rather than collapsing to a mean estimate, critics are actively repelled from one another in unfamiliar regions, maintaining the uncertainty required for deep exploration.
  • Bootstrapping + Posterior Sampling eliminates jitter: By using deterministic actor heads sampled over extended step blocks, the agent commits to temporally extended maneuvers rather than dithering with high-frequency noise.

Key Results

Evaluated across 10 random seeds using InterQuartile Mean (IQM) and Area Under the Learning Curve (AULC), PBAC outperformed state-of-the-art baselines (REDQ, DRND, BootDQN-P, and BEN):

  • Very Sparse Ant: PBAC reached a final episode reward IQM of 4194 [495, 5365], whereas REDQ achieved 269, and DRND/BootDQN-P scored negative rewards.
  • Sparse Humanoid: PBAC solved the task with an IQM of 1694 [1362, 1896], while the next best baseline (REDQ) achieved only 156, and BEN/DRND remained near 6.
  • Cartpole (Sparse): PBAC attained an IQM of 842, rapidly finding the upright reward region where REDQ and DRND completely flatlined at 0.0.
  • Competitive on Dense Tasks: On standard dense ant (6524) and hopper (1828), PBAC matched or exceeded top-performing baselines.

Limitations and Future Work

  • Theoretical Convergence: While the PAC-Bayes bound provides generalization guarantees on the Bellman error, the paper does not establish asymptotic convergence guarantees for the iterative actor-critic optimization in continuous spaces.
  • Sensitivity in Dense-Reward Locomotion: In dense environments with massive baseline rewards (notably standard dense humanoid, which awards $r = 5$ per step just for staying alive), PBAC’s uncertainty-driven exploration can overcomplicate learning, underperforming pure exploitation methods where random exploration suffices.

Summary updated

BibTeX
@misc{tasdighi2024deep,
  author = {Bahareh Tasdighi and Manuel Haussmann and Nicklas Werge and Yi-Shan Wu and Melih Kandemir},
  title = {{Deep Exploration with PAC-Bayes}},
  year = {2024},
  eprint = {2402.03055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.03055},
}
Figure