Manuscript Offprint
arXiv:2610.13407Accelerating Linear Bandits with Persistent Candidate Sets
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Exhaustive optimistic scoring can make action selection costly in linear bandits with a large fixed set of K actions, requiring score evaluations per round. We introduce Persistent Candidate LinUCB (PC-LINUCB), which maintains k active actions and samples q challengers uniformly from the remaining actions at each round. By scoring only these candidates, PC-LINUCB reduces the number of score evaluations per round to . We establish problem-independent and problem-dependent high-probability regret bounds consisting of a standard linear-bandit learning term and an additive discovery cost of order at fixed confidence. Notably, this additional cost does not grow with the horizon. For fixed gaps and sufficiently long horizons, we establish an regret lower bound under uniform challenger sampling, showing that partial candidate access itself imposes an unavoidable regret cost. Experiments show that PC-LINUCB substantially accelerates LinUCB while maintaining comparable regret, and that the persistent candidate mechanism can extend beyond LinUCB.
1 INTRODUCTION
Bandit algorithms provide a general framework for sequential decision making under uncertainty, where the goal is to find the action (arm) of the largest expected reward. The central challenge is balancing exploration of uncertain actions with exploitation of actions that appear promising. For a finite action set of size K, direct implementations of classical algorithms such as upper confidence bound (UCB) methods (Lai and Robbins, 1985), Thompson sampling (Thompson, 1933; Russo et al., 2018), and LinUCB (Li et al., 2010) typically evaluate or compare all available actions at each round, making the action-selection cost scale linearly with K. This dependence can become prohibitively expensive in large-scale applications such as recommendation systems and online advertising, where the number of candidate actions can reach millions (Sen et al., 2021; Zhu et al., 2022).
We study this large-K computational challenge in the setting of linear bandits, where each action is represented by a feature vector in and its mean reward is determined by an unknown parameter (Dani et al., 2008; Abbasi-Yadkori et al., 2011). For a fixed action set of size , a direct implementation of LinUCB with a dense confidence matrix requires computation to evaluate the uncertainty of one action, where is the feature dimension, leading to an scoring cost per round.
Existing work on computationally efficient linear bandits broadly follows two directions: reducing the cost of scoring each action, or reducing the number of actions that need to be evaluated. The former reduces the dimension-dependent computation through techniques such as random projection, matrix sketching, and low-rank approximation (Yu et al., 2017; Kuzborskij et al., 2019; Chen et al., 2020; Shustova et al., 2025; Wen et al., 2026). The latter reduces the dependence on the action-set size through sublinear search, structured action selection, or subset-based approaches (Jun et al., 2017; Yang et al., 2022; Sen et al., 2021; Zhu et al., 2022; Hanna et al., 2023; Lattimore et al., 2020; Bayati et al., 2020; Purohit et al., 2025).
In this work, we focus on reducing the number of actions evaluated. Reducing the number of scored actions, however, restricts access to the action set: an action excluded from the current candidate set cannot be selected at that round. Constructing an effective subset therefore requires balancing retention and discovery: promising actions should be retained once identified, while actions outside the current subset must still have opportunities to enter.
The optimistic scores of LinUCB provide a natural signal for identifying actions that remain potentially competitive. Motivated by this observation, we propose Persistent Candidate LinUCB (PC-LINUCB), which combines a persistent candidate set with UCB scores in the following way. At each round, it combines an active set of k actions with q challengers sampled uniformly from the remaining actions. A key innovation is our use of clipped scores to guide both action selection and candidate retention: each candidate's score is updated to the minimum of its previous value and the newly evaluated LinUCB score. These scores are non-increasing while preserving optimism on the standard confidence event. Thus, once an action's clipped score falls below the optimal mean reward, it remains below that threshold, whereas an optimal action's clipped score never does. The action with the largest clipped score is selected, and the k candidates with the largest clipped scores form the next active set. Scoring only these candidates reduces the number of score evaluations per round from K to , substantially lowering the cost when .
By using the aforementioned property of the clipped UCB scores, we analyze and derive both problem-independent and problem-dependent regret upper bounds. In each case, the bound separates the standard linear-bandit learning term (Abbasi-Yadkori et al., 2011) from an additive discovery cost of order
This term captures the time required for random challengers to expose an action that remains plausible for optimality and does not grow with the horizon at fixed confidence. We also establish a regret lower bound under uniform challenger sampling. Even if the identity of an initially inactive optimal action is known in advance, the policy cannot select it before it appears among the random challengers. For fixed-gap instances and sufficiently long horizons, this partial-access restriction alone incurs expected regret of order when .
We compare PC-LINUCB with five baselines on controlled synthetic problems and four large action sets derived from real data, and further apply the persistent candidate mechanism to SpectralUCB (Valko et al., 2014). The results show substantial reductions in end-to-end wall-clock time with regret comparable to exhaustive LinUCB, alongside distinct time-regret tradeoffs for methods based on infrequent switching, matrix compression, and elimination. Ablations examine the total scoring budget and its allocation between persistent actions and random challengers. The SpectralUCB application further shows that the persistent candidate mechanism can extend beyond LinUCB.
Our contributions are as follows.
-
We introduce a persistent candidate mechanism guided by clipped scores for linear bandits with large fixed action sets. The clipped scores preserve optimism while remaining non-increasing and guide both action selection and candidate retention, enabling our analysis of partial candidate access.
-
We establish problem-independent and problem-dependent regret upper bounds that separate the cost of learning the linear reward model from an additive cost induced by partial access to the action set.
• We prove a complementary regret lower bound under uniform challenger sampling, showing that partial candidate access itself imposes an unavoidable regret cost of order .
• We empirically demonstrate that PC-LINUCB substantially reduces computation while maintaining comparable regret, examine the tradeoff between candidate budget and performance, and show that the persistent candidate mechanism can extend beyond LinUCB through an application to SpectralUCB.
2.1 Problem Setting
We consider a stochastic linear bandit with a fixed finite action set indexed by . Each action has a known feature vector that remains unchanged throughout the horizon. Its mean reward is determined by a shared unknown parameter :
We assume , , and for every action. At round , the learner selects and observes
where is conditionally R-sub-Gaussian given the history before round t and the selected action . Let
We measure performance by cumulative pseudo-regret:
2.2 Confidence Sets and Optimistic Scores
We use the regularized least-squares estimator and ellipsoidal confidence construction of OFUL (Abbasi-Yadkori et al., 2011) to define the optimistic scores used by PC-LINUCB. For a regularization parameter , define
The initial values are , , and . For a known horizon and confidence level , set
The associated confidence set is
where . The self-normalized confidence bound gives
For each action , define the upper and lower confidence scores
with confidence width
On , holds simultaneously for every action and round. Our algorithm evaluates only for actions in the current candidate set.
2.3 Persistent Candidate LinUCB
Fix an active-set size and a challenger budget such that
The algorithm maintains an active set of size . Choose any initial set with and initialize each action's clipped score as .
At round , define the inactive set
The algorithm samples challengers uniformly from to form the challenger set . Their union with the active set is the candidate set:
Algorithm 1 gives the complete procedure.
Algorithm 1 Persistent Candidate LinUCB (PC-LINUCB)
Require: Features , horizon , , , ,
1: , ,
2: Choose with
3: for every
4: for do
5:
6: Draw uniformly among the -subsets of
7:
8: for do
9:
10:
11: end for
12:
13: Play and observe
14: Let be the actions in with largest
15:
16:
17:
18: end for
Computational cost. With a dense inverse covariance matrix, evaluating one optimistic score costs . Scoring only the actions in reduces the per-round scoring cost from to . Model updates and candidate maintenance add no further dependence on per round.
The parameters and control retention and discovery, respectively: increasing retains more promising actions, while increasing searches the inactive set more quickly. The following sections bound the regret when and establish the discovery cost imposed by this candidate-access mechanism.
3 REGRET ANALYSIS
3.1 Main Results
We assume that at least one action is suboptimal and define ; otherwise, every action is optimal and the regret is trivially zero.
Theorem 1 (Problem-independent regret). Fix , , , and , and let be defined by Eq. (5). Then, with probability at least , Algorithm 1 satisfies
(11)
Theorem 2 (Problem-dependent regret). Under the conditions of Theorem 1, with probability at least , Algorithm 1 satisfies
Note that the dependence on enters through the confidence radius in Eq. (5). Both bounds consist of a standard linear-bandit estimation term and the same additive discovery term. At a fixed confidence level, the latter depends on , , and , but not on the horizon . It accounts for the regret induced by partial access to the action set. Note that we can derive an expected regret by setting and using the fact that the regret per round is constant (at most 2).
3.2 Proof Sketch
We outline the main steps behind Theorems 1 and 2. The analysis separates the regret on rounds whose candidate sets contain an alive action from the cost of rounds whose candidate sets contain no alive action.
Alive actions. Work on the confidence event . Let denote the clipped score of action after round , and define
Actions in are called alive. On , every UCB evaluated for an optimal action is at least . The minimum update of the clipped scores therefore ensures that an optimal action remains alive at every round. Moreover, clipped scores are non-increasing, so
Thus, once an action becomes dead, it remains dead. Define
Hence, counts the rounds up to time for which the refreshed candidate set contains no alive action. We call round an empty-candidate round if , i.e., the refreshed candidate set contains no alive action, and a nonempty-candidate round otherwise.
Empty-candidate rounds. Set . Conditional on the history before is sampled, any fixed set of inactive actions is missed by the challenger set with probability
For , set
The number of inactive alive actions decreases in two ways. First, an inactive alive action becomes dead if it is sampled and its refreshed UCB falls below . Second, an alive candidate that survives the refresh may enter the active set through the top- update, thereby leaving the inactive alive set. To account for these changes together with the occurrence of empty-candidate rounds, we introduce the potential
where tracks the remaining inactive alive actions and accounts for the accumulated empty-candidate rounds. The key step is to show that their interaction makes a nonnegative supermartingale:
On , an optimal action remains alive. If round is an empty-candidate round, this action is not retained in , and hence . Let denote the time of the th empty-candidate round. On ,
The maximal inequality for nonnegative supermartingales, together with , therefore gives
Taking
gives, with joint failure probability at most on ,
If , all inactive actions are sampled at every round, so on .
Regret decomposition. Suppose . The refreshed candidate set then contains an alive action with clipped score at least . Since the algorithm selects the candidate with the largest clipped score, the selected action also has refreshed clipped score at least
. This clipped score is at most the current UCB . Together with the lower confidence bound on ,
Since , we also have . On an empty-candidate round we use this worst-case bound. Summing over rounds gives
For the problem-dependent bound, every suboptimal action satisfies . Hence, on a nonempty-candidate round,
while an optimal action incurs zero regret. Therefore,
Confidence widths. Let
The elliptical-potential lemma gives
Since ,
Cauchy–Schwarz and Eq. (22) then imply
Similarly,
Combining Eqs. (19), (20), and (23) gives the problem-independent bound. Combining Eqs. (19), (21), and (24) gives the problem-dependent bound. Since and the empty-candidate bound has joint failure probability at most on , both bounds hold with probability at least .
4 TRADEOFF BETWEEN ACCELERATION AND REGRET
Theorems 1 and 2 separate the standard linear-bandit learning term from an additive term induced by partial candidate access. The latter is obtained by bounding , the number of rounds in which the candidate set contains no alive action, and scales as . This section asks whether uniform partial access itself imposes an unavoidable regret cost with the same dependence on , and .
4.1 Access-Induced Regret
Consider a general class of policies that maintain active actions and sample challengers uniformly from the remaining actions at each round. The union of the active and challenger sets forms the candidate set, from which the policy must choose both the played action and the next active set. Apart from this access restriction, the policy is unrestricted. Algorithm 1 belongs to this class.
Suppose the unique optimal action is initially inactive, and let
be the first round in which it appears in the challenger set. Before round , the candidate-access mechanism prevents the policy from selecting , even if its identity is known in advance. Let and define the access-induced regret
On , the optimal action is unavailable and every action the policy can select is suboptimal, with gap at least . Hence, pathwise,
Theorem 3 (Unavoidable Regret from Uniform Challenger Sampling). Suppose the optimal action is unique and initially inactive. Then, for every , every policy in this class satisfies
Moreover, if , then
Theorem 3 isolates the regret induced solely by the candidate-access restriction. Until its first appearance,

Figure 1: Six-method comparison on synthetic action sets. Columns show and , with and for PC-LINUCB. Top: cumulative pseudo-regret (symlog scale). Bottom: end-to-end speedup over LinUCB (logarithmic scale). Curves average ten repeats; bands show SE.
the optimal action remains inactive and has probability of being sampled as a challenger in each round. Hence, is geometrically distributed.
The access event considered here is weaker than the empty-candidate event used to derive the regret bounds in Theorems 1 and 2. On the confidence event , the optimal action is always alive, and therefore
The access event is weaker because the optimal action may be absent while the candidate set still contains suboptimal alive actions. Such rounds do not contribute to , and their regret can still be controlled by the confidence-width argument. Thus, Theorem 3 does not provide a lower bound on or on the corresponding additive term itself. Instead, it shows that uniform partial access alone imposes an expected regret cost of order for fixed and sufficiently long horizons.
4.2 Acceleration and Access-Induced Regret
Uniform partial access reduces computation by scoring only candidate actions per round instead of all K actions. Ignoring the per-action scoring cost common to both methods, we define the nominal acceleration factor as
This quantity measures the reduction in the number of action scores evaluated per round; it does not include the model-update cost shared by exhaustive and candidate-based methods.
When and , Theorem 3 gives
Thus, within this policy class, increasing the nominal acceleration is accompanied by a larger lower bound on the expected access-induced regret. This tradeoff applies in particular to our PC-LINUCB and arises from restricting the number of actions made available to the policy at each round.
4.3 Active Set and Challenger Budget
The parameters k and q both contribute to the per-round scoring budget , but they serve different roles in the candidate mechanism. Increasing k retains more actions in the active set, whereas increasing q explores the inactive set more aggressively and reduces the waiting time until an inactive optimal action becomes accessible. Accordingly, the access-induced lower bound depends directly on , while the nominal acceleration depends on the total budget . Section 5.3 examines these effects empirically by varying both the total candidate budget and its allocation between k and q.
5 EXPERIMENTS
We compare cumulative pseudo-regret and wall-clock time, including initialization and all online rounds, on
PC-LinUCB ◇- LinUCB △- RS-OFUL □ CBSCFD ◇- PSI-LinUCB ▼- Sub-Elim
(a) MovieLens
(b) SGEMM
(c) NAS-Bench
(d) DOCKSTRING

Round

Round

Round

Round
Speedup
Speedup
Speedup
Speedup
Figure 2: Six-method comparison on real action features with linear simulated rewards, , and . PC-LINUCB uses and . Top: cumulative pseudo-regret (symlog scale). Bottom: end-to-end speedup over LinUCB (logarithmic scale). Curves average five repeats; bands and error bars show SE.
synthetic and four semi-synthetic benchmarks. The latter use real action features and linear rewards fitted to source labels, with Gaussian noise. Appendix C gives experimental details; Appendix C.5 reports timing and speedups.
All experiments use fixed action features, for which Sherman–Morrison caching reduces the per-action confidence cost of LinUCB from to but must refresh all K cached widths every round, so it does not directly combine with candidate-based scoring. To isolate the gain from reducing the dependence on K, we use standard dense score evaluation for all methods.
Baselines. We compare PC-LINUCB with exhaustive LinUCB (Li et al., 2010), rarely switching OFUL (RS-OFUL; Abbasi-Yadkori et al., 2011), CBSCFD (Chen et al., 2020), PSI-LinUCB (Shustova et al., 2025), and Sub-Elim (Yang et al., 2022). All methods use and the exploration coefficient defined in Eq. (5), with noise parameter , norm bounds , and confidence level .
5.1 Synthetic Experiments
Setup. We sample the reward parameter and action vectors independently as
where , and add Gaussian reward noise of standard deviation 0.05. We use and , with ten paired repeats. For PC-LINUCB, we define the total candidate budget as and use , giving .
Results. In Figure 1, PC-LINUCB speeds up LinUCB by and for and , respectively, while changing mean final regret by only and . RS-OFUL achieves larger speedups of and , but increases mean final regret by about 31%. At , CBSCFD achieves lower mean regret than PC-LINUCB, but at substantially higher computational cost.
5.2 Semi-Synthetic Experiments
Setup. We use MovieLens-20M (Vig et al., 2012; Harper and Konstan, 2015), UCI SGEMM (Paredes and Ballester-Ripoll, 2017), NAS-Bench-101 (Ying et al., 2019), and DOCKSTRING (García-Ortega et al., 2022), with K = 10,381, 241,600, 423,624, and 260,155, respectively. Each action set has d = 128 features. Each benchmark uses T = 20,000 and five paired repeats, with online rewards generated as
PC-LINUCB uses .
Results. In Figure 2, PC-LINUCB is the fastest of the six methods, with speedups over LinUCB and mean final regret differing by at most 1.2%. CBSCFD achieves lower regret on all four datasets, at 44.6–63.0% of LinUCB's regret, but takes 14.6–22.1 times as long as PC-LINUCB.

(a)
(b)
Figure 3: PC-LINUCB ablations. (a) The total candidate budget varies with . (b) The persistent share varies with and fixed . Top: percentage change in mean final regret relative to LinUCB. Bottom: speedup over LinUCB.
5.3 Ablation Experiments
Both ablations use the synthetic settings with ten paired repeats per configuration, varying only the candidate budget or its allocation.
Candidate budget. We vary with in both synthetic settings. Figure 3 (a) shows that increasing the budget reduces speedup from to for and from to for . The mean regret penalty for declines from 2.9% to approximately zero, while regret at varies little.
Budget allocation. We fix the total candidate budget at and vary the persistent share , with . Since the total scoring budget is fixed, the speedup remains nearly unchanged across allocations. Figure 3 (b) shows that, for , mean final regret increases as a larger fraction of the budget is assigned to the active set, whereas for it remains nearly unchanged.
5.4 Application to Spectral Bandits
To examine whether the persistent candidate mechanism extends beyond LinUCB, we apply it to SpectralUCB (Valko et al., 2014) on a synthetic graph bandit. We modify only the action-scoring procedure, replacing exhaustive scoring with the same persistent candidate mechanism used in PC-LINUCB. We consider graph nodes over rounds and compare exhaustive SpectralUCB with three candidate budgets, , using . Each configuration is evaluated over ten paired repeats.

Figure 4: Persistent candidate mechanism applied to SpectralUCB. Curves show mean cumulative pseudo-regret over ten runs for with ; labels show speedup over SpectralUCB.
Figure 4 shows that all three candidate budgets achieve nearly identical cumulative pseudo-regret to exhaustive SpectralUCB while providing substantial end-to-end speedups. This result illustrates that the persistent candidate mechanism can also serve as an efficient action-selection mechanism beyond LinUCB.
6 LIMITATIONS
Our method relies on a fixed action set with fixed features, allowing clipped scores and persistent candidates to remain valid across rounds. It does not directly extend to contextual bandits, where changing actions or features can invalidate previously stored scores and candidates.
AI USE STATEMENT
We used AI tools to assist with code development, experiment execution and visualization, as well as language polishing of the manuscript. AI tools were also used to review the theoretical arguments for potential errors. In particular, an earlier version of Lemma 6 and its proof was incorrect, and GPT-6 Pro assisted in identifying the issue and developing the corrected proof presented in this paper. All AI-assisted outputs, including experimental code and theoretical arguments, were reviewed and verified by the authors.
References
Abbasi-Yadkori, Y., Pál, D., and Szepesvári, C. (2011). Improved algorithms for linear stochastic bandits. In Advances in Neural Information Processing Systems, volume 24, pages 2312–2320.
Bayati, M., Hamidi, N., Johari, R., and Khosravi, K. (2020). Unreasonable effectiveness of greedy algorithms in multi-armed bandit with many arms. In Advances in Neural Information Processing Systems, volume 33, pages 1713–1723.
Chen, C., Luo, L., Zhang, W., Yu, Y., and Lian, Y. (2020). Efficient and robust high-dimensional linear contextual bandits. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, pages 4259–4265.
Dani, V., Hayes, T. P., and Kakade, S. M. (2008). Stochastic linear optimization under bandit feedback. In Proceedings of the 21st Annual Conference on Learning Theory, pages 355–366.
García-Ortega, M., Simm, G. N. C., Tripp, A. J., Hernández-Lobato, J. M., Bender, A., and Bacallado, S. (2022). DOCKSTRING: Easy molecular docking yields better benchmarks for ligand design. Journal of Chemical Information and Modeling, 62(15):3486–3502.
Hanna, O., Yang, L., and Fragouli, C. (2023). Efficient batched algorithm for contextual linear bandits with large action space via soft elimination. In Advances in Neural Information Processing Systems, volume 36.
Harper, F. M. and Konstan, J. A. (2015). The MovieLens datasets: History and context. ACM Transactions on Interactive Intelligent Systems, 5(4):19:1–19:19.
Jun, K.-S., Bhargava, A., Nowak, R., and Willett, R. (2017). Scalable generalized linear bandits: Online computation and hashing. In Advances in Neural Information Processing Systems, volume 30, pages 99–109.
Kuzborskij, I., Cella, L., and Cesa-Bianchi, N. (2019). Efficient linear bandits through matrix sketching.
In Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics, volume 89 of Proceedings of Machine Learning Research, pages 177–185. PMLR.
Lai, T. L. and Robbins, H. (1985). Asymptotically efficient adaptive allocation rules. Advances in Applied Mathematics, 6(1):4–22.
Lattimore, T., Szepesvári, C., and Weisz, G. (2020). Learning with good feature representations in bandits and in RL with a generative model. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 5662–5670. PMLR.
Li, L., Chu, W., Langford, J., and Schapire, R. E. (2010). A contextual-bandit approach to personalized news article recommendation. In Proceedings of the 19th International Conference on World Wide Web, pages 661–670. ACM.
Paredes, E. and Ballester-Ripoll, R. (2017). SGEMM GPU kernel performance. UCI Machine Learning Repository.
Purohit, K., V, V., Bhattacharya, S., and Anand, A. (2025). Sample efficient demonstration selection for in-context learning. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 49959–49982. PMLR.
Russo, D. J., Van Roy, B., Kazerouni, A., Osband, I., and Wen, Z. (2018). A tutorial on Thompson sampling. Foundations and Trends in Machine Learning, 11(1):1–96.
Sen, R., Rakhlin, A., Ying, L., Kidambi, R., Foster, D., Hill, D. N., and Dhillon, I. S. (2021). Top-k extreme contextual bandits with arm hierarchy. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 9422–9433. PMLR.
Shustova, E., Sheshukova, M., Samsonov, S., and Frolov, E. (2025). Scalable LinUCB: Low-rank design matrix updates for recommenders with large action spaces. arXiv preprint arXiv:2510.19349.
Thompson, W. R. (1933). On the likelihood that one unknown probability exceeds another in view of the evidence of two samples. Biometrika, 25(3/4):285–294.
Valko, M., Munos, R., Kveton, B., and Kocák, T. (2014). Spectral bandits for smooth graph functions. In International conference on machine learning, pages 46–54. PMLR.
Vig, J., Sen, S., and Riedl, J. (2012). The tag genome: Encoding community knowledge to support novel interaction. ACM Transactions on Interactive Intelligent Systems, 2(3):13:1–13:44.
Wen, D., Yin, H., Zhang, X., Zhao, P., Zhang, L., and Wei, Z. (2026). Revisiting matrix sketching in linear bandits: Achieving sublinear regret via dyadic block sketching. In The Fourteenth International Conference on Learning Representations.
Yang, S., Ren, T., Shakkottai, S., Price, E., Dhillon, I. S., and Sanghavi, S. (2022). Linear bandit algorithms with sublinear time complexity. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 25241–25260. PMLR.
Ying, C., Klein, A., Christiansen, E., Real, E., Murphy, K., and Hutter, F. (2019). NAS-Bench-101: Towards reproducible neural architecture search. In
Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 7105–7114. PMLR.
Yu, X., Lyu, M. R., and King, I. (2017). CBRAP: Contextual bandits with RAndom Projection. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, pages 2859–2866.
Zhu, Y., Foster, D. J., Langford, J., and Mineiro, P. (2022). Contextual bandits with large action spaces: Made practical. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 27428–27453. PMLR.
Appendix Contents
• Appendix A: Proofs of the Regret Upper Bounds
• Appendix B: Proof of the Access-Induced Regret Lower Bound
• Appendix C: Experimental Details
– Appendix C.1: Data Construction
– Appendix C.2: Method Parameters
– Appendix C.3: Spectral Bandit Application
– Appendix C.4: Timing
– Appendix C.5: Detailed Timing and Speedup Results
A PROOFS OF THE REGRET UPPER BOUNDS
Let and denote the values of the clipped score immediately before and after the refresh in round (i.e. Step 10 in Algorithm 1), respectively. Thus and
The algorithm selects an action and retains the next active set according to
After round t, these scores are carried into the next round as
Every refreshed candidate score is at most its current UCB score:
Define the alive set from the clipped scores after round t, and let be the number of inactive alive actions:
On the confidence event from Eq. (6), every evaluated upper bounds , so for every . Since the clipped scores never increase,
An action that becomes dead therefore remains dead.
Define the empty-candidate indicator after the round-t refresh and its cumulative count by
We call round an empty-candidate round if , i.e., the refreshed candidate set contains no alive action, and a nonempty-candidate round otherwise. When contains an alive action after refresh, the selected clipped score is at least , allowing us to bound instantaneous regret by the current confidence width. For the rounds counted by , we use the worst-case regret bound.
Lemma 4 (Regret reduction). On ,
where the second inequality applies under the assumptions of Theorem 2.
Proof. Fix a round with , and choose . Equations (33) and (35) give . Since the algorithm maximizes the refreshed clipped score over ,
Combining Eq. (34) for with the lower confidence bound on gives
Because all mean rewards lie in , . Therefore, on a nonempty-candidate round , ; on an empty-candidate round , the bound remains valid. Summing these two cases proves Eq. (38). For a suboptimal , , so on a nonempty-candidate round,
When is optimal, its regret is zero and the squared-width bound also holds. Summing over rounds proves Eq. (39).
The two bounds in Lemma 4 will be used separately below: Eq. (38) yields the problem-independent bound in Theorem 1, whereas Eq. (39), together with the minimum gap , yields the problem-dependent bound in Theorem 2.
Set , and let denote the history available immediately before is drawn. This history determines the current scores , including those the algorithm does not evaluate. The next lemma bounds the probability that the challenger set misses a specified subset of inactive actions.
Lemma 5 (One-step alive-action hit probability). Suppose , and let be an -measurable set with . Then, conditionally on ,
where when .
Proof. Since is a uniformly sampled -subset of the inactive actions, the exact miss probability is the ratio in Eq. (43). If , the bound is immediate. Otherwise,
with an empty product equal to one.
We bound the number of empty-candidate rounds using a potential based on the inactive alive actions. The potential accounts for both actions that die upon refresh and those retained in the active set. The argument uses the fact that clipped scores never increase, so a dead action never becomes alive again and the alive sets are nested as in Eq. (36).
Lemma 6 (Inactive-alive potential). Suppose . Let be the probability that a given inactive action is sampled, and set . Then
is a nonnegative supermartingale with .
Proof. Fix a round and condition on . Write for the number of inactive alive actions before is sampled. Let be the number of actions in that remain alive after the round- refresh. Since every action in is refreshed, is determined by .
Partition the inactive alive actions into actions satisfying and actions satisfying . Thus, an action in the first group remains alive if sampled and refreshed, whereas an action in the second group becomes dead if sampled and refreshed. Both groups are fixed before is sampled. Let and be their respective counts in .
The refresh removes exactly of the initially inactive alive actions. Among the candidates, exactly actions are alive. Since every alive candidate has clipped score at least and every dead candidate has clipped score below , the top- update retains exactly alive actions. Therefore,
Case 1: . Then , and since , Eq. (46) gives . Hence
Case 2: . In this case . Write . Lemma 5 gives . For ,
because . The same inequality holds for , since then .
Uniform sampling gives . Moreover, Eq. (46) becomes . Since ,
On , all actions in the first group remain inactive and alive. For each of the other actions, contributing to requires that it not be sampled, which has probability . Hence,
Since , Eqs. (48)–(50) give
(51)
Thus Eq. (47) holds in both cases.
Since and is -measurable,
(52)
Since , is therefore a nonnegative supermartingale. Finally, .
On , an empty-candidate round leaves the optimal action alive and inactive, so whenever such a round occurs. We use this observation to convert the potential bound into a bound on the total number of empty-candidate rounds.
Lemma 7 (Number of empty-candidate rounds). For every ,
Proof. First suppose and fix an integer . On , let be the th empty-candidate round. Then , giving
For any nonnegative supermartingale and any , the maximal inequality states that . Indeed, stopping at the first crossing of (or at if no crossing occurs) gives a stopped value at least on the crossing event and nonnegative otherwise, while its expectation is at most . Here, Eq. (54) implies that empty-candidate rounds on force such a crossing with . Since , we obtain
(55)
Here, the last inequality uses and : . Taking
makes the right-hand side of Eq. (55) at most . This proves the claim for . If , then at every round. On , the optimal action is always alive, so . The bound follows in this case as well.
Lemma 4 bounds regret on nonempty-candidate rounds through the confidence widths of the played actions. We now bound these widths using the elliptical potential.
Let
The standard elliptical-potential lemma (Abbasi-Yadkori et al., 2011, Lemma 11) gives
The problem-independent bound uses the linear sum of capped confidence widths.
Proof of Theorem 1. Since ,
Summing over and applying the Cauchy–Schwarz inequality gives
(60)
Together with Eq. (58), this yields
By Lemma 7, on except on an event of probability at most ,
Combining Eq. (61) and Eq. (62) with the problem-independent regret reduction Eq. (38) gives
(63)
Finally, , while Lemma 7 ensures that
A union bound therefore shows that Eq. (63) holds with probability at least completing the proof.
The problem-dependent bound instead uses the squared capped widths in Eq. (39).
Proof of Theorem 2. Again using ,
Summing over and applying Eq. (58) gives
(66)
On , whenever the bound in Lemma 7 holds, combining Eq. (66) with the problem-dependent regret reduction Eq. (39) yields
(67)
As above, , and Lemma 7 gives
Hence, by a union bound, Eq. (67) holds with probability at least completing the proof.
B PROOF OF THE ACCESS-INDUCED REGRET LOWER BOUND
The lower bound follows from the waiting time until the initially inactive optimal action first enters the challenger set. Before this time, the candidate-access restriction prevents the policy from selecting the optimal action, regardless of its knowledge of the reward model.
Proof of Theorem 3. Set . Recall that denotes the first round in which the initially inactive optimal action appears in the challenger set. Since the next active set is chosen from the current candidate set, remains inactive until round . Conditional on and , it is therefore one of the inactive actions. Uniform sampling without replacement gives
Iterating Eq. (69) yields
By the definition of the access-induced regret,
Moreover, Eq. (26) gives pathwise. Taking expectations and using Eq. (70),
(72)
Substituting establishes Eq. (27).
For the second claim, let . If , then and
Using for ,
(74)
Substituting proves Eq. (28) and completes the proof.
C EXPERIMENTAL DETAILS
C.1 Data Construction
Synthetic instances follow the construction in Section 5.1. For the semi-synthetic benchmarks, we construct features from the full action set without using source scores and fit a separate reward parameter for each dataset.
MovieLens-20M. Each action is a movie represented by its 1,128 Tag Genome relevance scores. We center the feature matrix and retain the first 128 principal components without whitening. We divide every feature vector by the maximum row norm of the full matrix, preserving their relative lengths. A user's observed movie ratings provide the source labels. We rank users by the number of ratings on Tag Genome movies and sample ten from the top 100 without replacement using seed 12345. The experiments use the first five sampled users: 12131, 91193, 27469, 50297, and 52009.
UCI SGEMM. Each action is a GPU kernel configuration with 14 tuning parameters. We apply a base-two logarithm to the first ten parameters and standardize all 14 columns. The feature map contains these coordinates, their squares, all pairwise products, and nine products for . We standardize the resulting 128 columns and divide all rows by their maximum norm. The source score is the negative natural logarithm of the mean of four recorded runtimes for the GTX 680 task with matrix size 2048.
NAS-Bench-101. Each action is an architecture evaluated on CIFAR-10 for 108 epochs. Features encode operations at each vertex, directed edges with endpoint operations, and input-to-output paths. Each token group is weighted by the inverse square root of its token count and mapped by a deterministic signed hash into 127 coordinates. One additional coordinate records graph size. Each feature vector is normalized to unit norm. The source score is the final validation accuracy averaged over three training repeats.
DOCKSTRING. Each action is a molecule represented by a radius-two sparse Morgan count fingerprint computed from its SMILES representation. We apply a deterministic signed hash into 128 coordinates and normalize each feature vector to unit norm. We use PPARD, ABL1, ADAM17, ADRB1, and ADRB2, the first five targets in the source table. Source labels are negative docking scores; only finite labels enter regression, while all molecules remain available actions.
Licenses. MovieLens-20M is distributed by GroupLens under its usage license for non-commercial research use. UCI SGEMM is licensed under CC BY 4.0. NAS-Bench-101 and DOCKSTRING are released under the Apache License 2.0.
Reward parameters. For each dataset, let be the labelled actions used for fitting, and let denote the corresponding source scores standardized using this subset. We solve
The offline ridge penalty is 1, and the intercept is unpenalized. Online means are , with independent Gaussian reward noise of standard deviation 0.05. The bandit environments use all available labels for fitting.
Table 1: Held-out linearity diagnostics for the semi-synthetic action features. measures value prediction, and Spearman's measures ranking agreement. Entries with multiple instances report the mean sample standard deviation over five users or targets.
| Dataset | Held-out | Held-out | |
|---|---|---|---|
| MovieLens-20M | 10,381 | ||
| UCI SGEMM | 241,600 | ||
| NAS-Bench-101 | 423,624 | ||
| DOCKSTRING | 260,155 |
Linearity diagnostic. We fit the ridge model on a random 20% of the labelled actions and evaluate the unnormalized predictor, including its intercept, on the remaining 80%. Table 1 reports the held-out diagnostics.
C.2 Method Parameters
All methods use the same bandit-level parameters specified below. For method-specific hyperparameters, we use fixed representative configurations rather than tuning each method separately for individual datasets or experimental settings. We follow the same principle for PC-LINUCB, whose candidate budget is fixed within each experimental setting. The exact configurations used in our experiments are reported below.
We set and use the same fixed exploration coefficient from Eq. (5) across all methods. With , , and , this coefficient is approximately 1.0790 for synthetic , 1.9260 for synthetic , and 1.9242 for the semi-synthetic benchmarks. This shared coefficient is used with each method's own confidence-score construction.
PC-LinUCB and RS-OFUL. PC-LINUCB uses the candidate budgets specified in the main text. RS-OFUL recomputes its action when the design-matrix determinant increases by a factor greater than two; it updates its sufficient statistics after every observation.
CBSCFD and PSI-LinUCB. CBSCFD uses sketch size for and for . PSI-LinUCB uses rank and , respectively, in the shared-parameter online setting: one global state is updated after each selected action and reward. Both methods score the full action set using their compressed matrix representations.
Sub-Elim. We use an HNSW shortlist backend to approximately retrieve the actions required by the Sub-Elim search step, with shortlist size 30, search parameter ef = 100, graph connectivity , and construction parameter . The confidence multiplier equals the shared exploration coefficient, , and the maximum stage is 8 for and 9 for . The initial threshold is -1 in all settings.
C.3 Spectral Bandit Application
We construct a weighted Erdős–Rényi graph with nodes and edge probability 0.03, with edge weights sampled independently from Uniform[0, 1). We use the lowest-frequency eigenvectors of the unnormalized graph Laplacian as the reduced spectral representation. The mean-reward function is generated from the first five spectral components, whose coefficients are sampled independently from and rescaled so that the maximum absolute mean reward is one. Online rewards include independent Gaussian noise with standard deviation 0.01.
SpectralUCB uses spectral regularization and the effective-dimension confidence construction, with , , and the exact smoothness norm of the synthetic reward function. Each repeat independently generates the graph and reward function, while all configurations within a repeat share the graph, spectral representation, reward function, and reward-noise sequence. Timing excludes the common graph construction and eigendecomposition.
C.4 Timing
Paired runs. All experiments use master seed 12345. Each synthetic configuration uses ten independently generated instances. For the semi-synthetic experiments, the five repeats correspond to five different MovieLens users or DOCKSTRING targets, and five repetitions of the fixed SGEMM and NAS-Bench-101 environments. Within each repeat, all methods share the same action features, reward parameter, mean rewards, and round-wise Gaussian noise sequence. Instance generation, initial candidate selection, noise generation, and method-specific randomness use separate random streams derived from the common seed.
Timing. All methods run serially on the same server equipped with an AMD Ryzen Threadripper 7960X CPU (24 cores, 48 threads) and 251 GiB of memory, with BLAS restricted to one thread. Their execution order rotates cyclically by repetition index. We measure elapsed wall-clock time using a monotonic high-resolution timer. The timed interval starts before method initialization and ends after the final online round. It includes model initialization, candidate-pool and clipped-score construction, method-specific search-index construction, action selection, pseudo-regret bookkeeping, reward observation, and model updates. Dataset loading, feature construction, reward-parameter fitting, noise generation, numerical-library warmup, initial active-set sampling, and output serialization occur outside the timed interval.
Reported statistics. Cumulative pseudo-regret curves report the mean over repeats with bands of standard error (SE), where the SE is the sample standard deviation divided by . Speedup is the ratio of mean LinUCB wall time to mean method wall time. For paired measurements and and ratio , we estimate its SE as
where SD denotes the sample standard deviation. For speedup, is the LinUCB wall time and is the method wall time. For the ablations, the reported final-regret change is
Writing , its SE is
All plotted error bars represent SE. The held-out diagnostics in Table 1 instead report sample standard deviations across users or targets.
C.5 Detailed Timing and Speedup Results
Tables 2–12 report the absolute wall-clock times and speedups for all experiments. Initialization and online times are means across repeats; total times and speedups are reported as mean one standard error and ratio of means one paired standard error, respectively, using the definitions in Appendix C.4. Initialization is measured in milliseconds, while online and total times are measured in seconds. Initialization time is the difference between the recorded total and online times. The online interval includes action selection, reward observation, regret bookkeeping, and model updates; these operations were not timed separately. Speedups are relative to LinUCB, or SpectralUCB for the spectral experiment. Shared data preparation is excluded. Each ablation configuration uses its own paired LinUCB runs. The main comparisons and ablations were timed in separate batches; each speedup uses the paired baseline from the same batch.
The spectral experiment additionally records a shared preparation time of seconds (mean one standard error over ten repeats), covering graph construction, eigendecomposition, feature and reward construction, noise generation, and initial-permutation generation. This shared cost is excluded from Table 12; its individual components were not timed separately.
Table 2: Synthetic comparison with , , , and ten paired repeats. PC-LINUCB uses .
| Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|
| PC-LINUCB | ||||
| LinUCB | ||||
| RS-OFUL | ||||
| CBSCFD | ||||
| PSI-LinUCB | ||||
| Sub-Elim |
Table 3: Synthetic comparison with , , , and ten paired repeats. PC-LINUCB uses .
| Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|
| PC-LINUCB | ||||
| LinUCB | ||||
| RS-OFUL | ||||
| CBSCFD | ||||
| PSI-LinUCB | ||||
| Sub-Elim |
Table 4: MovieLens-20M comparison with , , , and five paired repeats. PC-LINUCB uses .
| Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|
| PC-LINUCB | ||||
| LinUCB | ||||
| RS-OFUL | ||||
| CBSCFD | ||||
| PSI-LinUCB | ||||
| Sub-Elim |
Table 5: UCI SGEMM comparison with , , , and five paired repeats. PC-LINUCB uses .
| Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|
| PC-LINUCB | 15.488 | 42.573 | ||
| LinUCB | 0.087 | 3182.931 | ||
| RS-OFUL | 0.091 | 138.903 | ||
| CBSCFD | 16.804 | 914.613 | ||
| PSI-LinUCB | 16.747 | 1096.383 | ||
| Sub-Elim | 373.000 | 1232.161 |
Table 6: NAS-Bench-101 comparison with , , , and five paired repeats. PC-LINUCB uses .
| Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|
| PC-LINUCB | 25.772 | 84.216 | ||
| LinUCB | 0.127 | 5564.294 | ||
| RS-OFUL | 0.118 | 225.524 | ||
| CBSCFD | 29.144 | 1556.777 | ||
| PSI-LinUCB | 28.680 | 1848.407 | ||
| Sub-Elim | 638.478 | 3459.211 |
Table 7: DOCKSTRING comparison with , , , and five paired repeats. PC-LINUCB uses .
| Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|
| PC-LINUCB | 15.972 | 43.211 | ||
| LinUCB | 0.091 | 3368.120 | ||
| RS-OFUL | 0.082 | 138.386 | ||
| CBSCFD | 17.620 | 953.688 | ||
| PSI-LinUCB | 17.721 | 1100.410 | ||
| Sub-Elim | 394.129 | 2516.168 |
Table 8: Candidate-budget ablation with , , , and ten paired repeats per configuration. PC-LINUCB uses .
| Configuration | Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|---|
| PC-LINUCB | 0.260 | 0.555 | |||
| LinUCB | 0.018 | 4.570 | |||
| PC-LINUCB | 0.265 | 0.639 | |||
| LinUCB | 0.017 | 4.537 | |||
| PC-LINUCB | 0.259 | 0.868 | |||
| LinUCB | 0.017 | 4.539 | |||
| PC-LINUCB | 0.256 | 1.242 | |||
| LinUCB | 0.019 | 4.511 | |||
| PC-LINUCB | 0.259 | 1.928 | |||
| LinUCB | 0.018 | 4.536 |
Table 9: Candidate-budget ablation with , , , and ten paired repeats per configuration. PC-LINUCB uses .
| Configuration | Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|---|
| PC-LINUCB | 0.572 | 7.253 | |||
| LinUCB | 0.024 | 356.727 | |||
| PC-LINUCB | 0.572 | 11.969 | |||
| LinUCB | 0.023 | 361.569 | |||
| PC-LINUCB | 0.565 | 23.762 | |||
| LinUCB | 0.025 | 360.317 | |||
| PC-LINUCB | 0.677 | 43.872 | |||
| LinUCB | 0.031 | 367.107 | |||
| PC-LINUCB | 0.644 | 83.311 | |||
| LinUCB | 0.028 | 372.615 |
Table 10: Budget-allocation ablation with , , , and ten paired repeats per configuration. PC-LINUCB uses .
| Configuration | Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|---|
| PC-LINUCB | 0.269 | 0.891 | |||
| LinUCB | 0.021 | 4.601 | |||
| PC-LINUCB | 0.272 | 0.879 | |||
| LinUCB | 0.021 | 4.601 | |||
| PC-LINUCB | 0.266 | 0.869 | |||
| LinUCB | 0.021 | 4.534 | |||
| PC-LINUCB | 0.273 | 0.858 | |||
| LinUCB | 0.022 | 4.552 | |||
| PC-LINUCB | 0.287 | 0.834 | |||
| LinUCB | 0.023 | 4.553 |
Table 11: Budget-allocation ablation with , , , and ten paired repeats per configuration. PC-LINUCB uses .
| Configuration | Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|---|
| PC-LINUCB | 0.814 | 24.487 | |||
| LinUCB | 0.032 | 381.932 | |||
| PC-LINUCB | 0.609 | 23.652 | |||
| LinUCB | 0.029 | 356.097 | |||
| PC-LINUCB | 0.649 | 23.742 | |||
| LinUCB | 0.028 | 362.568 | |||
| PC-LINUCB | 0.601 | 23.396 | |||
| LinUCB | 0.027 | 356.435 | |||
| PC-LINUCB | 0.525 | 22.124 | |||
| LinUCB | 0.022 | 341.670 |
Table 12: Spectral comparison with , , , and ten paired repeats. PC-SpectralUCB uses , , and at budgets of , , and , respectively.
| Method | Init. (ms) | Online (s) | Total (s) | Speedup |
|---|---|---|---|---|
| SpectralUCB | 0.050 | 736.438 | ||
| PC-SpectralUCB (1%) | 1.247 | 10.490 | ||
| PC-SpectralUCB (5%) | 1.301 | 35.650 | ||
| PC-SpectralUCB (10%) | 1.294 | 67.213 |