betaFeedback

WorksComputer Science

Bandits via Additive Quantized Representations

Abstract

Contextual bandits require balancing nonlinear reward modeling with online efficiency. Tree ensembles and neural methods capture nonlinearities but require periodic retraining and large replay buffers. Linear models update efficiently per observation with O(1) memory, but are fundamentally restricted to linear reward structures. We propose Residual Quantization (RQ) as a representation layer to bridge this gap. An offline-trained RQ codebook maps continuous contexts into discrete centroid assignments across multiple levels, set dynamically through a shadow mechanism. This enables a spectrum of additive bandit algorithms that achieve nonlinear expressivity with strictly bounded memory. Across 13 datasets, RQ variants beat their non-RQ counterparts on 11 of 13 datasets, often by wide margins, while matching doubling-retrain XGBoost and neural baselines using up to 1000 times less memory.

Introduction

In contextual bandits, an agent repeatedly observes a context, selects an action, and receives a reward, learning to improve its choices from each interaction. Every decision is made once and in real time, so the algorithm should ideally update from each observation as it arrives.

Tree ensembles Nilsson et al. [24] and neural methods Zhou et al. [36]; Zhang et al. [35] capture nonlinear reward structure, but they periodically retrain on a replay buffer that can grow linearly with the horizon. At five million rounds on a 28-feature dataset, a doubling-retrain bandit (retraining at exponentially spaced intervals on all past data) consumes over 1 GB of replay memory (Figure 3). Linear methods (LinTS Agrawal and Goyal [4], LinUCB Abbasi-Yadkori et al. [1]) avoid memory and spiky retraining issues, but are structurally restricted to linear rewards.

Figure 3. Memory vs. quality across 13 datasets. Each point is one (method, dataset) pair. Hollow gray: linear baselines (O(1)O(1) memory, high regret). Solid gray: RQ methods (O(1)O(1) memory, low regret). Red: doubling methods (O(T)O(T) replay buffers, low regret). RQ methods match tree/neural regret at 1000× less memory. The vertical drop from hollow to solid at the same xx-position shows the regret gain from the RQ codebook.

This is not a smooth tradeoff. Practitioners face a binary choice: expressive models with unbounded memory, or bounded memory with linear rewards. The gap between the two regimes, nonlinear expressiveness at fixed memory cost, is the problem we address.

Our approach. We use Residual Quantization (RQ) Chen et al. [13] as a bandit representation layer to enable gradient-boosted reward modeling with fixed O(1)O(1) memory. We train an RQ codebook of ℓ\ell levels with bb centroids each via unsupervised kk-means on unlabeled contexts (assumed available and cheap) and freeze it before the bandit starts. RQ codebooks were originally developed for efficient retrieval; we repurpose them for gradient-boosted bandits, where we fit a bandit model at each level to predict the pseudo-target, the gap between the observed reward and the cumulative prediction of shallower levels. With ℓ\ell levels and bb centroids, this yields bℓb^\ell effective cells using only ℓb\ell b parameters, a potentially exponential compression. The online phase requires no replay buffer, no retraining, and fixed O(1)O(1) memory at every horizon.

The algorithm adapts depth online via a shadow mechanism: a shadow model trains at the next depth but does not influence arm selection, so the active model’s performance is unaffected during evaluation. A statistical test at pre-committed check times promotes the shadow if it improves prediction; otherwise the method defaults to its initial depth (§ 3).

Partitioning the context space into flat, factorial, and additive representations

Figure 1. Partitioning the context space creates nonlinear reward models from linear per-cell learners, but finer partitions fragment the data: each cell sees fewer observations. All three schemes realize bℓ=64b^{\ell}=64 cells (b=4b=4, ℓ=3\ell=3). Top/Bottom left: Flat and factorial parameterizations learn each cell from its own data alone. Bottom right: Additive RQ achieves the same 64-cell granularity with ℓb=12\ell b=12 shared parameters—each observation updates ℓ=3\ell=3 centroids, pooling information across cells. Fine partition without data starvation.

We evaluate the architecture across three variants that span the efficiency–robustness spectrum: TS-RQ (O(ℓK)O(\ell K)/round) uses per-centroid scalar counters with no features, robust and simple. SGD-LinTS-RQ (O(ℓdK)O(\ell dK)) fits diagonal linear models on the context residuals at each level. LinTS-RQ (O(ℓd2K)O(\ell d^{2}K)) fits full-covariance LinTS, the quality ceiling, competitive with XGBoost and NeuralCB at 1000× less memory when data per parameter suffices (§ 5.2). All three use shadow promotion and maintain fixed memory.

Contributions

  1. RQ as a bandit model: we repurpose residual quantization from retrieval to bandits, using the additive codebook as a nonlinear reward model that maintains fixed O(1)O(1) memory and requires no replay buffer.

  1. Analysis: under three base-learner convergence properties (verified for all variants), the asymptotic regret rate is bounded by the additive misspecification Δℓ\Delta_{\ell} (Theorem 3.1). We decompose depth-dependent approximation error exactly into saturated quantization and additive-interaction terms, and prove geometric convergence to the irreducible floor when reconstruction and additive-tail errors contract geometrically (Theorem 3.2 and Corollary 3.1). A shadow mechanism adapts depth online with false-promotion probability ≤α\le\alpha (Theorem 3.3).

  1. Scale experiments: we evaluate on 13 datasets with up to 11M rounds and 30 seeds each, showing that RQ methods improve over their within-class baselines on 11 of 13 datasets and that LinTS-RQ is competitive with XGBoost (7W/4L/2T) at 1000× less memory.

Method

Setting. We consider the standard stochastic contextual bandit setting Lattimore and Szepesvári [22]: at each round tt, the agent observes a context xt∈Rdx_t \in\mathbb{R}^d, selects an arm at∈[K]a_t \in[K], and receives a reward rt∈{0,1}r_t \in\{0,1\}. The goal is to minimize cumulative regret R(T)=∑t=1T[r∗(xt)−rt]R(T) = \sum_{t=1}^{T}[r^*(x_t)-r_t], where r∗r^* is the oracle reward.

We assume access to a pool of nrqn_{\mathrm{rq}} unlabeled contexts—separate from the bandit evaluation pool—on which we train the RQ codebook via sequential kk-means. We train the codebook once and freeze it before the bandit starts. This is a standard assumption in settings where unlabeled contexts are abundant (user profiles, item catalogs, sensor readings) but rewards require costly sequential interaction. The codebook encodes each context via greedy kk-means assignment:

ki=arg⁡min⁡k∈[b]∥x(i−1)−ck(i)∥2,x(i)=x(i−1)−cki(i),x(0)=x,(1)k_i = \arg\min_{k \in[b]} \left\lVert x^{(i-1)} - c_k^{(i)} \right\rVert^2,\qquad x^{(i)} = x^{(i-1)} - c_{k_i}^{(i)},\qquad x^{(0)} = x, \tag*{(1)}

producing a code sequence z=[k1,…,kℓ]z = [k_1,\ldots,k_\ell] that partitions the context space, and context residuals x(0),x(1),…,x(ℓ−1)x^{(0)},x^{(1)},\ldots,x^{(\ell-1)} that serve as per-level feature inputs to the bandit model below.

Gradient-boosted bandit over RQ levels. All methods share the architecture in Algorithm 1. Each RQ level operates on the context residual left by shallower levels, and boosts Friedman [17] the reward prediction: level 0 predicts the raw reward; level i>0i>0 predicts the pseudo-target—the gap between the observed reward and the cumulative prediction of levels 0,…,i−10,\ldots,i-1. A damping factor η∈(0,1]\eta\in(0,1] controls each level’s contribution.

The three instantiations differ only in the per-level model class M\mathcal{M} (Table 1).

For LinTS-RQ, pseudo-targets at deeper levels have smaller magnitude and fewer effective samples; we describe the per-level regularization and numerical scaling in § 5.1.

Shadow promotion. Algorithm 1 adapts depth ℓ\ell online via a shadow level that trains alongside the active model but does not influence arm selection (line 13). At pre-committed check times (line 16), a statistical test compares the shadow’s prediction accuracy against the active model over a trailing window. If the shadow wins, it is promoted and a new shadow spawned; otherwise the active depth is unchanged. We analyze the false-promotion guarantee in § 4.3.

MethodM\mathcal{M}Features usedCost/round
TS-RQCount/sumIndex kik_i onlyO(ℓK)O(\ell K)
SGD-LinTS-RQDiagonal linearIndex ki+[x(i−1);1]∈Rd+1k_i + [x^{(i-1)}; 1] \in\mathbb{R}^{d+1}O(ℓdK)O(\ell dK)
LinTS-RQFull-covariance LinTSIndex ki+[x(i−1);1]∈Rd+1k_i + [x^{(i-1)}; 1] \in\mathbb{R}^{d+1}O(ℓd2K)O(\ell d^2K)

Table 1. Model variants sharing Algorithm 1, differing only in per-cell learner M\mathcal{M} (full pseudocode in Appendix A).

Analysis

We analyze Algorithm 1 along three axes: asymptotic regret under base-learner convergence properties, the effect of depth on misspecification, and false-promotion control for the shadow mechanism.

Asymptotic regret

Definition 3.1 (Additive misspecification). The additive misspecification at depth ℓ\ell is

Δℓ(M)=inf⁡f1,…,fℓ∈MEx[max⁡a∣r∗(x,a)−σ(∑i=1ℓfi(ki(x),a))∣](2)\Delta_\ell(\mathcal{M}) = \inf_{f_1,\ldots,f_\ell\in\mathcal{M}} \mathbb{E}_{x}\left[\max_{a}\left|r^*(x,a) - \sigma\left(\sum_{i=1}^{\ell} f_i(k_i(x),a)\right)\right|\right] \tag*{(2)}

We require three properties of the per-cell base learner M\mathcal{M}, stated informally here (formal definitions and verification for all three variants in Appendix B):

  1. Eventual boundedness: score means do not diverge.

  2. Exploration: if an arm rarely visits a centroid, its score variance remains positive, ensuring continued exploration.

  3. Consistency: when shallower levels stabilize, each level’s predictions converge to the best predictor in its function class.

Algorithm 1 RQ Bandit with Shadow Promotion

Require: Codebook C(1),…,C(ℓmax⁡)\mathcal{C}^{(1)},\ldots,\mathcal{C}^{(\ell_{\max})}; model array M[i,c,a]\mathcal{M}[i,c,a] for each level i∈[ℓmax⁡]i\in[\ell_{\max}], centroid c∈[b]c\in[b], arm a∈[K]a\in[K]; clipping function σ(z)=clip⁡(z+0.5,0,1)\sigma(z)=\operatorname{clip}(z+0.5,0,1); damping η\eta; initial depth ℓ0\ell_0; significance level α\alpha

  1. ℓact←ℓ0\ell_{\mathrm{act}}\leftarrow\ell_0; initialize shadow at level ℓ0+1\ell_0+1

  2. for t=1,…,Tt=1,\ldots,T do

  3. Encode: observe xtx_t; compute codes (k1,…,kℓmax⁡)(k_1,\ldots,k_{\ell_{\max}}) and context residuals (xt(0),xt(1),…)(x_t^{(0)},x_t^{(1)},\ldots) via (1)

  4. Score: sa←∑i=1ℓactηi−1⋅M[i,ki,a].sample⁡(xt(i−1))s_a\leftarrow\sum_{i=1}^{\ell_{\mathrm{act}}}\eta^{i-1}\cdot\mathcal{M}[i,k_i,a].\operatorname{sample}(x_t^{(i-1)}) for each arm aa

  5. Select: at←arg⁡max⁡asaa_t\leftarrow\arg\max_a s_a; observe reward rt∈{0,1}r_t\in\{0,1\}

  6. Targets (residual cascade): y^0←0\hat{y}_0\leftarrow0

  7. for i=1,…,ℓacti=1,\ldots,\ell_{\mathrm{act}} do

  8. μ^i←M[i,ki,at].mean⁡(xt(i−1))\hat{\mu}_i\leftarrow\mathcal{M}[i,k_i,a_t].\operatorname{mean}(x_t^{(i-1)}) ▷ level-ii prediction

  9. r~i←rt−σ(y^i−1)\tilde{r}_i\leftarrow r_t-\sigma(\hat{y}_{i-1}) ▷ residual target

  10. y^i←y^i−1+ηi−1μ^i\hat{y}_i\leftarrow\hat{y}_{i-1}+\eta^{i-1}\hat{\mu}_i ▷ accumulate

  11. end for

  12. Update: M[i,ki,at].update⁡(xt(i−1),r~i)\mathcal{M}[i,k_i,a_t].\operatorname{update}(x_t^{(i-1)},\tilde{r}_i) for i=1,…,ℓacti=1,\ldots,\ell_{\mathrm{act}}

  13. Shadow: M[ℓact+1,kℓact+1,at].update⁡(xt(ℓact),r~ℓact+1)\mathcal{M}[\ell_{\mathrm{act}}+1,k_{\ell_{\mathrm{act}}+1},a_t].\operatorname{update}(x_t^{(\ell_{\mathrm{act}})},\tilde{r}_{\ell_{\mathrm{act}}+1})

  14. if t∈{T0,2T0,4T0,…}t\in\{T_0,2T_0,4T_0,\ldots\} and ℓact<ℓmax⁡\ell_{\mathrm{act}}<\ell_{\max} then

  15. if Freedman test (Theorem 3.3, Appendix § 15): shadow significantly better at level α/(nc⋅(ℓmax⁡−1))\alpha/(n_c\cdot(\ell_{\max}-1)), where ncn_c is the number of checks then

  16. ℓact+=1\ell_{\mathrm{act}}+=1; spawn new shadow

  17. end if

  18. end if

  19. end for

Theorem 3.1 (Asymptotic regret). For any base learner M\mathcal{M} satisfying Properties 1–3, let r^∞\hat{r}_{\infty} denote the converged prediction of the sequential residual-fitting procedure (Appendix § 14). Then

lim sup⁡T→∞R(T,ℓ)T≤2Ex[max⁡a∣r∗(x,a)−r^∞(x,a)∣].(3)\limsup_{T\to\infty}\frac{R(T,\ell)}{T}\le2\mathbb{E}_{x}\left[\max_a\left|r^*(x,a)-\hat{r}_{\infty}(x,a)\right|\right]. \tag*{(3)}

Since r^∞\hat{r}_{\infty} is one feasible additive predictor, the right-hand side equals 2Δℓ(M)2\Delta_{\ell}(\mathcal{M}) when the stagewise and joint optima coincide; in general it is controlled by the stagewise approximation error.

The key technical step is an inductive convergence proof across boosting levels: each level’s targets depend on all shallower levels’ estimates, creating a coupled system not covered by single-model analysis. We establish Properties 1–3 for TS-RQ, SGD-LinTS-RQ, and LinTS-RQ in Appendix § 13; the full proof appears in Appendix § 14. The verification follows the standard approach in the TS literature Agrawal and Goyal [4]; a fully rigorous treatment of the strong law under adaptive Thompson Sampling with misspecification remains open in general, as noted by Agrawal and Goyal [3]. The bound says that average regret per round depends on the stagewise approximation error, not directly on the horizon TT. When that error is zero, the method achieves sublinear regret; under misspecification, regret may grow linearly at the residual error rate. This is not the optimal O(T)O(\sqrt{T}) rate that LinTS achieves under correct specification; the tradeoff is a richer non-linear reward model at fixed memory.

Misspecification and depth

The additive parameterization resolves bℓb^\ell effective cells with only ℓb\ell b parameters per arm, and each observation updates ℓ\ell centroid models—so exploration cost grows linearly in ℓ\ell while resolution grows exponentially. Since deeper models contain shallower ones (fℓ+1=0f_{\ell+1}=0), Δℓ+1≤Δℓ\Delta_{\ell+1}\le\Delta_\ell trivially; the question is the rate of decay.

We can now separate the two mechanisms that determine this rate. For one arm and the identity-link readout, let Sℓ\mathcal{S}_\ell be the saturated space of square-integrable functions of the prefix code z1:ℓz_{1:\ell}, and let Aℓ={∑j≤ℓGj(zj)}\mathcal{A}_\ell=\{\sum_{j\le\ell}G_j(z_j)\} be the compact additive space used by RQ. Write δℓ=dist⁡(r∗,Aℓ)\delta_\ell=\operatorname{dist}(r^*,\mathcal{A}_\ell),

δℓsat=dist⁡(r⋆,Sℓ)\delta_\ell^{\mathrm{sat}}=\operatorname{dist}(r^\star,S_\ell), and ιℓ=dist⁡(PSℓr⋆,Aℓ)\iota_\ell=\operatorname{dist}(P_{S_\ell}r^\star,A_\ell). Let A∞=⋃ℓAℓA_\infty=\bigcup_\ell A_\ell, δ∞=dist⁡(r⋆,A∞)\delta_\infty=\operatorname{dist}(r^\star,A_\infty), and τℓ=dist⁡(PA∞r⋆,Aℓ)\tau_\ell=\operatorname{dist}(P_{A_\infty}r^\star,A_\ell).

Theorem 3.2 (Depth-rate decomposition). If r⋆r^\star is LL-Lipschitz and MSEℓ=E∥x−x^ℓ∥2\mathrm{MSE}_\ell=\mathbb{E}\lVert x-\hat{x}_\ell\rVert^2 is the depth-ℓ\ell RQRQ reconstruction error, then

δℓ2=(δℓsat)2+ιℓ2,(δℓsat)2≤L2MSEℓ,ιℓ≤δ∞+τℓ.(4)\delta_\ell^2=(\delta_\ell^{\mathrm{sat}})^2+\iota_\ell^2,\qquad(\delta_\ell^{\mathrm{sat}})^2\le L^2\mathrm{MSE}_\ell,\qquad\iota_\ell\le\delta_\infty+\tau_\ell. \tag*{(4)}

Consequently,

δℓ2−δ∞2≤L2MSEℓ+2δ∞τℓ+τℓ2.(5)\delta_\ell^2-\delta_\infty^2\le L^2\mathrm{MSE}_\ell+2\delta_\infty\tau_\ell+\tau_\ell^2. \tag*{(5)}

Corollary 3.1 (Conditional geometric decay). If MSEℓ≤M0ρxℓ\mathrm{MSE}_\ell\le M_0\rho_x^\ell and τℓ≤Cτρτℓ\tau_\ell\le C_\tau\rho_\tau^\ell, with ρx,ρτ∈(0,1)\rho_x,\rho_\tau\in(0,1), then

δℓ≤δ∞+LM0ρxℓ/2+Cτρτℓ=δ∞+O(ρℓ),(6)\delta_\ell\le\delta_\infty+L\sqrt{M_0}\rho_x^{\ell/2}+C_\tau\rho_\tau^\ell=\delta_\infty+O(\rho^\ell), \tag*{(6)}

where ρ=max⁡{ρx,ρτ}<1\rho=\max\{\sqrt{\rho_x},\rho_\tau\}<1.

The proof is in Appendix C. Reconstruction controls the saturated bℓb^\ell-cell benchmark, while τℓ\tau_\ell measures the additional interaction tail imposed by the compact O(ℓb)O(\ell b) additive readout. Thus geometric reconstruction decay alone is insufficient; geometric additive-tail decay is the explicit additional condition. For multiple arms, Emax⁡a∣ea∣≤(∑aEea2)1/2\mathbb{E}\max_a|e_a|\le(\sum_a\mathbb{E}e_a^2)^{1/2}, so the per-arm result transfers to Definition 3.1 up to a K\sqrt{K} factor. A Lipschitz output link similarly transfers a pre-link score bound after multiplication by its Lipschitz constant.

Figure 4 is consistent with the conditional geometric law: fitting a+bρℓa+b\rho^\ell to regret rates at depths 1–5 yields median R2=0.99R^2=0.99 across 39 (dataset, method) pairs. This finite-depth evidence does not establish the assumptions of Corollary 3.1 universally. Within-cell reward variance contracts with median per-level ratio 0.83 (Appendix E).

Figure 4. Empirical behavior consistent with the conditional geometric depth-rate law. Left: Median R2R^2 of the exponential fit a+bρℓa+b\rho^\ell improves with horizon TT. Right: Normalized regret decay (Δℓ−Δ5)/(Δ1−Δ5)(\Delta_\ell-\Delta_5)/(\Delta_1-\Delta_5) at terminal TT for each dataset; curves cluster along exponential trajectories.

Shadow false-promotion control

Theorem 3.3 (Shadow false-promotion control). The probability that the shadow is promoted despite having no lower expected squared prediction error than the active model, under the active policy’s data distribution over the tested window, is at most α\alpha over the full horizon.

We test the paired squared-error differences via Freedman (1975), which applies without requiring i.i.d. observations. Given a finite planning horizon TT (or an upper bound on the deployment length), the number of check times per depth is nc=⌈log⁡2(T/T0)⌉n_c=\lceil\log_2(T/T_0)\rceil, known before the first observation. The per-test significance level is Bonferroni-corrected over all nc⋅(ℓmax⁡−1)n_c\cdot(\ell_{\max}-1) comparisons, giving total false-promotion probability ≤α\le\alpha. Proof in Appendix D.

Experiments

Setup

Following the supervised-to-bandit protocol Riquelme et al. [28], we convert datasets by assigning reward 1 for the correct class and 0 otherwise. We evaluate on 13 tabular datasets from OpenML and UCI with NN ranging from 130K to 11M, feature dimension d∈[3,90]d \in[3, 90], and K∈[2,104]K \in[2, 104] arms (Table 6 in Appendix § 18). Following the codebook training protocol (§ 3), nrq=50Kn_{\mathrm{rq}}=50\mathrm{K} contexts are held out for codebook training; the bandit runs on the remaining pool with contexts drawn uniformly at random without replacement, each seen once, so the horizon T=N−nrqT=N-n_{\mathrm{rq}}. All methods use b=16b=16 centroids per level, initial depth ℓ0=2\ell_0=2, ℓmax⁡=8\ell_{\max}=8, ν=0.1\nu=0.1, η=0.5\eta=0.5, λ=1.0\lambda=1.0, shadow α=0.05\alpha=0.05, W=1000W=1000 (trailing window), T0=50⋅b⋅KT_0=50\cdot b\cdot K, and 30 bandit seeds per configuration. For LinTS-RQ, we scale the per-level regularization as λi=λ⋅0.25i−1\lambda_i=\lambda\cdot0.25^{i-1} and add numerical jitter 10i−1×10−610^{i-1}\times10^{-6} for Cholesky stability. We fix all hyperparameters across all datasets—no per-dataset tuning. Code is available at https://github.com/atavory/rqb. Each seed initializes all random number generators (arm selection, posterior sampling) deterministically.

DatasetNNddKKpmax⁡p_{\max}eff. rank
airlines_delay500K720.5554.8
bng_elevators1M18100.1833.7
bng_letter1M16260.0414.6
covertype581K5470.4883.9
beer_reviews500K121040.0743.2
hepmass5M2720.5005.7
higgs11M2820.5306.7
kddcup99494K41170.5683.9
miniboone130K5020.7191.1
poker_hand500K1090.5029.7
skin_seg.245K320.7931.3
susy5M1820.5423.7
year_prediction500K90840.0768.7

Table 6. Datasets used in the evaluation.

We compare six methods: three baselines (TS, SGD-LinTS, LinTS) and their RQ variants with adaptive depth (TS-RQ, SGD-LinTS-RQ, LinTS-RQ). We additionally compare against three nonlinear baselines: Doubling-XGB (XGBoost: 100 trees, max depth 6, learning rate 0.1, subsample 0.8, colsample_bytree 0.8, ϵ=0.1\epsilon=0.1 greedy, doubling retrain schedule), Doubling-NeuralCB (2-layer MLP, 128 hidden units, ReLU activations, Adam optimizer with learning rate 10−310^{-3}, batch size 256, doubling retrain schedule, LinTS head), and TabNet-LinTS Arik and Pfister [5] (unsupervised TabNet pre-training with default hyperparameters: Nsteps=3N_{\mathrm{steps}}=3, Na=Nd=8N_a=N_d=8, γ=1.3\gamma=1.3, λsparse=10−3\lambda_{\mathrm{sparse}}=10^{-3}; encoder frozen on the same 50K holdout, LinTS on learned features). All representation-based methods (RQ, TabNet, Neural-Linear) use the same 50K unlabeled holdout; the baselines (TS, LinTS, SGD-LinTS) operate without any representation layer by design—they have no mechanism to consume unlabeled data—and evaluate on the same TT-context pool, ensuring identical evaluation conditions. We fix all hyperparameters—both for RQ methods and for the nonlinear baselines (XGBoost, NeuralCB, TabNet)—across all 13 datasets with no per-dataset tuning.

We report regret rate (cumulative regret divided by TT) throughout, making results length-invariant across datasets. Win/loss calls use 95% CIs from 30 seeds; a method “wins” only when the CI excludes zero.

Results

Memory–quality tradeoff. Figure 3 places all methods on a memory–regret scatter, and Table 2 gives the details. Regret is normalized by the context-free oracle rate (1−max⁡aP(Y=a))(1-\max_a P(Y=a)), so 1.0 corresponds to majority-class guessing. Values above 1.0 occur when squared-loss exploration produces overconfident wrong predictions on skewed datasets. Doubling-XGB and Doubling-NeuralCB match LinTS-RQ regret but require O(T)O(T) replay memory (Table 2).

TS-RQLinTS-RQXGB replay
higgs (T=5MT=5\mathrm{M})12 KB620 KB1.1 GB
susy (T=5MT=5\mathrm{M})22 KB176 KB800 MB
covertype (T=530KT=530\mathrm{K})60 KB10 MB51 MB

Table 2. Model memory at shadow-promoted depths (b=16b=16). XGB replay buffer grows O(T)O(T); all RQ methods are fixed O(1)O(1).

Within-family comparisons. Figure 2 shows the regret gap of each RQ method relative to its within-class baseline, and Table 3 gives the details. LinTS-RQ wins significantly on 10 of 13 datasets, with gaps up to 96% (skin_segmentation); SGD-LinTS-RQ wins on 12 of 13; TS-RQ wins on 11 of 13 versus context-free TS. The common failure case is year_prediction (d=90d=90, K=84K=84), where all three RQ variants show small losses (+0.4% to +4.5%); we discuss this in the data sufficiency analysis below.

Figure 2. Regret gap (%) of each RQ method relative to its within-class baseline on 13 datasets (30 seeds, 95% CIs). Negative = RQ method has lower regret. Black: significant win (CI excludes zero). Gray: not significant. Red: significant loss. Left: LinTS-RQ vs LinTS wins on 11/13 datasets; the sole loss (year_prediction, d=90d=90, K=84K=84) is explained by the data sufficiency condition N/(bKd2)≪1N/(bKd^2) \ll1 (§ 5.2). Center: SGD-LinTS-RQ vs SGD-LinTS wins on 12/13. Right: TS-RQ vs TS wins on 11/13.

ComparisonW/L/TBest winWorst loss
LinTS-RQ vs LinTS10W/1L/2Tskin_seg −96%year_pred +4.5%
SGD-RQ vs SGD-LinTS12W/1Lskin_seg −97%year_pred +0.7%
TS-RQ vs TS11W/2Lkddcup99 −97%year_pred +0.4%

Table 3. Win/loss/tie (W/L/T) summary across 13 datasets (30 seeds, 95% CIs). Negative gap = RQ method has lower regret.

Nonlinear baselines. LinTS-RQ achieves regret competitive with Doubling-XGB (7W/4L/2T). The key differentiator is memory: at T=5MT=5\mathrm{M}, LinTS-RQ uses 620 KB vs. XGB’s 1.1 GB—a gap that grows linearly with TT. Against TabNet-LinTS (same 50K holdout), LinTS-RQ wins on 11 of 13 datasets (11W/2L), with losses only on hepmass (+0.5%) and year_prediction (+1.7%), showing that unsupervised kk-means produces a partition that matches or exceeds TabNet’s neural embedding, while the RQ codebook trains in seconds via kk-means versus minutes for TabNet pretraining. Per-step latency is also low: TS-RQ runs at 50–750 μ\mus/step across all datasets (Appendix § 29).

Data sufficiency. LinTS-RQ maintains a d×dd \times d covariance matrix for each of the bKbK centroid-arm pairs, so the total parameter count scales as bKd2bKd^2. The ratio N/(bKd2)N/(bKd^2) measures contexts per parameter and is computable before any bandit interaction (Figure 5). On 12 of 13 datasets this ratio exceeds 1.1 and LinTS-RQ wins; on year_prediction (d=90d=90, K=84K=84, ratio=0.04), LinTS-RQ degrades even at depth 1. TS-RQ needs only O(1)O(1) parameters per cell (a count and a reward sum), so it is unaffected: it matches the TS baseline on year_prediction (93.0% vs 93.4%). The failure is structural, not fixable by tuning: LinTS-RQ degrades with depth (96.3% at ℓ=1\ell=1, 97.4% at ℓ=4\ell=4) as each level fragments the already-sparse data further, while TS-RQ stays flat at 93.0% across all depths. On synthetic data, LinTS-RQ wins at all ratios ≥14\ge14 (Appendix § 23).

Figure 5. Data sufficiency diagnostic: regret gap of LinTS-RQ vs. LinTS as a function of N/(bKd2)N/(bKd^2). All real datasets with ratio >1>1 (outside the shaded region) are wins or ties; year_prediction (ratio = 0.04) is the sole loss. Synthetic Gaussian data (gray squares) confirm the threshold (Appendix § 23).

Effective rank. On datasets with effective rank (tr⁡(Σ)/λmax⁡(Σ))(\operatorname{tr}(\Sigma)/\lambda_{\max}(\Sigma)) below 1.5 (skin_segmentation, miniboone), SGD-LinTS performs worse than context-free TS: the diagonal covariance approximation spreads its dd parameters uniformly across coordinates, wasting d−1d-1 of them on noise when most variance lies on a single axis. TS-RQ avoids this failure mode entirely—the codebook geometry captures dominant directions through centroid placement, without estimating any covariance—and achieves 2.6% and 14.7% normalized regret on these two datasets (Appendix § 26).

Depth adaptation. Table 4 compares TS-RQ at fixed depths against shadow-promoted adaptive depth. On covertype, shadow promotion discovers depth 4 and gains 3.4 percentage points over fixed ℓ=2\ell=2. On higgs, the benefit beyond depth 2 is marginal, and the adaptive method correctly settles at depth 3 with matching regret: the marginal gain from depth 4 falls within the noise floor of the Freedman test, so the shadow is never promoted.

ℓ=1\ell=1ℓ=2\ell=2Adaptive
covertype48.3%42.2%38.8% (depth 4)
higgs45.4%43.6%43.7% (depth 3)

Table 4. TS-RQ regret rate (%) at fixed vs. adaptive depth.

Related Work

Linear and GLM bandits. LinTS Agrawal and Goyal [4] and LinUCB Li et al. [23]; Abbasi-Yadkori et al. [1]; Dani et al. [14] achieve O(dKTlog⁡T)O(d\sqrt{KT\log T}) regret under linear rewards. The misspecification bound Lattimore et al. (2020) gives Δ⋅T\Delta\cdot T linear regret under misspecification—the basis for our asymptotic analysis (Appendix § 14).

Neural and tree-based bandits. NeuralUCB Zhou et al. [36] and Neural TS Zhang et al. [35] require per-step gradient and inverse-Hessian computation; efficient approximations (EE-Net Ban and He [9], Neural-Linear Riquelme et al. [28]) reduce to LinTS on last-layer features. TETS Nilsson et al. [24] combines XGBoost with TS but must refit on accumulated history, incurring O(T2)O(T^2) cumulative cost. Our offline codebook avoids both: no gradients, no refitting. Partition-based bandits. The X-armed bandit framework Bubeck et al. [12] and the Zooming algorithm Kleinberg et al. [20]; Slivkins [30] adaptively refine partitions to balance resolution against sample complexity. Nonparametric histogram bandits Rigollet and Zeevi [27]; Perchet and Rigollet [26] achieve regret O(T(d+2)/(d+1))O(T^{(d+2)/(d+1)}) with flat partitions. Tile coding Sutton and Barto [31] uses additive partitions in RL but with uniform tilings; our data-driven RQ codebook adapts to P(X)P(X). The additive parameterization uses ℓb\ell b parameters for bℓb^\ell cells—a potentially exponential compression.

Model selection and quantization. CORRAL Agarwal et al. (2017) and Regret Balancing Pacchiano et al. [25] run multiple base learners in parallel. Our shadow promotion monitors one additional depth level sequentially without influencing arm selection (Theorem 3.3). Product quantization Jegou et al. [19], residual quantization Chen et al. [13], and VQ-VAE van den Oord et al. [33] compress representations; we show the same structure compresses exploration (bℓb^\ell cells from ℓb\ell b parameters). Self-supervised methods (SCARF Bahri et al. [6], VIME Yoon et al. [34], SubTab Ucar et al. [32], TabNet Arik and Pfister [5]) learn representations from unlabeled data; our codebook achieves this via unsupervised kk-means.

Conclusion

We repurposed RQ codebooks as a representation layer for contextual bandits, enabling gradient-boosted reward models with fixed O(1)O(1) memory. RQ variants improve on most datasets at orders-of-magnitude less memory than replay-based methods, while TS-RQ remains robust when LinTS-RQ’s covariance starves. Extensions to continuous rewards, online codebook adaptation, and alternative per-level features (PCA, neural-linear) are straightforward.

Limitations

The data sufficiency condition N/(bKd2)≫1N/(bKd^2) \gg1 is the sharpest limitation: on year_prediction (d=90d=90, K=84K=84, ratio 0.04), LinTS-RQ degrades even at depth 1; a pp-dimensional projection (p≪dp \ll d) would relax this to N/(bKp2)N/(bKp^2). The linear variants use squared loss for binary rewards (Polya-Gamma augmentation could eliminate this). Shadow promotion provides false-promotion control, though post-promotion performance depends on the new policy’s data distribution (Remark D.2). The fixed-depth asymptotic analysis (Appendix § 14) is conditional on base-learner convergence properties; the appendix makes these assumptions explicit and verifies them for our model classes. The codebook is trained via unsupervised kk-means, which minimizes reconstruction error rather than reward prediction; a reward-aware partition (e.g., CART splits) could reduce the misspecification Δℓ\Delta_{\ell} directly, at the cost of requiring labeled data for codebook construction. The codebook requires an offline holdout; in cold-start settings it may degrade. As with all bandit methods, reward-signal biases may be amplified; our method neither exacerbates nor mitigates this.

Broader Impact

This work introduces a general-purpose bandit representation and does not target a specific application domain. Standard fairness and privacy concerns for bandit algorithms apply; we do not foresee risks specific to residual quantization.

Acknowledgments and Disclosures

This work received no external funding. The authors declare no competing interests.

References

Base Learner Details

This appendix specifies the per-cell operations for each model class M\mathcal{M} in Algorithm 1. All three variants share the same outer loop; they differ only in how each cell M[i,c,a]\mathcal{M}[i,c,a] maintains its posterior and produces predictions. Each cell exposes three operations: sample⁡(x′)\operatorname{sample}(x') returns a Thompson-sampling draw (used for arm selection in the Score step); mean⁡(x′)\operatorname{mean}(x') returns the posterior mean prediction (used to build the cumulative prediction y^i\hat{y}_i in the Targets step); update⁡(x′,r~)\operatorname{update}(x',\tilde{r}) incorporates a new observation. Here x′=x(i−1)x'=x^{(i-1)} is the context residual from (1) and r~\tilde{r} is the pseudo-target from Algorithm 1, line 6. For the linear variants (SGD-LinTS-RQ, LinTS-RQ), a constant intercept feature is appended: x′←[x(i−1);1]x'\leftarrow[x^{(i-1)};1], so the effective per-centroid dimension is d+1d+1. This ensures ∥ϕi(x)∥≥1\lVert\phi_i(x)\rVert\ge1 (Assumption C.1), which is needed for the exploration guarantee even when deep-level residuals are small.

Algorithm 2 TS-RQ cell operations (count/sum)
Require: Regularization $\lambda$; exploration scale $\nu$
1: State: count $n\leftarrow0$; sum $s\leftarrow0$
2: function SAMPLE($x'$) ▷ $x'$ is ignored
3:     $\hat{\mu}\leftarrow s/(\lambda+n)$
4:     return sample from $\mathcal{N}(\hat{\mu},\nu^2/(\lambda+n))$
5: end function
6: function MEAN($x'$) ▷ $x'$ is ignored
7:     return $s/(\lambda+n)$
8: end function
9: function UPDATE($x',\tilde{r}$) ▷ $x'$ is ignored
10:    $n\leftarrow n+1$; $s\leftarrow s+\tilde{r}$
11: end function
Algorithm 3 SGD-LinTS-RQ cell operations (diagonal linear)
Require: Regularization $\lambda$; exploration scale $\nu$
1: State: diagonal precision $p\in\mathbb{R}^{d+1}\leftarrow\lambda\mathbf{1}$; sufficient statistic $f\in\mathbb{R}^{d+1}\leftarrow\mathbf{0}$ ▷ $x'\leftarrow[x';1]$ (intercept appended)
2: function SAMPLE($x'$)
3:     $\hat{\theta}\leftarrow f\oslash p$ ▷ element-wise division
4:     $\tilde{\theta}\sim\mathcal{N}(\hat{\theta},\nu^2\operatorname{diag}(p)^{-1})$
5:     return $\tilde{\theta}^{\mathsf{T}}x'$
6: end function
7: function MEAN($x'$)
8:     return $(f\oslash p)^{\mathsf{T}}x'$
9: end function
10: function UPDATE($x',\tilde{r}$)
11:     $p\leftarrow p+x'\odot x'$ ▷ element-wise
12:     $f\leftarrow f+\tilde{r}\cdot x'$
13: end function

Algorithm 4 LinTS-RQ cell operations (full-covariance LinTS)

Require: Regularization λi=λ⋅0.25i−1\lambda_i = \lambda\cdot0.25^{i-1}; exploration scale ν\nu

  1. State: inverse precision B−1∈R(d+1)×(d+1)←λi−1IB^{-1} \in\mathbb{R}^{(d+1)\times(d+1)} \leftarrow\lambda_i^{-1}I; f∈Rd+1←0f \in\mathbb{R}^{d+1} \leftarrow\mathbf{0} ▷ x′←[x′;1]x' \leftarrow[x';1] (intercept appended)

  2. function SAMPLE(x′x')

  3. θ^←B−1f\hat{\theta} \leftarrow B^{-1}f

  4. θ~∼N(θ^,ν2B−1)\tilde{\theta} \sim\mathcal{N}\left(\hat{\theta},\nu^2B^{-1}\right)

  5. return θ~Tx′\tilde{\theta}^{\mathsf{T}}x'

  6. end function

  7. function MEAN(x′x')

  8. return (B−1f)Tx′(B^{-1}f)^{\mathsf{T}}x'

  9. end function

  10. function UPDATE(x′,r~x',\tilde{r}) ▷ Sherman–Morrison on B−1B^{-1}

  11. v←B−1x′v \leftarrow B^{-1}x'

  12. B−1←B−1−vvT/(1+x′Tv)B^{-1} \leftarrow B^{-1} - vv^{\mathsf{T}}/(1+x'^{\mathsf{T}}v)

  13. f←f+r~⋅x′f \leftarrow f+\tilde{r}\cdot x'

  14. end function

Base Learner Properties

Algorithm 1 is parameterized by a per-cell base learner M\mathcal{M}. Theorem 3.1 (§3) establishes asymptotic regret under three properties of M\mathcal{M}; the full proof is in Appendix § 14. We state these properties below and establish them for each variant. We use the notation from Appendix § 14: ϕi(x)\phi_i(x) is the level-ii feature vector, μa(xt)\mu_a(x_t) the score mean (22), Var⁡(sa∣xt,Ft−1)\operatorname{Var}(s_a \mid x_t,\mathcal{F}_{t-1}) the score variance (23), Ta,c,i(t)T_{a,c,i}(t) the visit count for arm aa at centroid cc and level ii, and r~i,t\tilde{r}_{i,t} the per-level target (24).

Property 1 (Eventual boundedness). Score means are eventually bounded almost surely:

∃t0,B ∀a, t>t0 ∣μa(xt)∣≤Ba.s.(7)\exists t_0,B\ \forall a,\ t>t_0\ |\mu_a(x_t)| \le B \qquad\text{a.s.} \tag*{(7)}

Property 2 (Starvation ⇒\Rightarrow positive variance). If arm aa visits centroid cc at level ii at most MM times (Ta,c,i(t)≤MT_{a,c,i}(t) \le M for all tt), then

Var⁡(sa∣xt,Ft−1)≥σmin⁡2>0∀t with ki(xt)=c,(8)\operatorname{Var}(s_a \mid x_t,\mathcal{F}_{t-1}) \ge\sigma_{\min}^{2} > 0 \qquad\forall t\ \text{with } k_i(x_t)=c, \tag*{(8)}

where σmin⁡2\sigma_{\min}^{2} depends on MM, λ\lambda, ν\nu, C\mathcal{C} but not on tt.

Property 3 (Robust consistency). Suppose all centroids at level ii are visited infinitely often by arm aa: Ta,c,i(t)→∞T_{a,c,i}(t)\to\infty for all cc with P(ki(x)=c)>0P(k_i(x)=c)>0. Suppose the targets have vanishing perturbation: r~i,t=r~i,t∞+δt\tilde{r}_{i,t}=\tilde{r}^{\infty}_{i,t}+\delta_t with δt→0\delta_t\to0 a.s., where r~i,t∞\tilde{r}^{\infty}_{i,t} is the stationary target under converged shallower levels. Then predictions converge:

ϕi(x)Tθ^a,i,t→ϕi(x)Tθa,i∗a.s. for all x in the support,(9)\phi_i(x)^{\mathsf{T}}\hat{\theta}_{a,i,t}\to\phi_i(x)^{\mathsf{T}}\theta^{*}_{a,i} \qquad\text{a.s. for all }x\text{ in the support,} \tag*{(9)}

where θa,i∗\theta^{*}_{a,i} is the best predictor of r~i∞\tilde{r}^{\infty}_i from ϕi(x)\phi_i(x) in the function class of M\mathcal{M}.

Verification for LinTS-RQ

LinTS-RQ maintains a full-covariance precision Va,i,t=λiI+∑s≤t:as=aϕi(xs)ϕi(xs)TV_{a,i,t}=\lambda_i I+\sum_{s\le t:a_s=a}\phi_i(x_s)\phi_i(x_s)^{\mathsf{T}} and posterior mean θ^a,i,t=Va,i,t−1∑s:as=aϕi(xs)r~i,s\hat{\theta}_{a,i,t}=V_{a,i,t}^{-1}\sum_{s:a_s=a}\phi_i(x_s)\tilde{r}_{i,s}.

Property 1. For any arm aa, level ii, and centroid cc: if Ta,c,i(t)≤MT_{a,c,i}(t)\le M for all tt, the estimate receives at most MM updates with bounded targets (∣r~∣≤1|\tilde{r}|\le1), so ∥θ^a,i,c∥≤MC/λ\|\hat{\theta}_{a,i,c}\|\le MC/\lambda (since ∥V−1∥≤1/λ\|V^{-1}\|\le1/\lambda and ∥∑ϕr~∥≤MC\|\sum\phi\tilde{r}\|\le MC), giving ∣θ^a,i,cTϕi(x)∣≤MC2/λ|\hat{\theta}_{a,i,c}^{\mathsf{T}}\phi_i(x)|\le MC^2/\lambda, deterministically bounded. If Ta,c,i(t)→∞T_{a,c,i}(t)\to\infty, the strong law gives θ^a,i,c→θa,i,c∗\hat{\theta}_{a,i,c}\to\theta^{*}_{a,i,c}, which is finite. Since the number of arm/centroid combinations is finite, score means are eventually bounded.

Property 2. If Ta,c,i(t)≤MT_{a,c,i}(t) \le M for all tt, the centroid-cc block of Va,i,tV_{a,i,t} has at most MM rank-one updates, giving the time-uniform bound Va,i,t∣c⪯(λ+MC2)IV_{a,i,t}|_c \preceq(\lambda+ MC^2)I. When ki(xt)=ck_i(x_t)=c:

Var⁡(sa∣xt,Ft−1)≥ν2ϕi(xt)⊤Va,i,t−1ϕi(xt)≥ν2λ+MC2=:σmin⁡2>0.(10)\operatorname{Var}(s_a \mid x_t,\mathcal{F}_{t-1}) \ge\nu^2 \phi_i(x_t)^\top V_{a,i,t}^{-1}\phi_i(x_t) \ge\frac{\nu^2}{\lambda+MC^2} =: \sigma_{\min}^2 > 0. \tag*{(10)}

Property 3. Suppose Ta,c,i(t)→∞T_{a,c,i}(t) \to\infty for all centroids cc and targets satisfy r~i,s=r~i,s∞+δs\tilde r_{i,s}=\tilde r_{i,s}^{\infty}+\delta_s with δs→0\delta_s \to0. The ridge estimator decomposes as

θ^a,i,t=Va,i,t−1∑s:as=aϕi(xs)r~i,s∞+Va,i,t−1∑s:as=aϕi(xs)δs⏟transient bias.(11)\hat{\theta}_{a,i,t}=V_{a,i,t}^{-1}\sum_{s:a_s=a}\phi_i(x_s)\tilde r_{i,s}^{\infty}+\underbrace{V_{a,i,t}^{-1}\sum_{s:a_s=a}\phi_i(x_s)\delta_s}_{\text{transient bias}}. \tag*{(11)}

The first term converges by standard ridge consistency (stationary targets, Ta,c,i→∞T_{a,c,i}\to\infty). For the transient bias, apply Cauchy–Schwarz under ∥v∥M=v⊤Mv\|v\|_M=\sqrt{v^\top Mv} with M=Va,i,t−1M=V_{a,i,t}^{-1}:

∣ϕi(x)⊤Va,i,t−1∑s:as=aϕi(xs)δs∣≤∥ϕi(x)∥Va,i,t−1∥∑s:as=aϕi(xs)δs∥Va,i,t−1.(12)\left|\phi_i(x)^\top V_{a,i,t}^{-1}\sum_{s:a_s=a}\phi_i(x_s)\delta_s\right| \le\|\phi_i(x)\|_{V_{a,i,t}^{-1}}\left\|\sum_{s:a_s=a}\phi_i(x_s)\delta_s\right\|_{V_{a,i,t}^{-1}}. \tag*{(12)}

First factor. Write Σ^t=1Ta(t)∑s:as=aϕi(xs)ϕi(xs)⊤\hat{\Sigma}_t=\frac{1}{T_a(t)}\sum_{s:a_s=a}\phi_i(x_s)\phi_i(x_s)^\top and Σ=E[ϕi(x)ϕi(x)⊤∣a]\Sigma=\mathbb{E}[\phi_i(x)\phi_i(x)^\top\mid a]. Since Va,i,t=Ta(t)(λTa(t)I+Σ^t)V_{a,i,t}=T_a(t)\left(\frac{\lambda}{T_a(t)}I+\hat{\Sigma}_t\right):

∥ϕi(x)∥Va,i,t−12=ϕi(x)⊤Va,i,t−1ϕi(x)=1Ta(t)ϕi(x)⊤(λTa(t)I+Σ^t)−1ϕi(x)→a.s.1Ta(t)ϕi(x)⊤Σ−1ϕi(x)≤cTa(t)eventually,(13)\begin{aligned} \|\phi_i(x)\|_{V_{a,i,t}^{-1}}^2 &=\phi_i(x)^\top V_{a,i,t}^{-1}\phi_i(x)\\ &=\frac{1}{T_a(t)}\phi_i(x)^\top\left(\frac{\lambda}{T_a(t)}I+\hat{\Sigma}_t\right)^{-1}\phi_i(x)\\ &\xrightarrow{\mathrm{a.s.}}\frac{1}{T_a(t)}\phi_i(x)^\top\Sigma^{-1}\phi_i(x)\\ &\le\frac{c}{T_a(t)}\qquad\text{eventually}, \tag*{(13)} \end{aligned}

where the third line uses Σ^t→a.s.Σ\hat{\Sigma}_t\xrightarrow{\mathrm{a.s.}}\Sigma (the strong law), and c=2C2/min⁡cλmin⁡(Σc)<∞c=2C^2/\min_c\lambda_{\min}(\Sigma_c)<\infty. Each centroid block Σc\Sigma_c is positive definite under a mild nondegeneracy condition: the conditional distribution of ϕi(x)\phi_i(x) given ki(x)=ck_i(x)=c has full-rank covariance. In practice, the intercept feature ensures at least one nonzero direction, and the RQ residuals within each centroid span the remaining coordinates when Ta,cT_{a,c} is large enough. If Σc\Sigma_c is rank-deficient, the regularized estimator still converges in prediction space: since ϕi(x)\phi_i(x) for centroid cc lies in the column space of Σc\Sigma_c, the prediction ϕi(x)⊤θ^\phi_i(x)^\top\hat{\theta} converges regardless. Also, ∥ϕi(x)∥≤C\|\phi_i(x)\|\le C by Assumption C.1.

Second factor. Write Φ∈Rbp×Ta(t)\Phi\in\mathbb{R}^{bp\times T_a(t)} for the matrix whose columns are ϕi(xs)\phi_i(x_s) and Δ∈RTa(t)\Delta\in\mathbb{R}^{T_a(t)} for the vector of drifts δs\delta_s. By the push-through identity (λI+AB)−1A=A(λI+BA)−1(\lambda I+AB)^{-1}A=A(\lambda I+BA)^{-1}:

∥∑s:as=aϕi(xs)δs∥Va,i,t−12=Δ⊤Φ⊤(λI+ΦΦ⊤)−1ΦΔ=Δ⊤(λI+Φ⊤Φ)−1Φ⊤Φ⏟⪯IΔ≤∥Δ∥2=∑s:as=aδs2.(14)\begin{aligned} \left\|\sum_{s:a_s=a}\phi_i(x_s)\delta_s\right\|_{V_{a,i,t}^{-1}}^2 &=\Delta^\top\Phi^\top(\lambda I+\Phi\Phi^\top)^{-1}\Phi\Delta\\ &=\Delta^\top\underbrace{(\lambda I+\Phi^\top\Phi)^{-1}\Phi^\top\Phi}_{\preceq I}\Delta\\ &\le\|\Delta\|^2=\sum_{s:a_s=a}\delta_s^2. \tag*{(14)} \end{aligned}

Combining.

∣ϕi(x)⊤Va,i,t−1∑s:as=aϕi(xs)δs∣2≤cTa(t)∑s:as=aδs2.(15)\left|\phi_i(x)^\top V_{a,i,t}^{-1}\sum_{s:a_s=a}\phi_i(x_s)\delta_s\right|^2 \le\frac{c}{T_a(t)}\sum_{s:a_s=a}\delta_s^2. \tag*{(15)}

Since δs→0\delta_s\to0 and Ta(t)→∞T_a(t)\to\infty, the Cesàro mean 1Ta(t)∑s:as=aδs2→0\frac{1}{T_a(t)}\sum_{s:a_s=a}\delta_s^2\to0, so the transient bias prediction vanishes.

Verification for SGD-LinTS-RQ

SGD-LinTS-RQ maintains a diagonal precision p∈Rdp \in\mathbb{R}^{d} with pk=λ+∑s:as=axs,k2p_k = \lambda+ \sum_{s:a_s=a} x_{s,k}^{2} and sufficient statistic fk=∑s:as=ar~sxs,k′f_k = \sum_{s:a_s=a} \tilde{r}_s x'_{s,k}, yielding the coordinate-wise estimator θ^k=fk/pk\hat{\theta}_k = f_k/p_k. This is dd independent scalar regressions, one per feature coordinate.

Property 1. Same structure as LinTS-RQ: bounded updates when starved, SLLN when explored, applied coordinate-wise.

Property 2. If Ta,c,i(t)≤MT_{a,c,i}(t) \le M, then pa,i,k,t≤λ+MC2p_{a,i,k,t} \le\lambda+ MC^2 for every coordinate kk, giving

Var⁡(sa∣xt,Ft−1)=∑j=1ℓν2∑k=1d+1(ϕj,k)2pa,j,k,t≥ν2∥ϕi(xt)∥2λ+MC2≥ν2λ+MC2>0(16)\operatorname{Var}(s_a \mid x_t, \mathcal{F}_{t-1}) = \sum_{j=1}^{\ell} \nu^2 \sum_{k=1}^{d+1} \frac{(\phi_{j,k})^2}{p_{a,j,k,t}} \ge\frac{\nu^2 \lVert\phi_i(x_t)\rVert^2}{\lambda+ MC^2} \ge\frac{\nu^2}{\lambda+ MC^2} > 0 \tag*{(16)}

by Assumption C.1, where the sum is over d+1d+1 coordinates (including the intercept that ensures ∥ϕi(x)∥≥1\lVert\phi_i(x)\rVert\ge1 even when context residuals are small at deep levels).

Property 3. By the strong law applied to each coordinate independently:

θ^a,i,k,t→θa,i,k∗:=E[r~i∞⋅xk′]E[xk2],(17)\hat{\theta}_{a,i,k,t} \to\theta^*_{a,i,k} := \frac{\mathbb{E}[\tilde{r}^{\infty}_{i} \cdot x'_k]}{\mathbb{E}[x_k^2]}, \tag*{(17)}

the coordinate-wise optimal coefficient. The transient bias at coordinate kk satisfies

∣fkbias/pk∣≤C1Ta(t)∑s:as=a∣δs∣→0(18)\lvert f_k^{\mathrm{bias}}/p_k\rvert\le C \frac{1}{T_a(t)} \sum_{s:a_s=a} \lvert\delta_s\rvert\to0 \tag*{(18)}

by the Cesàro argument. Note that θa,i∗\theta^*_{a,i} is the coordinate-wise optimal, which may differ from the full-linear optimal when features are correlated; consequently Δℓ(M)\Delta_{\ell}(\mathcal{M}) for SGD-LinTS-RQ is evaluated over the coordinate-wise linear function class.

Verification for TS-RQ

TS-RQ is the scalar special case: the per-cell model ignores features and maintains only a count nn and sum ss (Algorithm 2). The estimate μ^=s/(λ+n)\hat{\mu} = s/(\lambda+n) is a scalar ridge regression with constant feature 11. All three properties follow from the LinTS-RQ checks with d=1d=1 and ϕi(x)=1\phi_i(x)=1.

Remark B.1 (Adaptive sampling). The checks above invoke the strong law of large numbers for per-centroid sample averages. Under Thompson Sampling, the data arriving at each centroid is not i.i.d.: arm selection depends on the posterior, which depends on all past observations. However, each centroid’s samples form a conditionally unbiased sequence: conditioned on at=aa_t = a and ki(xt)=ck_i(x_t) = c, the target r~i,t\tilde{r}_{i,t} has the same conditional expectation regardless of how ata_t was selected. The key requirement is that every centroid is visited infinitely often (Lemma C.1(a)), which ensures the denominators grow. Given infinite visits, the Cesàro convergence argument applies to the prediction error regardless of the adaptive selection mechanism, since the per-step bias δs\delta_s vanishes and the averaging is over a growing number of bounded terms. This is the standard approach in the TS literature Agrawal and Goyal [4, 3]; a fully formal treatment under adaptive sampling remains open for misspecified TS in general.

Fixed-Depth Regret Analysis

This appendix develops the full fixed-depth analysis for Algorithm 1, including the asymptotic regret theorem and the depth-rate decomposition of Theorem 3.2.

Assumption C.1. All per-level feature vectors are bounded: $1 \le \lVert\phi_i(x)\rVert \le Cforallfor alli,x.

The lower bound ∥ϕi(x)∥≥1\lVert\phi_i(x)\rVert\ge1 is ensured by appending a constant intercept feature to each ϕi(x)\phi_i(x).

Definition 3.1 (Additive misspecification, restated from §3). The additive misspecification Δℓ(M)\Delta_{\ell}(\mathcal{M}) is defined in (2). Since deeper models contain shallower ones (fℓ+1≡0f_{\ell+1} \equiv0), Δℓ+1≤Δℓ\Delta_{\ell+1} \le\Delta_{\ell}.

Theorem 3.1 (Asymptotic regret, restated from §3). For any base learner M\mathcal{M} satisfying Properties 1–3 (Appendix B), the asymptotic regret rate satisfies (3), where r^∞\hat{r}_{\infty} is the converged prediction of the sequential residual-fitting limit (Lemma C.1(b)). Since r^∞\hat{r}_{\infty} is one feasible additive predictor, the right-hand side is ≥2Δℓ(M)\ge2\Delta_{\ell}(\mathcal{M}), with equality when the stagewise and joint optima coincide.

Lemma C.1 (Exploration and convergence). For any base learner M\mathcal{M} satisfying Properties 1–3, for each arm aa and level i∈{1,…,ℓ}i \in\{1,\ldots,\ell\}:

(a) Every arm visits every centroid at level ii infinitely often: Ta,c(T)→∞T_{a,c}(T) \to\infty a.s. for all centroids cc with P(ki(x)=c)>0P(k_i(x)=c)>0.

(b) The per-level predictions converge: ϕi(x)⊤θ^a,i,t→ϕi(x)⊤θa,i∗\phi_i(x)^\top\hat{\theta}_{a,i,t} \to\phi_i(x)^\top\theta^*_{a,i} for all xx in the support.

The proof proceeds by induction on the level ii. Each level’s targets depend on all shallower levels’ estimates, creating a coupled non-stationary system. Properties 1–3 (Appendix § 13) abstract this coupling for three distinct base learners. The per-level posterior can be viewed as a block-diagonal approximation of the joint posterior analyzed in Appendix § 17.

Notation. Each feature vector ϕj(x)\phi_j(x) is supported on a single centroid block at level jj (placing the context residual x(j−1)x^{(j-1)} at centroid kj(x)k_j(x) and zeros elsewhere). The TS draw, score, and selection for arm aa at context xtx_t are

∀a,θ~a,j∼M[j,kj,a].sample⁡(xt(j−1)),(19)\forall a,\quad\tilde{\theta}_{a,j} \sim\mathcal{M}[j,k_j,a].\operatorname{sample}(x_t^{(j-1)}), \tag*{(19)}
∀a,sa=∑j=1ℓθ~a,j⊤ϕj(xt),(20)\forall a,\quad s_a = \sum_{j=1}^{\ell}\tilde{\theta}_{a,j}^{\top}\phi_j(x_t), \tag*{(20)}
at=arg⁡max⁡asa=arg⁡max⁡aσ(sa)(21)a_t = \arg\max_a s_a = \arg\max_a \sigma(s_a) \tag*{(21)}

independently across levels; the last equality holds since σ\sigma is monotone. The score mean and conditional variance are

μa(xt)=E[sa∣xt,Ft−1]=∑j=1ℓθ^a,j,t⊤ϕj(xt),(22)\mu_a(x_t) = \mathbb{E}[s_a \mid x_t,\mathcal{F}_{t-1}] = \sum_{j=1}^{\ell}\hat{\theta}_{a,j,t}^{\top}\phi_j(x_t), \tag*{(22)}
Var⁡(sa∣xt,Ft−1)=∑j=1ℓν2ϕj(xt)⊤Va,j,t−1ϕj(xt).(23)\operatorname{Var}(s_a \mid x_t,\mathcal{F}_{t-1}) = \sum_{j=1}^{\ell}\nu^2\phi_j(x_t)^\top V_{a,j,t}^{-1}\phi_j(x_t). \tag*{(23)}

The reward prediction is y^a=σ(μa)∈[0,1]\hat{y}_a=\sigma(\mu_a)\in[0,1], and the per-level target (Algorithm 1, line 6) is

r~j,t=rt−σ(∑i=1j−1θ^at,i,t⊤ϕi(xt))∈[−1,1].(24)\tilde{r}_{j,t}=r_t-\sigma\left(\sum_{i=1}^{j-1}\hat{\theta}_{a_t,i,t}^{\top}\phi_i(x_t)\right)\in[-1,1]. \tag*{(24)}

For clarity, the damping factor η\eta from Algorithm 1 is set to 1 in the analysis; absorbing ηj−1\eta^{j-1} into ϕj\phi_j does not affect the proof structure, though it scales the effective variance at level jj by η2(j−1)\eta^{2(j-1)}, which slows exploration at deeper levels when η<1\eta<1. The asymptotic result is unaffected (the lower bound σmin⁡2\sigma_{\min}^2 remains positive), but the pre-asymptotic exploration cost at deep levels grows as η−2(j−1)\eta^{-2(j-1)}.

Lemma C.2 (Score means are eventually bounded). All arm score means are eventually bounded:

∃t0,B ∀a, t>t0∣μa(xt)∣≤Ba.s.(25)\exists t_0,B\ \forall a,\ t>t_0\quad|\mu_a(x_t)|\le B \qquad\text{a.s.} \tag*{(25)}

Proof. Immediate from Property 1 (Appendix § 13).

Lemma C.3 (Exploration and convergence, restated). For any base learner M\mathcal{M} satisfying Properties 1–3 (Appendix § 13), for each arm aa and level i∈{1,…,ℓ}i\in\{1,\ldots,\ell\}:

(a) Every arm visits every centroid at level ii infinitely often: Ta,c(T)→∞T_{a,c}(T)\to\infty a.s. for all centroids cc with P(ki(x)=c)>0P(k_i(x)=c)>0.

(b) The per-level predictions converge: ϕi(x)⊤θ^a,i,t→ϕi(x)⊤θa,i∗\phi_i(x)^\top\hat{\theta}_{a,i,t}\to\phi_i(x)^\top\theta^*_{a,i} for all xx in the support, where θa,i∗\theta^*_{a,i} is the best linear predictor for the clipped residual at level ii given converged shallower levels.

Proof of Lemma C.1. The proof is by induction on the level ii and applies to any base learner M\mathcal{M} satisfying Properties 1–3. Induction base (i=1i = 1).

(a) Per-centroid exploration. Assume that for some a,ca,c,

Ta,c(T)≤M<∞,(26)T_{a,c}(T) \le M < \infty, \tag*{(26)}
P(k1(x)=c)=:pc>0.(27)P(k_1(x) = c) =: p_c > 0. \tag*{(27)}

By Property 2, the score variance satisfies

Var⁡(sa∣xt,Ft−1)≥σmin⁡2>0∀t with k1(xt)=c.(28)\operatorname{Var}(s_a \mid x_t,\mathcal{F}_{t-1}) \ge\sigma_{\min}^2 > 0 \qquad\forall t \text{ with } k_1(x_t) = c. \tag*{(28)}

By Lemma C.2, there exist (a.s.) finite BB and t0t_0 such that every arm’s score mean satisfies ∣μa′(xt)∣≤B\lvert\mu_{a'}(x_t)\rvert\le B for all t≥t0t \ge t_0. For t≥t0t \ge t_0 with k1(xt)=ck_1(x_t) = c, the probability that arm aa is selected satisfies

P(at=a∣xt,Ft−1)≥P(sa>B)∏a′≠aP(sa′≤B)≥[1−Φ(2B/σmin⁡)]⋅(12)K−1=:pmin⁡>0,(29)\begin{aligned} P(a_t = a \mid x_t,\mathcal{F}_{t-1}) \ge P(s_a > B)\prod_{a'\ne a}P(s_{a'} \le B) \\ &\ge\left[1-\Phi(2B/\sigma_{\min})\right]\cdot\left(\frac{1}{2}\right)^{K-1}=:p_{\min}>0, \tag*{(29)} \end{aligned}

where the first factor uses anti-concentration of the score distribution: all three variants use Gaussian sampling (Algorithms 2–4), so sas_a is Gaussian with variance ≥σmin⁡2\ge\sigma_{\min}^2 and mean ≥−B\ge-B, giving the stated normal tail bound. Each factor in the product is ≥12\ge\frac{1}{2} because μa′≤B\mu_{a'} \le B. Since k1(xt)=ck_1(x_t)=c occurs infinitely often (i.i.d. contexts with pc>0p_c>0) and each occurrence satisfies P(at=a∣xt,Ft−1)≥pmin⁡P(a_t=a\mid x_t,\mathcal{F}_{t-1})\ge p_{\min} (a uniform conditional lower bound, not independence), the Lévy extension of the Borel–Cantelli lemma gives Ta,c→∞T_{a,c}\to\infty, contradicting (27).

(b) Prediction convergence. The targets r~1,t=rt−σ(0)\widetilde r_{1,t}=r_t-\sigma(0) are stationary (no dependence on shallower levels), so δt=0\delta_t=0. By (a), Ta,c(T)→∞T_{a,c}(T)\to\infty for every centroid cc. Property 3 (with δt=0\delta_t=0) gives

ϕ1(x)⊤θ^a,1,t→ϕ1(x)⊤θa,1∗.\phi_1(x)^\top\hat\theta_{a,1,t}\to\phi_1(x)^\top\theta^*_{a,1}.

Induction step (i≥2i\ge2). Assume (a) and (b) hold for levels 1,…,i−11,\ldots,i-1.

(a) Per-centroid exploration. Similar to the induction base: if Ta,c(T)≤MT_{a,c}(T)\le M for some centroid cc at level ii, Property 2 gives Var⁡(sa)≥σmin⁡2>0\operatorname{Var}(s_a)\ge\sigma_{\min}^2>0 when ki(xt)=ck_i(x_t)=c. By Lemma C.2, score means are eventually bounded, so Gaussian anti-concentration and Borel–Cantelli yield the contradiction Ta,c→∞T_{a,c}\to\infty.

(b) Prediction convergence. The clipped residual target for level ii is

r~i,t=rt−σ(∑j=1i−1θ^a,j,t⊤ϕj(xt)).(30)\widetilde r_{i,t}=r_t-\sigma\left(\sum_{j=1}^{i-1}\hat\theta_{a,j,t}^{\top}\phi_j(x_t)\right). \tag*{(30)}

Since σ\sigma is 1-Lipschitz and levels 1,…,i−11,\ldots,i-1 have converged in prediction space by the induction hypothesis (b), the target drift satisfies

∣r~i,t−r~i,t∞∣≤∑j=1i−1∣(θ^a,j,t−θa,j∗)⊤ϕj(xt)∣=:δt→0,(31)\left|\widetilde r_{i,t}-\widetilde r^\infty_{i,t}\right| \le\sum_{j=1}^{i-1}\left|\left(\hat\theta_{a,j,t}-\theta^*_{a,j}\right)^\top\phi_j(x_t)\right| =:\delta_t\to0, \tag*{(31)}

where each summand vanishes by the induction hypothesis. By (a), Ta,c,i(t)→∞T_{a,c,i}(t)\to\infty for all centroids. Property 3 (with δt→0\delta_t\to0) gives ϕi(x)⊤θ^a,i,t→ϕi(x)⊤θa,i∗\phi_i(x)^\top\hat\theta_{a,i,t}\to\phi_i(x)^\top\theta^*_{a,i}.

Proof of Theorem 3.1 (Asymptotic regret for Algorithm 1). By Lemma C.1(b), for each arm aa, the converged prediction is

r^∞(x,a)=σ(∑i=1ℓθa,i∗⊤ϕi(x)).(32)\hat r_\infty(x,a)=\sigma\left(\sum_{i=1}^{\ell}\theta^*_{a,i}{}^\top\phi_i(x)\right). \tag*{(32)}

Define

a^(x)=arg⁡max⁡a r^∞(x,a)(33)\hat a(x)=\underset{a}{\arg\max}\ \hat r_\infty(x,a) \tag*{(33)}

as the arm selected under the converged model.

Post-convergence regret. Once predictions have converged, TS selects a^(xt)\hat{a}(x_t) at every round (the posterior variance vanishes; model-level ties r^∞(x,a)=r^∞(x,a′)\hat{r}_{\infty}(x,a)=\hat{r}_{\infty}(x,a') occur on a measure-zero set of contexts under continuous features, and contribute at most 2Δℓ2\Delta_{\ell} regret per round regardless). The per-round regret is

r∗(xt,at∗)−r∗(xt,a^(xt))=[r∗(xt,at∗)−r^∞(xt,at∗)]−[r∗(xt,a^)−r^∞(xt,a^)]+[r^∞(xt,at∗)−r^∞(xt,a^)],(34)r^*(x_t,a_t^*)-r^*(x_t,\hat{a}(x_t))=\left[r^*(x_t,a_t^*)-\hat{r}_{\infty}(x_t,a_t^*)\right] -\left[r^*(x_t,\hat{a})-\hat{r}_{\infty}(x_t,\hat{a})\right] +\left[\hat{r}_{\infty}(x_t,a_t^*)-\hat{r}_{\infty}(x_t,\hat{a})\right], \tag*{(34)}

where the last term is ≤0\leq0 because a^\hat{a} maximizes r^∞\hat{r}_{\infty}. Therefore

r∗(xt,at∗)−r∗(xt,a^(xt))≤2max⁡a∣r∗(xt,a)−r^∞(xt,a)∣.(35)r^*(x_t,a_t^*)-r^*(x_t,\hat{a}(x_t))\leq2\max_a\left|r^*(x_t,a)-\hat{r}_{\infty}(x_t,a)\right|. \tag*{(35)}

Taking expectation over xtx_t:

E[r∗(xt,at∗)−r∗(xt,a^(xt))]≤2Ex[max⁡a∣r∗(x,a)−r^∞(x,a)∣]=:2Δˉℓ(M),(36)\mathbb{E}\left[r^*(x_t,a_t^*)-r^*(x_t,\hat{a}(x_t))\right]\leq2\mathbb{E}_x\left[\max_a\left|r^*(x,a)-\hat{r}_{\infty}(x,a)\right|\right]=:2\bar{\Delta}_{\ell}(\mathcal{M}), \tag*{(36)}

where Δˉℓ\bar{\Delta}_{\ell} is the approximation error of the sequential residual-fitting limit r^∞(x,a)=σ(∑iθa,i∗ϕi(x))\hat{r}_{\infty}(x,a)=\sigma\left(\sum_i\theta^*_{a,i}\phi_i(x)\right). Since r^∞\hat{r}_{\infty} is one feasible additive predictor, Δˉℓ≥Δℓ\bar{\Delta}_{\ell}\geq\Delta_{\ell} (Definition 3.1), with equality when the stagewise and joint optima coincide.

Exploration regret. Before convergence, TS may select suboptimal arms. By Lemma C.1(b), θ^a,i,t→θa,i∗\hat{\theta}_{a,i,t}\to\theta^*_{a,i} for all arms and levels (in prediction space), so the posterior means converge. Since the posterior variances vanish (ν2Va,i,t−1→0\nu^2V_{a,i,t}^{-1}\to0 as Ta(t)→∞T_a(t)\to\infty by Lemma C.1(a)), the TS draws converge:

θ~a,i,t→θa,i∗(37)\tilde{\theta}_{a,i,t}\to\theta^*_{a,i} \tag*{(37)}

a.s., and arm selection converges to a^(xt)\hat{a}(x_t). For contexts where the optimal arm gap r^∞(x,a^(x))−max⁡a≠a^(x)r^∞(x,a)>0\hat{r}_{\infty}(x,\hat{a}(x))-\max_{a\ne\hat{a}(x)}\hat{r}_{\infty}(x,a)>0, the TS draws eventually resolve to the correct arm; exact ties have zero probability under continuous TS draws. For any ϵ>0\epsilon>0, there exists T0T_0 such that for t>T0t>T_0, at=a^(xt)a_t=\hat{a}(x_t) except on a set of measure <ϵ<\epsilon. The exploration regret (rounds where at≠a^(xt)a_t\ne\hat{a}(x_t)) therefore satisfies

∑t=1T1[at≠a^(xt)]=o(T).(38)\sum_{t=1}^{T}\mathbf{1}[a_t\ne\hat{a}(x_t)]=o(T). \tag*{(38)}

Since per-round regret is bounded by 1, the cumulative exploration regret is o(T)o(T).

Total.

R(T,ℓ)T=o(T)T+2Δˉℓ(M),(39)\frac{R(T,\ell)}{T}=\frac{o(T)}{T}+2\bar{\Delta}_{\ell}(\mathcal{M}), \tag*{(39)}

giving lim sup⁡T→∞R(T,ℓ)/T≤2Δˉℓ(M)=2Ex[max⁡a∣r∗−r^∞∣]\limsup_{T\to\infty}R(T,\ell)/T\leq2\bar{\Delta}_{\ell}(\mathcal{M})=2\mathbb{E}_x[\max_a|r^*-\hat{r}_{\infty}|].

Proof of the depth-rate result

Fix one arm and let H=L2(P)\mathcal{H}=L^2(P). Because each RQ symbol takes finitely many values, AℓA_{\ell} is a closed finite-dimensional subspace of the closed saturated space SℓS_{\ell}. Denote their orthogonal projections by PAℓP_{A_{\ell}} and PSℓP_{S_{\ell}}.

Proof of Theorem 3.2. Since Aℓ⊂SℓA_{\ell}\subset S_{\ell}, PAℓ=PAℓPSℓP_{A_{\ell}}=P_{A_{\ell}}P_{S_{\ell}}. We may therefore write

r∗−PAℓr∗=(r∗−PSℓr∗)+(PSℓr∗−PAℓr∗).(40)r^*-P_{A_{\ell}}r^*=(r^*-P_{S_{\ell}}r^*)+(P_{S_{\ell}}r^*-P_{A_{\ell}}r^*). \tag*{(40)}

The first summand lies in Sℓ⊥S_{\ell}^{\perp} and the second in SℓS_{\ell}. Pythagoras gives the first identity in (4). For the reconstruction bound, conditional expectation is the L2L^2 projection onto SℓS_{\ell}, so

(δℓsat)2=E[Var⁡(r∗(x)∣z1:ℓ)].(41)(\delta_{\ell}^{\mathrm{sat}})^2=\mathbb{E}[\operatorname{Var}(r^*(x)\mid z_{1:\ell})]. \tag*{(41)}

Within a prefix cell cc, let x,x′x, x' be independent draws from P(⋅∣c)P(\cdot\mid c). Lipschitz continuity yields

Var⁡(r∗(x)∣c)=12E[(r∗(x)−r∗(x′))2∣c](42)\operatorname{Var}(r^*(x) \mid c)=\frac{1}{2}\mathbb{E}\left[(r^*(x)-r^*(x'))^2\mid c\right] \tag*{(42)}
≤L22E[∥x−x′∥2∣c]=L2Var⁡(x∣c).(43)\leq\frac{L^2}{2}\mathbb{E}\left[\lVert x-x'\rVert^2\mid c\right]=L^2\operatorname{Var}(x\mid c). \tag*{(43)}

The conditional mean minimizes squared reconstruction error, whereas x^ℓ\hat{x}_{\ell} is merely constant on each prefix cell. Hence Var⁡(x∣c)≤E[∥x−x^ℓ∥2∣c]\operatorname{Var}(x\mid c)\leq\mathbb{E}[\lVert x-\hat{x}_{\ell}\rVert^2\mid c]. Averaging over cells proves the second inequality in (4).

Finally, put a∗=PA∞r∗a^*=P_{A_{\infty}}r^* and r⊥=r∗−a∗r_{\perp}=r^*-a^*. Then ∥r⊥∥=δ∞\lVert r_{\perp}\rVert=\delta_{\infty}. For any aℓ∈Aℓa_{\ell}\in A_{\ell}, projection contraction gives

dist⁡(PSℓr∗,Aℓ)≤∥PSℓr∗−aℓ∥(44)\operatorname{dist}(P_{S_{\ell}}r^*,A_{\ell})\leq\lVert P_{S_{\ell}}r^*-a_{\ell}\rVert \tag*{(44)}
≤∥PSℓ(a∗−aℓ)∥+∥PSℓr⊥∥(45)\leq\lVert P_{S_{\ell}}(a^*-a_{\ell})\rVert+\lVert P_{S_{\ell}}r_{\perp}\rVert \tag*{(45)}
≤∥a∗−aℓ∥+δ∞.(46)\leq\lVert a^*-a_{\ell}\rVert+\delta_{\infty}. \tag*{(46)}

Taking the infimum over aℓa_{\ell} proves the interaction-tail bound. Combining it with the first two claims gives (5).

Proof of Corollary 3.1. Theorem 3.2 and u2+v2≤u+v\sqrt{u^2+v^2}\leq u+v for u,v≥0u,v\geq0 imply

δℓ≤LMSE⁡ℓ+δ∞+τℓ.(47)\delta_{\ell}\leq L\sqrt{\operatorname{MSE}_{\ell}}+\delta_{\infty}+\tau_{\ell}. \tag*{(47)}

Substitution of the two geometric assumptions gives the stated bound with ρ=max⁡{ρx,ρτ}\rho=\max\{\sqrt{\rho_x},\rho_{\tau}\}.

Promotion Proofs

Theorem 3.3 (Shadow false-promotion control, restated). The probability that the shadow is promoted despite having no lower expected squared prediction error than the active model, under the active policy’s data distribution over the tested window, is ≤α\leq\alpha over the full horizon.

Shadow promotion differs from CORRAL Agarwal et al. (2017) in a structurally important way: CORRAL runs MM learners simultaneously and pays O~(M)\widetilde{O}(\sqrt{M}) regret overhead from model selection; our shadow trains passively and incurs zero regret overhead during evaluation. The regret during each phase is bounded by Theorem 3.1 at the active depth, with no model-selection penalty. We test the paired squared-error differences via Freedman’s inequality Freedman [16] (no i.i.d. assumption needed).

Remark D.1 (Freedman vs. tt-test). The formal guarantee (Theorem 3.3) requires the Freedman-based test, which makes no i.i.d. assumption on the paired differences DtD_t. In our experiments, we also evaluate a paired tt-test variant as a practical heuristic; because the DtD_t within each trailing window are not i.i.d. (the policy evolves), the tt-test pp-values are not formally calibrated, though empirically both tests yield similar promotion decisions.

Remark D.2 (Post-promotion covariate shift). The formal guarantee is false-promotion control (Type I error ≤α\leq\alpha). Post-promotion, the policy changes and arm frequencies shift. For all three variants this shift is structurally bounded: centroid assignments depend only on xtx_t and the frozen codebook, and TS ensures all cells are visited infinitely often (Lemma C.1(a)).

Proof of Theorem 3.3 (Shadow false-promotion control). Martingale formulation. Since the shadow updates only its own statistics (line 13) and does not appear in the scoring (line 4) or arm selection (line 5), the action sequence is identical to Algorithm 1 at fixed depth. To decide whether the shadow model genuinely outperforms the active model, we construct a statistical test. At each round tt, define the paired squared-error difference between the active and shadow predictions. Let y^act(xt,at)\hat{y}_{\mathrm{act}}(x_t,a_t) and y^shd(xt,at)\hat{y}_{\mathrm{shd}}(x_t,a_t) denote the posterior mean predictions of the active and shadow models, respectively. Define:

Dt=(rt−y^act(xt,at))2−(rt−y^shd(xt,at))2.(48)D_t=\left(r_t-\hat{y}_{\mathrm{act}}(x_t,a_t)\right)^2-\left(r_t-\hat{y}_{\mathrm{shd}}(x_t,a_t)\right)^2. \tag*{(48)}

When Dt>0D_t>0, the shadow’s prediction was closer to the observed reward at round tt.

Since the shadow does not influence ata_t, the conditional expectation E[Dt∣Ft−1]\mathbb{E}[D_t\mid\mathcal{F}_{t-1}] is a deterministic function of the models’ states. Define the centered differences:

Zt=Dt−E[Dt∣Ft−1].(49)Z_t=D_t-\mathbb{E}[D_t\mid\mathcal{F}_{t-1}]. \tag*{(49)}

By construction, E[Zt∣Ft−1]=0\mathbb{E}[Z_t \mid\mathcal{F}_{t-1}] = 0, so (Zt)t≥1(Z_t)_{t \ge1} is a martingale difference sequence adapted to (Ft)(\mathcal{F}_t). Rewards lie in {0,1}\{0,1\}. Since σ\sigma maps to [0,1][0,1], the posterior mean predictions satisfy y^act,y^shd∈[0,1]\hat{y}_{\mathrm{act}}, \hat{y}_{\mathrm{shd}} \in[0,1] for all three variants. Each squared error is therefore in [0,1][0,1], so ∣Dt∣≤1=:RD|D_t| \le1 =: R_D and:

∣Zt∣≤∣Dt∣+∣E[Dt∣Ft−1]∣≤2RDa.s.(50)|Z_t| \le|D_t| + |\mathbb{E}[D_t \mid\mathcal{F}_{t-1}]| \le2R_D \quad\text{a.s.} \tag*{(50)}

Freedman-based promotion test. Fix a check time τ\tau and a trailing window of WW observations. The cumulative difference decomposes into signal and noise:

DˉW=∑t=τ−W+1τDt=∑t=τ−W+1τE[Dt∣Ft−1]⏟signal: μW+∑t=τ−W+1τZt⏟noise: MW.(51)\bar{D}_W = \sum_{t=\tau-W+1}^{\tau} D_t = \underbrace{\sum_{t=\tau-W+1}^{\tau} \mathbb{E}[D_t \mid\mathcal{F}_{t-1}]}_{\text{signal: }\mu_W} + \underbrace{\sum_{t=\tau-W+1}^{\tau} Z_t}_{\text{noise: }M_W}. \tag*{(51)}

The signal μW\mu_W is positive when the shadow is genuinely better (in expected squared error) over the window. We need to distinguish μW>0\mu_W > 0 from noise fluctuations.

The noise MW=∑tZtM_W = \sum_t Z_t is a sum of martingale differences with ∣Zt∣≤R:=2RD|Z_t| \le R := 2R_D. Its predictable quadratic variation is:

VW=∑t=τ−W+1τE[Zt2∣Ft−1]≤R2W.(52)V_W = \sum_{t=\tau-W+1}^{\tau} \mathbb{E}[Z_t^2 \mid\mathcal{F}_{t-1}] \le R^2W. \tag*{(52)}

By Freedman (1975):

P(MW≥a and VW≤v)≤exp⁡(−a2/2v+Ra/3).(53)P(M_W \ge a \text{ and } V_W \le v) \le\exp\left(\frac{-a^2/2}{v+Ra/3}\right). \tag*{(53)}

To derive the threshold a∗a^*, we set v=R2Wv = R^2W (the worst-case variance bound) and require the right-hand side of (53) to equal the per-test significance level αk\alpha_k. This gives the equation:

exp⁡(−a2/2R2W+Ra/3)=αk.(54)\exp\left(\frac{-a^2/2}{R^2W+Ra/3}\right)=\alpha_k. \tag*{(54)}

Taking logarithms and writing L=log⁡(1/αk)L = \log(1/\alpha_k):

a22=L(R2W+Ra3)⟹a2−2RL3a−2R2WL=0.(55)\frac{a^2}{2}=L\left(R^2W+\frac{Ra}{3}\right)\quad\Longrightarrow\quad a^2-\frac{2RL}{3}a-2R^2WL=0. \tag*{(55)}

Applying the quadratic formula (a>0a>0):

a∗(αk,W)=RL3+R2L29+2R2WL=R3log⁡1αk+R19(log⁡1αk)2+2Wlog⁡1αk.(56)\begin{aligned} a^*(\alpha_k,W)&=\frac{RL}{3}+\sqrt{\frac{R^2L^2}{9}+2R^2WL}\\ &=\frac{R}{3}\log\frac{1}{\alpha_k}+R\sqrt{\frac{1}{9}\left(\log\frac{1}{\alpha_k}\right)^2+2W\log\frac{1}{\alpha_k}}. \tag*{(56)} \end{aligned}

We promote if DˉW>a∗(αk,W)\bar{D}_W > a^*(\alpha_k,W).

Under the null hypothesis (shadow is not better, μW≤0\mu_W \le0), the signal is non-positive, so from (51):

DˉW=μW+MW≤MW.(57)\bar{D}_W=\mu_W+M_W\le M_W. \tag*{(57)}

Therefore, a promotion requires MW>a∗M_W>a^*, which by Freedman’s inequality (53) occurs with probability at most αk\alpha_k:

P(promote∣μW≤0)≤P(MW>a∗)≤αk.(58)P(\text{promote}\mid\mu_W\le0)\le P(M_W>a^*)\le\alpha_k. \tag*{(58)}

Here, a∗a^* is the critical value that makes the noise term unlikely to exceed the threshold, ensuring false promotions are rare.

Bonferroni correction. The doubling schedule checks at times {T0,2T0,4T0,…}\{T_0,2T_0,4T_0,\ldots\}, producing at most ncn_c check intervals:

nc=⌊log⁡2(T/T0)⌋+1.(59)n_c=\left\lfloor\log_2(T/T_0)\right\rfloor+1. \tag*{(59)}

At each check time, the algorithm only evaluates the immediate shadow depth k+1k+1 extending from the current active depth kk. Therefore, it conducts exactly one hypothesis test per scheduled check interval. An additional test is only conducted if a promotion successfully advances the active frontier, prompting the algorithm to immediately evaluate the next depth. Note that this immediate re-test uses the trailing window WW, which contains data collected under the previous depth’s policy; the conservatism of the Freedman-based test (Theorem 3.3) provides robustness against this distribution shift. Because at most ℓmax⁡−1\ell_{\max}-1 promotions can ever occur (from depth 1 to depth ℓmax⁡\ell_{\max}), the total number of hypothesis tests over the entire horizon is bounded by:

N≤nc+(ℓmax⁡−1).(60)N \le n_c + (\ell_{\max} - 1). \tag*{(60)}

Setting αk=α/N\alpha_k = \alpha/N for each individual test and applying the union bound:

P(any false promotion)≤∑k=1Nαk=N⋅αN=α.(61)P(\text{any false promotion}) \le\sum_{k=1}^{N} \alpha_k = N \cdot\frac{\alpha}{N} = \alpha. \tag*{(61)}

By tracking only the frontier tests, the multiplicity penalty is additive O(nc+ℓmax⁡)O(n_c + \ell_{\max}) rather than multiplicative O(nc⋅ℓmax⁡)O(n_c \cdot\ell_{\max}). The doubling schedule keeps nc=O(log⁡T)n_c = O(\log T).

Combining. By (61), with probability at least 1−α1-\alpha, every promotion is a true improvement under the active policy’s data distribution:

μW>0,(62)\mu_W > 0, \tag*{(62)}

meaning the shadow has strictly lower expected squared error on the (xt,at)(x_t, a_t) pairs generated by πact\pi_{\mathrm{act}}. This is a pre-promotion guarantee; post-promotion, the policy changes and the data distribution shifts (see Remark D.2).

Regardless of whether any individual promotion is true or false, the shadow never influences arm selection, so the regret during each phase (at fixed depth ℓk\ell_k) is bounded by Theorem 3.1. If promotions occur at times T1,T2,…T_1, T_2, \ldots with depths ℓ1,ℓ2,…\ell_1, \ell_2, \ldots, the total regret is the sum across phases:

R(T)≤∑kR(Tk−Tk−1,ℓk),(63)R(T) \le\sum_k R(T_k - T_{k-1}, \ell_k), \tag*{(63)}

where each term is bounded by Theorem 3.1 at the corresponding depth. Since Δℓk+1≤Δℓk\Delta_{\ell_{k+1}} \le\Delta_{\ell_k} (deeper models have lower bias), promotions can only reduce the bias term in subsequent phases.

Depth Ablation and Exponential Decay

This appendix examines empirical behavior relevant to the conditional geometric rate in Corollary 3.1 (§ 4) and the depth results in § 5.2.

Exponential Decay of Misspecification

Conditional depth-rate prediction. Corollary 3.1 gives geometric convergence to an irreducible floor when both RQ reconstruction error and the additive interaction tail contract geometrically.

To test whether the observed behavior is consistent with this prediction, we compute the regret rate R(T)/TR(T)/T at the terminal round for each (dataset, method, depth) combination using depths ℓ=1,…,5\ell= 1,\ldots,5. Since R(T)/T→O(Δℓ)R(T)/T \to O(\Delta_\ell) as T→∞T \to\infty (Theorem 3.1), the converged regret rate provides a proxy for Δℓ\Delta_\ell.

Figure 6. Empirical behavior consistent with the conditional geometric depth-rate law, one column per method. Top: Median R2R^2 of the exponential fit a+bρℓa + b\rho^\ell as a function of horizon TT; fit quality improves with more data. Bottom: Normalized regret decay (Δℓ−Δ5)/(Δ1−Δ5)(\Delta_\ell- \Delta_5)/(\Delta_1 - \Delta_5) at terminal TT for each dataset.

Exponential fit. We fit R(T)/T≈a+bρℓR(T)/T \approx a + b\rho^\ell to each (dataset, method) pair via nonlinear least squares, yielding 39 fits (13 datasets ×\times 3 RQ methods, 30 seeds each). The table below reports the median fit quality.

MetricMedianMean>0.90> 0.90
R2R^2 of 3-parameter fit0.990.9424/28 (86%)

Table 1 (PDF p. 23).

Leave-one-out cross-validation. For each (dataset, method), we hold out one depth, fit on the remaining four, and predict the held-out regret rate. This produces 135 predictions (some fits fail on 3 points). The median prediction error is 0.3%; 73% of predictions fall within 1% of the observed value (Figure 7).

LOO-CV: predicted vs actualLOO-CV: error by held-out depth

Figure 7. Leave-one-out cross-validation of the exponential decay model Δℓ≈a+bρℓ\Delta_\ell\approx a + b\rho^\ell. Left: Predicted vs. actual regret rate R(T)/TR(T)/T for all (dataset, method, held-out depth) triples; the gray band shows ±5%\pm5\%. Right: Prediction error by held-out depth; depths 2–5 are predicted within ∼1%\sim1\%, while depth 1 (furthest from Δ∞\Delta_\infty) shows larger extrapolation error.

Exponential decay rate. Figure 9 fits a+bρℓa + b\rho^\ell to the normalized within-cell variance WCV(ℓ\ell)/WCV(0) for each dataset. The median fitted decay rate is ρ=0.86\rho= 0.86 (range 0.17–0.93), with median R2=0.83R^2 = 0.83.

Figure 9. Normalized within-cell reward variance WCV⁡(ℓ)/WCV⁡(0)\operatorname{WCV}(\ell)/\operatorname{WCV}(0) vs. RQ depth ℓ\ell for all 13 datasets (log scale). Every dataset decays monotonically; the near-linear trajectories are consistent with geometric decay with median ρ=0.83\rho= 0.83.

Figure 8. Regret rate R(T)/TR(T)/T vs. depth ℓ\ell for each RQ method, with fitted exponential decay curves a+bρℓa+b\rho^\ell overlaid. Each line is a dataset; error bars show ±1\pm1 std over 30 seeds. Median R2R^2 is reported per method.

Within-Cell Reward Variance

Figure 9 measures within-cell reward heterogeneity directly. For each dataset we train an RQ codebook (b=16b=16, depth 5) and compute the weighted average within-cell reward variance WCV⁡(ℓ)=∑c(nc/N)Var⁡(r∣cellℓ=c)\operatorname{WCV}(\ell) = \sum_c (n_c/N)\operatorname{Var}(r \mid\mathrm{cell}_{\ell}=c), where cells at depth ℓ\ell are defined by the first ℓ\ell centroid assignments. On a log scale, all 13 datasets decay roughly linearly, consistent with geometric shrinkage over the measured depths, with median per-level ratio ρ=0.83\rho= 0.83 (range 0.24–0.93).

Fixed-Depth vs. Shadow Promotion

We compare TS-RQ at fixed depths ℓ=1\ell=1 and ℓ=2\ell=2 against the adaptive shadow-promoted variant (TS-RQ) on two representative datasets.

ℓ=1\ell=1ℓ=2\ell=2Adaptive
covertype48.3%42.2%38.8% (depth 4)
higgs45.4%43.6%43.7% (depth 3)

Table 1 (PDF p. 24).

On covertype, shadow promotion discovers depth 4 and gains 3.4 percentage points over fixed ℓ=2\ell=2, confirming that adaptive depth selection adds value beyond simply committing to ℓ=2\ell=2. On higgs, the benefit of depth beyond 2 is marginal, and the adaptive method correctly settles at depth 3 with regret matching ℓ=2\ell=2.

Analytical Variant: Finite-Time Bound

This appendix analyzes an analytical variant of Algorithm 1 that maintains the full D×DD \times D joint posterior covariance rather than the block-diagonal approximation used in practice. The variant admits an explicit finite-time regret bound (Proposition F.1 below), complementing the asymptotic guarantee for Algorithm 1 (Theorem 3.1). The finite-time bound is a standard application of LinTS analysis Agrawal and Goyal [4] to our feature map; the contribution is not the proof technique but the architectural insight that the RQ additive structure ensures D=bℓpD = b\ell p while achieving the approximation power of bℓb^\ell cells—an exponential compression not available to flat partitions.

Analytical variant details. The analytical variant (Proposition F.1) concatenates all per-level features into a block vector ΦM(x)∈RD\Phi_{\mathcal{M}}(x) \in\mathbb{R}^{D} with D=bℓp(M)D = b\ell p(\mathcal{M}):

ΦM(x)=(ϕ1(x)ϕ2(x)⋮ϕℓ(x))∈RD,Σa=(Σ11⋯Σ1ℓ⋮⋱⋮Σℓ1⋯Σℓℓ)∈RD×D,(64)\Phi_{\mathcal{M}}(x) = \begin{pmatrix} \phi_1(x) \\ \phi_2(x) \\ \vdots\\ \phi_\ell(x) \end{pmatrix} \in\mathbb{R}^{D}, \qquad \Sigma_a = \begin{pmatrix} \Sigma_{11} & \cdots& \Sigma_{1\ell} \\ \vdots& \ddots& \vdots\\ \Sigma_{\ell1} & \cdots& \Sigma_{\ell\ell} \end{pmatrix} \in\mathbb{R}^{D \times D}, \tag*{(64)}

where each ϕi(x)∈Rbp\phi_i(x) \in\mathbb{R}^{bp} encodes the level-ii assignment (one-hot for TS-RQ, context-at-centroid for LinTS-RQ) and Σij∈Rbp×bp\Sigma_{ij} \in\mathbb{R}^{bp \times bp} captures cross-level correlations. A single parameter vector θa∈RD\theta_a \in\mathbb{R}^{D} recovers the unclipped additive model: r(x,a)=θa⊤ΦM(x)r(x,a) = \theta_a^\top\Phi_{\mathcal{M}}(x).

The analytical variant runs LinTS on ΦM(x)\Phi_{\mathcal{M}}(x) with the full D×DD \times D posterior covariance Σa\Sigma_a. Define the variant misspecification Δ(Φ)=Ex[max⁡a∣r∗(x,a)−θa∗⊤Φ(x)∣]\Delta(\Phi) = \mathbb{E}_x[\max_a |r^*(x,a) - \theta_a^{*\top}\Phi(x)|], where θa∗\theta_a^* is the best linear predictor for arm aa on Φ\Phi. Since θa⊤Φ(x)=∑ifi(ki(x),a)\theta_a^\top\Phi(x) = \sum_i f_i(k_i(x),a) recovers any unclipped additive model, Δ(Φ)≤Δℓuncl\Delta(\Phi) \le\Delta_\ell^{\mathrm{uncl}} where Δℓuncl\Delta_\ell^{\mathrm{uncl}} is the error of the stagewise limit without clipping. In practice, clipping (σ)(\sigma) can only reduce approximation error for bounded rewards, so Δℓ(M)≤Δℓuncl\Delta_\ell(\mathcal{M}) \le\Delta_\ell^{\mathrm{uncl}}, giving Δ(Φ)\Delta(\Phi) and Δℓ(M)\Delta_\ell(\mathcal{M}) the same asymptotic scaling in depth.

Complexity comparison. Table 5 summarizes the exploration and memory costs of the analytical variant versus Algorithm 1.

M\mathcal{M}p(M)p(\mathcal{M})ExplorationJoint memoryActual memory
TS11O(bℓKTlog⁡(T/δ))O(b\ell\sqrt{KT\log(T/\delta)})O(b2ℓ2K)O(b^2\ell^2K)O(bℓK)O(b\ell K)
LinTSddO(bℓdKTlog⁡(T/δ))O(b\ell d\sqrt{KT\log(T/\delta)})O(b2ℓ2d2K)O(b^2\ell^2d^2K)O(bℓd2K)O(b\ell d^2K)
SGD-LinTSddO(bℓdKTlog⁡(T/δ))O(b\ell d\sqrt{KT\log(T/\delta)})O(b2ℓ2d2K)O(b^2\ell^2d^2K)O(bℓdK)O(b\ell dK)

Table 5. Exploration and memory scaling by base learner. “Joint” columns refer to the analytical variant; “Actual” is Algorithm 1.

The analytical variant runs KK independent LinTS instances Agrawal and Goyal [4], one per arm, on the DD-dimensional feature vector ΦM(x)∈RD\Phi_{\mathcal{M}}(x) \in\mathbb{R}^{D} with D=bℓp(M)D = b\ell p(\mathcal{M}) (64). Each arm aa maintains a ridge precision matrix

Va,t=λI+∑s≤t:as=aΦ(xs)Φ(xs)⊤∈RD×D.(65)V_{a,t} = \lambda I + \sum_{\substack{s \le t: \\ a_s = a}} \Phi(x_s)\Phi(x_s)^\top\in\mathbb{R}^{D \times D}. \tag*{(65)}

Let r∗(x,a)=E[rt∣xt=x,at=a]r^*(x,a) = \mathbb{E}[r_t \mid x_t=x, a_t=a] denote the true expected reward, and let θa∗=arg⁡min⁡θEx[(r∗(x,a)−θ⊤Φ(x))2]\theta_a^* = \arg\min_\theta\mathbb{E}_x[(r^*(x,a) - \theta^\top\Phi(x))^2] be the best linear predictor for arm aa. Define the misspecification function ϵ(x,a)=r∗(x,a)−θa∗⊤Φ(x)\epsilon(x,a) = r^*(x,a) - \theta_a^{*\top}\Phi(x) and the observation noise ηt=rt−r∗(xt,at)\eta_t = r_t - r^*(x_t,a_t). Note that Δ(Φ)=Ex[max⁡a∣ϵ(x,a)∣]\Delta(\Phi) = \mathbb{E}_x[\max_a |\epsilon(x,a)|]. The observed reward decomposes as

rt=θat∗⊤Φ(xt)+ϵ(xt,at)+ηt.(66)r_t = \theta_{a_t}^{*\top}\Phi(x_t) + \epsilon(x_t,a_t) + \eta_t. \tag*{(66)}

At time tt, the ridge posterior mean estimates θa∗\theta_a^* by

θ^a,t=Va,t−1∑s:as=aΦ(xs)rs=Va,t−1∑s:as=aΦ(xs)(θa∗TΦ(xs)+ηs)+Va,t−1∑s:as=aΦ(xs)ϵ(xs,as).(67)\begin{aligned} \hat{\theta}_{a,t}=V_{a,t}^{-1}\sum_{s:a_s=a}\Phi(x_s)r_s \\ &=V_{a,t}^{-1}\sum_{s:a_s=a}\Phi(x_s)(\theta_a^{*\mathsf{T}}\Phi(x_s)+\eta_s)+V_{a,t}^{-1}\sum_{s:a_s=a}\Phi(x_s)\epsilon(x_s,a_s). \tag*{(67)} \end{aligned}

where the first term is the solution under perfect specification, and the second is the bias due to misspecification.

Lemma F.1 (Bias regret). For i.i.d. contexts, Ex[max⁡a∣ϵ(x,a)∣]=Δ(Φ)\mathbb{E}_x[\max_a|\epsilon(x,a)|]=\Delta(\Phi).

Proof. Immediate from the definitions of ϵ\epsilon and Δ(Φ)\Delta(\Phi).

Lemma F.2 (Exploration regret under realizability). For the analytical variant under realizability (Δ(Φ)=0\Delta(\Phi)=0, i.e. ϵ≡0\epsilon\equiv0), with bounded features ∥Φ(x)∥≤C\|\Phi(x)\|\le C, rewards in [0,1][0,1], and DD-dimensional parameter vectors, the cumulative regret satisfies, with probability ≥1−δ\ge1-\delta,

R(T,ℓ)=O(DKTlog⁡(T/δ)).(68)R(T,\ell)=O\left(D\sqrt{KT\log(T/\delta)}\right). \tag*{(68)}

Proof. Under realizability, r∗(x,a)=θa∗TΦ(x)r^*(x,a)=\theta_a^{*\mathsf{T}}\Phi(x) for all (x,a)(x,a), so the reward noise ηt=rt−θat∗TΦ(xt)\eta_t=r_t-\theta_{a_t}^{*\mathsf{T}}\Phi(x_t) is zero-mean conditional on (xt,at)(x_t,a_t). This is exactly the setting of Agrawal and Goyal [4], Theorem 2 (stated for Gaussian noise; the extension to sub-Gaussian noise, which covers our bounded binary rewards, is standard Lattimore and Szepesvári [22]), giving per-arm regret O(DTalog⁡(T/δ))O(D\sqrt{T_a\log(T/\delta)}). Summing over arms (∑aTa=T\sum_a T_a=T):

∑a=1KO(DTalog⁡(T/δ))=O(Dlog⁡(T/δ))∑a=1KTa≤O(Dlog⁡(T/δ))K∑a=1KTa\begin{aligned} \sum_{a=1}^{K}O\left(D\sqrt{T_a}\log(T/\delta)\right) =O\left(D\sqrt{\log(T/\delta)}\right)\sum_{a=1}^{K}\sqrt{T_a} \\ &\le O\left(D\sqrt{\log(T/\delta)}\right)\sqrt{K\sum_{a=1}^{K}T_a} \end{aligned}
≤∑aTa=TO(DKTlog⁡(T/δ)).\mathop{\le}_{\sum_a T_a=T} O\left(D\sqrt{KT\log(T/\delta)}\right).

:::

Remark F.1 (Variant regret (heuristic bound)). For the analytical variant with bounded features (∥Φ(x)∥≤C\|\Phi(x)\|\le C) and rewards in [0,1][0,1], under the heuristic decomposition below, with probability ≥1−δ\ge1-\delta,

R(T,ℓ)T≤O(Δ(Φ))+O(DKlog⁡(T/δ)T)→T→∞O(Δ(Φ)).(69)\frac{R(T,\ell)}{T}\le O(\Delta(\Phi))+O\left(\frac{D\sqrt{K\log(T/\delta)}}{\sqrt{T}}\right)\xrightarrow{T\to\infty}O(\Delta(\Phi)). \tag*{(69)}

Argument for Remark F.1. Let at∗=arg⁡max⁡ar∗(xt,a)a_t^*=\arg\max_a r^*(x_t,a). The per-round regret decomposes as

r∗(xt,at∗)−r∗(xt,at)=[θat∗∗TΦ(xt)−θat∗TΦ(xt)]+[ϵ(xt,at∗)−ϵ(xt,at)].(70)r^*(x_t,a_t^*)-r^*(x_t,a_t)=\left[\theta_{a_t^*}^{*\mathsf{T}}\Phi(x_t)-\theta_{a_t}^{*\mathsf{T}}\Phi(x_t)\right]+\left[\epsilon(x_t,a_t^*)-\epsilon(x_t,a_t)\right]. \tag*{(70)}

The misspecification bracket satisfies ∣ϵ(xt,at∗)−ϵ(xt,at)∣≤2max⁡a∣ϵ(xt,a)∣|\epsilon(x_t,a_t^*)-\epsilon(x_t,a_t)|\le2\max_a|\epsilon(x_t,a)|. Since contexts are i.i.d., Hoeffding’s inequality gives ∑t=1Tmax⁡a∣ϵ(xt,a)∣≤T⋅Δ(Φ)+O(Tlog⁡(1/δ))\sum_{t=1}^{T}\max_a|\epsilon(x_t,a)|\le T\cdot\Delta(\Phi)+O(\sqrt{T\log(1/\delta)}) with probability ≥1−δ\ge1-\delta; the second term is absorbed into the exploration term below.

For the linear suboptimality, we apply Lemma F.2. Strictly, Lemma F.2 is stated under realizability (ϵ≡0\epsilon\equiv0); in the misspecified case, the systematic bias ϵ\epsilon shifts the posterior mean, which can affect the algorithm’s exploration behavior. For UCB-style algorithms, this additive decomposition is standard Lattimore and Szepesvári [22]; for Thompson Sampling, the shifted posterior may alter the sampling distribution in non-additive ways. Following Lattimore et al. [21], we treat the two terms as independent, yielding the bound below as an upper bound on the well-specified component of regret. The asymptotic guarantee (Theorem 3.1) is established independently via the property-based proof and does not rely on this decomposition. With D=bℓp(M)D = b\ell p(\mathcal{M}):

R(T,ℓ)≤O(bℓp(M)KTlog⁡(T/δ))+O(Δ(Φ)⋅T).(71)R(T,\ell) \le O\left(b\ell p(\mathcal{M})\sqrt{KT\log(T/\delta)}\right) + O\left(\Delta(\Phi)\cdot T\right). \tag*{(71)}

Variance deflation. The block-diagonal approximation used by Algorithm 1 inverts each level’s precision block independently. The following lemma shows that this yields a posterior that is tighter than the exact marginal of the joint posterior above. For UCB-style algorithms, tighter confidence sets imply lower regret; for Thompson Sampling, the relationship between posterior width and regret is not monotone, so the finite-time bound above applies to the analytical variant only. The asymptotic guarantee for Algorithm 1 (Theorem 3.1) is established independently via the property-based proof in Appendix C.

Lemma F.3 (Marginal variance deflation). Let Σ≻0\Sigma\succ0 be the joint posterior covariance over all ℓ\ell levels (64), partitioned into bp×bpbp \times bp blocks. For every level i∈{1,…,ℓ}i \in\{1,\ldots,\ell\}, ([Σ−1]ii)−1⪯[Σ]ii([\Sigma^{-1}]_{ii})^{-1} \preceq[\Sigma]_{ii}.

Proof. Partition Σ−1≻0\Sigma^{-1} \succ0 into level ii versus the remaining ℓ−1\ell- 1 levels:

Σ−1=(ABBTC)\Sigma^{-1} = \begin{pmatrix} A & B \\ B^{\mathsf{T}} & C \end{pmatrix}

where A=[Σ−1]ii∈Rbp×bpA = [\Sigma^{-1}]_{ii} \in\mathbb{R}^{bp\times bp} and C∈R(ℓ−1)bp×(ℓ−1)bpC \in\mathbb{R}^{(\ell-1)bp\times(\ell-1)bp}. Since Σ−1≻0\Sigma^{-1} \succ0, both AA and CC are positive definite. By the block inversion formula,

[Σ]ii=(A−BC−1BT)−1.(72)[\Sigma]_{ii} = \left(A - BC^{-1}B^{\mathsf{T}}\right)^{-1}. \tag*{(72)}

Since C≻0C \succ0, the Schur complement satisfies BC−1BT⪰0BC^{-1}B^{\mathsf{T}} \succeq0, giving A−BC−1BT⪯AA - BC^{-1}B^{\mathsf{T}} \preceq A. Both sides are positive definite (the left-hand side by Σ−1≻0\Sigma^{-1} \succ0), so inverting reverses the Loewner order (Horn and Johnson, [18]):

([Σ−1]ii)−1=A−1⪯(A−BC−1BT)−1=[Σ]ii.([\Sigma^{-1}]_{ii})^{-1} = A^{-1} \preceq\left(A - BC^{-1}B^{\mathsf{T}}\right)^{-1} = [\Sigma]_{ii}.

Dataset Details

Codebook training. We train the RQ codebook via scikit-learn’s MiniBatchKMeans (k=16k=16, init='k-means++', n_init=3, max_iter=100, batch_size=1024, random_state=42) applied sequentially: we train level ii on the context residuals x(i−1)x^{(i-1)} from the nrq=50Kn_{\mathrm{rq}}=50\mathrm{K} holdout contexts. All features are standardized to zero mean and unit variance before codebook training.

Preprocessing. We label-encode categorical features. We apply no feature selection, imputation, or augmentation.

Table 6: Datasets used in the evaluation. NN = total samples, dd = feature dimension, KK = number of arms (classes), pmax⁡p_{\max} = majority class frequency, eff. rank = effective rank of the feature covariance. All datasets are publicly available from OpenML and UCI Dua and Graff [15]; codebook trained on nrq=50Kn_{\mathrm{rq}}=50\mathrm{K} held-out samples. Individual sources: HIGGS and SUSY Baldi et al. [7], HEPMASS Baldi et al. [8], covertype Blackard and Dean [11], MiniBooNE Roe et al. [29], year_prediction Bertin-Mahieux et al. [10].

Full Per-Dataset Results

Tables 7–9 show per-dataset results for all three method families.

DatasetddKKBase (%)RQ (%)Gap (%)TT
airlines7241.339.8−3.6 ± 0.1450K
beer_rev.1210485.683.0−2.9 ± 0.5450K
bng_elev.181075.175.0−0.2 ± 0.0950K
bng_letter162652.446.6−11.0 ± 0.2950K
covertype54728.123.9−15.0 ± 0.2530K
hepmass27218.618.4−1.1 ± 0.1830K
higgs28235.532.6−8.0 ± 0.16.7M
kddcup9941170.20.2−16.0 ± 17.8440K
miniboone50211.09.9−10.1 ± 0.780K
poker10949.446.9−5.0 ± 0.3445K
skin_seg.328.30.3−96.1 ± 0.2195K
susy18221.620.3−6.1 ± 0.13.5M
year_pred.908493.697.8+4.5 ± 0.1445K
11W / 1L / 1T

Table 7. LinTS-RQ vs LinTS: per-dataset regret rates (%) and gap with 95% CIs.

Per-Dataset Regret Curves

DatasetddKKBase (%)RQ (%)Gap (%)Tˉ\bar{T}
airlines7245.642.8−6.2 ± 2.5450K
beer_rev.1210492.789.8−3.2 ± 0.3450K
bng_elev.181081.777.9−4.6 ± 0.2950K
bng_letter162696.071.4−25.6 ± 0.5950K
covertype54751.338.8−24.4 ± 0.7530K
hepmass27250.021.7−56.6 ± 0.2830K
higgs28248.043.7−9.0 ± 1.66.7M
kddcup99411742.71.1−97.4 ± 0.1440K
miniboone50228.314.7−48.1 ± 0.880K
poker10949.850.4+1.1 ± 0.6445K
skin_seg.3220.82.6−87.4 ± 2.4195K
susy18246.624.8−46.8 ± 1.13.5M
year_pred.908492.893.2+0.4 ± 0.2445K
11W / 2L / 0T

Table 8. TS-RQ vs TS: per-dataset regret rates (%) and gap with 95% CIs.

DatasetddKKBase (%)RQ (%)Gap (%)Tˉ\bar{T}
airlines7246.242.4−8.2 ± 1.1450K
beer_rev.1210491.789.2−2.8 ± 0.2450K
bng_elev.181080.077.6−3.0 ± 0.6950K
bng_letter162681.664.3−21.2 ± 0.7950K
covertype54748.932.0−34.6 ± 1.4530K
hepmass27220.519.1−7.1 ± 0.2830K
higgs28249.036.2−26.2 ± 2.36.7M
kddcup99411720.71.2−94.3 ± 2.4440K
miniboone50232.914.1−57.3 ± 6.180K
poker10953.649.4−7.8 ± 0.8445K
skin_seg.3242.02.5−94.2 ± 1.1195K
susy18229.223.0−21.2 ± 0.63.5M
year_pred.908493.394.0+0.7 ± 0.1445K
12W / 1L / 0T

Table 9. SGD-RQ vs SGD-LinTS: per-dataset regret rates (%) and gap with 95% CIs.

Per-Dataset Regret Curves

Figure 10. Regret rate vs. TT for all 9 methods on each dataset. Shaded bands show ±1\pm1 std across seeds.

Regret Scaling Analysis

To empirically validate consistency with the regret bound (69), we fit two models to the TS-RQ cumulative regret curves across all datasets.

Power-law fit. We fit R(T)=a⋅TαR(T) = a \cdot T^{\alpha} via log-log regression. If regret were dominated by the O(Tlog⁡T)O(\sqrt{T \log T}) exploration term, we would expect α≈0.5\alpha\approx0.5. If dominated by the O(ΔℓT)O(\Delta_{\ell}T) bias term, we expect α≈1.0\alpha\approx1.0. Figure 11 (left) shows that all 13 datasets yield α∈[0.87,1.00]\alpha\in[0.87, 1.00], indicating that regret is overwhelmingly dominated by the linear bias term at the horizons in our experiments (TT up to 11M).

Figure 11. Regret scaling analysis for TS-RQ. Left: Power-law exponent α\alpha per dataset (R(T)∼TαR(T) \sim T^\alpha); all values are near 1.0, indicating bias-dominated regret. Right: Regret rate R(T)/TR(T)/T vs. TT for selected datasets, converging to a constant consistent with the O(ΔℓT)O(\Delta_{\ell}T) bias term in Theorem 3.1.

Decomposition fit. We also fit R(T)=aT+c⋅TR(T) = a\sqrt{T} + c \cdot T directly, separating exploration and bias contributions. The bias coefficient cc estimates the asymptotic regret rate R(T)/T→O(Δℓ(M))R(T)/T \to O(\Delta_{\ell}(\mathcal{M})). Figure 11 (right) shows the regret rate converging to a constant on selected datasets, confirming the linear bias term dominates.

Interpretation. This is exactly what Theorem 3.1 predicts: the exploration term O(bℓpKTlog⁡(T/δ))O(b\ell_{\mathrm{p}}\sqrt{KT\log(T/\delta)}) grows as Tlog⁡T\sqrt{T\log T} and becomes negligible relative to O(ΔℓT)O(\Delta_{\ell}T) for large TT. The practical implication is that reducing Δℓ\Delta_{\ell} (via deeper codebooks or richer base learners) is more impactful than reducing exploration cost—consistent with TS-RQ’s strong empirical performance despite its greedy approximation of the joint model.

Data Sufficiency: Synthetic Validation

We validate the data sufficiency condition N/(bKd2)N/(bKd^2) on synthetic data with two feature distributions:

Gaussian features. N=500KN=500\mathrm{K} i.i.d. standard normal in Rd\mathbb{R}^{d}. Random per-centroid reward structure. LinTS-RQ wins when N/(bKd2)>100N/(bKd^2)>100, ties at 30–100, loses below 30. This is the pessimistic bound: structureless features provide no exploitable correlation for the codebook.

Structured features. Correlated continuous groups, binary categoricals, planted decision tree for class assignment. LinTS-RQ wins at all tested ratios (≥14\ge14), because the planted structure aligns with the RQ codebook’s partition.

Real datasets behave like the structured synthetic: 12 of 13 datasets win at ratios as low as 1.1. The sole failure (year_prediction, ratio 0.04) is 25× below any tested threshold.

Figure 12. Data sufficiency: N/(bKd2)N/(bKd^2) vs. LinTS-RQ regret gap. Real datasets (filled circles) win at ratios as low as 1.1. Synthetic Gaussian (open squares) requires ratio >30>30. year_prediction is the sole outlier at ratio 0.04.

year_prediction Depth Analysis

On year_prediction (d=90d=90, K=84K=84), LinTS-RQ degrades even at depth 1 (96.3% vs. LinTS baseline 93.4%). Adding depth makes it progressively worse (96.9% at ℓ=2\ell=2, 97.4% at ℓ=4\ell=4).

TS-RQ is unaffected: 93.0% at all depths, matching the baseline. SGD-LinTS-RQ improves slightly with depth (96.9% →\to 95.0%) because diagonal estimation is more data-efficient than full covariance in R90\mathbb{R}^{90}.

The root cause is data fragmentation: with b=16b=16 centroids, each centroid receives ≈28\approx28K samples to estimate d2K=680d^2K=680K parameters—a ratio of 0.04. Context-free TS achieves 92.7%, outperforming all feature-based methods, confirming that the features carry negligible signal for the 84-way quantile-binned target.

Reconstruction Error

The normalized reconstruction error ∥x−x^∥2/∥x∥2\lVert x-\hat{x}\rVert^2/\lVert x\rVert^2 at depth 4 ranges from 0.005 (skin_segmentation) to 0.648 (year_prediction). year_prediction’s high error confirms that b=16b=16 centroids in R90\mathbb{R}^{90} cannot capture the feature geometry, consistent with its status as the sole LinTS-RQ failure.

DatasetNMSE (d=4)LinTS-RQ wins?
skin_seg.0.005Yes (−96%)
kddcup990.018Yes (−16%)
airlines0.078Yes (−3.6%)
miniboone0.111Yes (−10%)
covertype0.185Yes (−15%)
beer_rev.0.186Yes (−2.9%)
susy0.187Yes (−6.1%)
poker0.196Yes (−5.0%)
bng_elev.0.211Yes (−0.2%)
bng_letter0.293Yes (−11%)
hepmass0.400Yes (−1.1%)
higgs0.431Yes (−8.0%)
year_pred.0.648No (+4.5%)

Table 10. Normalized reconstruction error at depth 4.

Effective Rank and SGD-LinTS Failure

On datasets with effective rank <1.5< 1.5—skin_segmentation (eff. rank 1.31.3, d=3d=3) and miniboone (eff. rank 1.11.1, d=50d=50)—SGD-LinTS performs worse than context-free TS (42.0% vs 20.8% and 32.9% vs 28.3% regret rate). The diagonal approximation treats each feature coordinate independently; when most variance lies on a single axis, it wastes d−1d-1 coordinates on noise. TS-RQ is unaffected: 2.6% on skin_segmentation and 14.7% on miniboone.

Figure 13. Effective rank vs. regret rate. SGD-LinTS (squares) fails severely when eff. rank <1.5< 1.5 (red zone), performing worse than context-free TS (diamonds). TS-RQ (circles) is unaffected.

XGBoost and NeuralCB Comparison

LinTS-RQ achieves regret competitive with both nonlinear replay baselines. Against Doubling-XGB: 7 wins, 4 losses, 2 ties (30 LinTS-RQ seeds, 10 XGB seeds, 95% CIs; Table 11). Against Doubling-NeuralCB: 5 wins, 2 losses, 5 ties (30 LinTS-RQ seeds, 10 NeuralCB seeds; Table 12). Wins tend to be larger in magnitude than losses for both comparisons. The key differentiator is memory: both baselines require an O(T)O(T) replay buffer while LinTS-RQ uses fixed O(1)O(1) memory (Table 2).

DatasetLinTS-RQD-XGBGapCall
kddcup990.29.0−8.8Win
bng_letter46.656.1−9.5Win
covertype23.928.9−5.0Win
beer_reviews83.185.7−2.6Win
skin_seg0.32.9−2.6Win
susy20.321.7−1.4Win
hepmass18.419.7−1.3Win
bng_elevators75.075.10.0Tie
miniboone9.99.8+0.1Tie
higgs32.729.3+3.4Loss
airlines_delay39.836.0+3.8Loss
year_prediction97.893.1+4.7Loss
poker_hand46.941.0+6.0Loss

Table 11. Per-dataset regret rate (%): LinTS-RQ vs. Doubling-XGB. Negative gap = LinTS-RQ has lower regret.

DatasetLinTS-RQD-NeuralCBGapCall
beer_reviews83.087.7−4.6Win
bng_letter46.652.8−6.2Win
covertype23.927.6−3.7Win
kddcup990.21.4−1.2Win
skin_seg0.31.6−1.3Win
airlines_delay39.840.2−0.4Tie
bng_elevators75.075.0+0.1Tie
hepmass18.418.2+0.1Tie
higgs32.632.4+0.3Tie
susy20.320.4−0.1Tie
poker_hand46.945.8+1.1Loss
year_prediction97.893.1+4.6Loss

Table 12. Per-dataset regret rate (%): LinTS-RQ vs. Doubling-NeuralCB (30 LinTS-RQ seeds, 10 NeuralCB seeds). Negative gap = LinTS-RQ has lower regret.

Figure 14. Per-dataset regret rate: LinTS-RQ vs. Doubling-XGB.

TabNet-LinTS Comparison

LinTS-RQ wins on 11 of 13 datasets against TabNet-LinTS (11W/2L; losses: hepmass +0.5%, year_prediction +1.7%; Welch’s tt-test, 30 seeds each, 95% CIs). Both use the same 50K holdout (unsupervised); the RQ codebook matches or exceeds TabNet’s reconstruction-based embedding.

Figure 15. Per-dataset regret rate: LinTS-RQ vs. TabNet-LinTS.

Timing

Figure 16. Wall-clock μ\mus/step per method at adapted DRQm depths. TS-RQ is consistently the cheapest RQ variant (50–750 μ\mus). LinTS-RQ on year_prediction (d=90d=90, K=84K=84) reaches 28 ms.

Memory Formulas

Model memory = (codebook + model parameters) ×\times 8 bytes.

ComponentParametersFormula
Codebookℓbd\ell b dShared across arms
TS-RQ2ℓbK2\ell b K(sum, count) per cell
SGD-LinTS-RQ$2\ell b d K$(prec, ff) vectors per cell
LinTS-RQ(d2+d)ℓbK(d^2+d)\ell b K(VV matrix + ff vector) per cell
XGB replayT(d+2)T(d+2)Grows linearly with TT

Table 1 (PDF p. 36).

Adapted depth ℓ\ell from shadow promotion varies by dataset (median across 30 seeds). TS-RQ goes deepest (up to ℓ=8\ell=8 on bng_letter); LinTS-RQ stays shallowest (ℓ=2\ell=2–3, limited by cascaded convergence).

DatasetddKKTSTS-RQSGD-LinTSSGD-RQLinTSLinTS-RQ
airlines_delay7232B4.1KB224B13.1KB896B29.8KB
beer_reviews121041.6KB82.5KB19.5KB627.0KB126.8KB7.9MB
bng_elevators1810160B9.5KB2.8KB94.5KB26.7KB859.5KB
bng_letter1626416B68.0KB6.5KB742.0KB55.2KB5.2MB
covertype547112B68.0KB5.9KB405.0KB162.4KB10.2MB
hepmass27232B27.1KB864B50.6KB11.8KB384.8KB
higgs28232B12.0KB896B105.0KB12.7KB619.5KB
kddcup994117272B37.5KB10.9KB358.8KB228.7KB7.2MB
miniboone50232B33.8KB1.6KB62.5KB39.8KB2.5MB
poker_hand109144B7.0KB1.4KB95.0KB7.7KB250.0KB
skin_segmentation3232B3.5KB96B5.6KB192B6.8KB
susy18232B16.5KB576B22.5KB5.3KB263.2KB
year_prediction90841.3KB64.5KB118.1KB3.7MB5.2MB252.0MB

Table 13.

NeurIPS Paper Checklist

  1. Claims

    Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?

    Answer: [Yes]

    Justification: The abstract claims RQ codebooks improve contextual bandits with fixed memory; this is supported by the asymptotic regret analysis (Theorem 3.1), shadow false-promotion control (Theorem 3.3), and experiments across 13 datasets (§ 5).

  1. Limitations

    Question: Does the paper discuss the limitations of the work performed by the authors?

    Answer: [Yes]

    Justification: § 7 discusses three limitations: the squared-loss approximation for binary rewards, the data sufficiency condition N/(bKd2)≫1N/(bKd^2) \gg1 (with year_prediction as a concrete failure case), and the dependence on a holdout set for codebook training.

  1. Theory assumptions and proofs

    Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?

    Answer: [Yes]

    Justification: Theorem 3.1 (asymptotic regret, Appendix § 14) is conditional on three base-learner convergence properties, which are stated explicitly and verified for all three model classes (Appendix § 13). Theorem 3.3 (false-promotion control) is proved in Appendix § 15. Theorem 3.2 exactly decomposes depth-dependent approximation error, and Corollary 3.1 proves geometric decay under explicit reconstruction- and additive-tail contraction assumptions; their proofs are in Appendix § 14.

  1. Experimental result reproducibility

    Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?

    Answer: [Yes]

    Justification: Algorithm 1 specifies the method. § 5 describes all datasets (publicly available from OpenML), codebook parameters (b=16b=16, depths 1–5), number of seeds (30), and baselines.

  1. Open access to data and code

    Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?

    Answer: [Yes]

    Justification: Code is available at <https://github.com/atavory/rqb>. All 13 datasets are publicly available from OpenML.

  1. Experimental setting/details

    Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?

    Answer: [Yes]

    Justification: § 5 specifies codebook size (b=16b=16), clipping parameter (σ\sigma), Thompson sampling noise scale, and the holdout/bandit split. Appendix tables provide per-dataset details.

  1. Experiment statistical significance

    Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?

    Answer: [Yes]

Justification: All experiments use 30 seeds. Figures show ±1\pm1 standard deviation; tables report 95% CIs. The shadow promotion test uses Freedman’s martingale inequality with Bonferroni correction at significance level α=0.05\alpha=0.05.

8. Experiments compute resources

Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?

Answer: [Yes]

Justification: Timing benchmarks are reported in Appendix (Table and Figure). All experiments are CPU-only (no GPU required). Memory usage is analyzed in Appendix.

9. Code of ethics

Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?

Answer: [Yes]

Justification: The research uses only publicly available datasets and proposes a general-purpose bandit algorithm with no foreseeable ethical concerns.

10. Broader impacts

Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?

Answer: [Yes]

Justification: § 9 discusses positive impacts (efficient personalization, resource-constrained deployments) and notes that standard fairness and privacy concerns for bandit algorithms apply.

11. Safeguards

Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?

Answer: [N/A]

Justification: The paper does not release pre-trained models, generative models, or scraped datasets. RQ-Bandit is a lightweight bandit algorithm.

12. Licenses for existing assets

Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?

Answer: [Yes]

Justification: All datasets are cited with their original publications in Appendix § 18. All are publicly available from OpenML and UCI under open licenses.

13. New assets

Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?

Answer: [Yes]

Justification: The RQ-Bandit implementation will be released as supplementary code with documentation and scripts to reproduce the main experiments.

14. Crowdsourcing and research with human subjects

Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?

Answer: [N/A]

Justification: No crowdsourcing or human subjects research was conducted.

  1. Institutional review board (IRB) approvals or equivalent for research with human subjects

    Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?

    Answer: [N/A]

    Justification: No human subjects research was conducted.

  1. Declaration of LLM usage

    Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.

    Answer: [N/A]

    Justification: LLMs were used only for writing assistance and editorial polishing. They are not a component of the RQ-Bandit method or experimental pipeline.

References

  1. [1]Yasin Abbasi-Yadkori, Dávid Pál, and Csaba Szepesvári. Improved algorithms for linear stochastic bandits. In Advances in Neural Information Processing Systems, volume 24, pages 2312–2320, 2011.
  2. [3]Shipra Agrawal and Navin Goyal. Analysis of Thompson Sampling for the multi-armed bandit problem. In Conference on Learning Theory, pages 39.1–39.26, 2012.arxiv.org/abs/1111.1797
  3. [4]Shipra Agrawal and Navin Goyal. Thompson sampling for contextual bandits with linear payoffs. In International Conference on Machine Learning, pages 127–135. PMLR, 2013.arxiv.org/abs/1209.3352
  4. [5]Sercan O. Arik and Tomas Pfister. TabNet: Attentive interpretable tabular learning. In AAAI Conference on Artificial Intelligence, volume 35, pages 6679–6687, 2021.
  5. [6]Dara Bahri, Heinrich Jiang, Yi Tay, and Donald Metzler. SCARF: Self-supervised contrastive learning using random feature corruption. In International Conference on Learning Representations, 2022.arxiv.org/abs/2106.15147
  6. [7]Pierre Baldi, Peter Sadowski, and Daniel Whiteson. Searching for exotic particles in high-energy physics with deep learning. Nature Communications, 5:4308, 2014. doi: 10.1038/ncomms5308.DOI
  7. [8]Pierre Baldi, Kyle Cranmer, Taylor Faucett, Peter Sadowski, and Daniel Whiteson. Parameterized neural networks for high-energy physics. The European Physical Journal C, 76(5):235, 2016. doi: 10.1140/epjc/s10052-016-4099-4.DOI
  8. [9]Yikun Ban and Jingrui He. EE-Net: Exploitation-exploration neural networks in contextual bandits. In International Conference on Learning Representations, 2022.arxiv.org/abs/2110.03177
  9. [10]Thierry Bertin-Mahieux, Daniel P.W. Ellis, Brian Whitman, and Paul Lamere. The million song dataset. In International Society for Music Information Retrieval Conference, 2011.
  10. [11]Jock A. Blackard and Denis J. Dean. Comparative accuracies of artificial neural networks and discriminant analysis in predicting forest cover types from cartographic variables. Computers and Electronics in Agriculture, 24(3):131–151, 1999. doi: 10.1016/S0168-1699(99)00046-0.DOI
  11. [12]Sébastien Bubeck, Rémi Munos, Gilles Stoltz, and Csaba Szepesvári. X-armed bandits. Journal of Machine Learning Research, 12:1655–1695, 2011.
  12. [13]Yongjian Chen, Tao Guan, and Cheng Wang. Approximate nearest neighbor search by residual vector quantization. Sensors, 10(12):11259–11273, 2010. doi: 10.3390/s101211259.DOI
  13. [14]Varsha Dani, Thomas P Hayes, and Sham M Kakade. Stochastic linear optimization under bandit feedback. In Conference on Learning Theory, pages 355–366, 2008.
  14. [15]Dheeru Dua and Casey Graff. UCI machine learning repository, 2019. URL https://archive.ics.uci.edu/ml.
  15. [16]David A. Freedman. On tail probabilities for martingales. The Annals of Probability, 3(1):100–118, 1975. doi: 10.1214/aop/1176996452.
  16. [17]Jerome H. Friedman. Greedy function approximation: A gradient boosting machine. Annals of Statistics, 29(5):1189–1232, 2001. doi: 10.1214/aos/1013203451.DOI
  17. [18]Roger A. Horn and Charles R. Johnson. Matrix Analysis. Cambridge University Press, 2nd edition, 2013. ISBN 978-0521548236.
  18. [19]Herve Jegou, Matthijs Douze, and Cordelia Schmid. Product quantization for nearest neighbor search. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(1):117–128, 2010. doi: 10.1109/TPAMI.2010.57.DOI
  19. [20]Robert Kleinberg, Aleksandrs Slivkins, and Eli Upfal. Multi-armed bandits in metric spaces. In ACM Symposium on Theory of Computing, pages 681–690, 2008.
  20. [21]Tor Lattimore and Csaba Szepesvári. Bandit Algorithms. Cambridge University Press, 2020.
  21. [22]Tor Lattimore, Csaba Szepesvari, and Gellert Weisz. Learning with good feature representations in bandits and in RL with a generative model. In International Conference on Machine Learning, pages 5662–5671. PMLR, 2020.
  22. [23]Lihong Li, Wei Chu, John Langford, and Robert E Schapire. A contextual-bandit approach to personalized news article recommendation. In Proceedings of the 19th international conference on World wide web, pages 661–670, 2010.DOI
  23. [24]Hannes Nilsson, Rikard Johansson, Niklas Åkerblom, and Morteza Haghir Chehreghani. Tree ensembles for contextual bandits. Transactions on Machine Learning Research, 2024.arxiv.org/abs/2402.06963
  24. [25]Aldo Pacchiano, Christoph Dann, Claudio Gentile, and Peter Bartlett. Regret bound balancing and elimination for model selection in bandits and RL. arXiv preprint arXiv:2012.13045, 2020.arxiv.org/abs/2012.13045
  25. [26]Vianney Perchet and Philippe Rigollet. The multi-armed bandit problem with covariates. Annals of Statistics, 41(2):693–721, 2013. doi: 10.1214/13-AOS1101.DOI
  26. [27]Philippe Rigollet and Assaf Zeevi. Nonparametric bandits with covariates. In Proceedings of the 23rd Conference on Learning Theory, pages 54–66, 2010.arxiv.org/abs/1003.1630
  27. [28]Carlos Riquelme, George Tucker, and Jasper Snoek. Deep Bayesian bandits showdown: An empirical comparison of Bayesian deep networks for Thompson sampling. In International Conference on Learning Representations, 2018.arxiv.org/abs/1802.09127
  28. [29]Byron P. Roe, Hai-Jun Yang, Ji Zhu, Yong Liu, Ion Stancu, and Gordon McGregor. Boosted decision trees as an alternative to artificial neural networks for particle identification. Nuclear Instruments and Methods in Physics Research Section A, 543(2–3):577–584, 2005. doi: 10.1016/j.nima.2004.12.018.DOI
  29. [30]Aleksandrs Slivkins. Contextual bandits with similarity information. Journal of Machine Learning Research, 15:2533–2568, 2014.
  30. [31]Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. MIT Press, 2nd edition, 2018.
  31. [32]Talip Ucar, Ehsan Hajiramezanali, and Lindsay Edwards. SubTab: Subsetting features of tabular data for self-supervised representation learning. In Advances in Neural Information Processing Systems, volume 34, 2021.arxiv.org/abs/2110.04361
  32. [33]Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In Advances in Neural Information Processing Systems, pages 6306–6315, 2017.arxiv.org/abs/1711.00937
  33. [34]Jinsung Yoon, Yao Zhang, James Jordon, and Michaela van der Schaar. VIME: Extending the success of self- and semi-supervised learning to tabular data. In Advances in Neural Information Processing Systems, volume 33, 2020.
  34. [35]Weitong Zhang, Dongruo Zhou, Lihong Li, and Quanquan Gu. Neural Thompson Sampling. In International Conference on Learning Representations, 2021.arxiv.org/abs/2010.00827
  35. [36]Dongruo Zhou, Lihong Li, and Quanquan Gu. Neural contextual bandits with UCB-based exploration. In International Conference on Machine Learning, pages 11492–11502. PMLR, 2020.arxiv.org/abs/1911.04462

Paper details

vlnc:W_hknf2hew
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents