Manuscript Offprint
arXiv:2610.02440Bandits via Additive Quantized Representations
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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 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 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 at up to less memory.
1 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. (2024) and neural methods Zhou et al. (2020); Zhang et al. (2021) 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 (2013), LinUCB Abbasi-Yadkori et al. (2011)) avoid memory and spiky retraining issues, but are structurally restricted to linear rewards.
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. (2010) as a bandit representation layer to enable gradient-boosted reward modeling with fixed memory. We train an RQ codebook of levels with centroids each via unsupervised -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 levels and centroids, this yields effective cells using only parameters, a potentially exponential compression. The online phase requires no replay buffer, no retraining, and fixed 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 (Section 2).
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
Flat

parameters 1 obs 1 cell updated
Factorial
Additive (Ours)

parameters 1 obs 1 cell updated

parameters 1 obs
params updated 58% of cells informed
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 cells ( , ). 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 shared parameters—each observation updates 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 ( ) uses per-centroid scalar counters with no features, robust and simple. SGD-LinTS-RQ ( ) fits diagonal linear models on the context residuals at each level. LinTS-RQ ( ) fits full-covariance LinTS, the quality ceiling, competitive with XGBoost and NeuralCB at less memory when data per parameter suffices (Section 4.2). All three use shadow promotion and maintain fixed memory.
-
Analysis: under three base-learner convergence properties (verified for all variants), the asymptotic regret rate is bounded by the additive misspecification (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 (Theorem 3.3).
-
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 less memory.

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=90, K=84) is explained by the data sufficiency condition (Section 4.2). Center: SGD-LinTS-RQ vs SGD-LinTS wins on 12/13. Right: TS-RQ vs TS wins on 11/13.
2 Method
Setting. We consider the standard stochastic contextual bandit setting Lattimore and Szepesvári (2020): at each round , the agent observes a context , selects an arm , and receives a reward . The goal is to minimize cumulative regret , where is the oracle reward.
We assume access to a pool of unlabeled contexts—separate from the bandit evaluation pool—on which we train the RQ codebook via sequential k-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 k-means assignment:
producing a code sequence that partitions the context space, and context residuals 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 (2001) the reward prediction: level 0 predicts the raw reward; level i > 0 predicts the pseudo-target—the gap between the observed reward and the cumulative prediction of levels 0, ..., i-1. A damping factor controls each level's contribution.
The three instantiations differ only in the per-level model class (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 Section 4.1.
Shadow promotion. Algorithm 1 adapts depth 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 Section 3.3.

Figure 3: Memory vs. quality across 13 datasets. Each point is one (method, dataset) pair. Hollow gray: linear baselines memory, high regret). Solid gray: RQ methods memory, low regret). Red: doubling methods replay buffers, low regret). RQ methods match tree/neural regret at less memory. The vertical drop from hollow to solid at the same -position shows the regret gain from the RQ codebook.
Table 1: Model variants sharing Algorithm 1, differing only in per-cell learner (full pseudocode in Appendix A).
| Method | Features used | Cost/round | |
|---|---|---|---|
| TS-RQ | Count/sum | Index only | |
| SGD-LinTS-RQ | Diagonal linear | Index | |
| LinTS-RQ | Full-covariance LinTS | Index |
3 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.
3.1 Asymptotic regret
Definition 3.1 (Additive misspecification). The additive misspecification at depth is
We require three properties of the per-cell base learner , stated informally here (formal definitions and verification for all three variants in Appendix B):
-
Eventual boundedness: score means do not diverge.
-
Exploration: if an arm rarely visits a centroid, its score variance remains positive, ensuring continued exploration.
-
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 ; model array for each level , centroid , arm ; clipping function ; damping ; initial depth ; significance level
1: ; initialize shadow at level
2: for do
3: Encode: observe ; compute codes and context residuals via (1)
4: Score: for each arm
5: Select: ; observe reward
6: Targets (residual cascade):
7: for do
8:
9:
10:
11: end for
12: Update: for
13: Shadow:
14: if and then
15: if Freedman test (Theorem 3.3, Appendix D): shadow significantly better at level , where is the number of checks then
16: ; spawn new shadow
17: end if
18: end if
19: end for
Theorem 3.1 (Asymptotic regret). For any base learner M satisfying Properties 1–3, let denote the converged prediction of the sequential residual-fitting procedure (Appendix C). Then
Since is one feasible additive predictor, the right-hand side equals 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 B; the full proof appears in Appendix C. The verification follows the standard approach in the TS literature Agrawal and Goyal (2013); a fully rigorous treatment of the strong law under adaptive Thompson Sampling with misspecification remains open in general, as noted by Agrawal and Goyal (2012). The bound says that average regret per round depends on the stagewise approximation error, not directly on the horizon T. 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 rate that LinTS achieves under correct specification; the tradeoff is a richer non-linear reward model at fixed memory.
3.2 Misspecification and depth
The additive parameterization resolves effective cells with only parameters per arm, and each observation updates centroid models—so exploration cost grows linearly in while resolution grows exponentially. Since deeper models contain shallower ones ( ), 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 be the saturated space of square-integrable functions of the prefix code , and let be the compact additive space used by RQ. Write ,

Figure 4: Empirical behavior consistent with the conditional geometric depth-rate law. Left: Median of the exponential fit improves with horizon . Right: Normalized regret decay at terminal for each dataset; curves cluster along exponential trajectories.
Theorem 3.2 (Depth-rate decomposition). If is L-Lipschitz and is the depth- RQ reconstruction error, then
Consequently,
Corollary 3.1 (Conditional geometric decay). If and , with , then
where .
The proof is in Appendix C. Reconstruction controls the saturated -cell benchmark, while measures the additional interaction tail imposed by the compact additive readout. Thus geometric reconstruction decay alone is insufficient; geometric additive-tail decay is the explicit additional condition. For multiple arms, , so the per-arm result transfers to Definition 3.1 up to a 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 to regret rates at depths 1–5 yields median 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).
3.3 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 over the full horizon.
We test the paired squared-error differences via Freedman’s martingale inequality Freedman (1975), which applies without requiring i.i.d. observations. Given a finite planning horizon (or an upper bound on the deployment length), the number of check times per depth is , known before the first observation. The per-test significance level is Bonferroni-corrected over all comparisons, giving total false-promotion probability . Proof in Appendix D.
Table 2: Model memory at shadow-promoted depths (b=16). XGB replay buffer grows ; all RQ methods are fixed .
| TS-RQ | LinTS-RQ | XGB replay | |
|---|---|---|---|
| higgs (T=5M) | 12 KB | 620 KB | 1.1 GB |
| susy (T=5M) | 22 KB | 176 KB | 800 MB |
| covertype (T=530K) | 60 KB | 10 MB | 51 MB |
4 Experiments
4.1 Setup
Following the supervised-to-bandit protocol Riquelme et al. (2018), 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 ranging from 130K to 11M, feature dimension , and arms (Table 6 in Appendix G). Following the codebook training protocol (Section 2), 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 . All methods use centroids per level, initial depth , , , , , shadow , (trailing window), , and 30 bandit seeds per configuration. For LinTS-RQ, we scale the per-level regularization as and add numerical jitter 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.
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, greedy, doubling retrain schedule), Doubling-NeuralCB (2-layer MLP, 128 hidden units, ReLU activations, Adam optimizer with learning rate , batch size 256, doubling retrain schedule, LinTS head), and TabNet-LinTS Arik and Pfister (2021) (unsupervised TabNet pre-training with default hyperparameters: , , , ; 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 -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 ) throughout, making results length-invariant across datasets. Win/loss calls use CIs from 30 seeds; a method “wins” only when the CI excludes zero.
4.2 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 , 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 replay memory (Table 2).
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 (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 (, ), where all three RQ variants show small losses ( to ); we discuss this in the data sufficiency analysis below.
Table 3: Win/loss/tie (W/L/T) summary across 13 datasets (30 seeds, 95% CIs). Negative gap = RQ method has lower regret.
| Comparison | W/L/T | Best win | Worst loss |
|---|---|---|---|
| LinTS-RQ vs LinTS | 10W/1L/2T | skin_seg -96% | year_pred +4.5% |
| SGD-RQ vs SGD-LinTS | 12W/1L | skin_seg -97% | year_pred +0.7% |
| TS-RQ vs TS | 11W/2L | kddcup99 -97% | year_pred +0.4% |

Figure 5: Data sufficiency diagnostic: regret gap of LinTS-RQ vs. LinTS as a function of . All real datasets with ratio (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 K).
Nonlinear baselines. LinTS-RQ achieves regret competitive with Doubling-XGB (7W/4L/2T). The key differentiator is memory: at , LinTS-RQ uses 620 KB vs. XGB's 1.1 GB—a gap that grows linearly with . 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 -means produces a partition that matches or exceeds TabNet's neural embedding, while the RQ codebook trains in seconds via -means versus minutes for TabNet pretraining. Per-step latency is also low: TS-RQ runs at 50–750 s/step across all datasets (Appendix Q).
Data sufficiency. LinTS-RQ maintains a covariance matrix for each of the centroid-arm pairs, so the total parameter count scales as . The ratio 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 (, , ratio=0.04), LinTS-RQ degrades even at depth 1. TS-RQ needs only 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 , 97.4% at ) 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 (Appendix K).
Effective rank. On datasets with effective rank (tr( )/ ) below 1.5 (skin_segmentation, miniboone), SGD-LinTS performs worse than context-free TS: the diagonal covariance approximation spreads its d parameters uniformly across coordinates, wasting d-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 N).
Table 4: TS-RQ regret rate (%) at fixed vs. adaptive depth.
| Adaptive | |||
|---|---|---|---|
| covertype | 48.3% | 42.2% | 38.8% (depth 4) |
| higgs | 45.4% | 43.6% | 43.7% (depth 3) |
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 . 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.
5 Related Work
Linear and GLM bandits. LinTS Agrawal and Goyal (2013) and LinUCB Li et al. (2010); Abbasi-Yadkori et al. (2011); Dani et al. (2008) achieve regret under linear rewards. The misspecification bound Lattimore et al. (2020) gives linear regret under misspecification—the basis for our asymptotic analysis (Appendix C).
Neural and tree-based bandits. NeuralUCB Zhou et al. (2020) and Neural TS Zhang et al. (2021) require per-step gradient and inverse-Hessian computation; efficient approximations (EE-Net Ban and He (2022), Neural-Linear Riquelme et al. (2018)) reduce to LinTS on last-layer features. TETS Nilsson et al. (2024) combines XGBoost with TS but must refit on accumulated history, incurring cumulative cost. Our offline codebook avoids both: no gradients, no refitting. Partition-based bandits. The X-armed bandit framework Bubeck et al. (2011) and the Zooming algorithm Kleinberg et al. (2008); Slivkins (2014) adaptively refine partitions to balance resolution against sample complexity. Nonparametric histogram bandits Rigollet and Zeevi (2010); Perchet and Rigollet (2013) achieve regret with flat partitions. Tile coding Sutton and Barto (2018) uses additive partitions in RL but with uniform tilings; our data-driven RQ codebook adapts to . The additive parameterization uses parameters for cells—a potentially exponential compression.
Model selection and quantization. CORRAL Agarwal et al. (2017) and Regret Balancing Pacchiano et al. (2020) 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. (2010), residual quantization Chen et al. (2010), and VQ-VAE van den Oord et al. (2017) compress representations; we show the same structure compresses exploration ( cells from parameters). Self-supervised methods (SCARF Bahri et al. (2022), VIME Yoon et al. (2020), SubTab Ucar et al. (2021), TabNet Arik and Pfister (2021)) learn representations from unlabeled data; our codebook achieves this via unsupervised -means.
6 Conclusion
We repurposed RQ codebooks as a representation layer for contextual bandits, enabling gradient-boosted reward models with fixed 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.
7 Limitations
The data sufficiency condition is the sharpest limitation: on year_prediction (, , ratio 0.04), LinTS-RQ degrades even at depth 1; a -dimensional projection () would relax this to . The linear variants use squared loss for binary rewards (Pólya-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 C) 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 k-means, which minimizes reconstruction error rather than reward prediction; a reward-aware partition (e.g., CART splits) could reduce the misspecification 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.
8 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
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.
Alekh Agarwal, Haipeng Luo, Behnam Neyshabur, and Robert E. Schapire. Corralling a band of bandit algorithms. In Conference on Learning Theory, pages 12–38, 2017.
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.
Shipra Agrawal and Navin Goyal. Thompson sampling for contextual bandits with linear payoffs. In International Conference on Machine Learning, pages 127–135. PMLR, 2013.
Sercan O. Arik and Tomas Pfister. TabNet: Attentive interpretable tabular learning. In AAAI Conference on Artificial Intelligence, volume 35, pages 6679–6687, 2021.
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.
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.
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.
Yikun Ban and Jingrui He. EE-Net: Exploitation-exploration neural networks in contextual bandits. In International Conference on Learning Representations, 2022.
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.
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.
Sébastien Bubeck, Rémi Munos, Gilles Stoltz, and Csaba Szepesvári. X-armed bandits. Journal of Machine Learning Research, 12:1655–1695, 2011.
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.
Varsha Dani, Thomas P Hayes, and Sham M Kakade. Stochastic linear optimization under bandit feedback. In Conference on Learning Theory, pages 355–366, 2008.
Dheeru Dua and Casey Graff. UCI machine learning repository, 2019. URL https://archive.ics.uci.edu/ml.
David A. Freedman. On tail probabilities for martingales. The Annals of Probability, 3(1):100–118, 1975. doi: 10.1214/aop/1176996452.
Jerome H. Friedman. Greedy function approximation: A gradient boosting machine. Annals of Statistics, 29(5):1189–1232, 2001. doi: 10.1214/aos/1013203451.
Roger A. Horn and Charles R. Johnson. Matrix Analysis. Cambridge University Press, 2nd edition, 2013. ISBN 978-0521548236.
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.
Robert Kleinberg, Aleksandrs Slivkins, and Eli Upfal. Multi-armed bandits in metric spaces. In ACM Symposium on Theory of Computing, pages 681–690, 2008.
Tor Lattimore and Csaba Szepesvári. Bandit Algorithms. Cambridge University Press, 2020.
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.
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.
Hannes Nilsson, Rikard Johansson, Niklas Åkerblom, and Morteza Haghir Chehreghani. Tree ensembles for contextual bandits. Transactions on Machine Learning Research, 2024.
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.
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.
Philippe Rigollet and Assaf Zeevi. Nonparametric bandits with covariates. In Proceedings of the 23rd Conference on Learning Theory, pages 54–66, 2010.
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.
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.
Aleksandrs Slivkins. Contextual bandits with similarity information. Journal of Machine Learning Research, 15:2533–2568, 2014.
Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. MIT Press, 2nd edition, 2018.
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.
Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In Advances in Neural Information Processing Systems, pages 6306–6315, 2017.
Jinsung Yoon, Yao Zhang, James Jordon, and Mihaela 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.
Weitong Zhang, Dongruo Zhou, Lihong Li, and Quanquan Gu. Neural Thompson Sampling. In International Conference on Learning Representations, 2021.
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.
A Base Learner Details
This appendix specifies the per-cell operations for each model class in Algorithm 1. All three variants share the same outer loop; they differ only in how each cell maintains its posterior and produces predictions. Each cell exposes three operations: returns a Thompson-sampling draw (used for arm selection in the step); returns the posterior mean prediction (used to build the cumulative prediction in the step); incorporates a new observation. Here is the context residual from (1) and is the pseudo-target from Algorithm 1, line 6. For the linear variants (SGD-LinTS-RQ, LinTS-RQ), a constant intercept feature is appended: , so the effective per-centroid dimension is . This ensures (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 ; exploration scale 1: State: count ; sum 2: function SAMPLE() is ignored 3: 4: return sample from 5: end function 6: function MEAN() is ignored 7: return 8: end function 9: function UPDATE() is ignored 10: ; 11: end function
Algorithm 3 SGD-LinTS-RQ cell operations (diagonal linear)
Require: Regularization ; exploration scale 1: State: diagonal precision ; sufficient statistic (intercept appended) 2: function SAMPLE() 3: element-wise division 4: 5: return 6: end function 7: function MEAN() 8: return 9: end function 10: function UPDATE() 11: element-wise 12: 13: end function
Algorithm 4 LinTS-RQ cell operations (full-covariance LinTS)
Require: Regularization ; exploration scale
1: State: inverse precision ; (intercept appended)
2: function SAMPLE()
3:
4:
5: return
6: end function
7: function MEAN()
8: return
9: end function
10: function UPDATE() Sherman–Morrison on
11:
12:
13:
14: end function
B Base Learner Properties
Algorithm 1 is parameterized by a per-cell base learner . Theorem 3.1 (§3) establishes asymptotic regret under three properties of ; the full proof is in Appendix C. We state these properties below and establish them for each variant. We use the notation from Appendix C: is the level- feature vector, the score mean (22), the score variance (23), the visit count for arm at centroid and level , and the per-level target (24).
Property 1 (Eventual boundedness). Score means are eventually bounded almost surely:
Property 2 (Starvation positive variance). If arm visits centroid at level at most times for all , then
where depends on but not on .
Property 3 (Robust consistency). Suppose all centroids at level are visited infinitely often by arm for all with . Suppose the targets have vanishing perturbation: with a.s., where is the stationary target under converged shallower levels. Then predictions converge:
where is the best predictor of from in the function class of .
B.1 Verification for LinTS-RQ
LinTS-RQ maintains a full-covariance precision and posterior mean .
Property 1. For any arm , level , and centroid : if for all , the estimate receives at most updates with bounded targets (), so (since and ), giving , deterministically bounded. If , the strong law gives , which is finite. Since the number of arm/centroid combinations is finite, score means are eventually bounded.
Property 2. If for all , the centroid-c block of has at most rank-one updates, giving the time-uniform bound . When :
Property 3. Suppose for all centroids and targets satisfy with . The ridge estimator decomposes as
The first term converges by standard ridge consistency (stationary targets, ). For the transient bias, apply Cauchy–Schwarz under with :
First factor. Write and . Since :
(13)
where the third line uses (the strong law), and . Each centroid block is positive definite under a mild nondegeneracy condition: the conditional distribution of given 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 is large enough. If is rank-deficient, the regularized estimator still converges in prediction space: since for centroid lies in the column space of , the prediction converges regardless. Also, by Assumption C.1.
Second factor. Write for the matrix whose columns are and for the vector of drifts . By the push-through identity :
(14)
Combining.
Since and , the Cesàro mean , so the transient bias prediction vanishes.
B.2 Verification for SGD-LinTS-RQ
SGD-LinTS-RQ maintains a diagonal precision with and sufficient statistic , yielding the coordinate-wise estimator . This is 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 , then for every coordinate , giving
by Assumption C.1, where the sum is over coordinates (including the intercept that ensures even when context residuals are small at deep levels).
Property 3. By the strong law applied to each coordinate independently:
the coordinate-wise optimal coefficient. The transient bias at coordinate k satisfies
by the Cesàro argument. Note that is the coordinate-wise optimal, which may differ from the full-linear optimal when features are correlated; consequently for SGD-LinTS-RQ is evaluated over the coordinate-wise linear function class.
B.3 Verification for TS-RQ
TS-RQ is the scalar special case: the per-cell model ignores features and maintains only a count n and sum s (Algorithm 2). The estimate is a scalar ridge regression with constant feature 1. All three properties follow from the LinTS-RQ checks with and . 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 and , the target has the same conditional expectation regardless of how 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 vanishes and the averaging is over a growing number of bounded terms. This is the standard approach in the TS literature Agrawal and Goyal (2013, 2012); a fully formal treatment under adaptive sampling remains open for misspecified TS in general.
C 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: for all .
The lower bound is ensured by appending a constant intercept feature to each .
Definition 3.1 (Additive misspecification, restated from §3). The additive misspecification is defined in (2). Since deeper models contain shallower ones ( ), .
Theorem 3.1 (Asymptotic regret, restated from §3). For any base learner M satisfying Properties 1–3 (Appendix B), the asymptotic regret rate satisfies (3), where is the converged prediction of the sequential residual-fitting limit (Lemma C.1(b)). Since is one feasible additive predictor, the right-hand side is , with equality when the stagewise and joint optima coincide.
Lemma C.1 (Exploration and convergence). For any base learner M satisfying Properties 1–3, for each arm a and level :
(a) Every arm visits every centroid at level infinitely often: a.s. for all centroids with .
(b) The per-level predictions converge: for all in the support.
The proof proceeds by induction on the level i. Each level's targets depend on all shallower levels' estimates, creating a coupled non-stationary system. Properties 1–3 (Appendix B) 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 F.
Notation. Each feature vector is supported on a single centroid block at level (placing the context residual at centroid and zeros elsewhere). The TS draw, score, and selection for arm at context are
independently across levels; the last equality holds since is monotone. The score mean and conditional variance are
The reward prediction is , and the per-level target (Algorithm 1, line 6) is
For clarity, the damping factor from Algorithm 1 is set to 1 in the analysis; absorbing into does not affect the proof structure, though it scales the effective variance at level by , which slows exploration at deeper levels when . The asymptotic result is unaffected (the lower bound remains positive), but the pre-asymptotic exploration cost at deep levels grows as .
Lemma C.2 (Score means are eventually bounded). All arm score means are eventually bounded:
Proof. Immediate from Property 1 (Appendix B).
Lemma C.3 (Exploration and convergence, restated). For any base learner M satisfying Properties 1–3 (Appendix B), for each arm a and level :
(a) Every arm visits every centroid at level infinitely often: a.s. for all centroids with .
(b) The per-level predictions converge: for all in the support, where is the best linear predictor for the clipped residual at level given converged shallower levels.
Proof of Lemma C.1. The proof is by induction on the level i and applies to any base learner M satisfying Properties 1–3.
Induction base .
(a) Per-centroid exploration. Assume that for some a, c,
By Property 2, the score variance satisfies
By Lemma C.2, there exist (a.s.) finite and such that every arm's score mean satisfies for all . For with , the probability that arm is selected satisfies
(29)
where the first factor uses anti-concentration of the score distribution: all three variants use Gaussian sampling (Algorithms 2–4), so is Gaussian with variance and mean , giving the stated normal tail bound. Each factor in the product is because . Since occurs infinitely often (i.i.d. contexts with ) and each occurrence satisfies (a uniform conditional lower bound, not independence), the Lévy extension of the Borel–Cantelli lemma gives , contradicting (27).
(b) Prediction convergence. The targets are stationary (no dependence on shallower levels), so . By (a), for every centroid . Property 3 (with ) gives .
Induction step ( ). Assume (a) and (b) hold for levels .
(a) Per-centroid exploration. Similar to the induction base: if for some centroid at level , Property 2 gives when . By Lemma C.2, score means are eventually bounded, so Gaussian anti-concentration and Borel–Cantelli yield the contradiction .
(b) Prediction convergence. The clipped residual target for level i is
Since is 1-Lipschitz and levels have converged in prediction space by the induction hypothesis (b), the target drift satisfies
where each summand vanishes by the induction hypothesis. By (a), for all centroids. Property 3 (with ) gives .
Proof of Theorem 3.1 (Asymptotic regret for Algorithm 1). By Lemma C.1(b), for each arm a, the converged prediction is
Define
(33) as the arm selected under the converged model.
Post-convergence regret. Once predictions have converged, TS selects at every round (the posterior variance vanishes; model-level ties occur on a measure-zero set of contexts under continuous features, and contribute at most regret per round regardless). The per-round regret is
(34)
where the last term is because maximizes . Therefore
Taking expectation over :
where is the approximation error of the sequential residual-fitting limit \hat{r}_\infty(x,a) = \sigma(\sum_i \theta_{a,i}^*^\top \phi_i(x)). Since is one feasible additive predictor, (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), for all arms and levels (in prediction space), so the posterior means converge. Since the posterior variances vanish ( as by Lemma C.1(a)), the TS draws converge:
a.s., and arm selection converges to . For contexts where the optimal arm gap , the TS draws eventually resolve to the correct arm; exact ties have zero probability under continuous TS draws. For any , there exists such that for , except on a set of measure . The exploration regret (rounds where ) therefore satisfies
Since per-round regret is bounded by 1, the cumulative exploration regret is .
Total.
giving
C.1 Proof of the depth-rate result
Fix one arm and let . Because each RQ symbol takes finitely many values, is a closed finite-dimensional subspace of the closed saturated space . Denote their orthogonal projections by and .
Proof of Theorem 3.2. Since , . We may therefore write
The first summand lies in and the second in . Pythagoras gives the first identity in (4). For the reconstruction bound, conditional expectation is the projection onto , so
Within a prefix cell c, let be independent draws from . Lipschitz continuity yields
The conditional mean minimizes squared reconstruction error, whereas is merely constant on each prefix cell. Hence . Averaging over cells proves the second inequality in (4).
Finally, put and . Then . For any , projection contraction gives
Taking the infimum over proves the interaction-tail bound. Combining it with the first two claims gives (5).
Proof of Corollary 3.1. Theorem 3.2 and for imply
Substitution of the two geometric assumptions gives the stated bound with .
D 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 over the full horizon.
Shadow promotion differs from CORRAL Agarwal et al. (2017) in a structurally important way: CORRAL runs M learners simultaneously and pays 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 (1975) (no i.i.d. assumption needed).
Remark D.1 (Freedman vs. t-test). The formal guarantee (Theorem 3.3) requires the Freedman-based test, which makes no i.i.d. assumption on the paired differences . In our experiments, we also evaluate a paired t-test variant as a practical heuristic; because the within each trailing window are not i.i.d. (the policy evolves), the t-test p-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 ). Post-promotion, the policy changes and arm frequencies shift. For all three variants this shift is structurally bounded: centroid assignments depend only on 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 , define the paired squared-error difference between the active and shadow predictions. Let and denote the posterior mean predictions of the active and shadow models, respectively. Define:
When , the shadow's prediction was closer to the observed reward at round t.
Since the shadow does not influence , the conditional expectation is a deterministic function of the models' states. Define the centered differences:
By construction, , so is a martingale difference sequence adapted to . Rewards lie in . Since maps to , the posterior mean predictions satisfy for all three variants. Each squared error is therefore in , so and:
Freedman-based promotion test. Fix a check time and a trailing window of W observations. The cumulative difference decomposes into signal and noise:
The signal is positive when the shadow is genuinely better (in expected squared error) over the window. We need to distinguish from noise fluctuations.
The noise is a sum of martingale differences with . Its predictable quadratic variation is:
By Freedman's inequality Freedman (1975):
To derive the threshold , we set (the worst-case variance bound) and require the right-hand side of (53) to equal the per-test significance level . This gives the equation:
Taking logarithms and writing :
Applying the quadratic formula :
(56)
We promote if .
Under the null hypothesis (shadow is not better, ), the signal is non-positive, so from (51):
Therefore, a promotion requires , which by Freedman's inequality (53) occurs with probability at most :
Here, 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 , producing at most check intervals:
At each check time, the algorithm only evaluates the immediate shadow depth extending from the current active depth . 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 , 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 promotions can ever occur (from depth 1 to depth ), the total number of hypothesis tests over the entire horizon is bounded by:
Setting for each individual test and applying the union bound:
By tracking only the frontier tests, the multiplicity penalty is additive rather than multiplicative . The doubling schedule keeps .
Combining. By (61), with probability at least , every promotion is a true improvement under the active policy's data distribution:
meaning the shadow has strictly lower expected squared error on the pairs generated by . 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 ) is bounded by Theorem 3.1. If promotions occur at times with depths , the total regret is the sum across phases:
where each term is bounded by Theorem 3.1 at the corresponding depth. Since (deeper models have lower bias), promotions can only reduce the bias term in subsequent phases.
E Depth Ablation and Exponential Decay
This appendix examines empirical behavior relevant to the conditional geometric rate in Corollary 3.1 (§3) and the depth results in §4.2.
E.1 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 at the terminal round for each (dataset, method, depth) combination using depths . Since as (Theorem 3.1), the converged regret rate provides a proxy for .

Figure 6: Empirical behavior consistent with the conditional geometric depth-rate law, one column per method. Top: Median of the exponential fit as a function of horizon ; fit quality improves with more data. Bottom: Normalized regret decay at terminal for each dataset.
Exponential fit. We fit to each (dataset, method) pair via nonlinear least squares, yielding 39 fits (13 datasets RQ methods, 30 seeds each). The table below reports the median fit quality.
| Metric | Median | Mean | >0.90 |
|---|---|---|---|
| of 3-parameter fit | 0.99 | 0.94 | 24/28 (86%) |
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 ; of predictions fall within of the observed value (Figure 7).


Figure 7: Leave-one-out cross-validation of the exponential decay model . Left: Predicted vs. actual regret rate for all (dataset, method, held-out depth) triples; the gray band shows . Right: Prediction error by held-out depth; depths 2–5 are predicted within , while depth 1 (furthest from ) shows larger extrapolation error.
Exponential decay rate. Figure 9 fits to the normalized within-cell variance for each dataset. The median fitted decay rate is (range 0.17–0.93), with median .

Figure 8: Regret rate vs. depth for each RQ method, with fitted exponential decay curves overlaid. Each line is a dataset; error bars show std over 30 seeds. Median is reported per method.
E.2 Within-Cell Reward Variance
Figure 9 measures within-cell reward heterogeneity directly. For each dataset we train an RQ codebook (, depth 5) and compute the weighted average within-cell reward variance , where cells at depth are defined by the first 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 (range 0.24–0.93).

Figure 9: Normalized within-cell reward variance vs. RQ depth for all 13 datasets (log scale). Every dataset decays monotonically; the near-linear trajectories are consistent with geometric decay with median .
E.3 Fixed-Depth vs. Shadow Promotion
We compare TS-RQ at fixed depths and against the adaptive shadow-promoted variant (TS-RQ) on two representative datasets.
| Adaptive | |||
|---|---|---|---|
| covertype | 48.3% | 42.2% | 38.8% (depth 4) |
| higgs | 45.4% | 43.6% | 43.7% (depth 3) |
On covertype, shadow promotion discovers depth 4 and gains 3.4 percentage points over fixed , confirming that adaptive depth selection adds value beyond simply committing to . On higgs, the benefit of depth beyond 2 is marginal, and the adaptive method correctly settles at depth 3 with regret matching .
F Analytical Variant: Finite-Time Bound
This appendix analyzes an analytical variant of Algorithm 1 that maintains the full 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 (2013) to our feature map; the contribution is not the proof technique but the architectural insight that the RQ additive structure ensures while achieving the approximation power of 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 with :
where each encodes the level- assignment (one-hot for TS-RQ, context-at-centroid for LinTS-RQ) and captures cross-level correlations. A single parameter vector recovers the unclipped additive model: .
The analytical variant runs LinTS on with the full posterior covariance . Define the variant misspecification \Delta(\Phi) = \mathbb{E}_x[\max_a |r^*(x,a)-\theta_a^\ast^\top \Phi(x)|], where is the best linear predictor for arm on . Since recovers any unclipped additive model, where is the error of the stagewise limit without clipping. In practice, clipping () can only reduce approximation error for bounded rewards, so , giving and the same asymptotic scaling in depth.
Complexity comparison. Table 5 summarizes the exploration and memory costs of the analytical variant versus Algorithm 1.
Table 5: Exploration and memory scaling by base learner. “Joint” columns refer to the analytical variant; “Actual” is Algorithm 1.
| Exploration | Joint memory | Actual memory | ||
|---|---|---|---|---|
| TS | ||||
| LinTS | ||||
| SGD-LinTS |
The analytical variant runs independent LinTS instances Agrawal and Goyal (2013), one per arm, on the -dimensional feature vector with (64). Each arm maintains a ridge precision matrix
Let denote the true expected reward, and let be the best linear predictor for arm . Define the misspecification function \epsilon(x, a) = r^*(x, a) - \theta_a^*^\top \Phi(x) and the observation noise . Note that . The observed reward decomposes as
At time t, the ridge posterior mean estimates by
(67)
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, .
Proof. Immediate from the definitions of and .
Lemma F.2 (Exploration regret under realizability). For the analytical variant under realizability ( , i.e. ), with bounded features , rewards in , and D-dimensional parameter vectors, the cumulative regret satisfies, with probability ,
Proof. Under realizability, for all , so the reward noise is zero-mean conditional on . This is exactly the setting of Agrawal and Goyal (2013), Theorem 2 (stated for Gaussian noise; the extension to sub-Gaussian noise, which covers our bounded binary rewards, is standard Lattimore and Szepesvári (2020)), giving per-arm regret . Summing over arms :
Remark F.1 (Variant regret (heuristic bound)). For the analytical variant with bounded features ( ) and rewards in , under the heuristic decomposition below, with probability ,
Argument for Remark F.1. Let . The per-round regret decomposes as
The misspecification bracket satisfies . Since contexts are i.i.d., Hoeffding's inequality gives with probability ; 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 ( ); in the misspecified case, the systematic bias 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 (2020); for Thompson Sampling, the shifted posterior may alter the sampling distribution in non-additive ways. Following Lattimore et al. (2020), 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 :
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 be the joint posterior covariance over all levels (64), partitioned into blocks. For every level , .
Proof. Partition into level versus the remaining levels:
where and . Since , both and are positive definite. By the block inversion formula,
Since , the Schur complement satisfies , giving . Both sides are positive definite (the left-hand side by ), so inverting reverses the Loewner order (Horn and Johnson, 2013, Theorem 7.7.6):
G Dataset Details
Codebook training. We train the RQ codebook via scikit-learn's MiniBatchKMeans (k=16, init='k-means++', n_init=3, max_iter=100, batch_size=1024, random_state=42) applied sequentially: we train level i on the context residuals from the 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. total samples, feature dimension, number of arms (classes), majority class frequency, eff. rank = effective rank of the feature covariance. All datasets are publicly available from OpenML and UCI Dua and Graff (2019); codebook trained on held-out samples. Individual sources: HIGGS and SUSY Baldi et al. (2014), HEPMASS Baldi et al. (2016), covertype Blackard and Dean (1999), MiniBooNE Roe et al. (2005), year_prediction Bertin-Mahieux et al. (2011).
| Dataset | eff. rank | ||||
|---|---|---|---|---|---|
| airlines_delay | 500K | 7 | 2 | 0.555 | 4.8 |
| bng_elevators | 1M | 18 | 10 | 0.183 | 3.7 |
| bng_letter | 1M | 16 | 26 | 0.041 | 4.6 |
| covertype | 581K | 54 | 7 | 0.488 | 3.9 |
| beer_reviews | 500K | 12 | 104 | 0.074 | 3.2 |
| hepmass | 5M | 27 | 2 | 0.500 | 5.7 |
| higgs | 11M | 28 | 2 | 0.530 | 6.7 |
| kddcup99 | 494K | 41 | 17 | 0.568 | 3.9 |
| miniboone | 130K | 50 | 2 | 0.719 | 1.1 |
| poker_hand | 500K | 10 | 9 | 0.502 | 9.7 |
| skin_seg. | 245K | 3 | 2 | 0.793 | 1.3 |
| susy | 5M | 18 | 2 | 0.542 | 3.7 |
| year_prediction | 500K | 90 | 84 | 0.076 | 8.7 |
H Full Per-Dataset Results
Tables 7–9 show per-dataset results for all three method families.
Table 7: LinTS-RQ vs LinTS: per-dataset regret rates (%) and gap with 95% CIs.
| Dataset | Base (%) | RQ (%) | Gap (%) | |||
|---|---|---|---|---|---|---|
| airlines | 7 | 2 | 41.3 | 39.8 | 450K | |
| beer_rev. | 12 | 104 | 85.6 | 83.0 | 450K | |
| bng_elev. | 18 | 10 | 75.1 | 75.0 | 950K | |
| bng_letter | 16 | 26 | 52.4 | 46.6 | 950K | |
| covertype | 54 | 7 | 28.1 | 23.9 | 530K | |
| hepmass | 27 | 2 | 18.6 | 18.4 | 830K | |
| higgs | 28 | 2 | 35.5 | 32.6 | 6.7M | |
| kddcup99 | 41 | 17 | 0.2 | 0.2 | 440K | |
| miniboone | 50 | 2 | 11.0 | 9.9 | 80K | |
| poker | 10 | 9 | 49.4 | 46.9 | 445K | |
| skin_seg. | 3 | 2 | 8.3 | 0.3 | 195K | |
| susy | 18 | 2 | 21.6 | 20.3 | 3.5M | |
| year_pred. | 90 | 84 | 93.6 | 97.8 | 445K |
Table 8: TS-RQ vs TS: per-dataset regret rates (%) and gap with 95% CIs.
| Dataset | Base (%) | RQ (%) | Gap (%) | |||
|---|---|---|---|---|---|---|
| airlines | 7 | 2 | 45.6 | 42.8 | 450K | |
| beer_rev. | 12 | 104 | 92.7 | 89.8 | 450K | |
| bng_elev. | 18 | 10 | 81.7 | 77.9 | 950K | |
| bng_letter | 16 | 26 | 96.0 | 71.4 | 950K | |
| covertype | 54 | 7 | 51.3 | 38.8 | 530K | |
| hepmass | 27 | 2 | 50.0 | 21.7 | 830K | |
| higgs | 28 | 2 | 48.0 | 43.7 | 6.7M | |
| kddcup99 | 41 | 17 | 42.7 | 1.1 | 440K | |
| miniboone | 50 | 2 | 28.3 | 14.7 | 80K | |
| poker | 10 | 9 | 49.8 | 50.4 | 445K | |
| skin_seg. | 3 | 2 | 20.8 | 2.6 | 195K | |
| susy | 18 | 2 | 46.6 | 24.8 | 3.5M | |
| year_pred. | 90 | 84 | 92.8 | 93.2 | 445K |
Table 9: SGD-RQ vs SGD-LinTS: per-dataset regret rates (%) and gap with 95% CIs.
| Dataset | Base (%) | RQ (%) | Gap (%) | |||
|---|---|---|---|---|---|---|
| airlines | 7 | 2 | 46.2 | 42.4 | 450K | |
| beer_rev. | 12 | 104 | 91.7 | 89.2 | 450K | |
| bng_elev. | 18 | 10 | 80.0 | 77.6 | 950K | |
| bng_letter | 16 | 26 | 81.6 | 64.3 | 950K | |
| covertype | 54 | 7 | 48.9 | 32.0 | 530K | |
| hepmass | 27 | 2 | 20.5 | 19.1 | 830K | |
| higgs | 28 | 2 | 49.0 | 36.2 | 6.7M | |
| kddcup99 | 41 | 17 | 20.7 | 1.2 | 440K | |
| miniboone | 50 | 2 | 32.9 | 14.1 | 80K | |
| poker | 10 | 9 | 53.6 | 49.4 | 445K | |
| skin_seg. | 3 | 2 | 42.0 | 2.5 | 195K | |
| susy | 18 | 2 | 29.2 | 23.0 | 3.5M | |
| year_pred. | 90 | 84 | 93.3 | 94.0 | 445K |
I Per-Dataset Regret Curves

year_pred (d=90, K=84)
Figure 10: Regret rate vs. T for all 9 methods on each dataset. Shaded bands show std across seeds.
J 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 via log-log regression. If regret were dominated by the exploration term, we would expect . If dominated by the bias term, we expect . Figure 11 (left) shows that all 13 datasets yield , indicating that regret is overwhelmingly dominated by the linear bias term at the horizons in our experiments (T up to 11M).
Decomposition fit. We also fit directly, separating exploration and bias contributions. The bias coefficient estimates the asymptotic regret rate . 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 grows as and becomes negligible relative to for large . The practical implication is that reducing (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.


Figure 11: Regret scaling analysis for TS-RQ. Left: Power-law exponent per dataset ( ); all values are near 1.0, indicating bias-dominated regret. Right: Regret rate vs. T for selected datasets, converging to a constant consistent with the bias term in Theorem 3.1.
K Data Sufficiency: Synthetic Validation
We validate the data sufficiency condition on synthetic data with two feature distributions:
Gaussian features. i.i.d. standard normal in . Random per-centroid reward structure. LinTS-RQ wins when , 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), 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 below any tested threshold.

Figure 12: Data sufficiency: vs. LinTS-RQ regret gap. Real datasets (filled circles) win at ratios as low as 1.1. Synthetic Gaussian (open squares) requires ratio > 30. year_prediction is the sole outlier at ratio 0.04.
L year_prediction Depth Analysis
On year_prediction (d=90, K=84), LinTS-RQ degrades even at depth 1 (96.3% vs. LinTS baseline 93.4%). Adding depth makes it progressively worse (96.9% at , 97.4% at ).
TS-RQ is unaffected: 93.0% at all depths, matching the baseline. SGD-LinTS-RQ improves slightly with depth (96.9% → 95.0%) because diagonal estimation is more data-efficient than full covariance in .
The root cause is data fragmentation: with centroids, each centroid receives samples to estimate 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.
M Reconstruction Error
The normalized reconstruction error at depth 4 ranges from 0.005 (skin_segmentation) to 0.648 (year_prediction). year_prediction's high error confirms that centroids in cannot capture the feature geometry, consistent with its status as the sole LinTS-RQ failure.
Table 10: Normalized reconstruction error at depth 4.
| Dataset | NMSE (d=4) | LinTS-RQ wins? |
|---|---|---|
| skin_seg. | 0.005 | Yes (-96%) |
| kddcup99 | 0.018 | Yes (-16%) |
| airlines | 0.078 | Yes (-3.6%) |
| miniboone | 0.111 | Yes (-10%) |
| covertype | 0.185 | Yes (-15%) |
| beer_rev. | 0.186 | Yes (-2.9%) |
| susy | 0.187 | Yes (-6.1%) |
| poker | 0.196 | Yes (-5.0%) |
| bng_elev. | 0.211 | Yes (-0.2%) |
| bng_letter | 0.293 | Yes (-11%) |
| hepmass | 0.400 | Yes (-1.1%) |
| higgs | 0.431 | Yes (-8.0%) |
| year_pred. | 0.648 | No (+4.5%) |
N Effective Rank and SGD-LinTS Failure
On datasets with effective rank —skin_segmentation (eff. rank 1.3, ) and miniboone (eff. rank 1.1, )—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 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 (red zone), performing worse than context-free TS (diamonds). TS-RQ (circles) is unaffected.
O 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, 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 replay buffer while LinTS-RQ uses fixed memory (Table 2).
Table 11: Per-dataset regret rate (%): LinTS-RQ vs. Doubling-XGB. Negative gap = LinTS-RQ has lower regret.
| Dataset | LinTS-RQ | D-XGB | Gap | Call |
|---|---|---|---|---|
| kddcup99 | 0.2 | 9.0 | -8.8 | Win |
| bng_letter | 46.6 | 56.1 | -9.5 | Win |
| covertype | 23.9 | 28.9 | -5.0 | Win |
| beer_reviews | 83.1 | 85.7 | -2.6 | Win |
| skin_seg | 0.3 | 2.9 | -2.6 | Win |
| susy | 20.3 | 21.7 | -1.4 | Win |
| hepmass | 18.4 | 19.7 | -1.3 | Win |
| bng_elevators | 75.0 | 75.1 | 0.0 | Tie |
| miniboone | 9.9 | 9.8 | +0.1 | Tie |
| higgs | 32.7 | 29.3 | +3.4 | Loss |
| airlines_delay | 39.8 | 36.0 | +3.8 | Loss |
| year_prediction | 97.8 | 93.1 | +4.7 | Loss |
| poker_hand | 46.9 | 41.0 | +6.0 | Loss |
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.
| Dataset | LinTS-RQ | D-NeuralCB | Gap | Call |
|---|---|---|---|---|
| beer_reviews | 83.0 | 87.7 | -4.6 | Win |
| bng_letter | 46.6 | 52.8 | -6.2 | Win |
| covertype | 23.9 | 27.6 | -3.7 | Win |
| kddcup99 | 0.2 | 1.4 | -1.2 | Win |
| skin_seg | 0.3 | 1.6 | -1.3 | Win |
| airlines_delay | 39.8 | 40.2 | -0.4 | Tie |
| bng_elevators | 75.0 | 75.0 | +0.1 | Tie |
| hepmass | 18.4 | 18.2 | +0.1 | Tie |
| higgs | 32.6 | 32.4 | +0.3 | Tie |
| susy | 20.3 | 20.4 | -0.1 | Tie |
| poker_hand | 46.9 | 45.8 | +1.1 | Loss |
| year_prediction | 97.8 | 93.1 | +4.6 | Loss |

Figure 14: Per-dataset regret rate: LinTS-RQ vs. Doubling-XGB.
P 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 t-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.
Q Timing

Figure 16: Wall-clock step per method at adapted DRQm depths. TS-RQ is consistently the cheapest RQ variant (50–750 ). LinTS-RQ on year_prediction (, ) reaches 28 ms.
R Memory Formulas
Model memory = (codebook + model parameters) 8 bytes.
| Component | Parameters | Formula |
|---|---|---|
| Codebook | Shared across arms | |
| TS-RQ | (sum, count) per cell | |
| SGD-LinTS-RQ | (prec, ) vectors per cell | |
| LinTS-RQ | per cell | |
| XGB replay | Grows linearly with |
Adapted depth from shadow promotion varies by dataset (median across 30 seeds). TS-RQ goes deepest (up to on bng_letter); LinTS-RQ stays shallowest (, limited by cascaded convergence).
| Dataset | d | K | TS | TS-RQ | SGD-LinTS | SGD-RQ | LinTS | LinTS-RQ |
|---|---|---|---|---|---|---|---|---|
| airlines_delay | 7 | 2 | 32B | 4.1KB | 224B | 13.1KB | 896B | 29.8KB |
| beer_reviews | 12 | 104 | 1.6KB | 82.5KB | 19.5KB | 627.0KB | 126.8KB | 7.9MB |
| bng_elevators | 18 | 10 | 160B | 9.5KB | 2.8KB | 94.5KB | 26.7KB | 859.5KB |
| bng_letter | 16 | 26 | 416B | 68.0KB | 6.5KB | 742.0KB | 55.2KB | 5.2MB |
| covertype | 54 | 7 | 112B | 68.0KB | 5.9KB | 405.0KB | 162.4KB | 10.2MB |
| hepmass | 27 | 2 | 32B | 27.1KB | 864B | 50.6KB | 11.8KB | 384.8KB |
| higgs | 28 | 2 | 32B | 12.0KB | 896B | 105.0KB | 12.7KB | 619.5KB |
| kddcup99 | 41 | 17 | 272B | 37.5KB | 10.9KB | 358.8KB | 228.7KB | 7.2MB |
| miniboone | 50 | 2 | 32B | 33.8KB | 1.6KB | 62.5KB | 39.8KB | 2.5MB |
| poker_hand | 10 | 9 | 144B | 7.0KB | 1.4KB | 95.0KB | 7.7KB | 250.0KB |
| skin_segmentation | 3 | 2 | 32B | 3.5KB | 96B | 5.6KB | 192B | 6.8KB |
| susy | 18 | 2 | 32B | 16.5KB | 576B | 22.5KB | 5.3KB | 263.2KB |
| year_prediction | 90 | 84 | 1.3KB | 64.5KB | 118.1KB | 3.7MB | 5.2MB | 252.0MB |
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 (§4).
2. Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: §6 discusses three limitations: the squared-loss approximation for binary rewards, the data sufficiency condition (with year_prediction as a concrete failure case), and the dependence on a holdout set for codebook training.
3. 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 C) is conditional on three base-learner convergence properties, which are stated explicitly and verified for all three model classes (Appendix B). Theorem 3.3 (false-promotion control) is proved in Appendix D. 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 C.
4. 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. §4 describes all datasets (publicly available from OpenML), codebook parameters (b=16, depths 1–5), number of seeds (30), and baselines.
5. 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.
6. 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: §4 specifies codebook size (b=16), clipping parameter ( ), Thompson sampling noise scale, and the holdout/bandit split. Appendix tables provide per-dataset details.
7. 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 standard deviation; tables report 95% CIs. The shadow promotion test uses Freedman's martingale inequality with Bonferroni correction at significance level .
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: Section 8 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 G. 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.
15. 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.
16. 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.