Contextual bandit algorithms choose an action for each incoming example and see the reward only for the action they took. They have to decide how much to trust their current reward estimates. Theory says the right amount of doubt should depend on how noisy each reward actually is. Bounds built this way, called variance-aware bounds (Bernstein-style intervals that shrink with the observed spread of rewards rather than with the worst possible range), give dramatically better guarantees when rewards are nearly deterministic. The practical toolkit ignores this. The largest empirical study of contextual bandits, run over 516 OpenML datasets, never tested a variance-aware method. The variance-aware methods themselves have been checked only on synthetic problems, often with the true noise level handed to the algorithm. The strongest practical algorithm, RegCB, sizes its optimism by a fixed, noise-blind radius.
We propose to build a variance-aware version of RegCB that estimates noise online, with a second regression model predicting squared residuals and an optimistic upper bound on that prediction. We will implement it as one swappable component inside a benchmark harness and test it on OpenML suites whose noise we control. The central claim is falsifiable. Variance awareness should beat a well-tuned noise-blind RegCB only when noise is heterogeneous across contexts and actions. On clean classification-derived bandits, where the reward for a given context and action is deterministic, it should mainly help by shrinking exploration faster, and at a measurable cost in the coverage of the logged data. Knowing exactly where the benefit lives, and what it costs, is the contribution.
Core Claim
The standard way to turn a classification dataset into a bandit problem gives loss 0 for the correct class and 1 otherwise, so the reward for a given context and action is fixed. Any variance the learner sees is its own model misfit, not environmental noise. This matters for reading prior results. It may explain why Greedy, which never explores deliberately, was a "surprisingly close second" in A Contextual Bandit Bake-off: that study ran oracle reductions (RegCB, Cover-NU, bootstrap Thompson sampling, ε-greedy, Greedy) over OpenML, and in that regime there is little noise to be optimistic about. Variance-aware theory predicts the same thing. Variance-Aware Feel-Good Thompson Sampling for Contextual Bandits proves regret of order $d\sqrt{\Lambda}+d$, where $d$ is feature dimension and $\Lambda$ is summed noise variance, collapsing to $O(d)$ when rewards are deterministic. EULER shows logarithmic regret in deterministic MDPs.
Our claim has two parts. First, a noise-blind RegCB with a well-chosen width constant already captures most of the benefit on clean data. Second, a variance-aware width wins decisively only when noise varies across the input space, because a single global radius cannot be tight everywhere at once. If this holds, the field's reading of "Greedy is nearly enough" needs a qualifier: it holds for benchmarks that are secretly noise-free.
Research Program
The method borrows from three sources. From Practical Contextual Bandits with Regression Oracles we take RegCB. It forms an optimistic reward estimate for each action by binary search over regressors whose cumulative squared loss is within a radius $\Delta_t$ of the best fit. From FGTS-VA and the weighted-regression line it builds on, we take inverse-variance weighting. The difference is that we must estimate variance rather than receive it, which is exactly the assumption that paper leaves open. From LLM-as-a-Judge on a Budget we take the fix for the zero-variance trap. That paper shows plug-in sample variance can hit zero on a genuinely noisy item and freeze sampling. Its ROBIN-HOOD method avoids this with an initial uniform phase and an upper confidence bound on the variance. ROBIN-HOOD works on a static pool with no contexts; we carry the idea into a contextual setting.
Concretely, a second regression model $g$ is trained online to predict the squared residual of the reward model at each context–action pair $(x,a)$. We form an optimistic variance $\bar V_t(x,a) = \max\{g_t(x,a) + \beta_t u_t(x,a),\, v_{\min}\}$. Here $u_t$ is an uncertainty proxy for $g$ (bootstrap spread), $\beta_t$ a confidence multiplier, and $v_{\min}$ a floor. The reward model then solves a weighted least-squares problem:
$$\hat f_t = \arg\min_{f} \sum_{s<t} \frac{(f(x_s,a_s) - r_s)^2}{\bar V_s(x_s,a_s)},$$
where $r_s$ is the observed reward at round $s$. RegCB's binary-search width is computed in this weighted loss. Low-noise regions therefore get narrow optimism, and noisy regions get wide optimism. Because the width grows as $\bar V$ grows, the $1/\sqrt{N}$ term scales with local standard deviation rather than range, which is the Bernstein form from Empirical Bernstein Bounds and Sample-Variance Penalization.
Modularity is what makes the ablations clean. Following the design logic of UCEE, which puts causal estimators behind one fit/predict interface, and the seeding and commit tracking of DeepDIVA, the harness separates five pieces: the reward regressor, the variance estimator, the width rule, the action selector, and the logger. Every compared method is the same pipeline with one piece swapped. Datasets come through the OpenML API with fixed task definitions (OpenML Benchmarking Suites). DeepDIVA reports that deterministic GPU settings did not guarantee reproducibility, so we run CPU-side linear and tree regressors, as the bake-off did, and report seed variance explicitly.
Before running the contextual experiments, we test the variance-UCB module in the one setting where a number exists. On HelpSteer2 prompt–response pairs (HelpSteer 2), with contexts removed, our component should reproduce ROBIN-HOOD's reported worst-case absolute error on GPT-4.1 nano correctness at 50k queries: 0.300 against 0.451 for uniform allocation. This depends on access to the paper's 30-ratings-per-pair pool; otherwise we regenerate a smaller one. The check tests the implementation, not the thesis.
Baselines
The naive reference is Greedy, run in the same harness with the same regressor. It is the bake-off's near-winner, it represents "do nothing about exploration," and it is the method our first prediction says should be hard to beat on clean data.
The strongest existing competitor is RegCB-opt from Practical Contextual Bandits with Regression Oracles. The bake-off reports it as the overall winner across 516 OpenML datasets. That paper also reports that RegCB with gradient-boosted trees matched or beat ILTCB and bootstrap Thompson sampling on 18 UCI and learning-to-rank scenarios. However, no reported result was found on Lacuna for a numeric per-dataset loss or regret value for RegCB. So the target is the relative ranking, and we re-run RegCB ourselves rather than quote a number. For fairness, RegCB's width constant gets the same tuning budget as our method's two constants ($\beta_t$ scale and $v_{\min}$). Both are tuned on a held-out subset of OpenML-CC18 tasks and then frozen, and they use the same regressor class and update schedule. Beating it means a statistically significant pairwise win count across datasets on the heterogeneous-noise variants, using the bake-off's pairwise-comparison protocol. On clean data we would not claim a win; parity or better is enough.
We also include Cover-NU, the bake-off's most robust method under misspecification, and the plug-in empirical-Bernstein variant without the optimistic variance bound. The latter shows the freeze-out failure documented in LLM-as-a-Judge on a Budget.
The key ablation is a global-variance RegCB. It estimates a single scalar noise level online and rescales the radius uniformly. This isolates whether gains come from knowing that noise is heterogeneous or merely from having a data-driven width. An oracle-variance variant, given the injected noise levels, bounds from above what online estimation could achieve. It mirrors the known-variance setting of FGTS-VA.
Why not just…?
Why not just use Greedy, since it nearly won the bake-off? It may well be enough on clean classification bandits, and we predict as much. But the bake-off also reports that Greedy occasionally failed catastrophically on difficult datasets. Deterministic-reward conversions are also the regime most favorable to never exploring. Injecting noise tests whether Greedy's near-tie survives once rewards are genuinely noisy. If Greedy matches our method even under heterogeneous noise, the variance-aware machinery is not worth its cost, and we will report that.
Why not just tune RegCB's width constant per suite? This is the real threat. When noise is uniform, a tuned global radius is essentially a correct variance estimate, so the variance-aware method has nothing to add. The global-variance ablation and a noise-heterogeneity sweep settle this directly. We vary the ratio between the noisiest and quietest action–region pairs while holding average noise fixed. Our claim predicts that the gap over tuned RegCB is near zero at ratio one and grows with heterogeneity. If the gap stays flat, the claim is wrong.
Why not just encode rewards as −1/0 for free optimism? The bake-off found −1/0 encoding beats 0/1 because it builds in an initial optimistic bias. That bias is uniform and static, so it cannot concentrate exploration where noise lives. We will run every method under both encodings and report whether variance awareness still adds anything on top of −1/0.
Why not just plug in the sample variance? LLM-as-a-Judge on a Budget shows this freezes sampling on arms whose first few observations happen to agree. EULER similarly needs paired upper and lower bounds to keep variance underestimates from corrupting its updates. Our plug-in baseline measures how often the freeze-out occurs in the contextual setting.
Proposed Experiments
The main testbed is OpenML-CC18's 72 curated datasets converted to bandit feedback, scored by progressive validation loss as in the bake-off. The same datasets are run in three regimes: clean, homogeneous-noise, and heterogeneous-noise. The noisy regimes use the reward-matrix noise model from the RegCB paper, extended so that noise variance depends on action and on a feature-defined region. As a larger replication, the clean regime also runs on the bake-off's 516-dataset pool. MSLR-WEB30k and Yahoo learning-to-rank provide naturally graded, heterogeneous rewards without synthetic noise.
The first decisive check is the heterogeneity sweep described above. The second is a coverage audit motivated by the bake-off's observation that fast-eliminating learners leave logs useless for offline evaluation, and by Coverage Cliffs in Learning from Logged World Feedback. For each method's logs we record the minimum and fifth-percentile logged propensity. We also record the error of inverse-propensity and doubly robust estimates of held-out target policies' value, against ground truth available from the full labels. We expect variance-aware widths to collapse fastest in quiet regions and therefore to worsen coverage there. We will report the regret-versus-coverage frontier for each method, including ε-greedy, rather than regret alone.
The third check is cost. We report wall-clock time per round, because maintaining a second regressor and its bootstrap roughly doubles oracle calls, and a gain that disappears at matched compute is not a gain. We therefore also run RegCB with a doubled ensemble at matched compute.
Tabular reinforcement learning with UCBVI-BF (Minimax Regret Bounds for Reinforcement Learning) and EULER is deliberately out of scope. Its $T \ge H^3S^3A$ condition makes it a separate study, and the contextual case is where a large empirical benchmark and a clear strongest baseline already exist.
References
- A Contextual Bandit Bake-off
- Variance-Aware Feel-Good Thompson Sampling for Contextual Bandits
- Tighter Problem-Dependent Regret Bounds in Reinforcement Learning without Domain Knowledge using Value Function Bounds
- Practical Contextual Bandits with Regression Oracles
- LLM-as-a-Judge on a Budget
- Empirical Bernstein Bounds and Sample-Variance Penalization
- Universal Causal Evaluation Engine: An API for empirically evaluating causal inference models
- DeepDIVA: A Highly-Functional Python Framework for Reproducible Experiments
- OpenML Benchmarking Suites and the OpenML100
- HelpSteer 2: Open-source dataset for training top-performing reward models
- Coverage Cliffs in Learning from Logged World Feedback
- Minimax Regret Bounds for Reinforcement Learning