Unified PAC-Bayesian Study of Pessimism for Offline Policy Learning with Regularized Importance Sampling

Imad Aouali, Victor-Emmanuel Brunel, David Rohde, Anna Korba

TL;DR

This paper introduces a unified PAC-Bayesian framework providing generalization bounds for offline policy learning (OPL) across a wide variety of importance weight regularizations. By placing techniques like clipping, exponential smoothing, implicit exploration, and harmonic weighting under a single theoretical roof, the authors enable the first apples-to-apples comparison of these estimators. Surprisingly, their findings reveal that conventional weight clipping performs just as well as newer, more intricate regularizers when trained under a common pessimistic learning principle.

What Problem Does This Paper Address?

In offline contextual bandits, an agent learns to make decisions using historical logged data collected by a previous "logging" policy. To evaluate or optimize a new target policy, algorithms typically rely on Inverse Propensity Scoring (IPS), which re-weights observed data points by the ratio of target-to-logging action probabilities (the importance weights).

While IPS is unbiased, its variance explodes when the target policy chooses actions rarely taken by the logging policy. To fix this, researchers regularize the importance weights (e.g., by clipping extreme weights or smoothing them). Furthermore, in off-policy learning, agents adopt pessimism: they minimize the estimated cost plus an uncertainty penalty derived from generalization bounds.

However, prior work designed unique generalization bounds and pessimistic objectives for each specific regularization technique. Because researchers compared regularizers using completely different training principles, it was impossible to tell whether performance improvements stemmed from a superior regularizer or merely an artifact of a tighter bound.

Methods

The authors build a unified theoretical bridge using PAC-Bayes theory:

  • Universal PAC-Bayesian Generalization Bound: The authors prove a two-sided generalization bound (Theorem 1) that bounds the true risk for any policy distribution $Q$. The bound cleanly decomposes error into:
  • Context sampling error ($I_1$), bounded via standard PAC-Bayes tools.
  • Expected regularization bias ($I_2$), captured by an empirical bias term $B_n(Q)$.
  • Conditional estimator variance ($I_3$), bounded using martingale difference sequences.
  • Linear Regularization Specialization: For linear regularizers (such as clipping, implicit exploration, and exponential smoothing) evaluated on mixtures of deterministic policies, the bound simplifies (Corollary 2), removing the need to compute expectations over the parameter distribution $Q$.
  • Two Practical Learning Principles:
  • Bound Optimization: Directly minimizes the theoretical bound via stochastic gradient descent using the local reparameterization trick.
  • Heuristic Optimization: Minimizes estimated risk regularized by empirical bias, empirical variance, and an $L_2$ distance penalty to logging policy parameters $\theta_0$.
                 [ Offline Logged Bandit Data ]
                               |
               [ Regularized IPS Risk Estimator ]
                               |
        +----------------------+----------------------+
        |                                             |
[ Bias Penalty Bn(Q) ]                       [ Variance Penalty Vn(Q) ]
        |                                             |
        +----------------------+----------------------+
                               |
            [ Unified PAC-Bayesian Objective ]
                               |
                  [ Learned Robust Policy ]

Datasets

The authors converted standard supervised image classification datasets into contextual bandit environments using the standard supervised-to-bandit transformation (Agarwal et al., 2014):

  • MNIST: 10 actions (classes), context dimension $d=784$.
  • FashionMNIST: 10 actions (classes), context dimension $d=784$.
  • (EMNIST was also tested during research and yielded identical conclusions).

Logging policies were generated by training on 5% of the data, using an inverse-temperature parameter $\eta_0$ to sweep logging policies from worse-than-random ($\eta_0 < 0$) to near-expert ($\eta_0 = 1.0$). No new benchmark datasets were introduced.

Key Insights and Ideas

  • Challenging Modern Assumptions: Recent literature argued that newer techniques like Exponential Smoothing (ES) dramatically outperform traditional Clipping (Clip). This paper reveals those apparent advantages were largely an artifact of the tighter PAC-Bayes bounds used in those papers, not the regularizer itself.
  • Regularizers Perform Comparably: When subjected to the exact same bound or heuristic optimization, Clip, ES, and Implicit Exploration (IX) achieve near-identical policy rewards across various logging policy qualities.
  • Harmonic Regularization Lags: Harmonic weighting consistently underperformed linear regularizers, partly because its non-linear formulation prevents the variance-reducing simplifications allowed by Corollary 2.

Key Results

  • Outperforming Prior Bounds: When evaluating on Clip-IPS, the authors' learning principle substantially outperformed prior Clip-specific PAC-Bayes bounds (London & Sandler, 2019; Sakhi et al., 2023) on both MNIST and FashionMNIST across all realistic logging regimes ($\eta_0 \in [0.2, 1.0]$).
  • Parity Across Modern IW Methods: Across both MNIST and FashionMNIST, when tuning the regularization hyperparameter in $[0, 1]$, Clip, IX, and ES achieved matching peak rewards (e.g., reaching test rewards $\approx 0.85$ on MNIST when trained with $\eta_0=0.5$).
  • Bound vs. Heuristic: Heuristic optimization achieved slightly higher raw rewards than directly optimizing the theoretical bound, because direct bound optimization relies on Monte Carlo estimation of expectations, which suffers from variance in high-dimensional parameter spaces.

Limitations and Future Work

  • Data-Dependent Terms: The generalization bound contains empirical terms ($B_n$ and $\bar{V}_n$), making it non-trivial to extract clean, data-independent $O(1/\sqrt{n})$ suboptimality convergence rates for arbitrary regularizers.
  • Symmetric Tail Looseness: The paper utilizes two-sided concentration bounds. However, importance-weighted estimators often exhibit asymmetric tail behavior; bounding lower and upper tails separately could yield tighter bounds.
  • Scalability to Large Action Spaces: Monte Carlo approximations within the local reparameterization trick become noisy as action spaces grow large, restricting current direct bound optimization experiments to moderate action spaces ($K=10$) and linear-softmax policies.

Summary updated

BibTeX
@inproceedings{aouali2024unified,
  author = {Imad Aouali and Victor-Emmanuel Brunel and David Rohde and Anna Korba},
  title = {{Unified PAC-Bayesian Study of Pessimism for Offline Policy Learning with Regularized Importance Sampling}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=d7W4H0sTXU},
}

Loading related content...

Figure