TL;DR
When an AI agent learns on the fly in high-stakes environments like healthcare, how do you guarantee its next update won’t do something catastrophic? Previous methods only keep errors low on average—little comfort if your specific deployment happens to be an unlucky outlier—and they break down computationally as history grows. This paper introduces a fast matrix-scaling trick and a bootstrap safety buffer to keep online learning policies safe at every round with high probability, even when the agent's own actions warp the data it collects.
What Problem Does This Paper Address?
Imagine deploying a medical AI that diagnoses patients, collects outcomes, and updates its strategy overnight. Because yesterday's decisions dictate today's training data, the data is neither independent nor identically distributed. The authors call this Feedback Covariate Shift (FCS)—the AI is essentially changing the statistical ground beneath its own feet.
If you want to enforce a strict safety limit (say, keeping missed cancer diagnoses under 4%), FCS creates two massive headaches:
- Unreliable Risk Estimation: Standard importance weighting—re-weighting past data to match a new policy—ignores sequential history and suffers from exploding variance when policies change rapidly. Accounting for exact historical dependencies requires checking every possible permutation of past data, which has factorial ($t!$) complexity and quickly becomes impossible to compute.
- Weak Safety Guarantees: Existing frameworks like Conformal Policy Control (CPC) only control risk in expectation (averaging across hypothetical parallel universes). Due to high variance, a specific real-world deployment can still easily breach the safety threshold. Furthermore, cherry-picking a "safe" policy from a menu of candidates introduces selection bias that can invalidate naive statistical bounds.
Methods
The authors introduce RCL-HP (Risk Control for Policy Learning with High Probability), tackling both headaches with two distinct innovations (alongside an expectation-only variant, RCL-E):
- Sinkhorn Permutation Weights (New): Instead of brute-forcing $t!$ permutations to properly weight historical data under FCS, the authors relax the problem into a convex optimization over "doubly stochastic matrices" (grids where every row and column sums to 1, preserving the one-to-one spirit of a permutation). By minimizing Kullback-Leibler (KL) divergence against the historical policy probabilities, they approximate the exact permutation weights rapidly via iterative matrix scaling—the Sinkhorn algorithm.
- Gaussian Multiplier Bootstrap for Policy Selection (New): You cannot use a standard resampling bootstrap here because shuffling raw data destroys the sequential timeline of FCS. Instead, the authors multiply each data point's estimated risk error by random standard normal noise ($\mathcal{N}(0, 1)$) to simulate error fluctuations. By finding the worst-case underestimation error simultaneously across all candidate policies, they build a uniform Upper Confidence Bound (UCB). Only policies whose UCB sits safely below the risk limit are cleared for deployment (otherwise, the system defaults to a known safe fallback policy).
Datasets
The authors evaluate their methods on existing benchmarks across four distinct setups (no new datasets are introduced):
- Breast Cancer Diagnosis & Stock Investment: Two online contextual bandit tasks with true feedback covariate shift, controlling false-negative rates and worst-action probabilities, respectively.
- SafetyBench: An LLM safe question-answering task using fine-tuned model checkpoints to simulate severe, non-adaptive policy shifts, controlling error rates via strategic abstention.
- MedLFQA (Factual Medical QA): A static (i.i.d.) subclaim-filtering task using GPT-3.5-Turbo responses and GPT-4o factuality annotations, controlling the False Discovery Rate (FDR) of retained medical claims.
Key Insights and Ideas
- Global Beats Local Weighting: Standard importance weights are local—they only compare how likely a single action was under the new policy versus the old one. Permutation weights are global, factoring in the entire bag of historical data at once. The authors prove theoretically that this global smoothing guarantees a worst-case variance upper bound no larger than standard importance sampling.
- Dodging Non-Monotonicity Traps: Often, tweaking a policy parameter (like LLM temperature or claim-filtering thresholds) doesn't make risk go strictly up or down. Previous methods force monotonicity by artificially inflating individual losses, which makes the AI overly conservative. Because RCL-HP builds a simultaneous safety margin across all candidates at once, it handles bumpy, non-monotonic risk landscapes naturally without sacrificing utility.
Key Results
- Reliable High-Probability Control: Across the online tasks, RCL-HP consistently held violation rates at or above the target confidence levels—achieving empirical risk satisfaction rates matching the 90% target ($\delta=0.1$) on Breast Cancer ($\alpha=0.04$) and Stock Investment ($\alpha=0.1$), and the 80% target ($\delta=0.2$) on SafetyBench ($\alpha=0.1$). Expectation-only baselines like O-CRC and CPC hovered around 40%–60% satisfaction.
- Lower Variance & Immediate Safety: On the Breast Cancer task, RCL-E kept the false-negative rate below the 0.04 threshold from Round 1 using just 50 initial samples, whereas importance-weighted O-CRC started above 0.06 and took roughly 10 rounds to catch up, exhibiting visibly higher estimator bias and variance.
- Higher Utility without Over-Conservatism: On MedLFQA ($\delta=0.2$), RCL-HP respected all target FDR thresholds (0.00 to 0.10) while retaining a much higher recall (reward) of true medical claims than concentration-inequality methods like Learn-then-Test (LTT) and Monotonized CRC.
Limitations and Future Work
- Asymptotic vs. Finite-Sample: Because the safety margin relies on a Gaussian bootstrap approximation rather than exact permutation weights and concentration inequalities, the high-probability guarantee holds asymptotically (as rounds $t \to \infty$) rather than strictly for tiny finite samples.
- Structural Assumptions: The theoretical guarantees assume a finite set of candidate policies, access to a known safe fallback policy, and context distributions that remain i.i.d. (even as actions shift adaptively).
- Future Directions: The authors plan to extend this framework to safe LLM reasoning and full safe exploration in reinforcement learning (where actions also alter future states/contexts).
Summary updated