Multi-Armed Bandits With Machine Learning-Generated Surrogate Rewards

Wenlong Ji, Yihan Pan, Ruihao Zhu, Lihua Lei

TL;DR

Standard multi-armed bandits learn purely through trial-and-error online, ignoring rich offline contextual data that could be converted into rewards by pre-trained machine learning models. This paper introduces MLA-UCB, an algorithm that safely leverages potentially biased ML-generated "surrogate rewards" via control variates, provably cutting cumulative regret without requiring any prior knowledge of reward variance, prediction accuracy, or surrogate bias.

What Problem Does This Paper Address?

Multi-armed bandit (MAB) algorithms balance exploration and exploitation to maximize cumulative rewards. However, traditional algorithms (like standard UCB or Thompson Sampling) operate in a cold-start regime: they rely exclusively on rewards observed during online arm pulls, where data is initially scarce.

In real-world settings (e.g., ad recommendation or clinical trials), practitioners often have vast offline datasets (such as user demographics or historical interactions). Pre-trained ML models or LLMs can process these covariates to predict surrogate rewards. Unfortunately, directly treating these predictions as real rewards is dangerous: because true rewards are unobserved offline, ML predictions rely on extrapolation and frequently suffer from massive bias—sometimes completely misranking which arm is best.

The authors tackle a central question: How can an online bandit leverage biased, pre-trained ML predictions to accelerate learning without being led astray when the model is inaccurate?

Methods

The authors propose Machine Learning-Assisted Upper Confidence Bound (MLA-UCB):

  • Joint Observation: In the offline phase, the algorithm has access to $N_k$ surrogate rewards per arm. During the online phase, when arm $k$ is pulled, the agent observes both the true reward $R_{k,s}$ and an online surrogate prediction $\hat{R}_{k,s}$.
  • Debiased Estimation via PPI++: Drawing on Prediction-Powered Inference (PPI++), the mean reward estimator $\hat{\mu}_{k,t}^{\text{MLA}}$ is formulated as an Ordinary Least Squares (OLS) intercept problem. It uses online surrogate observations to calibrate and debias the offline surrogate predictions.
  • Student's $t$-Distribution Confidence Bounds: Instead of assuming sub-Gaussian parameters or known variances, MLA-UCB estimates true and residual variances on the fly and constructs confidence intervals using exact Student's $t$-quantiles (with initial 4 exploratory pulls per arm).
MLA-UCB Index:  μ̂_{k,t}^MLA  +  q_{n_{k,t}-2}(δ_t) * [ √(σ̂_{R,k,t}² / (n_{k,t} + N_k)) + √(Z_{k,t} σ̂_{ϵ,k,t}² / n_{k,t}) ]

Datasets

The authors evaluate MLA-UCB on synthetic benchmarks:

  1. Bivariate Gaussian Simulation: A 5-arm setup ($T = 1000$) where surrogate means are deliberately set to $[0, 0.25, 0.5, 0.75, 1.0]$ while true arm means are $[\Delta, 0, 0, 0, 0]$ (meaning the surrogate rewards completely invert the optimal arm ranking).
  2. Non-Gaussian / Non-linear ML Benchmark: Features $X \sim \mathcal{N}(0, I_2)$ drive rewards through a non-linear trigonometric function $R_k = \sin(w_{k,1} x_1^2 + w_{k,2} x_2^2) + \epsilon$. Four distinct ML models predict surrogate rewards: Linear Regression, Support Vector Regression (SVR), a two-layer Neural Network, and Decision Trees.

No real-world datasets were used in the paper.

Key Insights and Ideas

  • Variance Reduction over Data Aggregation: MLA-UCB does not treat surrogate predictions as additional pseudo-pulls. Instead, it uses them as control variates. The regret reduction is driven by variance reduction: the effective reward variance shrinks from $\sigma_k^2$ to $\sigma_k^2 (1 - \rho_k^2)$, where $\rho_k$ is the correlation between predictions and true rewards.
  • Robust to Arbitrary Bias: The surrogate predictions can have arbitrary offsets or wrong rankings. Even if the ML model is misleading in absolute terms, as long as it has non-zero correlation ($\rho_k \neq 0$) with the true reward, cumulative regret strictly improves.
  • Safe Fallback: If the ML model produces useless noise ($\rho_k = 0$), the algorithm automatically recovers the asymptotically optimal regret of a classical Gaussian bandit. If predictions are perfect ($\rho_k = 1$), the leading regret term completely vanishes as offline sample size $N_k \to \infty$.
  • Sharper Second-Order Bounds: By applying exact Student's $t$-quantiles rather than looser upper bounds, MLA-UCB achieves a second-order regret term of $O((\log T)^{2/3})$, outperforming the state-of-the-art unknown-variance baseline ($O((\log T)^{3/4} \log \log T)$).

Key Results

  • Regret Guarantee: When offline data scales poly-logarithmically ($N_k = \Omega((\log T)^{5/3})$), the expected cumulative regret satisfies: $$\mathbb{E}[\text{Reg}_T] \le \sum_{k \neq k^\star} \frac{2 \Delta_k \log T}{\log\left(1 + \frac{\Delta_k^2}{\sigma_k^2 (1 - \rho_k^2)}\right)} + O\left((\log T)^{2/3}\right)$$
  • Gaussian Experiments: Regret decreases roughly linearly with $\rho^2$. With $N = 1000$ to $2000$ offline predictions, MLA-UCB outperforms classical UCB across all gap sizes whenever $\rho^2 \ge 0.1$.
  • Non-Gaussian Robustness: Despite violating Gaussian assumptions, Decision Trees ($\rho^2 \approx 0.85$) and Neural Nets ($\rho^2 \approx 0.68$) slashed cumulative regret roughly by half compared to classical UCB. Even when a misspecified linear model yielded near-zero correlation ($\rho^2 \approx 0.002$), MLA-UCB did not degrade below the standard UCB baseline.

Limitations and Future Work

  • Bivariate Gaussian Assumption: The theoretical guarantees strictly require jointly Gaussian rewards and predictions; expanding formal finite-sample bounds to general sub-Gaussian or non-parametric distributions remains open.
  • Paired Online Feedback: The algorithm assumes that every time an arm is pulled online, its corresponding surrogate prediction is also generated and observed.
  • Offline Sample Requirements: Full asymptotic variance reduction requires poly-logarithmic offline sample size per arm ($N_k = \Omega((\log T)^{5/3})$), which might be restrictive if offline data is sparse for rare actions.
  • Future Directions: Natural extensions include contextual multi-armed bandits, handling missing or delayed online surrogates, and adapting to non-stationary environments.

Summary updated

BibTeX
@inproceedings{ji2025multi,
  author = {Wenlong Ji and Yihan Pan and Ruihao Zhu and Lihua Lei},
  title = {{Multi-Armed Bandits With Machine Learning-Generated Surrogate Rewards}},
  booktitle = {MLxOR @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=f43NiUfcho},
}
Figure