NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Slowing the Oracle: Removing the Maximum-Delay Penalty in Delayed Contextual Bandits

A contextual bandit is a learner that sees a context (say, a user), picks one of $K$ actions, and observes the loss of only that action. In deployed systems this loss often arrives late, after a delay chosen by the environment. When the delays may be adversarial, the best known efficient method for rich model classes pays a penalty that grows with the single longest delay, not just with the total delay. That method, DA-FA, reduces the problem to an online regression model that predicts losses. If every round is delayed by the same $d$ steps, its delay cost scales like $d\sqrt{T}$, while the lower bound allows $\sqrt{dT}$. The gap therefore grows with the delay itself, and it appears even when no delay is an outlier.

This note argues that the extra factor has a concrete source. The regression model in DA-FA updates at a fixed speed set by the regression problem, not by how much information is still in flight. We propose two changes. First, a tempered version of the regression model whose update speed shrinks as more feedback is outstanding. Second, an internal state that depends only on which rounds have been observed, not on the order they arrived in. Together these should replace the maximum-delay factor with the total delay $D$, and they should drop the requirement that feedback arrive in order.

Core Claim

Regret Bounds for Adversarial Contextual Bandits with General Function Approximation and Delayed Feedback proves two results that frame this work. For a finite policy class, EXP4 with delay-adapted loss estimators (EXP4-DALE) achieves $\mathcal{O}(\sqrt{KT\log|\Pi|}+\sqrt{D\log|\Pi|})$, with a matching lower bound. For a function class $\mathcal{F}$ accessed through an online regression oracle, DA-FA achieves

$$\mathcal{O}\big(\sqrt{KT\log|\mathcal{F}|}+\sqrt{d_{\max} D\log|\mathcal{F}|}\big),$$

where $D=\sum_t d_t$ is the total delay and $d_{\max}$ is the largest single delay. That analysis also assumes first-in-first-out arrival and realizability (the true loss function lies in $\mathcal{F}$).

The same paper supplies a constraint we cannot escape: without stability of the oracle, which means its predictions do not move much between rounds, any algorithm suffers linear regret even with a delay of one.

Our claim follows from comparing the two settings. In EXP4-DALE the learner's own learning rate is tuned to $D$. In DA-FA the oracle is Vovk's aggregating forecaster, whose rate is pinned by the square loss, and its stability budget $\beta$ (bounded by $\log|\mathcal{F}|$) is spent at a speed the delay cannot influence. Bounding the drift across a delay window then costs a Cauchy–Schwarz step that brings in $d_{\max}$. We conjecture that a tempered forecaster removes the $\sqrt{d_{\max}}$. Its posterior is proportional to $\exp(-\eta\sum_{s\in O_t}\hat\ell_s(f))$, where $O_t$ is the set of rounds whose feedback has arrived by time $t$ and $\eta$ is tuned from the observed delay. The algorithm would trade a slightly larger regression regret, roughly $\log|\mathcal{F}|/\eta$, for drift proportional to $\eta$ times the in-flight information, so the delay cost would depend on $D$ rather than on $d_{\max}D$.

Because this posterior depends only on the set $O_t$, the oracle's state is invariant to arrival order. Out-of-order feedback is then no harder for the oracle than in-order feedback, which addresses the first-in-first-out restriction directly.

Research Program

The algorithm keeps the overall structure of DA-FA: an oracle that predicts losses, an action rule built from those predictions, and delay-adapted loss estimators. Those estimators couple the sampling distribution at the round an action was taken with the distribution at the round its feedback arrived. The same idea gives the $\max\{q_k,q_{k+d_k}\}$ denominator in Near-Optimal Regret for Adversarial MDP with Delayed Bandit Feedback and the corresponding ratio in Delay-Adapted Policy Optimization. Both papers show that dividing by only one of the two probabilities makes the estimator's variance explode when the policy drifts, so we reuse their estimator unchanged.

The new ingredient is the tempered, set-indexed oracle. Its temperature $\eta$ is set without knowing $D$ in advance, by a doubling scheme on the observed cumulative outstanding count. The scheme follows the parameter-free adaptation of A Best-of-both-worlds Algorithm for Bandits with Delayed Feedback with Robustness to Excessive Delays, which also motivates measuring delay by missing observations rather than elapsed time.

The theoretical work has three parts. The first is a stability lemma for the tempered forecaster: the KL divergence between posteriors on two observed sets $O$ and $O'$ is bounded by $\eta$ times the information in their symmetric difference. The second is a drift decomposition that charges each arrival to the rounds outstanding when it lands, in the spirit of the greedy rearrangement argument of Masoudian et al. This should avoid the per-round Cauchy–Schwarz step that introduces $d_{\max}$. The third is a regression-regret bound for tempered Bayes under realizability.

We are explicit about the target. The proof goal is $\sqrt{KT\log|\mathcal{F}|}+\sqrt{D\log|\mathcal{F}|}$ plus lower-order terms in the maximum outstanding count $\sigma_{\max}$. We are not certain the tempering trade-off balances at that rate. If it does not, the fallback contributions are two: the best achievable rate under tempering, and a lower bound for algorithms that touch $\mathcal{F}$ only through a regression oracle, which would show the remaining gap to be fundamental. Realizability is kept, since the agnostic case is a separate open problem.

Baselines

The naive reference point is a delay-unaware contextual bandit that refits its regression model whenever feedback arrives. We use the Greedy learner and RegCB-opt from A Contextual Bandit Bake-off, both run on the same model class with arrivals applied as they land. This tests whether delay adaptation matters at all on realistic data.

The strongest competitor is DA-FA itself, with Vovk's forecaster, because it is the only oracle-efficient method with guarantees under adversarial delays and general function classes. DA-FA requires in-order arrival, so on out-of-order schedules we run it behind a reorder buffer that releases feedback only in generation order; this is the natural fix a practitioner would use. All methods share the same function class, the same oracle implementation, identical delay schedules and seeds, and the same tuning grid of 20 configurations per method. On regret, there is no reported result for DA-FA or EXP4-DALE found on Lacuna, and the bake-off summary reports rankings but no numbers. We therefore run all comparisons ourselves.

We count as beating DA-FA a statistically significant reduction in the delay part of regret, meaning regret minus the zero-delay regret of the same method. This must hold on the uniform-delay sweep and on out-of-order schedules, without worse zero-delay regret.

On small function classes that can be enumerated, EXP4-DALE over the induced policies serves as an optimal-rate reference. It shows how close an oracle-efficient method can get. Two ablations isolate the ingredients. The first ablation uses tempering only, with an order-dependent oracle behind the reorder buffer. The second uses set-indexing only, with Vovk's fixed rate.

Why not just…?

Why not just add Skipper-style pruning to DA-FA? Discarding feedback whose delay exceeds a threshold, as in Nonstochastic Multiarmed Bandits with Unrestricted Delays, trades skipped rounds for a smaller effective $d_{\max}$. This fixes a few outliers. It cannot fix a schedule in which every delay equals $d$: skipping everything costs $T$, and skipping nothing leaves the $d\sqrt{T}$ term. Pruning remains a real threat on outlier-dominated schedules, so DA-FA plus skipping is a baseline, and our method combined with skipping is reported as well.

Why not just run EXP4-DALE over the policies induced by $\mathcal{F}$? This already achieves the optimal $\sqrt{D\log|\mathcal{F}|}$ delay cost, so the statistical question is settled for small classes. Its weakness is computation: it maintains weights over every policy, which rules it out for regression models of practical size. The gap we target exists only for algorithms that use $\mathcal{F}$ through a regression oracle. We say this plainly, and we use EXP4-DALE as the reference on enumerable classes.

Why not just use greedy updates and rely on context diversity? The bake-off found Greedy a close second to RegCB-opt across 516 OpenML datasets. On the other hand, Levy et al. prove that an oracle without stability suffers linear regret under adversarial delay of one, and the bake-off itself shows Greedy failing badly on hard instances. Our bursty adversarial schedules, which withhold feedback during uncertain phases, are built to expose that failure. Greedy is still a real threat on naturally ordered schedules, where it may match every method. We will report it there without spin.

Proposed Experiments

The testbeds are realizable synthetic contextual bandits with finite $\mathcal{F}$ of 50 to $10^5$ members and the OpenML classification-to-bandit conversion from the bake-off. Delay schedules are generated adversarially. Delay magnitudes are also resampled from the empirical conversion-delay distribution of the Criteo delayed-feedback logs studied in Modeling Delayed Feedback in Display Advertising, as a realistic heavy-tailed pattern. There are four schedule families: uniform delay $d$, a single outlier near $T$, bursty withholding, and random permutations that produce out-of-order arrival.

The decisive check is the uniform-delay sweep, with $d$ ranging from 1 to 2000 at fixed $T$. On a log–log plot of delay-part regret against $d$, DA-FA's bound predicts slope near 1 (from $d_{\max}D = d^2T$, whose square root is $d\sqrt{T}$). Our target rate predicts slope near 1/2 (from $\sqrt{D} = \sqrt{dT}$). A measured slope near 1/2 that tracks EXP4-DALE on enumerable classes supports the claim. A slope near 1 would mean tempering does not remove the factor.

The second check uses the permuted schedules. Our method's regret should match its in-order regret. The reorder-buffered DA-FA should degrade, because buffering inflates effective delays. The ablations then show which ingredient accounts for each effect.