Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.
Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.
Online Pandora's Box for Contextual LLM Cascading
\RUNAUTHOR{Belloni, Chen, and Wei}
\RUNTITLE{Online Pandora's Box for Contextual LLM Cascading}
\TITLE{Online Pandora's Box for Contextual LLM Cascading}
\ARTICLEAUTHORS{
\AUTHOR{Alexandre Belloni}
\AFF{The Fuqua School of Business, Duke University, \EMAIL{[email removed]}}
\AUTHOR{Yan Chen}
\AFF{The Fuqua School of Business, Duke University, \EMAIL{[email removed]}}
\AUTHOR{Yehua Wei}
\AFF{The Fuqua School of Business, Duke University, \EMAIL{[email removed]}}
}
\ABSTRACT{Motivated by Large Language Model (LLM) cascading, we propose an online contextual Pandora's Box model
for adaptively querying and selecting LLM APIs. In each
period, a decision-maker observes a request context and faces a two-phase
decision problem. In the query phase, the decision-maker sequentially queries
APIs, where each query reveals a generated output and the decision-maker incurs an (output-dependent) cost. In the selection phase, the decision-maker selects one of the generated outputs to deploy
and observes only the downstream reward of the deployed output. This
output-mediated feedback structure differs from classical online contextual
Pandora's Box models, in which opening a box directly reveals its reward.
Rather than estimating the full conditional output and cost distributions of
each API, we directly model the reservation index and develop a learning approach for the query phase. Specifically, we impose a parametric structure on the contextual reservation index functions induced by the classical Weitzman's policy. Our policy combines generalized method of moments (GMM) type estimation of these reservation indices with UCB-style confidence bounds for both these indices and the shared output-level reward evaluator. Under regularity conditions, we prove that the resulting
policy achieves dimension-dependent \(\widetilde O(\sqrt T)\) cumulative regret over a horizon of \(T\) periods.
}
Introduction
The proliferation of Large Language Models (LLMs) has transformed the economics of content generation and decision support. Firms increasingly use generative AI systems to generate advertisements, produce code, serve customer requests, and conduct complex analytical tasks. In these applications, the operational challenge is often not whether content can be generated, but how to generate high-quality content reliably and cost-effectively at scale. A firm that produces a high volume of advertisements per day, for example, may have access to a portfolio of LLM APIs that differ in cost and output quality across task types. More capable proprietary models may, in general, deliver higher-quality outputs but incur
substantially higher costs, while smaller or specialized models may be cheaper but less reliable. Because model performance varies across request contexts and it is difficult to predict the quality of the outputs a priori, committing to a single API is often suboptimal. Similarly, querying all of the available APIs is typically prohibitively costly.
We study this problem from the perspective of an organization that uses external or internal LLM APIs to serve a stream of business requests. In such applications, requests arrive as distinct decision units without a strict latency requirement, allowing the decision-maker to query more than one API before selecting a final output. It is worth noting that this request-level decision problem fundamentally differs from the model hosting problem faced by large LLM platforms, where a key operational challenge is to reduce latency through batching, scheduling, and load management yu2022orca,kwon2023efficient,agrawal2024sarathi,ao2025optimizing, jaillet2025online. Our focus is instead on the API consumer's decision problem of dynamically querying a portfolio of APIs to secure high-quality outputs in a cost-effective manner.
A prominent approach for managing this cost-quality trade-off
is LLM cascading chenfrugalgpt,yue2024large,gupta2024language.
Rather than sending every request directly to a single expensive model, a cascade queries LLM APIs sequentially, typically beginning with lower-cost models and escalating only when earlier outputs appear insufficiently reliable.
The pioneering work of chenfrugalgpt, for example, illustrates this design by routing a query through a sequence of LLM APIs and stopping once a generated response receives a sufficiently high reliability score from an evaluator. Cascading allows the easy requests to be handled by cheaper APIs, with only the difficult requests escalated to the expensive ones. Empirical evidence from chenfrugalgpt suggests that such cascades can substantially reduce inference costs while preserving, and in some cases improving, task performance.
The LLM cascading system raises a fundamental sequential decision problem. For each incoming request, the decision-maker must manage both a query phase and a selection phase. In the query phase, the decision-maker must decide which API to query next and whether the generated outputs justify continuing the search. In the selection phase, the decision-maker must decide which of the generated outputs to deploy. These decisions are tightly coupled. Querying another API is costly, but it may reveal a better output; stopping the query phase early saves cost, but significantly increases the risks of not generating a better outcome; and selecting among queried outputs requires evaluating their downstream value. Thus, LLM cascading is not simply a model-routing problem, but a sequential search problem with costly information acquisition.
A natural starting point for principled analysis of this search problem is the classical Pandora’s Box problem. Consider an idealized benchmark in which, for each request, the decision-maker knows the context-dependent distribution of the output-cost pair generated by each API and can evaluate the downstream value of any generated output once it is observed. In this benchmark, querying an API corresponds to opening a box, the inference cost acts as the inspection cost, and the downstream value of the generated output serves as the realized reward. For this formulation, the seminal work of weitzman1979optimal characterizes the structure of the optimal policy. Specifically, given the context of a request, the policy assigns each API a reservation index, then queries APIs in decreasing order of these indices, and terminates the search as soon as the reward of an output exceeds the highest remaining index.
Real applications of LLM cascading, however, depart from this oracle benchmark in ways that make learning central. The value of querying an API is inherently contextual, and the primitives required by the oracle Weitzman's policy are rarely known in advance. In some settings, firms may have substantial historical data on prior human- or AI-generated outputs and their downstream rewards, allowing them to construct an accurate offline model of the reward function. In many others, however, such output-reward pairs are limited or unavailable. Moreover, even when rewards can be modeled from offline data, a firm deploying LLM APIs typically does not know the conditional distribution of outputs and costs generated by each API under a given request context. Since requests arrive sequentially over time, the decision-maker must learn context-dependent reservation indices while continuing to make cost-sensitive query and selection decisions. This naturally leads to an online contextual Pandora’s Box formulation of LLM cascading.
Recent work on LLM cascading has developed increasingly sophisticated methods for balancing cost and performance. Those include budget-constrained cascade policies, uncertainty or threshold-based deferral rules, and hybrid methods that combine cascading with model routing chenfrugalgpt,yue2024large,gupta2024language,zhang2024efficient. While these approaches provide important insights into efficient multi-LLM deployment, they rely primarily on heuristic designs. To the best of our knowledge, existing work has not yet formulated LLM cascading as an online contextual Pandora’s Box problem with joint query and selection, nor developed formal regret guarantees.
Conversely, existing Pandora’s Box literature are not directly tailored to this LLM setting.
A prominent line of work takes distribution-learning approaches liu2025improved, in which opening a box reveals a scalar reward and the learner estimates how the reward distribution varies with context, under parametric structure on the full distribution.
Closer to our work, atsidakou2024contextual parameterizes contextual reservation indices directly, but their model remains a classical Pandora's box setting in which opened boxes reveal rewards directly. In LLM cascading, by contrast, an API call reveals a stochastic output-cost pair. In our model, the downstream value depends on the request and the generated output, while API-specific heterogeneity enters through the distribution of outputs and costs.
Our Contributions
We make three main contributions. First, we introduce an online contextual Pandora's Box model motivated by LLM cascading. Unlike existing online Pandora's Box models, our model features a natural two-phase decision structure: querying an API reveals a stochastic output and incurs a cost, while the downstream reward is observed only after one generated output is selected and deployed. This formulation captures a key practical feature of LLM cascading: API-specific heterogeneity enters through the distributions of generated outputs and costs, while the downstream value of a generated
output is evaluated through a shared reward model on the request-output pair. That is, an API can influence the downstream value only through the generated output.
Second, we propose a direct index modeling and learning approach for the query phase.
In the full-information benchmark, Weitzman's policy is governed by contextual reservation indices, which are induced by each API's conditional output and cost distributions together with the reward evaluator. Rather than estimating these distributions directly, we impose a parametric structure on the reservation index functions themselves as a generalized linear function of observable context features. This modeling assumption leads to a practical optimism-based learning approach in the LLM cascading setting, as the decision-maker can focus on constructing optimistic box-specific reservation indices from queried output-cost samples through the moment equations instead of the full conditional output distributions.
The policy also learns the shared output-level reward evaluator from deployed-output rewards, and the two learned objects jointly determine the cascade's querying and selection decisions.
Third, we provide regret guarantees for the resulting online policy. The policy combines generalized method of moments (GMM) estimation for reservation indices with upper confidence bound (UCB)-style approaches for both the indices and rewards. Our policy is motivated by a simple but crucial regret decomposition under optimism: cumulative regret separates into errors from estimating reservation indices for only the queried APIs and errors from evaluating generated outputs for only the selected APIs.
This decomposition allows us to apply the UCB-style analysis to our moment estimation problem, yielding a dimension-dependent $\tilde O(\sqrt{T})$ cumulative regret bound. The analysis covers the practically important known-evaluator regime, where offline data provide an accurate output-level reward model, as well as the full regime where the evaluator and reservation indices must be learned jointly online.
Related Literature
Our work is related to the literature on cost-aware LLM systems, sequential test-time inference, and the theoretical frameworks of sequential search and online learning.
First, our paper is closely related to the emerging literature on LLM cascading and cost-aware multi-LLM deployment. This literature studies how to allocate inference requests across multiple LLM APIs when models differ in cost, latency, and output quality. Representative approaches include FrugalGPT chenfrugalgpt, budget-constrained cascade policies, uncertainty- or reliability-based deferral rules, and hybrid methods that combine cascading with model routing nie2024online,chen2024cascade,zhang2024efficient,yue2024large,gupta2024language. Our work contributes to this literature by formulating LLM cascading as an online contextual Pandora's Box problem, where the decision-maker sequentially decides which APIs to query and when to stop under unknown, context-dependent output and cost distributions. Our work is also related to LLM routing and ensembling methods although they address different decision problems than our LLM cascading motivation. Routing methods usually choose a single LLM for each request before
observing any generated output, either through non-predictive rules or through
predicted quality, reward, or utility scores
hu2024routerbench, shnitzerlarge,hari2023tryage,lu2024routing,vsakota2024fly, mei2025omnirouter. Such methods capture one-shot model choice but not adaptive within-request search. Ensemble methods aggregate or synthesize outputs from multiple LLMs, such as by ranking and fusing candidate responses jiang2023llm,fang2024llm,hu2025efficient; they focus on output aggregation rather than sequential stopping under query costs.
Second, our paper is related to recent work on sequential testing and sequential stopping for LLM inference. huang2026optimal study adaptive self-consistency for a single LLM, where the system sequentially samples reasoning paths and stops once the most-likely answer can be identified with high posterior confidence. li2026asymptotically study Bayesian sequential testing with heterogeneous LLMs, where the decision-maker adaptively chooses which LLM to query and stops once the posterior confidence for a hypothesis crosses a target threshold. These papers formulate LLM inference as posterior-driven sequential testing, whereas our LLM cascading model focuses on contextual sequential search over realized output-cost pairs, with stopping governed by reservation indices and learning focused on both the index functions and the output-level reward model.
Third, the query phase component of our model extends the contextual Pandora’s Box problem. The classic Pandora’s Box problem without contexts originates from the seminal work of weitzman1979optimal and has since been studied under a variety of extensions doval2018whether,chawla2020pandora,fu2020learning,boodaghians2020pandora,agarwal2024semi,ezra2026contract, including online variants gergatsouli2022online,atsidakou2024contextual. In particular, gergatsouli2022online studies an adversarial online Pandora’s Box setting in which box rewards are chosen by an adversary. gatmiry2024bandit subsequently shows that, in this setting, no algorithm can achieve sublinear regret against the optimal policy, even with full-information feedback.
For the online contextual Pandora's Box problem, liu2025improved obtains a regret bound of $\widetilde{O}(\sqrt{T})$ for under the assumption that
the reward distribution of each box is a location shift of a context-invariant noise distribution, but their results does not apply heterogeneous output distributions across contexts within each box, a key feature for LLM cascading applications. atsidakou2024contextual studies a contextual Pandora's Box model under adversarially arriving contexts, where the optimal reservation index is parametrized as a linear function of the observed context. In this general setting, they obtain an $\widetilde{O}(T^{5/6})$ regret bound by reducing the learning problem to online linear regression.
Our approach builds on a similar model of atsidakou2024contextual by imposing a parametric reservation index structure, but adopts a different learning approach through a combination of GMM and UCB analysis. This allows us to propose an optimism-based learning algorithm with $\widetilde{O}(\sqrt{T})$ regret bound under suitable regularity assumptions.
Further, the selection phase of our model draws on the literature on generalized linear contextual bandits. This line of work originates from the seminal paper of filippi2010parametric, which introduces an optimism-based algorithm for generalized linear bandits, and has since been extended in various directions jun2017scalable,kveton2020randomized,ding2021efficient,kim2023double.
Finally, our learning algorithm combines the GMM with an UCB–type algorithm. GMM originates from the seminal work of hansen1982large and has been widely developed and applied in econometrics newey1994large,arellano1991some,chamberlain1987asymptotic,lin2010gmm,cheng2024gmm,andrews2022optimal,hansen2021inference. UCB-type algorithms trace back to the seminal paper of lai1985asymptotically and have since been extensively studied in the bandit literature auer2002finite,rusmevichientong2010linearly,filippi2010parametric,fan2025fragility,garivier2011kl,audibert2009exploration, as well as in broader online learning settings and applications in operations management rakhlin2013optimization,gao2022joint,cheung2022inventory,mao2025model.
In addition, our paper belongs to the growing literature on LLM-assisted decision making across a range of fields, including operations management chen2024large,chen2025manager,simchi2026large, advertising yang2023against,reisenbichler2025applying, healthcare thirunavukarasu2023large,hager2024evaluation,hao2025large, among others.
Notations
Given any integer $k\geq1$ and vector $v\in\mathbb{R}^k$, we use $\|v\|_2$ to denote the Euclidean norm of $v$, and $\|v\|_{\infty}$ to denote $\max_{i=1,\ldots,k}|v_i|$. For any positive semidefinite matrix $\Phi\in\mathbb{R}^{k\times k}$, we use the notation $\|v\|_{\Phi}=\sqrt{v^\top \Phi v}$ to denote the $\Phi$-weighted Euclidean norm of $v$.
For matrices $A,B\in\mathbb{R}^{d\times d}$, $A\succeq B$ (resp., $A\preceq B$) means that $A-B$ (resp., $B-A$) is positive semidefinite. For $x,y\in\mathbb{R}$, we write $x\vee y=\max\{x,y\}$. For any positive semidefinite matrix $M\in\mathbb{R}^{d\times d}$, $\lambda_{\min}(M)$ denotes its minimum eigenvalue. For any integer $k\ge1$, let $[k]=\{1,2,\ldots,k\}$. Given any set $S$, we use $S^c$ to denote the complement of $S$. We write $\omega\sim p(\cdot)$ to indicate that the random variable $\omega$ follows distribution $p(\cdot)$. We use $N(\theta,\sigma^2)$ to denote the Gaussian distribution with mean $\theta$ and variance $\sigma^2$. Given any $\mu\in\mathbb{R}^d$ and positive definite matrix $\Sigma\in\mathbb{R}^{d\times d}$, we use $\mathcal{N}(\mu,\Sigma)$ to denote the $d$-dimensional Gaussian distribution with mean $\mu$ and covariance $\Sigma$. For any two random variables $X,Y$, $X\perp\!\!\!\!\perp Y$ means $X$ and $Y$ are independent. For any random event $\mathcal{E}$, we use $\mathbb{I}\{\mathcal{E}\}$ to denote the indicator of $\mathcal{E}$. The notation “a.s.” stands for “almost surely.” For any vector $x$ or matrix $A$, $x^\top$ and $A^\top$ denote their transposes. Finally, for any twice-differentiable function $g$, $g'$ and $g''$ denote its first- and second-order derivatives. We use $\widetilde{O}(\cdot)$ to hide logarithmic factors. Specifically, for functions $f,g:\mathbb{N}\to\mathbb{R}_+$, we write $f(T)=\widetilde{O}(g(T))$ if there exists a constant $C>0$ and a poly-logarithmic function $\mathrm{polylog}(T)$ such that $f(T)\leq Cg(T)\textrm{polylog}(T)$. For random variables $Y_1$ and $Y_2$, $Y_1\lesssim Y_2$ denotes that $Y_1\le cY_2$ with high probability for some constant $c>0$. For two positive sequences $f(T)$ and $g(T)$, we write $f(T)\asymp g(T)$ if both $f(T)\lesssim g(T)$ and $g(T)\lesssim f(T)$ hold up to universal constant factors.
Model
In this section, we formally introduce our online contextual Pandora’s box model motivated by LLM cascading. In our model, there are $A$ different boxes, each of which can be thought of as an API in LLM cascading. There are $T$ decision periods.
Let $\mathcal F_{t-1}$ denote the history available before period $t$, including all past observations and actions. At the beginning of period \(t\), the decision-maker (DM) observes a request context vector $x_t \in \mathcal{X} \subset \mathbb{R}^{d_x}$, where $x_t$ are independent across $t\in[T]$.
For each box $a \in [A]$, $\omega_{at}$, defined as the potential output vector of $a$, is random and its distribution is assumed to be independent across boxes and independent of the past history. Formally,
for each $a\in [A]$, $\omega_{at}$
is drawn from a context-dependent distribution $p_a(\cdot|x_t)$, and
for any measurable sets \(B_1,\ldots,B_A\subseteq\Omega\),
we have
equation[equation omitted — 186 chars of source]
The output $\omega_{at}$ is revealed only if box $a$ is queried. In addition, if $a$ is queried,
a cost $c_a(x_t,\omega_{at})$ is incurred and observed,
where \(c_a:\mathcal X\times\Omega\to(0,1)\) is the cost function associated with box $a$.
Finally, at the end of each period,
the DM selects one queried box $a_{t}$ whose generated output $\omega_{a_{t}t}$ will be deployed. The DM then receives and observes the realized reward associated with the deployed output, $r_{t}=\mu^*(x_t,\omega_{a_{t}t})+\zeta_{t}$,
where $\mu^*(\cdot,\cdot):\mathcal{X}\times\Omega\rightarrow[0,1]$ is the (unknown) reward function
and $\zeta_{t}$ is the post-deployment noise satisfying $\mathbb{E}[\zeta_t \mid \mathcal{F}_{t-1}, x_t,\omega_{a_t,t}]=0$.
A key feature of our model is that the reward function is shared across boxes.
Conditional on the same request-output pair $(x,\omega)$, the expected downstream reward is the same regardless of which box generated the output.
Thus, box-specific heterogeneity only enters through the distributions of outputs and costs, while realized rewards depend solely on the common reward function $\mu^*(\cdot,\cdot)$ and noise $\zeta_t$. Consequently, outputs $\omega_{at}$ act as intermediaries linking boxes to rewards, which permits cross-learning of $\mu^*$ using reward observations from all selected boxes.
This reflects our motivating LLM example, where the reward received by the DM depends on the generated output and the request it serves, not directly on the identity of the API that generated it.
We preview the parametric structures used for learning, with the formal assumptions
and estimators introduced in Sections (ref) and (ref).
Suppose, as an oracle benchmark, the DM knows the conditional output distributions
\(\{p_a(\cdot\mid x)\}_{a\in[A],x\in\mathcal X}\), the cost functions \(\{c_a\}_{a\in[A]}\), and the reward function \(\mu^*\).
Then, after the context $x_t$ is observed, the decision problem in period $t$ reduces to a contextual Pandora's box problem of the type studied by weitzman1979optimal.
As we formally illustrate in Section (ref), the optimal full-information policy is determined by two objects: the reward function \(\mu^*\), and the reservation indices, denoted as \(\{\sigma_a^*(x_t)\}_{a\in[A]}\). These indices are, in turn, determined by the oracle objects \(p_a(\cdot|x_t)\), \(\mu^*\), and \(c_a\) through the reservation index equation (ref) in Proposition (ref).
In the online learning problem, these oracle objects are not known. Rather than estimating the full conditional output distributions \(p_a(\cdot\mid x)\), we impose generalized linear parametric structure directly on the reward function \(\mu^*\) and on the contextual reservation index functions \(\{\sigma_a^*(\cdot)\}_{a\in[A]}\), namely
$\mu^*(x,\omega)=G(\theta_*^\top\phi(x,\omega))$ and $\sigma_a^*(x) = \Lambda(\rho_a^\top\psi(x))$
where the coefficients $\theta_*$ and $\rho_a$ are unknown; $G$, $\Lambda$ are known (monotonic) link functions and
$\phi$, $\psi$ are known feature maps, respectively.
This allows the DM to learn the shared reward and box specific contextual reservation indices through parametric estimation.
remarkOur contextual Pandora's box model maps to LLM cascading as follows. A period corresponds to a service request, and a box corresponds to an LLM API or an API-prompt configuration. Querying box $a$ once produces one candidate output \(\omega_{at}\), the DM then either stops or queries another box in the cascade. We therefore restrict each box to be queried at most once within a period. This is consistent with the LLM cascading literature chenfrugalgpt, where a request is routed through a sequence of APIs and each API is invoked only if previous outputs are deemed to be not sufficiently reliable by the evaluator.
The output-dependent cost \(c_a(x_t,\omega_{at})\) also arises naturally in LLM applications. For example, under token-based pricing, $c_{at}=\alpha_a I_{at}+\beta_a O_{at}$, where $I_{at}$ is the input token count of the query and $O_{at}$ is the (random) number of output tokens. Here $I_{at}=\kappa_{a,i}(x_{t})$ and $O_{at}=\kappa_{a,o}(\omega_{at})$, where for each $a\in[A]$, $\kappa_{a,i}:\mathbb{R}^{d_x}\rightarrow\mathbb{R}_{+}$, $\kappa_{a,o}:\mathbb{R}^{d_w}\rightarrow\mathbb{R}_{+}$ are fixed functions.
DM's Problem and Regret
Next, we describe the decision-making pipeline in each period $t\in[T]$ in more detail. Each period $t\in[T]$ consists of two phases, which we call query phase and selection phase.
During the query phase, the DM observes $x_t$ and sequentially queries boxes. A policy is non-anticipating: before each query, the DM may use $\mathcal F_{t-1}$, the current context $x_t$, and the output-cost pairs of the boxes already observed in period $t$, but not the output or cost of any unqueried box. Let \(\mathcal A_t\subseteq[A]\) denote the random set of boxes queried in period \(t\). We assume each box can be queried at most once within a period. After each query, the DM observes the generated output and cost, and then decides whether to continue querying or stop.
This non-anticipativity condition implies a useful sampling property. For any \(a\in[A]\), conditional on \((\mathcal F_{t-1},x_t)\), the event \(\{a\in\mathcal A_t\}\) is determined before observing box \(a\)'s own potential output-cost pair. Hence, whenever \(\mathbb P(a\in\mathcal A_t\mid \mathcal F_{t-1},x_t)>0\),
\[
(\omega_{at},c_{at})
\,|\, \mathcal F_{t-1},x_t,\{a\in\mathcal A_t\}
\;\overset{d}{=}\;
(\omega_{at},c_{at})
\,|\, \mathcal F_{t-1},x_t.
\]
This property will be used later to justify learning reservation indices from adaptively queried samples.
After the query phase concludes, the DM
enters the selection phase, selecting one queried box $a_{t} \in \mathcal{A}_{t}$ whose generated output $\omega_{a_{t}t}$ will be deployed.
Let \(\Pi_t\) denote the class of admissible non-anticipating policies in period \(t\). For a policy \(\pi_t\in\Pi_t\), let \(\mathcal A_t(\pi_t)\) be the set of queried boxes and \(a_t(\pi_t)\in\mathcal A_t(\pi_t)\) be the selected box. The conditional expected utility of policy \(\pi_t\) in period \(t\) is
\[
U_t(\pi_t;\mathcal F_{t-1},x_t)
:=
\mathbb E\!\left[
\mu^*(x_t,\omega_{a_t(\pi_t)t})
-
\sum_{a\in\mathcal A_t(\pi_t)} c_{at}
\,\middle|\,
\mathcal F_{t-1},x_t
\right].
\]
We note that the post-deployment noise $\zeta_t$ does not enter the utility because it is conditionally mean-zero. It matters only as feedback for learning the reward function $\mu^*(\cdot, \cdot)$.
We compare the DM against the full-information benchmark that knows the distribution $p_a(\cdot|x_t)$, and functions $\mu^*(x_t,\cdot), c_a(x_t,\cdot)$ for every box $a$ and every context $x_t$.
At each period $t$, after observing $x_t$, the optimal policy $\pi_t^* \in \arg\max_{\pi_t\in\Pi_t} U_t(\pi_t;\mathcal F_{t-1},x_t)$ reduces to the solution of the Pandora's box problem given context $x_t$, which we formally characterize in Section (ref).
Define the condition expected utility of $\pi_t^*$ as
\[
U_t(\pi_t^*;\mathcal F_{t-1},x_t)
=
\mathbb E\bigg[
\max_{a\in\mathcal A_t^*}
\mu^*(x_t,\omega_{at})
-
\sum_{a\in\mathcal A_t^*} c_{at}
\,\bigg|\,
\mathcal F_{t-1},x_t
\bigg].
\]
Then, for any admissible policy \(\boldsymbol \pi=\{\pi_t\}_{t\in[T]}\), the cumulative regret is defined as
\[
R_T(\boldsymbol \pi)
:=
\sum_{t=1}^T
\mathbb E\!\left[
U_t(\pi_t^*;\mathcal F_{t-1},x_t)
-
U_t(\pi_t;\mathcal F_{t-1},x_t)
\right].
\]
Readers familiar with the bandit literature might ask whether the problem can be modeled as a contextual bandit by treating each API as an arm. Such a formulation
would lead to a one-shot API-as-arm policy, in which the decision-maker selects a single API for each request before observing any generated output. It does not, however, capture the adaptive information-acquisition structure of LLM cascading. The following example illustrates that such a restriction can create a constant per-period gap relative to the sequential-search benchmark, even when all primitives are known.
Consider an example with two boxes and the context $x_t$ is fixed throughout. Querying box 1 costs \(c_1=0.5\) and always generates output \(\omega_{1t}=1\). Querying box 2 costs \(c_2=0.01\) and generates output \(\omega_{2t}=1\) with probability \(0.1\), and \(\omega_{2t}=0\) otherwise. The downstream value is \(\mu^*(x_t,\omega)=\omega\). A one-shot API-as-arm policy obtains expected utility $0.5$ from box 1 and \(0.09\) from box 2, so the best one-shot policy selects box 1.
Now consider a cascade that first queries box 2. If \(\omega_{2t}=1\), it stops and selects box 2; if \(\omega_{2t}=0\), it queries box 1 and selects box 1. Its expected utility is
$-0.01 + 0.1 + 0.9(0.5) = 0.54 > 0.5$.
Thus, relative to the cascade benchmark, any one-shot API-as-arm formulation suffers a constant per-period optimality gap in this instance, and hence a loss that grows linearly with \(T\).
Policy and Algorithm
This section develops the online policy and the algorithm. We begin with the full-information benchmark. Fix a period $t$ and condition on
the arriving context $x_t$. Suppose the DM knows the reward function
$\mu^*(\cdot,\cdot)$ and the output distributions $\{p_a(\cdot|x)\}_{a\in[A],x\in\mathcal{X}}$. The following proposition characterizes
the optimal oracle policy during period $t$.
proposition[Oracle reservation index]
For each box $a\in[A]$ and any fixed $t \in [T]$, let $\sigma^*_a(\cdot)$
be the index function such that
\begin{equation}
\mathbb E\left[
\left\{\mu^*(x_t,\omega_{at})-\sigma^*_a(x_t)\right\}^+
\,\middle|\, x_t
\right]
=
\mathbb E[c_{at}\mid x_t], \forall x_t.
\end{equation}
Then there exists an optimal policy
$\pi_t^*$ with the following structure:
At any period $t$ with context $x_t$, it orders the boxes $\{(1),(2),\ldots,(A)\}$ such that
$\sigma^*_{(1)}(x_t) \ge \cdots \ge \sigma^*_{(A)}(x_t)$, sets
$\sigma^*_{(A+1)}(x_t):=-\infty$,
queries boxes in this order, stops at the $k$-th query if $\max_{1\le j\le k}
\mu^*(x_t,\omega_{(j)t}) \ge \sigma^*_{(k+1)}(x_t)$,
and selects $a_t^*\in\argmax_{a\in \mathcal A_t^*}\mu^*(x_t,\omega_{at})$, where $\mathcal A_t^*$ is the set of boxes queried by the oracle.
Moreover, the oracle value satisfies
\begin{equation}
U_t(\pi_t^*;\mathcal{F}_{t-1},x_t)
=
\mathbb E\left[
\max_{a\in[A]}
\min\left\{
\mu^*(x_t,\omega_{at}),
\sigma_a^*(x_t)
\right\}
\,\middle|\, x_t,\mathcal{F}_{t-1}
\right].
\end{equation}
Define $\sigma_{at}^*:=\sigma_a^*(x_t)$. When the costs ${c_{at}}$ are known constants (i.e., $c_{at} \equiv c_a$
for each $a \in [A]$), the indices $\{\sigma_{at}^*\}_{a\in[A]}$ are optimal by the seminal work of weitzman1979optimal. When costs are stochastic (as in our motivating setting), the result above follows from a minor adaptation of the proof in kleinberg2016descending (see Appendix (ref)).
Proposition (ref) formally identifies the reward evaluator $\mu^*(x,\omega)$
and the reservation index function $\sigma_a^*(x)$ as the two objects required to make the optimal sequential decisions. We next describe the online policy as Algorithm (ref). At a high level, the policy follows the oracle structure in
Proposition (ref), but replaces the unknown reward evaluator
and reservation indices with optimistic estimates.
We call the resulting policy
COst-aware Sequential MOdel query and
Selection, or COSMOS\ .
remarkOur policy estimates the reservation index function $\sigma_{a}^*(x_t)$ through the conditional moment equation (ref) in Proposition (ref). Note that equation (ref) characterizes the index at the population level. In our setting, however, the output-cost pair $(\omega_{at},c_{at})$ is observed only when box $a$ is queried, that is, when $a\in\mathcal{A}_t$.
Hence, a direct empirical analogue of (ref) cannot use unqueried boxes, whose outputs and costs are not observed.
Nevertheless, conditioning on box $a$ being queried, the same moment equation continues to identify the reservation index. That is, we have
\begin{equation}
\mathbb{E}\left[\{ \mu^*(x_t,\omega_{at})-\sigma_{a}^*(x_t)\}^{+}-c_{at}|x_t,\mathcal{F}_{t-1}, a\in\mathcal{A}_t\right]=0.
\end{equation}
This is because conditional on $x_t,\mathcal{F}_{t-1}$, the query event $a\in\mathcal{A}_t$ is determined before the realized output-cost pair $(\omega_{at},c_{at})$ is observed, and hence is independent of this pair.
Thus although outputs and costs are only observed for queried boxes, these observations continue to identify $\sigma_a^*(x_t)$.
$\blacksquare$
Optimism and Regret Decomposition
Our COSMOS\ policy constructs optimistic estimates $\widetilde \mu_t(x,\omega)$ and $\widetilde \sigma_{at},\ \forall a\in[A], t\in[T]$. The estimate $\widetilde \mu_t(x,\omega)$ is an optimistic estimate of $\mu^*(x,\omega)$ for a realized output. The estimate
$\widetilde \sigma_{at}$ is an optimistic estimate of the oracle reservation
index $\sigma_a^*(x_t)$ for box $a$ at the current context. The formal
construction of these estimates is postponed to Sections (ref)
and (ref), and here we focus only on their roles in the policy.
To understand why optimism is crucial in our COSMOS policy, we next present a theorem showing that, under optimism, the one-period regret decomposes into the reward estimation error for the selected output and the index estimation errors for the queried boxes.
theorem[Regret decomposition under optimism]
Fix any period $t$, and let
$$\Delta_t(\widetilde\pi)
:=
U_t(\pi_t^*;x_t)-U_t(\widetilde\pi_t;x_t)$$
denote the period-$t$ conditional regret of the policy
$\widetilde\pi$ induced by Algorithm (ref).
Suppose that, for all $a\in[A]$, $\widetilde\mu_t(x_t,\omega_{at})
\ge
\mu^*(x_t,\omega_{at})$, $\widetilde\sigma_{at}
\ge
\sigma^*_{at}$. Let $a_t
\in
\operatorname*{arg\,max}_{a\in\mathcal A_t}
\widetilde\mu_t(x_t,\omega_{at})$ be the output selected by Algorithm (ref). Then,
\[
\Delta_t(\widetilde\pi)
\le
\mathbb E\left[
\widetilde\mu_t(x_t,\omega_{a_t t})
-
\mu^*(x_t,\omega_{a_t t})\mid \mathcal F_{t-1},x_t
\right]
+
\mathbb E\left[
\sum_{a\in\mathcal A_t}
\left(
\widetilde\sigma_{at}-\sigma^*_{at}
\right)\mid \mathcal F_{t-1},x_t
\right].
\]
We provide intuition on why Theorem (ref) holds.
Consider an auxiliary “optimistic” problem in which both its reward estimate $\widetilde\mu_t$ and its index $\widetilde\sigma_{at}$ upper-bound the truth.
Then COSMOS\ is the optimal policy for the “optimistic” problem, and its corresponding optimistic expected value is thus at least as large as the optimal expected value of the true problem. As a result, the loss can be bounded by the discrepancy between the optimistic quantities used by COSMOS\ and the true quantities realized along the same path. This yields exactly two errors: a reward estimation error for the selected output, and an index-estimation error for every queried box.
The decomposition in Theorem (ref) allows us to leverage the principle of optimism to control our regret. More specifically,
if a box is queried frequently, its query dataset grows and its index uncertainty decreases. If a box is queried rarely, then it contributes only
rarely to the second term in Theorem (ref). This mirrors the classic self-correcting principle behind UCB analysis, adapted here to govern reservation indices and reward rather than the direct feedback in bandits.
Consequently, Theorem (ref) motivates us to construct high-probability confidence bounds for both reward and reservation indices and using them to define the optimistic estimators $\widetilde{\mu}_t(x_t,\omega_{at})$ and $\widetilde{\sigma}_{at}$. The goal is to ensure that, with high probability, these estimators upper bound their population counterparts while remaining sufficiently accurate. Together, optimism and error control provide the key ingredients for deriving the final regret guarantee of the COSMOS\ policy, whose high-level structure is summarized as Algorithm (ref). The full implementation, including the computation of optimistic reservation indices and reward estimates, is deferred to Algorithm (ref) in the Appendix.
algorithm[algorithm omitted — 1,349 chars of source]
Results under Known Reward Function
To build intuition, we first study the case in which the reward function $\mu^*(x,\omega)$ is known. This setting is practically relevant when the reward model can be estimated offline using a substantially larger historical dataset. If the offline data are sufficiently rich, the resulting estimate of reward function $\mu^*(\cdot,\cdot)$ may be accurate enough relative to the $\sqrt{T}$ scale of the online regret analysis, to be treated as fixed in the subsequent online decision problem. Importantly, even with a known reward function, the conditional distribution of the output $\omega_{at}$ given $x_t$ typically remains unknown.
This case therefore captures regimes in which the main online learning challenge is not reward estimation, but learning the reservation indices and managing exploration across boxes. Indeed, once box $a$ is
opened in period $t$, the decision-maker observes its output $\omega_{at}$ and cost $c_{at}$, and can therefore compute the conditional expected reward
$\mu^*(x_t,\omega_{at})$.
Thus, in Algorithm (ref), we would set $\widetilde{\mu}_t(x_t,\omega_{at})=\mu^*(x_t,\omega_{at}).$
The selection rule then chooses the opened box with the largest true conditional expected reward, and the regret component arising from reward estimation disappears. The remaining learning problem is then focused solely on estimating $\sigma_a^*(x_t)$ for each $a$.
This is analogous to the bandit-feedback setting in atsidakou2024contextual, in that feedback is obtained only from opened boxes.\footnote{The authors also study a full information setting where the DM observes the rewards of all boxes at the end of each round.}
atsidakou2024contextual develop a black-box reduction from contextual Pandora's Box to online regression, using a specially designed linear-quadratic loss to learn all the reservation indices. In contrast, our approach follows the principle of optimism from the UCB literature. As we illustrate, under suitable regularity conditions, it is not necessary to learn all boxes' index functions uniformly well. Instead, it is enough to maintain optimistic index estimates
and refine the estimates of boxes that remain relevant to the query process.
We next formalize this intuition. Recall from Section (ref) that we impose the parametric structure on the indices
equation[equation omitted — 111 chars of source]
where $\Lambda$ is a known monotonic link function, and $\psi(\cdot)$ is a known feature map. We impose the following regularity condition on the parametric reservation index function (ref):
assumption[Regularity conditions for reservation indices]
The link function $\Lambda:\mathbb R\to[-1,1]$ is continuously differentiable,
strictly increasing, and $L$-Lipschitz, $\lim_{s\rightarrow-\infty}\Lambda(s)=-1$, $\lim_{s\rightarrow+\infty}\Lambda(s)=1$. Moreover, $\inf_{\rho\in\mathcal B,\;x\in\mathcal X}\Lambda'(\rho^\top\psi(x))\ge \mu_1>0, \|\psi(x)\|_2\le \bar C_\psi\ \text{for all } x\in\mathcal X$. The parameter space $\mathcal B\subset\mathbb R^m$ is convex and compact, with
diameter $d_{\mathcal B}$: $\sup_{\rho,\rho'\in\mathcal B}\|\rho-\rho'\|_2
\le d_{\mathcal B}$.
The range restriction $\Lambda:\mathbb{R}\to[-1,1]$ is consistent with the fact that $c_{at}\in(0,1)$ and $\mu^*\in[0,1]$, which imply $\sigma_{at}^*\in[-1,1]$. In addition, Assumption (ref) imposes only mild regularity conditions. It accommodates the linear reservation index specification considered by atsidakou2024contextual, which corresponds to taking $\Lambda$ as the identity map on the relevant, strictly bounded domain of $\rho^\top\psi(x)$, while allowing it to smoothly flatten to $\pm1$ as $s\to\pm\infty$.
Assumption (ref) yields the point identification of $\rho_a^\top\psi(x_t)$:
propositionUnder Assumption (ref), $\rho_a^\top\psi(x_t)$ is point identified through (ref) for each $a\in[A]$.
At the beginning of period $t$,
Algorithm (ref) estimates $\rho_a$ by $\hat{\rho}_{at}$ and constructs an
upper confidence bound for the linear index $\rho_a^\top\psi(x_t)$. Let
$\mathcal{R}_{at}(x_t)$ denote the corresponding confidence radius, and define $\widetilde{\sigma}_{at}
=
\Lambda\!\left(
\hat{\rho}_{at}^{\top}\psi(x_t)
+
\mathcal{R}_{at}(x_t)
\right)$. Let $\mathcal{E}_{\rho}$ denote the high-probability event on which
\[
\left|
\hat{\rho}_{at}^{\top}\psi(x_t)
-
\rho_a^\top\psi(x_t)
\right|
\leq
\mathcal{R}_{at}(x_t),
\qquad
\forall a\in[A],\; t\in[T].
\]
Then on $\mathcal{E}_{\rho}$, by the monotonicity of $\Lambda$,
\[
\widetilde{\sigma}_{at}
\geq
\Lambda(\rho_a^\top\psi(x_t))
=
\sigma_{at}^*,
\qquad
\forall a\in[A],\; t\in[T],
\]
allowing us to invoke the regret decomposition of Theorem (ref).
Recall that $\widetilde{\mu}_t=\mu^*$ in the known-$\mu^*$ case, implying the reward estimation term in
Theorem (ref) is zero. Therefore, under the event $\mathcal{E}_{\rho}$,
Theorem (ref) implies that the period-$t$ regret satisfies
equation[equation omitted — 227 chars of source]
where $\mathcal{A}_t$ is the random set of boxes opened by Algorithm (ref) in
period $t$. Inequality (ref) illustrates that the regret depends only on the index estimation errors of boxes that are actually opened. Thus,
frequently opened boxes yield larger sample sizes that shrink their confidence radii, while rarely opened boxes contribute negligibly to the overall regret. Once we obtain a valid
high-probability confidence radius for the linear index $\rho_a^\top\psi(x_t)$, the cumulative regret can be controlled by the standard elliptical-potential argument used for contextual bandits abbasi2011improved. However, unlike in standard contextual bandits, an opened box does not produce a noisy
observation of its reservation index $\sigma_{at}^*$; but instead, a tuple $(x_t,\omega_{at},c_{at})$. Therefore, the index parameter must be
learned indirectly from the defining equation (ref) of the reservation index.
Index Estimation and Loss Function
We next describe how to estimate the box-specific reservation index function $\sigma_a^*(\cdot)$. Given (ref) and (ref), our estimation problem is moment-based and is thus inspired by the generalized method of moments (GMM). For this purpose, we define the known-$\mu^*$ moment function, for any $x\in\mathcal{X}$, $\omega\in\Omega$, $c\in[0,1]$, and
$\rho\in\mathcal{B}$, as
equation[equation omitted — 138 chars of source]
By Equation (ref), we have
$
\mathbb{E}\left[
m^*(x_t,\omega_{at},c_{at};\rho_a)
\,\bigg|\,
\mathcal{F}_{t-1},x_t,\ a\in\mathcal{A}_t
\right]
=0$. Next, let
\[
\mathcal{S}_{at}:=\{s<t:\ a\in\mathcal{A}_s\},
\qquad
n_{at}:=|\mathcal{S}_{at}|
\]
denote the set and number of past periods in which box $a$ was queried before period $t$, and the elements in $\mathcal{S}_{at}$ be ordered as
$\tau_{a,1}<\tau_{a,2}<\cdots<\tau_{a,n_{at}}.$
As we discuss below, our estimation problem is a special case of the GMM framework with conditional moment conditions.
By setting the moment conditions based on the features $\psi(x_s)$,
we can formulate it as a $M$-estimation problem that is more suitable for our online learning setting.
A standard GMM approach would instead form the empirical vector moment
\[
\bar g_{at}(\rho)
:=
\frac{1}{n_{at}}
\sum_{s\in\mathcal{S}_{at}}
\psi(x_s)m^*(x_s,\omega_{as},c_{as};\rho)
\]
and minimize a quadratic criterion such as
$\bar g_{at}(\rho)^\top W_{at}\bar g_{at}(\rho)$ for some positive definite weighting matrix $W_{at}$ at each period $t$. However, this approach focuses on estimating the coefficients $\rho_a$,
which requires a full-rank condition on the local GMM curvature.
Such a requirement can be overly stringent in our setting, as it requires that the observations in which box $a$ is queried contain sufficiently many “active” samples, namely those satisfying $\mu^*(x_t,\omega_{at})>\Lambda(\rho_a^\top\psi(x_t))$,
and that the corresponding feature vectors $\psi(x_t)$ span the parameter space in a well-conditioned way conditional on $a\in\mathcal{A}_t$.
Our objective, however, is not to recover the entire vector $\rho_a$. For the UCB analysis, it is enough to construct a confidence interval for the scalar quantity $\rho_a^\top\psi(x_t)$ at the current context.
We therefore adopt an $M$-estimation formulation, whose first-order condition recovers the sample moment.
For a queried sample of box $a$ in period $s$, define
equation[equation omitted — 213 chars of source]
Note that $\ell_{as}(\rho)$ is convex in $\rho$, as $\Lambda(\cdot)$ is strictly increasing. Also, the derivative of
$\ell_{as}$ satisfies
equation[equation omitted — 224 chars of source]
Therefore, the first-order condition of the empirical loss minimization is equivalent
to the sample analogue of the vector moment equation. The known-$\mu^*$
estimator of $\rho_a$ for period $t$ is
equation[equation omitted — 165 chars of source]
We next state the regularity condition that yields curvature of the population loss.
The condition requires that $\rho^\top\psi(x)$ remains in a bounded
region, and for every point in this region, there is some probability mass that the reward of the output is above its corresponding reservation index.
assumption[Local mass around reservation thresholds]
There exist constants $\bar\iota>0$ and $\kappa>0$ such that, for all
$x\in\mathcal{X}$ and $\rho\in\mathcal{B}$, $|\psi(x)^\top\rho|\leq \bar\iota$,
and for all $a\in[A]$, $x\in\mathcal{X}$, $|u|\leq \bar\iota$, we have $\mathbb{P}_{\omega\sim p_a(\cdot\mid x)}
\left(
\mu^*(x,\omega)>\Lambda(u)
\right)
\geq \kappa $.
Assumption (ref) rules out the cases in which the reservation index lies in a region with no probability mass above it. Together with the lower derivative
bound $\Lambda'(\cdot)\geq \mu_1$ from Assumption (ref), it ensures that the
reservation index moment crosses zero with slope bounded away from zero. This is the
one-dimensional source of curvature for the loss function.
lemma[Population curvature of the loss function]
Under Assumptions (ref), (ref), for any $t\in[T]$, $a\in[A]$ and $\rho\in\mathcal{B}$,
\begin{equation}
\mathbb{E}[\ell_{at}(\rho)-\ell_{at}(\rho_a)\mid x_t,\mathcal{F}_{t-1}]
\ge \frac{\kappa\mu_1}{2}\bigl(\psi(x_t)^\top(\rho-\rho_a)\bigr)^2.
\end{equation}
The curvature bound in Lemma (ref) illustrates the advantage for using the $M$-estimation formulation.
It shows that the population loss increases quadratically in the prediction
error $\psi(x_s)^\top(\rho-\rho_a)$.
As a preview of the subsequent analysis, we will compare this quadratic curvature against the empirical fluctuation of the additive loss
$\sum_{s\in\mathcal{S}_{at}}\ell_{as}(\rho)$.
By controlling this fluctuation uniformly over $\rho\in\mathcal{B}$ via martingale concentration, we can absorb it into the curvature term. This procedure yields a high-probability bound on $|(\hat{\rho}_{at}-\rho_a)^\top\psi(x_t)|$, providing the confidence radius needed to construct the optimistic index $\widetilde{\sigma}_{at}$ in (ref).
Confidence Bound for a Fixed Box
Next, we construct confidence radii for the reservation indices.
For each fixed box $a \in [A]$, because $\Lambda(\cdot)$ is monotone and $\sigma_{at}^*=\Lambda(\rho_a^\top\psi(x_t))$, we focus on constructing a confidence interval for the scalar index $\rho_a^\top\psi(x_t)$ at the realized context $x_t$. We define $H_{at}(\rho)$, the empirical fluctuation of the loss at $\rho$, as
equation[equation omitted — 224 chars of source]
By optimality of $\hat{\rho}_{at}$, the empirical excess loss
$\sum_{s\in\mathcal S_{at}} \left\{\ell_{as}(\hat{\rho}_{at}) - \ell_{as}(\rho_a) \right\}$ is non-positive.
This sum can be decomposed by its conditional expectation and empirical fluctuation as
$$
\sum_{s\in\mathcal S_{at}}
\left\{\ell_{as}(\hat{\rho}_{at})-\ell_{as}(\rho_a)\right\}
=
\sum_{s\in\mathcal S_{at}}
\mathbb E\left[\ell_{as}(\hat{\rho}_{at})-\ell_{as}(\rho_a)
\,\middle|\,
\mathcal F_{s-1},x_s
\right]+ H_{at}(\hat{\rho}_{at}).
$$
Lemma (ref) implies that the conditional expectation is bounded below by the quadratic form
$\kappa\mu_1/2
\sum_{s\in\mathcal S_{at}}
\left\{\psi(x_s)^\top(\hat{\rho}_{at}-\rho_a)\right\}^2$.
Consequently, to establish a confidence interval for $\rho_a^\top \psi(x_t)$, it suffices to bound the empirical fluctuation $H_{at}(\hat{\rho}_{at})$ using a comparable quadratic term and a logarithmic complexity term, as established in the following lemma.
lemmaSuppose Assumptions (ref), (ref) hold.
Fix $a\in[A]$, and given any constant $c_0>0$, with probability at least $1-\delta/3$, uniformly over all $t\in[T]$, for any $\rho_t$ adapted to $\mathcal{F}_{t-1}$
we have
$$-H_{at}(\rho_t) \leq\frac{c_0}{8}\sum_{s \in \mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2+\left(\frac{144}{c_0}+C_0\right)(m\log T+\log(T/\delta)),$$
where $C_0>0$ is a constant depending on $d_{\mathcal{B}},\bar{C}_{\psi},\overline{\iota}$.
Lemma (ref) is derived through standard concentration arguments.
For a fixed $\rho$,
$H_{at}(\rho)$ form a martingale difference sequence whose conditional variance is controlled by the
quadratic term that appears in the population curvature lemma. A peeling
argument over the size of this quadratic term and an $\epsilon$-net argument over $\mathcal B$ yield the uniform bound and hence for adaptive $\rho_t$.
We now build the confidence interval for the scalar index $\rho_a^\top\psi(x_t)$ using Lemmas (ref) and (ref). Define the regularized
empirical design matrix
equation[equation omitted — 157 chars of source]
where $\eta_1>0$ is a regularization parameter and $\mathbf{I}_m$ is the \(m\times m\) identity matrix. Intuitively, $V_{at}(\eta_1)$ summarizes the contexts in which box $a$ has been queried before period $t$. The next proposition establishes a high-probability bound on $|(\hat{\rho}_{at}-\rho_a)^\top \psi(x_t)|$.
propositionSuppose Assumptions (ref), (ref) hold. When $\mu^*$ is known, fix any $a\in[A]$, given any $\delta>0$, with probability at least $1-\delta$, uniformly over all $t\in[T]$, we have
\begin{equation}
|(\hat{\rho}_{at}-\rho_a)^\top\psi(x_t)|\leq B_{at}^*\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}},
\end{equation}
where $B_{at}^*=\sqrt{C_1[m\log(T)+\log(TA/\delta)]+\eta_1d_{\mathcal{B}}^2}$, and $C_1$ is a constant depending on the constants $\kappa,\mu_1,\bar{\iota},\bar{C}_{\psi},d_{\mathcal{B}}$ defined in Assumptions (ref), (ref).
Proposition (ref)
has the usual online-learning interpretation abbasi2011improved,lattimore2020bandit as the
confidence bounds used in bandit UCB algorithms.
It is large when the current context points in a direction that has not been well explored for box $a$, and small when the historical opened-box contexts provide enough information in that direction.
Motivated by Proposition (ref), we define the optimistic
index in the known-$\mu^*$ case as
equation[equation omitted — 186 chars of source]
Since $\Lambda$ is increasing, Proposition (ref) implies $\widetilde{\sigma}_{at}\geq \sigma_{at}^*$ uniformly over $a\in[A], t\in[T]$ with probability at least $1-\delta$. This, in turn, is used to establish the uniform optimism event required for the regret guarantee. In implementation, one may calibrate this radius using a bootstrap approximation to the distribution of $(\hat{\rho}_{at}-\rho_a)^\top\psi(x_t)$, which may yield less conservative confidence bounds. Such a bootstrap procedure is not covered by the present theory and proving its validity would require a uniform bootstrap approximation under adaptive sampling.
Regret under Known Reward Function
Now we bound the cumulative regret when $\mu^*$ is known so that $\widetilde{\mu}_t=\mu^*$. When the
indices are optimistic, i.e., $\widetilde{\sigma}_{at}\geq\sigma_{at}^*, \forall a\in[A],\ t\in[T]$, Theorem (ref) gives $\Delta_t(\tilde{\pi})
\leq
\mathbb{E}\left[
\sum_{a\in\mathcal{A}_t}
\left(\widetilde{\sigma}_{at}-\sigma_{at}^*\right)
\,\middle|\, x_t,\mathcal{F}_{t-1}
\right]$. Using the Lipschitz continuity of $\Lambda$ and the confidence bound in
Proposition (ref), we obtain $\widetilde{\sigma}_{at}-\sigma_{at}^*\leq2LB_{at}^*\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}}$ on the high-probability event, where $B_{at}^*\leq\mathrm{O}(\sqrt{m\log(T)+\log(TA)})$. Thus the cumulative regret is controlled by
$\sum_{t=1}^T\sum_{a\in\mathcal{A}_t}\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}}$.
Every time box $a$ is queried, the corresponding
feature vector $\psi(x_t)$ is added to its design matrix. Therefore, the uncertainty in the same
direction decreases over time. The standard elliptical-potential argument implies that for
each box $a\in[A]$,
equation[equation omitted — 184 chars of source]
Summing this bound over the $A$ boxes yields the following regret guarantee:
propositionSuppose Assumptions (ref), (ref) hold. When the reward function $\mu^*$ is known, $$\mathbb{E}\left[\sum_{t=1}^T\Delta_t(\tilde{\pi})\right]\leq\widetilde{O}\left(Am\sqrt{T}\right).$$
Compared with the $\widetilde O(T^{5/6})$ bound of atsidakou2024contextual for a more general contextual Pandora’s Box setting, our $\widetilde O(\sqrt T)$ rate relies on the additional local-curvature structure in Assumption (ref), which enables UCB-style confidence control for the reservation indices.
remarkThe bound in (ref) is pathwise and therefore Proposition (ref) does not require $x_t$ to be independent.
It holds for any sequence of contexts, including $x_t$ that are predictable with respect to $\mathcal{F}_{t-1}$.
The independence assumption is, however, needed for the analysis when the reward function is unknown.
$\blacksquare$
Results under Unknown Reward Function
We now drop the assumption that $\mu^*$ is known and study the problem where $\mu^*$ must be learned online. The known-$\mu^*$ result before guides the analysis when $\mu^*$ is unknown. Relative to the previous section, two additional challenges arise:
itemize• The reward estimation term in Theorem (ref) is no longer zero.
• The reservation index estimation can no longer use the true conditional expected reward $\mu^*(x_s,\omega_{as})$ when defining the loss.
Recall from Section (ref) that we impose the generalized linear parametric structure on the expected reward function:
equation[equation omitted — 145 chars of source]
where $G:\mathbb{R}\rightarrow[0,1]$ is strictly increasing.
In Section (ref) we address (i) using a standard penalized maximum likelihood estimator (MLE) construction based on (ref). In Section (ref) we address (ii) by showing that the main intuitions from Proposition (ref) continue to work. Particularly, Proposition (ref) extends Proposition (ref) to this setting by accounting for the plug-in error for the loss. Similarly, the index estimator is controlled by population curvature, empirical concentration, and now an additional perturbation term from reward estimation. Once the reward parameter is learned at the standard online rate, this perturbation is small enough to preserve the overall $\widetilde O(\sqrt T)$ regret rate.
However, challenge (ii) with unknown reward is more delicate because reward learning uses selected outputs while index estimation is based on queried outputs. Hence controlling the plug-in loss requires an additional assumption ensuring that the reward-design matrix is sufficiently informative for the queried features that enter the index estimator.
We begin by imposing the following regularity condition on the expected reward function:
assumption[Regularity conditions for expected reward function]
(i) $G(\cdot)$ is continuously differentiable and strictly increasing, with Lipschitz constant $L$. Furthermore, $\underline{\mu}:=\inf_{\theta\in\Theta,x\in\mathcal{X},\omega\in\Omega}G'(\theta^\top \phi(x,\omega))>0$, and for some absolute constant $L_1>0$, $|G''(\theta^\top \phi(x,\omega))|\leq L_1$, $\forall x\in\mathcal{X}, \omega\in\Omega, \theta\in\Theta$. (ii) For an absolute constant $\bar{C}_{\phi},\bar{\alpha}>0$, $\|\phi(x,\omega)\|_2\leq\bar{C}_{\phi}$, $\forall\omega\in\Omega, x\in\mathcal{X}$ and $\|\theta_*\|_2\leq \bar{\alpha}$.
Assumption (ref) is standard in the generalized linear contextual bandit literature filippi2010parametric,li2017provably,lee2024unified. The Lipschitz constant $L$ controls how errors in $\hat\theta_{t-1}$ propagate into the reward prediction, the lower bound $\underline\mu$ on $G'$ ensures uniform strong convexity of the objective, and the boundedness of $\phi$ and $\theta_*$ keeps the analysis in the standard regime.
We next assume that the random reward observed by the DM is drawn from a canonical exponential family:
assumptionGiven any $x\in\mathcal{X}$ and $\omega\in\Omega$, conditioning on the pair of input context and output of the selected API $(x_t,\omega_{a_tt})=(x,\omega)$ during period $t$, the density of the random reward $r_t=G(\theta_*^\top\phi(x,\omega))+\zeta_t$ with respect to a reference measure is given by
\begin{equation}
f(r|x,\omega)=\exp\left(r\theta_*^\top \phi(x,\omega)-b(\theta_*^\top \phi(x,\omega))+\xi(r)\right),
\end{equation}
where $0\leq r_t\leq\gamma_0$ a.s. for some constant $\gamma_{0}>1$, $\xi(\cdot)$ is a real function, $b(\cdot)$ is twice continuously differentiable and $\mathbb{E}[\zeta_{t}|\omega_{a_tt},x_t,\mathcal{F}_{t-1}]=0$ for any $t\in[T]$ almost surely.
Assumption (ref) is standard in generalized linear contextual bandit filippi2010parametric,li2017provably,zhou2019learning,lee2024unified, which encompasses Bernoulli, logistic, and binomial reward distributions, and more generally the exponential family (e.g. Gaussian, Poisson, etc.) with support truncated to $[0,\gamma_{0}]$.
By definition, taking derivative of $b$ we get $b'=G$ as the inverse link function. Common examples of $G$ include any known cumulative distribution function (CDF) such as the logistic and probit CDFs.
Estimating the Reward Parameter
The reward estimation follows essentially a generalized linear contextual bandit framework. At each period $t$ the deployment $(x_t,\omega_{a_tt})$ yields a reward observation $r_t$, and the dataset $\{(x_k,\omega_{a_kk},r_k)\}_{k=1}^{t-1}$ accumulates over time. We estimate $\theta_*$ by a penalized (projected) maximum likelihood estimator
equation[equation omitted — 234 chars of source]
where
equation[equation omitted — 143 chars of source]
is the regularized design matrix of reward features collected through period $t-1$, and $\eta_0>0$ is a regularization parameter, $\mathbf{I}_d$ is the \(d\times d\) identity matrix. The term within the weighted norm $\|\,\cdot\,\|_{\Phi_{t-1}^{-1}}$ in (ref) is the gradient of the objective function for the unconstrained penalized log-likelihood $\max_\theta\sum_{k=1}^{t-1}\log f(r_k\mid x_k,\omega_{a_kk})-\tfrac{\eta_0}{2}\|\theta\|_2^2$, and $\hat{\theta}_{t-1}$ can be viewed a “projection” onto $\Theta$ if the unconstrained solution falls outside $\Theta$. This construction follows filippi2010parametric.
The following standard result provides a high-probability bound on the prediction error induced by using $\hat{\theta}_{t-1}$ to evaluate the reward of a candidate context-output pair $(x_t,\omega_{at})$.
lemmaSuppose Assumptions (ref) and (ref) hold and fix any $\delta\in(0,\min\{1,2d/e\})$. With probability at least $1-\delta/2$, uniformly over all $a\in[A]$ and $t\geq 2$,
\[
\big|(\hat\theta_{t-1}-\theta_*)^\top\phi(x_t,\omega_{at})\big|\;\leq\;\beta_t\;\big\|\phi(x_t,\omega_{at})\big\|_{\Phi_{t-1}^{-1}},
\]
where $\beta_t=\mathrm{O}\left(\sqrt{d\log(t)+\log(1/\delta)}\right)$ defined as in (ref).
This is the ellipsoidal confidence bound for generalized linear bandits, which has similar structure as Proposition (ref) for the index parameter estimation error bound. The matrix $\Phi_{t-1}$ plays the role that $V_{at}(\eta_1)$ played for the indices, and $\beta_t$ grows logarithmically in $t$. The proof of Lemma (ref) adapts filippi2010parametric via a self-normalized martingale inequality. Equipped with this bound, we construct the optimistic reward as
equation[equation omitted — 195 chars of source]
Because $G$ is monotonically increasing by Assumption (ref), Lemma (ref) implies that with probability at least $1-\delta/2$, uniformly over all $a\in[A]$ and $t\geq 2$, $\widetilde{\mu}_t(x_t,\omega_{at})\;\geq\;\mu^*(x_t,\omega_{at})$.
Estimating Indices
Next, we estimate the reservation indices and construct their associated confidence intervals for the regime where the reward function is unknown. As an unknown-reward analogue to Section (ref), we replace the true reward $\mu^*(x_s,\omega_{as})$ by its plug-in estimate $G(\hat\theta_{t-1}^\top\phi(x_s,\omega_{as}))$ for each $s \leq t$.
The main goal is to show that this substitution preserves the same confidence-bound structure as Proposition (ref), up to an additional perturbation term controlled by the reward estimation error bound. Fix a period $t$ and a box $a\in[A]$. For any $\rho\in\mathcal B$ and any past queried sample $s\in\mathcal S_{at}$, define the plug-in loss
equation[equation omitted — 202 chars of source]
This is the same loss as (ref), with $\mu^*$ replaced by the current reward estimate. The plug-in index estimator is
equation[equation omitted — 134 chars of source]
The first-order condition of (ref) is the empirical analogue of the Weitzman moment equation with the reward function evaluated at $\hat\theta_{t-1}$. The new challenge compared to Section (ref) is that the empirical loss in (ref) is not the oracle loss. To isolate this difference, define the plug-in perturbation
equation[equation omitted — 208 chars of source]
where $\ell_{as}(\rho)$ is the known-$\mu^*$ loss in (ref). The term $J_{at}(\rho)$ measures how the estimation error of $\hat\theta_{t-1}$ propagates into the index-estimation loss.
We impose the following additional assumption for the unknown-reward case. It ensures that the reward-design matrix contains enough information in all directions needed to control the plug-in perturbation. We use $\mathrm{polylog}(T)$ to denote a quantity bounded by a polynomial in $\log T$ (i.e. $\mathrm{polylog}(T) = \mathrm{O}((\log T)^c)$ for some constant $c>0$).
assumption[Anti-concentration of reward features]
There exists a sequence $M_T\geq 1$ with
$M_T=\sqrt{\mathrm{polylog}(T)}/A$ such that, for any
$t\in[T]$, $a\in[A]$, $v\in\mathbb S^{d-1}$, and
$0<\epsilon\le (2AM_T)^{-1}$,
\[
\mathbb P\!\left(
|v^\top \phi(x_t,\omega_{at})|\le \epsilon\right)\le
M_T\epsilon
\qquad \text{a.s.}
\]
Recall that the contexts $x_t$ are independent across time, implying that the distribution of the reward feature $\phi(x_t,\omega_{at})$ is independent of $\mathcal{F}_{t-1}$.
Assumption (ref) leverages this independence to impose an anti-concentration condition that rules out degenerate reward features.
Informally, every one-dimensional projection of $\phi(x_t,\omega_{at})$ must have nontrivial variation near zero. This condition is imposed because $\theta_*$ is learned only from selected outputs, whereas the index loss for box $a$ uses queried outputs. Thus, the reward features must be sufficiently informative for evaluating the queried features that enter the index estimator. For example, it is satisfied when the embedding distribution is a truncated Gaussian, a truncated multivariate Student's $t$, or a uniform distribution on a hyperrectangle; see Lemmas (ref)--(ref) in Appendix (ref).
remarkOur regret analysis can be extended to the case where $x_t$ is predictable with respect to $\mathcal{F}_{t-1}$ with a more restrictive version of Assumption (ref).
Specifically, it would require that under the same conditions as stated in Assumption (ref), we have
\begin{equation}
\mathbb P\!\left(
|v^\top \phi(x_t,\omega_{at})|\le \epsilon \, \mid \, \mathcal F_{t-1}, x_t \right)\le
M_T\epsilon
\qquad a.s.
\end{equation}
However, such an assumption implies structural restrictions on the reward features. For example, suppose $G$ is the identity map, $\phi(x_t,\omega_{at})=(x_t,\omega_{at})$ and for simplicity, suppose both $x_t$ and $\omega_{at}$ are one-dimensional. If $x_t$ is predictable from $\mathcal F_{t-1}$, then conditional on $\mathcal F_{t-1}$ the context coordinate is fixed. In particular, if $x_1$ follows a Bernoulli distribution with $\mathbb{P}(x_1=1)=0.5$ and $x_t=x_{t-1}$ for $t\ge2$, then the projection along the context direction $v=(1,0)$ is identically zero when $x_1=0$, so (ref) fails.
Thus, for general predictive $x_t$, even a simple linear embedding can fail to satisfy the anti-concentration property.
$\blacksquare$
The following lemma bounds the additional perturbation caused by using $\hat\theta_{t-1}$ in the index loss.
lemma[Plug-in loss perturbation]
Suppose Assumptions (ref) and (ref) hold. Then, for any $c_0>0$,
$$-J_{at}(\hat\rho_{at})\le
\frac{c_0}{8}
\sum_{s\in\mathcal S_{at}}
\left\{
\psi(x_s)^\top(\hat\rho_{at}-\rho_a)
\right\}^2 +
\frac{2L^2}{c_0}
\sum_{s\in\mathcal S_{at}}
\left\{
(\hat\theta_{t-1}-\theta_*)^\top
\phi(x_s,\omega_{as})
\right\}^2.$$
Lemma (ref) shows why Assumption (ref) is needed. The first term on the right-hand side has the same quadratic form as the population curvature in Lemma (ref) and can therefore be absorbed into the curvature argument. The second term is the reward estimation error evaluated on queried outputs. By Lemma (ref), this term is controlled by the inverse-design norms
$\|\phi(x_s,\omega_{as})\|_{\Phi_{t-1}^{-1}}$, where $\Phi_{t-1}$ is constructed from previously selected outputs, while $\phi(x_s,\omega_{as})$ corresponds to queried outputs used for estimating the index of box $a$. Thus, there is a potential mismatch between the selected outputs that inform reward learning and the queried outputs that enter index estimation. Assumption (ref) rules out severe mismatches of this form by ensuring that $\Phi_{t-1}$ is sufficiently well conditioned, so these inverse-design norms do not remain large.
We now state the confidence bound for the index estimator:
proposition[Index confidence bound with unknown reward function]
Suppose Assumptions (ref)--(ref)
hold. Fix any $\delta>0$. Then, with probability at least $1-2\delta/3$, uniformly over all
$a\in[A]$ and all
$t\in[T]$,
\begin{equation}
\left|
(\hat\rho_{at}-\rho_a)^\top\psi(x_t)
\right|
\le B_{at}
\left\|\psi(x_t)\right\|_{V_{at}(\eta_1)^{-1}},
\end{equation}
where $V_{at}(\eta_1)$ is defined as (ref),
\[
B_{at}
=
C_2
\sqrt{
m\log(T)
+
\log(AT/\delta)
+
[d\log(t)+\log(1/\delta)]\sum_{s\in\mathcal{S}_{at}}\|\phi(x_{s},\omega_{as})\|_{\Phi_{t-1}^{-1}}^2
},
\]
and $C_2$ is a constant depending on
$\eta_0,\eta_1,\kappa,\mu_1,\bar\iota,d_{\mathcal B},
\bar C_\psi,L,\bar C_\phi,\gamma_0,\underline\mu$, and $\bar\alpha$.
The proof follows the same localized empirical-process argument as Proposition (ref). By the optimality of $\hat\rho_{at}$ in (ref), $\sum_{s\in\mathcal S_{at}}
\left\{
\hat\ell_{as,t}(\hat\rho_{at})
-
\hat\ell_{as,t}(\rho_a)
\right\}\leq0$. Decomposing this into the oracle population curvature, the empirical fluctuation, and the plug-in perturbation gives
$$\sum_{s\in\mathcal S_{at}}
\mathbb E\!\left[
\ell_{as}(\hat\rho_{at})-\ell_{as}(\rho_a)
\,\middle|\,
\mathcal F_{s-1},x_s
\right] + H_{at}(\hat\rho_{at}) + J_{at}(\hat\rho_{at})\le0.$$
The first term is lower bounded by the curvature result in Lemma (ref), the second is controlled by the empirical-process bound in Lemma (ref), and the third is controlled by Lemma (ref) together with the reward confidence bound in Lemma (ref). Combining these bounds yields (ref). The detailed proof is provided in Appendix (ref). Motivated by Proposition (ref), define the optimistic reservation index as
equation[equation omitted — 174 chars of source]
Since $\Lambda$ is increasing, Proposition (ref) implies that, with probability at least $1-\delta$,
$\widetilde{\sigma}_{at}
\ge
\Lambda(\rho_a^\top\psi(x_t))
=
\sigma_{at}^*$ uniformly over all $a\in[A]$ and
$t\in[T]$.
Regret Analysis under Unknown Reward Function
We now combine the reward and index confidence bounds to control the cumulative regret of COSMOS\ when the reward function is unknown. The preceding subsections established two high-probability optimism events: Lemma (ref) gives optimism for the reward estimate $\widetilde{\mu}_t$, and Proposition (ref) gives optimism for the reservation index estimate $\widetilde{\sigma}_{at}$.
Therefore, when both events hold, the regret decomposition in Theorem (ref) applies and separates the period-$t$ regret into a reward estimation term and an index-estimation term for all $a\in[A]$ and $t\in[T]$. This structure parallels the known-reward analysis in Section (ref). When the reward function is unknown, an additional generalized linear bandit term appears from estimating the reward parameter.
As shown in Appendix (ref), Assumption (ref) implies that, with high probability, $\lambda_{\min}(\Phi_{t-1})
\ge
\frac{t-1}{16\,\mathrm{polylog}(T)}$
uniformly for all $t\ge \tau:=C\mathrm{polylog}(T)\log(Ad)$ for some absolute constant $C$.
This eigenvalue growth allows the reward estimation error in $J_{at}(\rho)$ to be controlled uniformly over $t\geq\tau$, so that the cumulative regret is controlled after $t\geq\tau$. For these initial periods before $\lceil\tau\rceil$, the per-period regret is bounded by $(2A+1)$. Since $\tau=\mathrm{O}(\log(Ad)\mathrm{polylog}(T))$, so the cumulative regret up to period $\lceil\tau\rceil$ is at most $\mathrm{O}(A\log(Ad)\mathrm{polylog}(T))$, and is therefore dominated by the regret accumulated over periods $t\ge \tau$.
theoremSuppose Assumptions (ref)--(ref) hold. Then, ignoring logarithmic factors,
\[
\mathbb{E}\left[\sum_{t=1}^T \Delta_t(\tilde{\pi})\right]
\leq
\widetilde{O}\left([d+A(m+\sqrt{md})]\sqrt{T}\right).
\]
In particular, the regret bound is asymptotically minimized by choosing
\[
\eta_1
\asymp
\max\left\{m^{1/2},(dm)^{1/4},d^{1/3}\right\},
\qquad
\eta_0
\asymp
\min\left\{
\frac{d}{A\sqrt m},
\left(\frac{d}{A\sqrt m}\right)^{2/3}
\right\}.
\]
The terms in Theorem (ref) correspond directly to the two components in Theorem (ref). The term $\widetilde O(d\sqrt T)$ is the reward estimation regret, matching the usual dimension dependence for generalized linear contextual bandits with reward feature dimension $d$. The term $\widetilde O(A(m+\sqrt{dm})\sqrt T)$ is the index-estimation regret, where $A$ is the number of boxes and $m$ is the dimension of the index feature $\psi$. Relative to the known-reward case in Proposition (ref), the additional term $\widetilde{O}(A\sqrt{dmT})$ reflects the effect of reward estimation error on index estimation.
On the high-probability optimism event, Theorem (ref) gives
$\mathbb{E}\left[\sum_{t=1}^T \Delta_t(\tilde\pi)\right]
\leq
\mathbb{E}\left[\sum_{t=1}^T
\left\{
\widetilde{\mu}_t(x_t,\omega_{a_t t})-\mu^*(x_t,\omega_{a_t t})
\right\}\right]
+
\mathbb{E}\left[\sum_{t=1}^T
\sum_{a\in\mathcal A_t}
\left(
\widetilde{\sigma}_{at}-\sigma_{at}^*
\right)\right].$
The first sum is controlled by the reward confidence radius from Lemma (ref) and an elliptical-potential argument abbasi2011improved for the reward-design matrix $\Phi_{t-1}$. The second sum is controlled by the index confidence radius from Proposition (ref) and a separate elliptical-potential argument for each box-specific design matrix $V_{at}(\eta_1)$. Thus the unknown-reward analysis adds a standard reward-learning term while preserving the same index-learning rate as in the known-reward benchmark. The detailed proof is provided in Appendix (ref).
Conclusion
Motivated by LLM cascading, we introduce an online contextual Pandora's Box model in which a decision-maker sequentially queries APIs to generate outputs at a cost and deploys a single output, observing only its downstream reward. This output-mediated feedback departs from the classical setting, where opening a box reveals its reward directly, and captures a key feature of LLM cascading systems: API-specific heterogeneity enters only through the distributions of generated outputs and costs, while downstream value is governed by a shared reward evaluator on the context-output pair.
Rather than estimating the full conditional output and cost distributions, we impose a generalized linear structure directly on the reservation indices and the shared reward function. Our COSMOS\ policy is built by combining GMM estimation of the reservation indices with UCB-style confidence bounds for both the indices and the reward evaluator. Through a regret decomposition under optimism, which separates cumulative regret into reward-estimation errors for deployed outputs and index-estimation errors for queried APIs, we derive a $\widetilde{\mathrm{O}}\left([d+A(m+\sqrt{dm})]\sqrt{T}\right)$ regret bound.
Our work opens several avenues for future research. First, because our theoretical guarantees rely on generalized linear specifications, extending the moment-based UCB framework to richer nonparametric or neural representations is a natural next step.
Achieving this while preserving $\widetilde{O}(\sqrt{T})$ regret would further broaden the model's applicability. Second, our current formulation assumes a standard LLM cascading structure where APIs are queried sequentially and a single output is selected and then deployed. Expanding this framework to allow for batched querying under latency budgets, or to support output ensembling and synthesis, would significantly change the query-selection dynamics. Addressing these richer action spaces raises compelling new questions about the structure of the learning policy.
AI Disclosure
The authors used generative artificial intelligence tools, including GPT, Gemini, and Claude, to edit and polish earlier versions of the drafts.
All AI-generated text and suggestions were checked, revised, and approved by the authors. The authors take full responsibility for the accuracy, integrity, and originality of the submitted work.
Acknowledgment
We thank Ali Makhdoumi for helpful discussions on the general theory and intuition of Pandora’s Box, and
Shreyas Sekar for an early conversation on AI-assisted coding and model selection for reducing LLM API costs that eventually led us to the FrugalGPT paper by chenfrugalgpt.
We also thank the participants from 2026 Marketplace Innovation Workshop for comments and discussion.
APPENDICES\section{Proofs for Section (ref)}
In this section we prove three results in Section (ref): the optimality of the oracle reservation index policy under full information (Proposition (ref)), point identification of $\rho_a^\top\psi(x_t)$ from the queried samples for box $a$ before period $t$ (Proposition (ref)), and a regret decomposition under optimistic reward and index estimators (Theorem (ref)).
The following lemma establishes that the query decision is independent of the stochastic output conditioning on the historical data and the current context at each period $t$. Although the proof is immediate, the result is used repeatedly in subsequent arguments, so we state it explicitly here.
\begin{lemma}
Given any $t\in[T]$, $x_t\in\mathcal{X}$ and $a\in[A]$, we have $\mathbb{I}\{a\in\mathcal{A}_t\}\perp\!\!\!\!\perp(\omega_{at},c_{at})|x_t,\mathcal{F}_{t-1}$.
\end{lemma}
\proof{Proof of Lemma (ref)}
For any $x_t\in\mathcal X$ and $a\in[A]$, under both the oracle reservation index policy and COSMOS\ algorithm, the event $\{a\in\mathcal A_t\}$ is determined by the sequential construction, which depends on the history $\mathcal F_{t-1}$, the current context $x_t$, and the outputs of boxes queried before $a$. Under the conditional independence of $\{\omega_{a't}:a'\in[A]\}$ given $x_t$ according to (ref), these preceding outputs are independent of $\omega_{at}$. Further, $c_{at}=c_a(x_t,\omega_{at})$. Hence, $\mathbb{I}\{a\in\mathcal{A}_t\}\perp\!\!\!\!\perp(\omega_{at},c_{at})|x_t,\mathcal{F}_{t-1}$ as claimed.
$\blacksquare$
\proof{Proof of Proposition (ref)} For $t \in [T]$, let $Q_a^t = \mathbb{I}\{a \in \mathcal{A}_t\}$ and $S_a^t = \mathbb{I}\{ a_t = a\}$. Since $\omega_{at}\sim p_a(\cdot|x_t)$, (ref) implies
$$\mathbb E\left[
\left\{\mu^*(x_t,\omega_{at})-\sigma^*_a(x_t)\right\}^+
\,\middle|\, x_t,\mathcal{F}_{t-1}
\right]
=
\mathbb E[c_{at}\mid x_t,\mathcal{F}_{t-1}], \forall x_t.$$
Thus
$$\begin{array}{rl}
&\quad\displaystyle\mathbb{E}\left[\sum_{a\in[A]}S_a^t\mu^*(x_t,\omega_{at})-\sum_{a\in[A]}Q_a^tc_{at}\bigg|x_t,\mathcal{F}_{t-1}\right]\\
&\displaystyle=_{(i)}\mathbb{E}\left[\sum_{a\in[A]}S_a^t\mu^*(x_t,\omega_{at})-\sum_{a\in[A]}Q_a^t\{\mu^*(x_t,\omega_{at})- \sigma_{at}^*\}^+\bigg|x_t,\mathcal{F}_{t-1}\right]\\
&
\displaystyle=_{(ii)}\mathbb{E}\left[\sum_{a\in[A]}S_a^t\min\{ \sigma_{at}^*,\mu^*(x_t,\omega_{at})\}+\sum_{a\in[A]}(S_a^t-Q_a^t)\{ \mu^*(x_t,\omega_{at}) - \sigma_{at}^*\}^+\bigg|x_t,\mathcal{F}_{t-1}\right]\\
&\displaystyle\leq_{(iii)} \mathbb{E}\left[\sum_{a\in[A]}S_a^t\min\{ \sigma_{at}^*,\mu^*(x_t,\omega_{at})\}\bigg|x_t,\mathcal{F}_{t-1}\right] \\
&\displaystyle \leq_{(iv)} \mathbb{E}\left[ \max_{a\in [A]} \min\{ \sigma_{at}^*,\mu^*(x_t,\omega_{at})\}\bigg|x_t,\mathcal{F}_{t-1}\right],
\end{array}$$
where (i) holds because $Q_a^t\perp\!\!\!\!\perp(\omega_{at},c_{at})\mid x_t,\mathcal{F}_{t-1}$ according to Lemma (ref) and the definition of $\sigma_{at}^*$ in (ref) imply $$\begin{array}{rl}
\mathbb{E}[Q_a^tc_{at}|x_t,\mathcal{F}_{t-1}]&\displaystyle=\mathbb{E}[Q_a^t|x_t,\mathcal{F}_{t-1}]\mathbb{E}[c_{at}|x_t,\mathcal{F}_{t-1}]\\
&\displaystyle=\mathbb{E}[Q_a^t|x_t,\mathcal{F}_{t-1}]\mathbb{E}[\{\mu^*(x_t,\omega_{at})-\sigma_{at}^*\}^{+}|x_t,\mathcal{F}_{t-1}]\\
&\displaystyle=\mathbb{E}[Q_a^t\{\mu^*(x_t,\omega_{at})-\sigma_{at}^*\}^{+}|x_t,\mathcal{F}_{t-1}],
\end{array}$$
(ii) holds by the identity $b=\min\{a,b\}+\{b-a\}^+$, (iii) since $S_a^t \leq Q_a^t$, and (iv) since $\sum_{a\in[A]}S_a^t = 1$ and $S_a^t \geq 0$.
The inequalities (iii) and (iv) hold as equalities when using Weitzman's principle via indices defined by (ref). Indeed the policy selects $a$ whenever $\mu^*(x_t,\omega_{at}) > \sigma_{at}^*$ and selects the maximum of $\max_{a\in [A]} \min\{ \mu^*(x_t,\omega_{at}),\sigma_{at}^*\}$. So the utility of the DM $U_t$ satisfies
\begin{equation}
U_t=\mathbb{E}\left[\sum_{a\in[A]}S_a^t\mu^*(x_t,\omega_{at})-\sum_{a\in[A]}Q_a^tc_{at}\bigg|x_t,\mathcal{F}_{t-1}\right]=\mathbb{E}\left[\max_{a\in [A]} \min\{ \sigma_{at}^*,\mu^*(x_t,\omega_{at})\}\bigg|x_t,\mathcal{F}_{t-1}\right],
\end{equation}
thus concludes the proof.
$\blacksquare$
\proof{Proof of Proposition (ref)}
For any $x_t\in\mathcal{X}$ and $a\in[A]$, we have $\mathbb{I}\{a\in\mathcal{A}_t\}\perp\!\!\!\!\perp\omega_{at}|x_t,\mathcal{F}_{t-1}$ by Lemma (ref). Since $c_{at}=c_a(x_t,\omega_{at})$ we have
$$\begin{array}{rl}
&\quad\displaystyle\mathbb{E}\left[\{ \mu^*(x_t,\omega_{at})-\Lambda(\rho_a^\top\psi(x_t))\}^{+}-c_{at}|x_t,\mathcal{F}_{t-1},a\in\mathcal{A}_t\right]\\
&\displaystyle = \mathbb{E}\left[\{ \mu^*(x_t,\omega_{at})-\Lambda(\rho_a^\top\psi(x_t))\}^{+}-c_{at}|x_t,\mathcal{F}_{t-1}\right].
\end{array}$$
For any given $a\in[A]$ and $x$, define
$$F_{a}(x,s):=\mathbb{E}\left[\{\mu^*(x,\omega_{at})-\Lambda(s)\}^{+}-c_{at}|x_t=x,\mathcal{F}_{t-1},a\in\mathcal{A}_t\right].$$
So we have $F_a\left(x,\rho_a^\top \psi(x)\right)=0, \forall x\in\mathcal{X}$. Note that $\Lambda(\cdot)$ is strictly increasing and takes values in $[-1,1]$, and $c_{at}\in(0,1)$, so for every $x\in\mathcal{X}$, $F_a(x,s)$ is decreasing and continuous in $s$. Note that
$$\begin{array}{rl}
\lim_{s\rightarrow-\infty}F_a(x,s)&=\lim_{s\rightarrow-\infty}\mathbb{E}\left[\{\mu^*(x,\omega_{at})-\Lambda(s)\}^{+}-c_{at}|x_t=x,\mathcal{F}_{t-1}, a\in\mathcal{A}_t\right]\\
&\displaystyle=_{(i)}\mathbb{E}\left[\{\mu^*(x,\omega_{at})+1\}^{+}-c_{at}|x_t=x,\mathcal{F}_{t-1}, a\in\mathcal{A}_t\right]\\
&\displaystyle\geq\mathbb{E}\left[1-c_{at}|x_t=x,\mathcal{F}_{t-1}, a\in\mathcal{A}_t\right]=_{(ii)}\mathbb{E}\left[1-c_{at}|x_t=x,\mathcal{F}_{t-1}\right]>_{(iii)}0
\end{array}$$
where (i) follows from Assumption (ref), (ii) follows because $c_{at}=c_a(x_t,\omega_{at})$ and $\omega_{at}\perp\!\!\!\!\perp\mathbb{I}\{a\in\mathcal{A}_t\}|x_t,\mathcal{F}_{t-1}$ by Lemma (ref), (iii) follows because $c_{at}\in(0,1)$. Thus $\lim_{s\rightarrow-\infty}F_a(x,s)>0$. Similarly, Assumption (ref) implies $\lim_{s\rightarrow+\infty}F_a(x,s)<0$. Thus by intermediate value theorem, there exists a $\xi_a(x)\in\mathbb{R}$ such that $F_a(x,\xi_a(x))=0$. Now suppose that there exists $s_1<s_2$ such that $F_a(x,s_1)=F_a(x,s_2)=0$. Then we have
\begin{equation}
0=F_a(x,s_1)-F_a(x,s_2)=\mathbb{E}[(\mu^*(x,\omega_{at})-\Lambda(s_1))^{+}-(\mu^*(x,\omega_{at})-\Lambda(s_2))^{+}\mid x_t=x,\mathcal{F}_{t-1},a\in\mathcal{A}_t].
\end{equation}
This implies that
$$\begin{array}{rl}
\displaystyle\mathbb{E}[(\mu^*(x,\omega_{at})-\Lambda(s_1))^{+}|x_t=x,\mathcal{F}_{t-1},a\in\mathcal{A}_t]&\displaystyle=\mathbb{E}[(\mu^*(x,\omega_{at})-\Lambda(s_2))^{+}|x_t=x,\mathcal{F}_{t-1},a\in\mathcal{A}_t]\\
&\displaystyle=\mathbb{E}[c_{at}|x_t=x,\mathcal{F}_{t-1},a\in\mathcal{A}_t]>0.
\end{array}$$
Since $s_1<s_2$ and $\Lambda$ is strictly increasing, there must exists an event $\mathcal{E}$ where $\mu^*(x,\omega_{at})>\Lambda(s_2)>\Lambda(s_1)$ and $\mathbb{P}(\mathcal{E}|x_t=x,\mathcal{F}_{t-1},a\in\mathcal{A}_t)>0$, and
$$\begin{array}{rl}
F_a(x,s_1)-F_a(x,s_2)&=\mathbb{E}[(\mu^*(x,\omega_{at})-\Lambda(s_1))^{+}-(\mu^*(x,\omega_{at})-\Lambda(s_2))^{+}\mid x_t=x,\mathcal{F}_{t-1},a\in\mathcal{A}_t]\\
&\geq\mathbb{E}[(\Lambda(s_2)-\Lambda(s_1))\mathbb{I}\{\mathcal{E}\}|x_t=x,\mathcal{F}_{t-1},a\in\mathcal{A}_t]>0,
\end{array}$$
which contradicts (ref). So the conditional moment restriction pins down the optimal index $\sigma_a^*(x)=\Lambda(\xi_a(x))$ uniquely, and $\xi_a(x)=\rho_a^\top\psi(x)$ for any $x\in\mathcal{X}$. $\blacksquare$
\proof{Proof of Theorem (ref)}
Define $U_t(\tilde{\pi}):=\mu(\theta_*;x_t,\omega_{a_tt})-\sum_{a\in\mathcal{A}_t}c_{at}$, where $\tilde{\pi}$ is the COSMOS\ policy.
Let $\tilde{c}_{at}:=(\widetilde{\mu}_t(x_t,\omega_{at})-\widetilde{\sigma}_{at})^{+}$ be defined as an auxiliary pseudo-cost for any $a\in[A], t\in[T]$. Let $\tilde{U}_t(\tilde{\pi})$ denote the realized utility of $\tilde{\pi}$ under cost $\tilde{c}_{at}$, i.e. $$\tilde{U}_t(\tilde{\pi}):=\max_{a\in\mathcal{A}_t}\widetilde{\mu}_t(x_t,\omega_{at})-\sum_{a\in\mathcal{A}_t}\tilde{c}_{at}.$$
By (ref) in Proposition (ref), we have
$$\begin{array}{rcl}
\displaystyle\mathbb{E}[U_t(\pi^*)\mid x_t,\mathcal{F}_{t-1}]&=&\displaystyle\mathbb{E}\big[\max_{a\in[A]}\min\{\mu^*(x_t,\omega_{at}),\sigma_{at}^*\}\mid x_t,\mathcal{F}_{t-1}\big],\\
\displaystyle\mathbb{E}\left[\tilde{U}_t(\tilde{\pi})\mid x_t,\mathcal{F}_{t-1}\right]&=&\displaystyle\mathbb{E}\big[\max_{a\in[A]}\min\{\widetilde{\mu}_t(x_t,\omega_{at}),\widetilde{\sigma}_{at}\}\mid x_t,\mathcal{F}_{t-1}\big].
\end{array}$$
Note that for the same execution of $\tilde{\pi}$ pathwise,
$$U_t(\tilde{\pi})=\tilde{U}_t(\tilde{\pi})-(\widetilde{\mu}_t(x_t,\omega_{a_tt})-\mu(\theta_*;x_t,\omega_{a_tt}))-\sum_{a\in\mathcal{A}_t}(c_{at}-\tilde{c}_{at}).$$
Therefore,
\begin{equation}
\begin{array}{rl}
\Delta_t(\tilde{\pi})&=\mathbb{E}[U_t(\pi^*)\mid x_t,\mathcal{F}_{t-1}]-\mathbb{E}[U_t(\tilde{\pi})\mid x_t,\mathcal{F}_{t-1}]\\
&=\mathbb{E}\big[\max_{a\in[A]}\min\{\mu^*(x_t,\omega_{at}),\sigma_{at}^*\}\mid x_t,\mathcal{F}_{t-1}\big]-\mathbb{E}\big[\max_{a\in[A]}\min\{\widetilde{\mu}_t(x_t,\omega_{at}),\widetilde{\sigma}_{at}\}\mid x_t,\mathcal{F}_{t-1}\big]\\
&\quad+\mathbb{E}[\widetilde{\mu}_t(x_t,\omega_{a_tt})-\mu(\theta_*;x_t,\omega_{a_tt})\mid x_t,\mathcal{F}_{t-1}]+\mathbb{E}\bigg[\sum_{a\in\mathcal{A}_t}(c_{at}-\tilde{c}_{at})\mid x_t,\mathcal{F}_{t-1}\bigg].
\end{array}
\end{equation}
Since $\widetilde{\mu}_t(x_t,\omega_{at})\geq\mu^*(x_t,\omega_{at})$ and $\widetilde{\sigma}_{at}\geq\sigma_{at}^*$ a.s.,
$\min\{\widetilde{\mu}_t(x_t,\omega_{at}),\widetilde{\sigma}_{at}\}\geq\min\{\mu^*(x_t,\omega_{at}),\sigma_{at}^*\}$ a.s. for every $a\in[A]$. So
\begin{equation}
\mathbb{E}\big[\max_{a\in[A]}\min\{\mu^*(x_t,\omega_{at}),\sigma_{at}^*\}\mid x_t,\mathcal{F}_{t-1}\big]-\mathbb{E}\big[\max_{a\in[A]}\min\{\widetilde{\mu}_t(x_t,\omega_{at}),\widetilde{\sigma}_{at}\}\mid x_t,\mathcal{F}_{t-1}\big]\leq0.
\end{equation}
Further, for each $a\in[A]$,
$$\begin{array}{rl}
\mu^*(x_t,\omega_{at})-\sigma_{at}^*&\displaystyle=(\widetilde{\mu}_t(x_t,\omega_{at})-\widetilde{\sigma}_{at})+(\mu^*(x_t,\omega_{at})-\widetilde{\mu}_t(x_t,\omega_{at}))+(\widetilde{\sigma}_{at}-\sigma_{at}^*)\\
&\displaystyle\leq(\widetilde{\mu}_t(x_t,\omega_{at})-\widetilde{\sigma}_{at})+(\widetilde{\sigma}_{at}-\sigma_{at}^*).
\end{array}$$
Taking positive parts and using subadditivity of $x\mapsto x^+$ gives
$$(\mu^*(x_t,\omega_{at})-\sigma_{at}^*)^{+}\leq(\widetilde{\mu}_t(x_t,\omega_{at})-\widetilde{\sigma}_{at})^{+}+(\widetilde{\sigma}_{at}-\sigma_{at}^*)^{+}=(\widetilde{\mu}_t(x_t,\omega_{at})-\widetilde{\sigma}_{at})^{+}+(\widetilde{\sigma}_{at}-\sigma_{at}^*).$$
Hence
\begin{equation}
\begin{array}{rl}
\mathbb{E}[c_{at}-\tilde{c}_{at}\mid x_t,\mathcal{F}_{t-1}]&=\mathbb{E}[(\mu^*(x_t,\omega_{at})-\sigma_{at}^*)^{+}\mid x_t,\mathcal{F}_{t-1}]-\mathbb{E}[(\widetilde{\mu}_t(x_t,\omega_{at})-\widetilde{\sigma}_{at})^{+}\mid x_t,\mathcal{F}_{t-1}]\\
&\leq\widetilde{\sigma}_{at}-\sigma_{at}^*.
\end{array}
\end{equation}
Thus
\begin{equation}
\begin{array}{rl}
\mathbb{E}\left[\sum_{a\in\mathcal{A}_t}(c_{at}-\tilde{c}_{at})\ \bigg|\ x_t,\mathcal{F}_{t-1}\right]&=\sum_{a\in[A]}\mathbb{E}[(c_{at}-\tilde{c}_{at})\mathbb{I}\{a\in\mathcal{A}_t\} \mid x_t,\mathcal{F}_{t-1}]\\
&=_{(i)}\sum_{a\in[A]}\mathbb{E}[c_{at}-\tilde{c}_{at}\mid x_t,\mathcal{F}_{t-1}]\mathbb{E}[\mathbb{I}\{a\in\mathcal{A}_t\}\mid x_t,\mathcal{F}_{t-1}]\\
&\leq_{(ii)}\sum_{a\in[A]}(\widetilde{\sigma}_{at}-\sigma_{at}^*)\mathbb{E}[\mathbb{I}\{a\in\mathcal{A}_t\}\mid x_t,\mathcal{F}_{t-1}]\\
&\leq\mathbb{E}\left[\sum_{a\in\mathcal{A}_t}(\widetilde{\sigma}_{at}-\sigma_{at}^*)\ \bigg|\ x_t,\mathcal{F}_{t-1}\right].
\end{array}
\end{equation}
where (i) of (ref) follows since $c_{at}=c_a(x_t,\omega_{at}), \tilde{c}_{at}=(\widetilde{\mu}_t(x_t,\omega_{at})-\widetilde{\sigma}_{at})^{+}$ and $\mathbb{I}\{a\in\mathcal{A}_t\}\perp\!\!\!\!\perp \omega_{at}|x_t,\mathcal{F}_{t-1}$ by Lemma (ref), (ii) follows from (ref).
The result then follows from (ref), (ref), (ref).
$\blacksquare$
\section{Regret under Known Reward Function}
In this section, we provide regret analysis when the reward parameter $\theta_*$ is known. We begin with the technical lemmas used in the analysis.
\subsection{Technical Lemmas}
For any $a\in[A], t\in[T]$, let
\begin{equation}
m_{at}(u):=\mathbb{E}\bigl[(\mu^*(x_t,\omega_{at})-\Lambda(u))^+ - c_{at}\mid \mathcal{F}_{t-1},x_t\bigr],
\end{equation}
then $m_{at}(\rho_a^\top\psi(x_t))=0$.
\begin{lemma}
Assume that, for every $t$, for some constant $\eta>0$,
\begin{equation}
\mathbb{P}\bigl(\mu^*(x_t,\omega_{at})>\Lambda(u)\mid \mathcal{F}_{t-1},x_t\bigr)\,\Lambda'(u)\ge \eta, \ \forall |u|\leq\overline{\iota},
\end{equation}
Then, for every $u\in[-\overline{\iota},\overline{\iota}]$,
\begin{equation}
-(u-\rho_a^\top\psi(x_t))m_{at}(u)\ge \eta (u-\rho_a^\top\psi(x_t))^2
\qquad a.s.
\end{equation}
\end{lemma}
Lemma (ref) says that the reservation-value moment crosses zero with a
slope bounded away from zero. If the candidate threshold $u$ is above the true threshold
$v_{as}$, then the expected excess value is too small relative to cost, so the moment
$c-(\mu^*-\Lambda(u))^+$ is positive. If $u$ is below the true threshold, then the expected
excess value is too large relative to cost, so the moment is negative. This monotonicity is what
ultimately makes the loss locally curved around $\rho_a$.
\proof{Proof of Lemma (ref)}
Fix $t$ and $u\in I$. For any real number $a$ and any continuously differentiable function $g$, the map $v\mapsto (a-g(v))^+$ is absolutely continuous and has a.e. derivative $\frac{d}{dv}(a-g(v))^+=-\mathbb{I}\{a>g(v)\}g'(v)$. Applying the fundamental theorem of calculus with $g=\Lambda$, we obtain for any $u,v\in\mathbb{R}$,
$(\mu^*(x_t,\omega_{at})-\Lambda(u))^+-(\mu^*(x_t,\omega_{at})-\Lambda(v))^+
=-\int_v^u \mathbb{I}\{\mu^*(x_t,\omega_{at})>\Lambda(r)\}\Lambda'(r)\,dr$.
Taking conditional expectations given $\mathcal{F}_{t-1}$ yields
$$m_{at}(u)-m_{at}(v)
=-\int_v^u \mathbb{P}\bigl(\mu^*(x_t,\omega_{at})>\Lambda(r)\mid \mathcal{F}_{t-1},x_t\bigr)\Lambda'(r)\,dr.$$
Since $m_{at}(\rho_a^\top\psi(x_t))=0$, setting $v=\rho_a^\top\psi(x_t)$ gives
$$m_{at}(u)
=-\int_{\rho_a^\top\psi(x_t)}^{u} \mathbb{P}\bigl(\mu^*(x_t,\omega_{at})>\Lambda(r)\mid \mathcal{F}_{t-1},x_t\bigr)\Lambda'(r)\,dr.$$
If $u\ge\rho_a^\top\psi(x_t)$, then (ref) implies
$m_{at}(u)
\le -\int_{\rho_a^\top\psi(x_t)}^{u} \eta\,dr
=-\eta\left(u-\rho_a^\top\psi(x_t)\right)$,
which proves (ref). If $u\le\rho_a^\top\psi(x_t)$, then
$$m_{at}(u)
=\int_{u}^{\rho_a^\top\psi(x_t)} \mathbb{P}\bigl(\mu^*(x_t,\omega_{at})>\Lambda(r)\mid \mathcal{F}_{t-1},x_t\bigr)\Lambda'(r)\,dr
\ge_{(i)} \int_{u}^{\rho_a^\top\psi(x_t)} \eta\,dr
=\eta\left(\rho_a^\top\psi(x_t)-u\right),$$
where (i) follows from (ref) and (ref) follows again.
$\blacksquare$
We next prove Lemma (ref) using Lemma (ref):
\begin{lemma*}[Restatement of Lemma (ref)]
Under Assumptions (ref), (ref), for any $t\in[T]$, $a\in[A]$ and $\rho\in\mathcal{B}$, $\mathbb{E}[\ell_{at}(\rho)-\ell_{at}(\rho_a)\mid x_t,\mathcal{F}_{t-1}]
\ge \frac{1}{2}\kappa\mu_1\bigl(\psi(x_t)^\top(\rho-\rho_a)\bigr)^2$.
\end{lemma*}
\proof{Proof of Lemma (ref)}
The scalar map
$\displaystyle z\mapsto \int_0^z\Bigl(c_{at}-(\mu^*(x_t,\omega_{at})-\Lambda(u))^+\Bigr)\,du$
is differentiable, with derivative $c_{at}-(\mu^*(x_t,\omega_{at})-\Lambda(z))^+$.
Therefore
\begin{equation}
\nabla \ell_{at}(\rho)
=\psi(x_t)\Bigl(c_{at}-(\mu^*(x_t,\omega_{at})-\Lambda(\rho^\top\psi(x_t)))^+\Bigr).
\end{equation}
The derivative of $z\mapsto c_{at}-(\mu^*(x_t,\omega_{at})-\Lambda(u))^+$ is $\mathbb{I}\{\mu^*(x_t,\omega_{at})>\Lambda(z)\}\Lambda'(z)\ge 0$ a.e., so the scalar map is nondecreasing and thus $\ell_{at}(\rho)$ is convex in $\rho^\top\psi(x_t)$, hence convex in $\rho$. Taking conditional expectations in (ref) gives
$\nabla\mathbb{E}[\ell_{at}(\rho)\mid x_t,\mathcal{F}_{t-1}]
= -\psi(x_t)\,m_{at}(\psi(x_t)^\top\rho)$.
By convexity of $\mathcal{B}$, the entire segment $\psi(x_t)^\top\rho_a+s\psi(x_t)^\top(\rho-\rho_a)= \psi(x_t)^\top(\rho_a+s(\rho-\rho_a)),\forall s\in[0,1]$
lies in $I=[-\bar{\iota},\bar{\iota}]$ by Assumption (ref). Using the fundamental theorem of calculus along the line segment from $\rho_a$ to $\rho$,
$$\begin{array}{rl}
\mathbb{E}[\ell_{at}(\rho)-\ell_{at}(\rho_a)\mid\mathcal{F}_{t-1},x_t]
&\displaystyle=\int_0^1(\rho-\rho_a)^\top\nabla \mathbb{E}[\ell_{at}(\rho_a+s(\rho-\rho_a))\mid\mathcal{F}_{t-1},x_t]\,ds\\
&\displaystyle=-\int_0^1 \bigl(\psi(x_t)^\top(\rho-\rho_a)\bigr)m_{at}\bigl(\psi(x_t)^\top\rho_a+s \psi(x_t)^\top(\rho-\rho_a)\bigr)\,ds.
\end{array}$$
Applying Lemma (ref) in the Appendix with $u=\psi(x_t)^\top\rho_a+s\psi(x_t)^\top(\rho-\rho_a)$ yields
$$-\bigl(s\psi(x_t)^\top(\rho-\rho_a)\bigr)m_{at}\bigl(\psi(x_t)^\top\rho_a+s \psi(x_t)^\top(\rho-\rho_a)\bigr)
\ge \kappa\mu_1 s^2\bigl(\psi(x_t)^\top(\rho-\rho_a)\bigr)^2,$$
where the last inequality follows because $\mathbb{P}\bigl(\mu^*(x_t,\omega_{at})>\Lambda(u)\mid \mathcal{F}_{t-1},x_t\bigr)\,\Lambda'(u)\ge\kappa\mu_1$ according to Assumptions (ref), (ref).
For $s>0$, divide by $s$ to obtain
$$-\bigl(\psi(x_t)^\top(\rho-\rho_a)\bigr)m_{at}\bigl(\psi(x_t)^\top\rho_a+s \psi(x_t)^\top(\rho-\rho_a)\bigr)
\ge \kappa\mu_1 s\bigl(\psi(x_t)^\top(\rho-\rho_a)\bigr)^2.$$
Integrating over $s\in[0,1]$ yields
$$\mathbb{E}[\ell_{at}(\rho)-\ell_{at}(\rho_a)\mid\mathcal{F}_{t-1},x_t]
\ge \int_0^1 \eta s\bigl(\psi(x_t)^\top(\rho-\rho_a)\bigr)^2\,ds
=\frac{\kappa\mu_1}{2}\bigl(\psi(x_t)^\top(\rho-\rho_a)\bigr)^2$$
as claimed.
$\blacksquare$
\begin{lemma}
Fix any $a\in[A]$ and $t\in[T]$, for any $\rho_t$ adapted to $\mathcal{F}_{t-1}$, we have
$$\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}\mathbb{E}\left[\ell_{as}(\rho_t)-\ell_{as}(\rho_a)\mid\mathcal{F}_{s-1},x_s\right]\geq\frac{\kappa\mu_1}{2}\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}[\psi(x_{s})^\top(\rho_t-\rho_a)]^2-\frac{1}{n_{at}}.$$
\end{lemma}
\proof{Proof of Lemma (ref)}
Set
\begin{equation}
\epsilon=\frac{1}{2n_{at}\bar{C}_{\psi}(\kappa\mu_1\bar{\iota}+1)}
\end{equation}
and take an Euclidean $\epsilon$-net $\mathcal{N}_{\epsilon}$ of $\mathcal{B}$. According to Assumptions (ref) and (ref), for any $s\in[T]$ we have $\mathbb{P}\bigl(G(\theta_*^\top\phi(x_s,\omega_{as}))>\Lambda(u)\mid x_s,\mathcal{F}_{s-1}\bigr)\Lambda'(u)\ge \kappa\mu_1>0, \ \forall |u|\leq\overline{\iota}$.
Lemma (ref) implies that given any $s\in[T]$ and $\bar{\rho}\in\mathcal{N}_{\epsilon}$, it always holds that
$\displaystyle\mathbb{E}\left[\ell_{as}(\bar{\rho})-\ell_{as}(\rho_a)\mid\mathcal{F}_{s-1},x_s\right]\geq\frac{\kappa\mu_1}{2}[\psi(x_s)^\top(\bar{\rho}-\rho_a)]^2$.
Since $\mathcal{B}$ has diameter $d_{\mathcal{B}}$ by Assumption (ref), $\mathcal{N}_{\epsilon}$ is finite. So after intersecting finitely many probability-one events, we have with probability one, simultaneously for all $\rho\in\mathcal{N}_{\epsilon}$ and $s\in[T]$,
\begin{equation}
\mathbb{E}\left[\ell_{as}(\rho)-\ell_{as}(\rho_a)\mid\mathcal{F}_{s-1},x_s\right]\geq\frac{\kappa\mu_1}{2}[\psi(x_s)^\top(\rho-\rho_a)]^2.
\end{equation}
Choose $\rho_{\epsilon}\in\mathcal{N}_{\epsilon}$ such that $\|\rho_t-\rho_{\epsilon}\|_2\leq\epsilon$. Note that
\begin{equation}
\begin{array}{rl}
&\quad\left|[\ell_{as}(\rho_t)-\ell_{as}(\rho_a)]-[\ell_{as}(\rho_\epsilon)-\ell_{as}(\rho_a)]\right|\\
&\ =|\ell_{as}(\rho_t)-\ell_{as}(\rho_\epsilon)|\\
&=_{(i)}\left|\int_{\rho_\epsilon^\top\psi(x_{s})}^{\rho_t^\top\psi(x_{s})}[c_{as}-(G(\theta_*^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}]du\right|\\
&\leq_{(ii)}2|(\rho_t-\rho_\epsilon)^\top\psi(x_{s})|\leq_{(iii)}2\bar{C}_{\psi}\epsilon,
\end{array}
\end{equation}
where (i) follows by definition of $\ell_{as}(\rho)$, (ii) follows since by definition, $c_{as}\in[0,1]$, $G(\theta_*^\top\phi(x_{s},\omega_{as}))\in[0,1]$, $\Lambda(u)\in[-1,1]$, so
$|c_{as}-(G(\theta_*^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}|\leq 2$.
(iii) follows by Cauchy-Schwarz inequality, the fact that $\|\rho-\rho_{\epsilon}\|_2\leq\epsilon$ and $\|\psi(x_t)\|_2\leq\bar{C}_{\psi}$ by Assumption (ref). Hence
$$\begin{array}{rl} &\displaystyle\quad\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}\mathbb{E}\left[\ell_{as}(\rho_t)-\ell_{as}(\rho_a)\mid\mathcal{F}_{s-1},x_s\right]\\
&\displaystyle=\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}\mathbb{E}\left[\ell_{as}(\rho_t)-\ell_{as}(\rho_\epsilon)+\ell_{as}(\rho_\epsilon)-\ell_{as}(\rho_a)\mid\mathcal{F}_{s-1},x_s\right]\\
&\displaystyle\geq_{(1)}\frac{\kappa\mu_1}{2}\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}[\psi(x_s)^\top(\rho_\epsilon-\rho_a)]^2-2\bar{C}_{\psi}\epsilon\\
&\displaystyle=\frac{\kappa\mu_1}{2}\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}[\psi(x_s)^\top(\rho_\epsilon-\rho_t)+\psi(x_s)^\top(\rho_t-\rho_a)]^2-2\bar{C}_{\psi}\epsilon\\
&\displaystyle\geq_{(2)}\frac{\kappa\mu_1}{2}\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}\left\{[\psi(x_s)^\top(\rho_t-\rho_a)]^2-2\epsilon\bar{C}_{\psi}|\psi(x_s)^\top(\rho_t-\rho_a)|\right\}-2\bar{C}_{\psi}\epsilon\\
&\displaystyle\geq_{(3)}\frac{\kappa\mu_1}{2}\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}\left\{[\psi(x_s)^\top(\rho_t-\rho_a)]^2-4\epsilon\bar{C}_{\psi}\bar{\iota}\right\}-2\bar{C}_{\psi}\epsilon\\
&\displaystyle=\frac{\kappa\mu_1}{2}\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}[\psi(x_s)^\top(\rho_t-\rho_a)]^2-2(\kappa\mu_1\bar{\iota}+1)\bar{C}_{\psi}\epsilon\\
&\displaystyle=_{(4)}\frac{\kappa\mu_1}{2}\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}[\psi(x_s)^\top(\rho_t-\rho_a)]^2-\frac{1}{n_{at}},
\end{array}$$
where (1) follows from (ref) and (ref), (2) follows from applying Cauchy-Schwarz inequality to $\psi(x_s)^\top(\rho_\epsilon-\rho_t)$ and the fact that $\|\rho_\epsilon-\rho_t\|_2\leq\epsilon$, $\|\psi(x_s)\|_2\leq\bar{C}_{\psi}$, (3) follows since $\psi(x_s)^\top\rho_t\in[-\bar{\iota},\bar{\iota}], \psi(x_s)^\top\rho_{a}\in[-\bar{\iota},\bar{\iota}]$, (4) follows from (ref).
$\blacksquare$
\begin{lemma}[Freedman's Inequality freedman1975tail]
Consider a real-valued martingale $Y_k=\sum_{j=1}^kX_j$ with $Y_0=0$ and difference sequence $\{X_k:k=1,2,3,\ldots\}$. Assume that $X_k\leq R$ almost surely for $k\geq1$, where $R$ is a constant. Let $W_k:=\sum_{j=1}^k\mathbb{E}[X_j^2\mid\mathcal{F}_{j-1}]$ for $k\geq1$. Then for all $t\geq1$ and $\sigma^2>0$,
$\displaystyle\mathbb{P}\left(\exists k\geq0: Y_k\geq t,\ \mbox{and}\ W_k\leq\sigma^2\right)\leq\exp\left\{-\frac{t^2/2}{\sigma^2+Rt/3}\right\}$.
\end{lemma}
\begin{lemma*}[Restatement of Lemma (ref)]
Suppose Assumptions (ref), (ref) hold. Then given any constant $c_0>0$ and any $a\in[A]$, with probability at least $1-\delta/3$, uniformly over all $t\in[T]$, for any $\rho_t$ adapted to $\mathcal{F}_{t-1}$, we have
$$\begin{array}{rl}
&\quad\displaystyle-\sum_{s\in\mathcal{S}_{at}}\left\{\ell_{as}(\rho_t)-\ell_{as}(\rho_a)-\mathbb{E}[\ell_{as}(\rho_t)-\ell_{as}(\rho_a)\mid\mathcal{F}_{s-1},x_{s}]\right\}\\
&\displaystyle\leq\frac{c_0}{8}\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2+\left(\frac{144}{c_0}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+4+\frac{c_0}{8},
\end{array}$$
where $\Gamma_{at}(\delta)\!:=m\log(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)+\log\left(\left\lceil\log_2\left(1+n_{at}\min\{9\overline{\iota}^2,d_{\mathcal{B}}^2\bar{C}_{\psi}^2\}\right)\right\rceil+1\right)+\log\left(6T/\delta\right)$.
\end{lemma*}
\proof{Proof of Lemma (ref)}
For any $s\in\mathcal{S}_{at}$, define $\mathcal{G}_{s-1}:=\sigma(\mathcal{F}_{s-1},x_{s})$. Let
$$H_{at}(\rho):=\sum_{s\in\mathcal{S}_{at}}\left\{\ell_{as}(\rho)-\ell_{as}(\rho_a)-\mathbb{E}[\ell_{as}(\rho)-\ell_{as}(\rho_a)\mid\mathcal{G}_{s-1}]\right\}.$$
Note that $-2\leq c_{at}-(G(\theta_*^\top\phi(x_t,\omega_{at}))-\Lambda(u))^{+}\leq1$, so for any $\rho\in\mathcal{B}$,
$$\begin{array}{rl}
&\quad\displaystyle\left|\ell_{as}(\rho)-\ell_{as}(\rho_a)-\mathbb{E}[\ell_{as}(\rho)-\ell_{as}(\rho_a)\mid\mathcal{G}_{s-1}]\right|\\
&\displaystyle\ =\bigg|\int_{\rho_a^\top\psi(x_{s})}^{\rho^\top\psi(x_{s})}[c_{as}-(G(\theta_*^\top\phi(x_{s},\omega_{as})-\Lambda(u))^{+}]du\\
&\displaystyle\quad\quad-\mathbb{E}\bigg[\int_{\rho_a^\top\psi(x_{s})}^{\rho^\top\psi(x_{s})}[c_{as}-(G(\theta_*^\top\phi(x_{s},\omega_{as})-\Lambda(u))^{+}]du\mid\mathcal{G}_{s-1}\bigg]\bigg|\\
&\displaystyle\leq3|(\rho-\rho_a)^\top\psi(x_{s})|\leq\min\{6\overline{\iota},3\bar{C}_{\psi}d_{\mathcal{B}}\}.
\end{array}$$
Let
$\displaystyle W_t(\rho):=\sum_{s\in\mathcal{S}_{at}}\mathbb{E}\left[\{\ell_{as}(\rho)-\ell_{as}(\rho_a)-\mathbb{E}[\ell_{as}(\rho)-\ell_{as}(\rho_a)\mid\mathcal{G}_{s-1}]\}^2\mid\mathcal{G}_{s-1}\right]$.
So for any $\rho\in\mathcal{B}$,
\begin{equation}
W_t(\rho)\leq9\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2,
\end{equation}
where $(\rho-\rho_a)^\top\psi(x_{s})$ is $\mathcal{G}_{s-1}$-measurable.
Note that for any $\rho\in\mathcal{B}$, $\rho^\top\psi(x_{s})\in[-2\overline{\iota},\overline{\iota}]$ and $|(\rho-\rho_a)^\top\psi(x)|\leq\|\rho-\rho_a\|_2\|\psi(x)\|_2\leq d_{\mathcal{B}}\bar{C}_{\psi}$, thus
$\displaystyle\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2\leq n_{at}\min\{9\overline{\iota}^2,d_{\mathcal{B}}^2\bar{C}_{\psi}^2\}$. Let
\begin{equation}
Q_{at}:=\left\lceil\log_2\left(1+n_{at}\min\{9\overline{\iota}^2,d_{\mathcal{B}}^2\bar{C}_{\psi}^2\}\right)\right\rceil.
\end{equation}
Consider the events $\{\mathcal{E}_q\}$ for $q=\{0\}\cup[Q_{at}]$, where
\begin{equation}
\mathcal{E}_q:=\begin{cases}
\big\{2^{q-1}<\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2\leq 2^q\big\}&if q\geq1\\
\big\{0\leq\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2\leq 1\big\}&if q=0
\end{cases}
\end{equation}
Fix any $x>0$. On the event $\mathcal{E}_q$, $\displaystyle W_t(\rho)\leq9\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2\leq9\times2^{q}$.
So applying Freedman's inequality (Lemma (ref)) with $\sigma^2=9\times2^{q}$, we have
$$\mathbb{P}\left(-H_{at}(\rho)\geq3\sqrt{2}\sqrt{2^qx}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}x,\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2\leq 2^q\right)\leq e^{-x}.$$
Additionally, on event $\mathcal{E}_q$, $\displaystyle 6\sqrt{x\bigg(1+\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2\bigg)}\geq6\sqrt{2^{q-1}x}=3\sqrt{2}\sqrt{2^qx}$.
Thus on event $\mathcal{E}_q$,
$$\begin{array}{rl}
&\quad\displaystyle-H_{at}(\rho)\geq6\sqrt{x\bigg(1+\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2\bigg)}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}x\\
&\displaystyle\Rightarrow -H_{at}(\rho)\geq3\sqrt{2}\sqrt{2^qx}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}x.
\end{array}$$
Summing the probability bound above over $q\in\{0\}\cup[Q_{at}]$, we have
$$\mathbb{P}\left(-H_{at}(\rho)\geq6\sqrt{x+x\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}x\right)\leq 2(Q_{at}+1)e^{-x}.$$
Setting $x=\log\left(2(Q_{at}+1)/\delta\right)$ above, then for any fixed $\rho\in\mathcal{B}$, with probability at least $1-\delta$ we have
\begin{equation}
-H_{at}(\rho)<6\sqrt{\log\left(\frac{2(Q_{at}+1)}{\delta}\right)\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2}+(2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6)\log\left(\frac{2(Q_{at}+1)}{\delta}\right).
\end{equation}
Set
\begin{equation}
\epsilon=\frac{1}{T\bar{C}_{\psi}}
\end{equation}
and take an Euclidean $\epsilon$-net $\mathcal{N}_\epsilon$ of $\mathcal{B}$. Since $\mathcal{B}$ has diameter $d_{\mathcal{B}}$ by Assumption (ref), $$|\mathcal{N}_\epsilon|\leq\left(1+\frac{2d_{\mathcal{B}}}{\epsilon}\right)^m=(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)^m.$$
Note that (ref) further implies that with probability at least $1-\delta/3$, uniformly over all $\rho\in\mathcal{N}_\epsilon$ and $t\in[T]$,
\begin{equation}
\begin{array}{rl}
-H_{at}(\rho)&<6\sqrt{\log\left(\frac{6T|\mathcal{N}_\epsilon|(Q_{at}+1)}{\delta}\right)\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2}\\
&\quad+(2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6)\log\left(\frac{6T|\mathcal{N}_\epsilon|(Q_{at}+1)}{\delta}\right)\\
&\leq6\sqrt{\Gamma_{at}(\delta)\sum_{s\in\mathcal{S}_{at}}\{(\rho-\rho_a)^\top\psi(x_{s})\}^2}+(2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6)\Gamma_{at}(\delta),
\end{array}
\end{equation}
where
\begin{equation}
\Gamma_{at}(\delta)\!:=m\log(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)+\log(Q_{at}+1)+\log\left(6T/\delta\right).
\end{equation}
Let $\rho_{\epsilon}\in\mathcal{N}_\epsilon$ satisfy $\|\rho_t-\rho_{\epsilon}\|_2\leq\epsilon$. Note that
$$\begin{array}{rl}
&\quad\displaystyle\left|[\ell_{as}(\rho_t)-\ell_{as}(\rho_a)]-[\ell_{as}(\rho_\epsilon)-\ell_{as}(\rho_a)]\right|\\
&\displaystyle\ =|\ell_{as}(\rho_t)-\ell_{as}(\rho_\epsilon)|=_{(i)}\left|\int_{\rho_\epsilon^\top\psi(x_{s})}^{\rho_t^\top\psi(x_{s})}[c_{as}-(G(\theta_*^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}]du\right|\\
&\displaystyle\leq_{(ii)}2|(\rho_t-\rho_\epsilon)^\top\psi(x_{s})|\leq_{(iii)}2\bar{C}_{\psi}\epsilon\leq_{(iv)}\frac{2}{n_{at}}.
\end{array}$$
where (i) follows by definition of $\ell_{as}(\rho)$ in (ref), (ii) follows since by definition,
$$|c_{as}-(G(\theta_*^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}|\leq 2,$$
(iii) follows by Cauchy-Schwarz inequality, the fact that $\|\rho_t-\rho_{\epsilon}\|_2\leq\epsilon$ and $\|\psi(x_t)\|_2\leq\bar{C}_{\psi}$ by Assumption (ref), (iv) follows by (ref). The above inequality implies that
$$|H_{at}(\rho_t)-H_{at}(\rho_{\epsilon})|=\left|\sum_{s\in\mathcal{S}_{at}}[\ell_{as}(\rho_t)-\ell_{as}(\rho_\epsilon)]-\mathbb{E}[\ell_{as}(\rho_t)-\ell_{as}(\rho_\epsilon)\mid\mathcal{G}_{s-1}]\right|\leq\sum_{s\in\mathcal{S}_{at}}\frac{4}{n_{at}}\leq4.$$
Therefore,
\begin{equation}
|H_{at}(\rho_t)-H_{at}(\rho_{\epsilon})|\leq4.
\end{equation}
Note that
$\displaystyle\sqrt{\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2}=\|((\rho_t-\rho_a)^\top\psi(x_{s}))_{j\in[n_{at}]}\|_2$.
Thus by triangular inequality,
\begin{equation}
\begin{array}{rl}
\sqrt{\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2}-\sqrt{\sum_{s\in\mathcal{S}_{at}}\{(\rho_\epsilon-\rho_a)^\top\psi(x_{s})\}^2}&\leq\left\|((\rho_t-\rho_\epsilon)^\top\psi(x_{s}))_{j\in[n_{at}]}\right\|_2\\
&\leq\sqrt{n_{at}(\bar{C}_{\psi}\epsilon)^2}=\frac{1}{\sqrt{n_{at}}}.
\end{array}
\end{equation}
On the event that (ref) holds uniformly over all $\rho\in\mathcal{N}_\epsilon$ and $t\in[T]$, we have
$$\begin{array}{rl}
-H_{at}(\rho_t)&\displaystyle\leq_{(i)}-H_{at}(\rho_\epsilon)+4\\
&\displaystyle\leq_{(ii)}6\sqrt{\Gamma_{at}(\delta)\sum_{s\in\mathcal{S}_{at}}\{(\rho_\epsilon-\rho_a)^\top\psi(x_{s})\}^2}+(2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6)\Gamma_{at}(\delta)+4\\
&\displaystyle\leq_{(iii)}6\sqrt{\Gamma_{at}(\delta)}\left(\sqrt{\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2}+\frac{1}{\sqrt{n_{at}}}\right)+(2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6)\Gamma_{at}(\delta)+4\\
&\displaystyle\leq_{(iv)}6\sqrt{2\Gamma_{at}(\delta)}\sqrt{\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2+1}+(2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6)\Gamma_{at}(\delta)+4\\
&\displaystyle\leq_{(v)}\frac{c_0}{8}\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2+\left(\frac{144}{c_0}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+4+\frac{c_0}{8}
\end{array}$$
where (i) follows from (ref), (ii) follows from (ref), (iii) holds from (ref), (iv) holds from the fact that
$\displaystyle\sqrt{s}+\frac{1}{\sqrt{n_{at}}}\leq\sqrt{2(s+1/\sqrt{n_{at}})}$,
where $\displaystyle s=\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2$ and $1/\sqrt{n_{at}}\leq 1$, (v) follows by applying $2ab\leq\epsilon a^2+\epsilon^{-1}b^2$ to $\displaystyle a=\sqrt{\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2+1}$, $b=6\sqrt{2\Gamma_{at}(\delta)}$, $\displaystyle\epsilon=\frac{c_0}{4}$, so that
$$6\sqrt{2\Gamma_{at}(\delta)}\sqrt{\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2+1}\leq\frac{c_0}{8}\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2+\frac{144}{c_0}\Gamma_{at}(\delta)+\frac{c_0}{8}.$$
Hence with probability at least $1-\delta/3$, uniformly over all $t\in[T]$ we have
$$-H_{at}(\rho_t)\leq\frac{c_0}{8}\sum_{s\in\mathcal{S}_{at}}\{(\rho_t-\rho_a)^\top\psi(x_{s})\}^2+\left(\frac{144}{c_0}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+4+\frac{c_0}{8},$$
where $\Gamma_{at}(\delta)$ is defined as in (ref), thus the result follows.
$\blacksquare$
\subsection{Index Estimation under Known Reward Function}
Before introducing the formal proof, we first provide the proof's intuition. The argument follows a standard localized empirical-process approach for
M-estimation, adapted to our martingale setting. The estimator's empirical
optimality is combined with a population curvature lower bound, while the
stochastic deviation is controlled uniformly over the parameter space using
Freedman's martingale inequality, a peeling argument, and an $\epsilon$-net.
Readers familiar with localized empirical-process and
martingale concentration arguments may skip the following intuition and proceed
directly to the formal proof.
(i) The optimality inequality. Because $\hat{\rho}_{at}$ minimizes the empirical primitive loss, the empirical excess loss at $\hat{\rho}_{at}$ cannot be positive. Plug $\rho=\hat{\rho}_{at}$ into
$$\sum_{s \in \mathcal{S}_{at}}\!\big\{\ell_{as}(\rho)-\ell_{as}(\rho_a)\big\}
\;=\;\sum_{s \in \mathcal{S}_{at}}\!\!\mathbb{E}\big[\ell_{as}(\rho)-\ell_{as}(\rho_a)\,\big|\,\mathcal{F}_{s-1},x_s\big]
\;+\;H_{at}(\rho).$$
and use the population curvature lower bound from Lemma (ref) (with a small Lipschitz adjustment so that the curvature holds uniformly over $\rho$, which costs only an additive $1$). After rearranging, one obtains
$$\frac{\kappa\mu_1}{2}\sum_{s\in\mathcal{S}_{at}}\!\big\{\psi(x_s)^\top(\hat{\rho}_{at}-\rho_a)\big\}^2
\;\leq\;-H_{at}(\hat{\rho}_{at})\;+1.$$
The left side is the local quadratic “signal” we want to bound, and the right side is essentially the “noise”.
\emph{(ii) Bounding the noise at one fixed $\rho$.} For each fixed $\rho$, every term inside $H_{at}(\rho)$ is uniformly bounded and has a conditional variance controlled by the same quadratic quantity $\sum_{s\in\mathcal{S}_{at}}\{\psi(x_s)^\top(\rho-\rho_a)\}^2$. Freedman's freedman1975tail martingale inequality (Lemma (ref)) therefore gives, for each fixed $\rho$,
\[
|H_{at}(\rho)|\;\lesssim\;\sqrt{\Big(\textstyle\sum_{s}\{\psi(x_s)^\top(\rho-\rho_a)\}^2\Big)\cdot\log(T/\delta)}\;+\;\log(T/\delta).
\]
The key point is that the stochastic error enters through the same quadratic form that governs the population curvature, allowing the error term to be absorbed into the curvature in the final bound.
\emph{(iii) Making the bound uniform in $\rho$.} Since $\hat{\rho}_{at}$ is itself random, we need step (ii) to hold for all $\rho$ simultaneously. We do this in two passes. First, a peeling argument splits the parameter space into dyadic shells based on the size of $\sum_{s}\{\psi(x_s)^\top(\rho-\rho_a)\}^2$; on each shell the variance proxy is replaced by a deterministic ceiling and Freedman's bound applies. Summing over the shells costs only a $\log\log$ factor. Second, an $\epsilon$-net argument extends the bound from a finite grid of $\rho$'s to all of $\mathcal{B}$ via the Lipschitz continuity of the loss primitive. The end product is a uniform bound on $|H_{at}(\rho)|$ that still scales with the same quadratic quantity,
\emph{(iv) Closing the loop.} Plug $\rho=\hat{\rho}_{at}$ into the uniform bound from step (iii) and combine with step (i). The resulting inequality has the schematic form $\text{quadratic}\lesssim\sqrt{\text{quadratic}}\cdot\sqrt{\log T}+\log T$. Applying $2ab\leq\epsilon a^2+\epsilon^{-1}b^2$ with a suitable $\epsilon$ absorbs the square-root term into the quadratic, leaving $1/n_{at}\sum_{s\in\mathcal S_{at}}\big\{\psi(x_s)^\top(\hat{\rho}_{at}-\rho_a)\big\}^2\;\lesssim\;\log T/n_{at}$.
Folding in the regularization $\eta_1\mathbf I_m$ to ensure invertibility and applying Cauchy--Schwarz then yields the stated confidence radius.
\begin{proposition}[Restatement of Proposition (ref)]
Suppose Assumptions (ref), (ref) hold.
When $\mu^*$ is known, given any $\delta>0$, with probability at least $1-\delta$, uniformly over all $t\in[T]$ and $a\in[A]$,
\begin{equation}
|(\hat{\rho}_{at}-\rho_a)^\top\psi(x_t)|\leq B_{at}^*\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}},
\end{equation}
where
\begin{equation} B_{at}^*:=\sqrt{\frac{8}{3\kappa\mu_1}\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}^*(\delta)+40/(3\kappa\mu_1)+1/3+\eta_1d_{\mathcal{B}}^2},
\end{equation}
$$\Gamma_{at}^*(\delta)\!:=m\log(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)+\log\left(\left\lceil\log_2\big(1+n_{at}\min\{9\overline{\iota}^2,d_{\mathcal{B}}^2\bar{C}_{\psi}^2\}\right)\right\rceil+1\big)+\log(6AT/\delta),$$
and $\displaystyle V_{at}(\eta_1)=\eta_1\mathbf{I}_m+\sum_{s\in\mathcal{S}_{at}}\psi(x_{s})\psi(x_{s})^\top$.
\end{proposition}
\proof{Proof of Proposition (ref)}
For any $s\in[T]$, define $\mathcal{G}_{s-1}:=\sigma(\mathcal{F}_{s-1},x_{s})$. Note that
\begin{equation}
\begin{array}{rl}
0&\geq_{(1)}\sum_{s\in\mathcal{S}_{at}}\ell_{as}(\hat{\rho}_{at})-\sum_{s\in\mathcal{S}_{at}}\ell_{as}(\rho_a)\\
&=_{(2)}\sum_{s\in\mathcal{S}_{at}}\mathbb{E}\left[\ell_{as}(\hat{\rho}_{at})-\ell_{as}(\rho_a)\mid\mathcal{G}_{s-1}\right]+H_{at}(\hat{\rho}_{at})\\
&\geq_{(3)}\frac{\kappa\mu_1}{2}\sum_{s\in\mathcal{S}_{at}}[\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)]^2-1+H_{at}(\hat{\rho}_{at}),
\end{array}
\end{equation}
where (1) holds because $\displaystyle\hat{\rho}_{at}=\argmin_{\rho\in\mathcal{B}}\sum_{s\in\mathcal{S}_{at}}\ell_{as}(\rho)$, (2) holds with
$$H_{at}(\rho)=\sum_{s\in\mathcal{S}_{at}}\left\{\ell_{as}(\rho)-\ell_{as}(\rho_a)-\mathbb{E}[\ell_{as}(\rho)-\ell_{as}(\rho_a)\mid\mathcal{G}_{s-1}]\right\}$$
defined as (ref), and (3) follows from Lemma (ref). So (ref) implies that
\begin{equation}
\frac{\kappa\mu_1}{2}\sum_{s\in\mathcal{S}_{at}}[\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)]^2\leq-H_{at}(\hat{\rho}_{at})+1.
\end{equation}
Lemma (ref) implies that with probability at least $1-\delta/3$, uniformly over all $t\in[T]$ and $a\in[A]$,
\begin{equation}
-H_{at}(\hat{\rho}_{at})\leq\frac{\kappa\mu_1}{8}\sum_{s\in\mathcal{S}_{at}}\{(\hat{\rho}_{at}-\rho_a)^\top\psi(x_{s})\}^2+\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}^*(\delta)+4+\frac{\kappa\mu_1}{8},
\end{equation}
where
$\Gamma_{at}^*(\delta)\:=m\log(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)+\log(Q_{at}+1)+\log\left(6AT/\delta\right)$. So (ref) further implies that
\begin{equation}
\frac{3\kappa\mu_1}{8}\sum_{s\in\mathcal{S}_{at}}\{(\hat{\rho}_{at}-\rho_a)^\top\psi(x_{s})\}^2\leq\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}^*(\delta)+5+\frac{\kappa\mu_1}{8}.
\end{equation}
Combining with the fact that $\eta_1\|\hat{\rho}_{at}-\rho_a\|^2\leq\eta_1d_{\mathcal{B}}^2$, and recall that
$$V_{at}(\eta_1)=\eta_1\mathbf{I}_m+\sum_{s\in\mathcal{S}_{at}}\psi(x_{s})\psi(x_{s})^\top,$$
(ref) then implies that with probability at least $1-\delta/3$, uniformly over all $t\in[T]$ and $a\in[A]$,
\begin{equation}
\begin{array}{rl}
\|\hat{\rho}_{at}-\rho_a\|_{V_{at}(\eta_1)}^2&\leq\frac{8}{3\kappa\mu_1}\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}^*(\delta)+40/(3\kappa\mu_1)+1/3+\eta_1d_{\mathcal{B}}^2.
\end{array}
\end{equation}
By Cauchy-Schwarz inequality,
$|(\hat{\rho}_{at}-\rho_a)^\top\psi(x_t)|\leq\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}}\|\hat{\rho}_{at}-\rho_a\|_{V_{at}(\eta_1)}$, so the result follows.
$\blacksquare$
\subsection{Regret Analysis under Known Reward Function}
\proof{Proof of Proposition (ref)}
Let $\mathcal{E}$ denote the event that uniformly over all $a\in[A]$ and $t\in[T]$,
\begin{equation}
|(\hat{\rho}_{at}-\rho_a)^\top\psi(x_t)|\leq B_{at}^*\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}},
\end{equation}
where $\displaystyle V_{at}(\eta_1)$ is defined as in Proposition (ref) and $B_{at}^*$ is defined as (ref). On event $\mathcal{E}$, $\widetilde{\sigma}_{at}\geq\sigma_{at}^*$ for all $a\in[A], t\in[T]$, where $\widetilde{\sigma}_{at}$ is defined as (ref). Then Theorem (ref) implies that on $\mathcal{E}$,
$$\begin{array}{rl}
\displaystyle\mathbb{E}\left[\sum_{t=1}^T\Delta_t(\tilde{\pi})\big|\mathcal{E}\right]&\displaystyle\leq\mathbb{E}\left[\sum_{t=1}^T\sum_{a=1}^A(\widetilde{\sigma}_{at}-\sigma_{at}^*)\mathbb{I}\{a\in\mathcal{A}_t\}\big|\mathcal{E}\right]\\
&\displaystyle\leq\mathbb{E}\left[\sum_{a=1}^A\sum_{t=1}^T\left(\Lambda\left(\hat{\rho}_{at}^\top\psi(x_t)+B_{at}^*\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}}\right)-\Lambda(\rho_a^\top\psi(x_t))\right)\mathbb{I}\{a\in\mathcal{A}_t\}\big|\mathcal{E}\right]\\
&\displaystyle\leq_{(i)}\mathbb{E}\left[\sum_{a=1}^A\sum_{t=1}^TL\left|\hat{\rho}_{at}^\top\psi(x_t)+B_{at}^*\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}}-\rho_a^\top\psi(x_t)\right|\mathbb{I}\{a\in\mathcal{A}_t\}\big|\mathcal{E}\right]\\
&\displaystyle\leq_{(ii)}2LB_{T}^*\mathbb{E}\left[\sum_{a=1}^A\sum_{t=1}^T\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}}\mathbb{I}\{a\in\mathcal{A}_t\}\big|\mathcal{E}\right],
\end{array}$$
where (i) follows from the Lipschitz property of $\Lambda$ according to Assumption (ref), (ii) follows from (ref), and $B_T^*=\sup_{a\in[A],t\leq T}B_{at}^*=\sqrt{\frac{8}{3\kappa\mu_1}\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{T}(\delta)+\frac{40}{3\kappa\mu_1}+\frac{1}{3}+\eta_1d_{\mathcal{B}}^2}$,
$$\Gamma_{T}(\delta)\!:=m\log(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)+\log\left(\left\lceil\log_2\big(1+T\min\{9\overline{\iota}^2,d_{\mathcal{B}}^2\bar{C}_{\psi}^2\}\right)\right\rceil+1\big)+\log(6AT/\delta).$$
Then following similar proof steps as in the proof for Theorem (ref), we have that on $\mathcal{E}$,
$$\begin{array}{rl}
\displaystyle\sum_{a=1}^A\sum_{t=1}^T\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}}\mathbb{I}\{a\in\mathcal{A}_t\}&\displaystyle=\sum_{a=1}^A\sum_{s\in\mathcal{S}_{a, T+1}}\|\psi(x_{s})\|_{V_{as}(\eta_1)^{-1}}\\
&\displaystyle\leq A\sqrt{T(1+\bar{C}_{\psi}^2/\eta_1)m\log\left(1+T\bar{C}_{\psi}^2/(\eta_1m)\right)}.
\end{array}$$
Hence on $\mathcal{E}$,
\begin{equation}
\mathbb{E}\left[\sum_{t=1}^T\Delta_t(\tilde{\pi})\,\bigg|\,\mathcal{E}\right]\!\leq2LB_{T}^*A\sqrt{T(1+\bar{C}_{\psi}^2/\eta_1)m\log\left(1+T\bar{C}_{\psi}^2/(\eta_1m)\right)}.
\end{equation}
Note that it always holds that $\widetilde{\sigma}_{at}-\sigma_{at}^*\leq2$, and recall from Proposition (ref) that $\mathbb{P}(\mathcal{E})\geq1-\delta$. On $\mathcal{E}^c$, the per-period regret is at most $1+2A$. Taking $\delta=1/T$ gives a failure event contribution of order $\mathrm{O}(A)$.
Thus ignoring logarithmic factors we have $\displaystyle\mathbb{E}\left[\sum_{t=1}^T\Delta_t(\tilde{\pi})\right]\leq\widetilde{O}\left(Am\sqrt{T}\right)$.
$\blacksquare$
\section{Reward Estimation}
Lemma (ref) below is Theorem 1 from abbasi2011improved:
\begin{lemma}
Let $\{v_s:s\geq0\}$ be an $\mathbb{R}^d$-valued stochastic process adapted to filtration $\{\mathcal{H}_s: s\geq0\}$, $\{\epsilon_s:s\geq1\}$ be a real-valued stochastic process adapted to $\{\mathcal{H}_s\}$. Assume that $\epsilon_s$ is conditionally sub-Gaussian such that there exists some $\gamma>0$ such that for any $u\in\mathbb{R}$, $s\geq1$,
$$\mathbb{E}\left[\exp\left(u\epsilon_s\right)|\mathcal{H}_{s-1}\right]\leq\exp\left(\frac{u^2\gamma^2}{2}\right)\quad\textrm{a.s.}$$
Assume that $V$ is a $d\times d$ postive definite matrix. For any $t\geq0$, define $\bar{V}_t=V+\sum_{s=1}^tv_sv_s^\top$, then for any $\delta>0$, with probability at least $1-\delta$, for all $t\geq0$, $$\left\|\sum_{s=1}^t\epsilon_sv_s\right\|_{\bar{V}_t^{-1}}^2\leq2\gamma^2\log\left(\frac{\mathrm{det}(\bar{V}_t)^{1/2}\mathrm{det}(V)^{-1/2}}{\delta}\right).$$
\end{lemma}
Lemma (ref) in the below provides a stronger result which implies Lemma (ref) directly:
\begin{lemma}
Suppose Assumptions (ref), (ref) hold. Fix any $\delta>0$. Then with probability at least $1-\delta$, uniformly over all $x\in\mathcal{X}$, $\omega\in\Omega$, and $t\geq2$, the following holds:
\begin{equation}
\begin{array}{rl}
&\quad\left|\theta_*^\top \phi(x,\omega)-\hat{\theta}_{t-1}^\top \phi(x,\omega)\right|\\
&\leq\frac{2}{\min\{1,\underline{\mu}\}}\|\phi(x,\omega)\|_{\Phi_{t-1}^{-1}}\bigg(\gamma_0\sqrt{d\log(1+t\bar{C}_{\phi}^2/\eta_0)+2\log(1/\delta)}+\sqrt{\eta_0}\bar{\alpha}\bigg).
\end{array}
\end{equation}
Particularly, with probability at least $1-\delta/2$, uniformly over all $a\in[A]$ and $t\geq 2$,
\begin{equation}
\big|(\hat\theta_{t-1}-\theta_*)^\top\phi(x_t,\omega_{at})\big|\;\leq\;\beta_t\;\big\|\phi(x_t,\omega_{at})\big\|_{\Phi_{t-1}^{-1}},
\end{equation}
where
\begin{equation}
\beta_{t}:=\frac{2}{\min\{1,\underline{\mu}\}}\bigg(\gamma_0\sqrt{d\log(1+t\bar{C}_{\phi}^2/\eta_0)+2\log(2/\delta)}+\sqrt{\eta_0}\bar{\alpha}\bigg).
\end{equation}
\end{lemma}
The proof of Lemma (ref) follows closely from Proposition 1 of filippi2010parametric.
\proof{Proof of Lemma (ref)}
Let $\displaystyle g_t(\theta)=\sum_{k=1}^{t-1}G(\theta^\top \phi(x_k,\omega_{a_kk}))\phi(x_k,\omega_{a_kk})+\eta_0\theta$ be the invertible function such that $\displaystyle g_t(\tilde{\theta}_{t-1})=\sum_{k=1}^{t-1}r_k\phi(x_k,\omega_{a_kk})$, where $\tilde{\theta}_{t-1}$ is the unique solution to (ref):
\begin{equation}
\nabla_\theta\left[\mathcal{L}_t(\theta)-\frac{\eta_0}{2}\|\theta\|_2^2\right]=-\eta_0\theta+\!\sum_{k=1}^{t-1}\left\{r_k-G\left(\theta^\top \phi(x_k,\omega_{a_kk})\right)\right\}\phi(x_k,\omega_{a_kk})=0,
\end{equation}
By Assumption (ref), $\nabla g_t$ is continuous, so by the Fundamental Theorem of Calculus,
\begin{equation}
g_t(\theta_*)-g_t(\tilde{\theta}_{t-1})=\Gamma_t(\theta_*-\tilde{\theta}_{t-1}),
\end{equation}
where $\displaystyle \Gamma_t=\int_0^1\nabla g_t(s\theta_*+(1-s)\tilde{\theta}_{t-1})ds$,
and
$$\begin{array}{rl}
\nabla g_t(\theta)&\displaystyle=\eta_0\mathbf{I}_d+\sum_{k=1}^{t-1}\phi(x_k,\omega_{a_kk})\phi(x_k,\omega_{a_kk})^\top G'\left(\theta^\top \phi(x_k,\omega_{a_kk})\right)\\
&\displaystyle\succeq_{(i)}\eta_0\mathbf{I}_d+\underline{\mu}\sum_{k=1}^{t-1}\phi(x_k,\omega_{a_kk})\phi(x_k,\omega_{a_kk})^\top,
\end{array}$$
where (i) follows because $G'\left(\theta^\top \phi(x_k,\omega_{a_kk})\right)\geq\underline{\mu}$ according to Assumption (ref). Hence for any $t\in[T]$,
\begin{equation}
\Gamma_t\succeq\min\{1,\underline{\mu}\}\Phi_{t-1}\succeq\min\{1,\underline{\mu}\}\eta_0\mathbf{I}_d\succ0,
\end{equation}
So $\Gamma_t$ is positive definite and is non-singular for any $t\in[T]$. Therefore,
\begin{equation}
\begin{array}{rl}
\left|\theta_*^\top \phi(x,\omega)-\tilde{\theta}_{t-1}^\top \phi(x,\omega)\right|&=_{(1)}|\phi(x,\omega)^\top \Gamma_t^{-1}\{g_t(\theta_*)-g_t(\tilde{\theta}_{t-1})\}|\\
&\leq_{(2)} \|\phi(x,\omega)\|_{\Gamma_t^{-1}}\|g_t(\theta_*)-g_t(\tilde{\theta}_{t-1})\|_{\Gamma_t^{-1}},
\end{array}
\end{equation}
where (1) of (ref) follows from (ref), and (2) follows from Cauchy-Schwarz inequality and the fact that $\Gamma_t^{-1}$ is positive definite. (ref) implies that $\Gamma_t\succeq\min\{1,\underline{\mu}\}\Phi_{t-1}$, which further implies $\max\{1,1/\underline{\mu}\}\Phi_{t-1}^{-1}\succeq \Gamma_t^{-1}$, so $\displaystyle\|v\|_{\Gamma_t^{-1}}\leq\max\left\{1/\sqrt{\underline{\mu}},1\right\}\|v\|_{\Phi_{t-1}^{-1}},\ \forall v\in\mathbb{R}^d$.
Hence, (ref) further implies
\begin{equation}
\left|\theta_*^\top \phi(x,\omega)-\tilde{\theta}_{t-1}^\top \phi(x,\omega)\right|\leq\max\bigg\{\frac{1}{\underline{\mu}},1\bigg\}\|\phi(x,\omega)\|_{\Phi_{t-1}^{-1}}\|g_t(\theta_*)-g_t(\tilde{\theta}_{t-1})\|_{\Phi_{t-1}^{-1}}.
\end{equation}
Further,
\begin{equation}
\begin{array}{rl}
\|g_t(\theta_*)-g_t(\hat{\theta}_{t-1})\|_{\Phi_{t-1}^{-1}}&\leq\|g_t(\theta_*)-g_t(\tilde{\theta}_{t-1})\|_{\Phi_{t-1}^{-1}}+\|g_t(\tilde{\theta}_{t-1})-g_t(\hat{\theta}_{t-1})\|_{\Phi_{t-1}^{-1}}\\
&\leq 2\|g_t(\theta_*)-g_t(\tilde{\theta}_{t-1})\|_{\Phi_{t-1}^{-1}},
\end{array}
\end{equation}
where the first inequality of (ref) follows from triangular inequality, and the second inequality of (ref) follows from the fact that $\theta_*\in\Theta$ and the optimality of $\hat{\theta}_{t-1}$ in $\Theta$ by definition. Recall that
$$g_t(\tilde{\theta}_{t-1})-g_t(\theta_*)=\sum_{k=1}^{t-1}\phi(x_k,\omega_{a_kk})\{r_k-G(\theta_*^\top \phi(x_k,\omega_{a_kk}))\}-\eta_0\theta_*,$$
so (ref) and (ref) imply that
$$\begin{array}{rl}
&\displaystyle\quad\left|\theta_*^\top \phi(x,\omega)-\hat{\theta}_{t-1}^\top \phi(x,\omega)\right|\\
&\displaystyle\leq\max\bigg\{\frac{2}{\underline{\mu}},2\bigg\}\|\phi(x,\omega)\|_{\Phi_{t-1}^{-1}}\left\|\sum_{k=1}^{t-1}\phi(x_k,\omega_{a_kk})\{r_k-G(\theta_*^\top \phi(x_k,\omega_{a_kk}))\}-\eta_0\theta_*\right\|_{\Phi_{t-1}^{-1}}\\
&\displaystyle\leq_{(i)}\max\bigg\{\frac{2}{\underline{\mu}},2\bigg\}\|\phi(x,\omega)\|_{\Phi_{t-1}^{-1}}\bigg(\left\|\sum_{k=1}^{t-1}\phi(x_k,\omega_{a_kk})\{r_k-G(\theta_*^\top \phi(x_k,\omega_{a_kk}))\}\right\|_{\Phi_{t-1}^{-1}}+\eta_0\left\|\theta_*\right\|_{\Phi_{t-1}^{-1}}\bigg)\\
&\displaystyle\leq_{(ii)}\max\bigg\{\frac{2}{\underline{\mu}},2\bigg\}\|\phi(x,\omega)\|_{\Phi_{t-1}^{-1}}\bigg(\left\|\sum_{k=1}^{t-1}\phi(x_k,\omega_{a_kk})\{r_k-G(\theta_*^\top \phi(x_k,\omega_{a_kk}))\}\right\|_{\Phi_{t-1}^{-1}}+\sqrt{\eta_0}\|\theta_*\|_2\bigg),
\end{array}$$
holds for all $x,\omega$, where inequality (i) above holds from triangular inequality, and inequality (ii) above holds since $\Phi_{t-1}\succeq\eta_0\mathbf{I}_d$ so that $\|\theta_*\|_{\Phi_{t-1}^{-1}}\leq\|\theta_*\|_2/\sqrt{\eta_0}$. We now apply Lemma (ref) to bound $$\left\|\sum_{k=1}^{t-1}\phi(x_k,\omega_{a_kk})\{r_k-G(\theta_*^\top \phi(x_k,\omega_{a_kk}))\}\right\|_{\Phi_{t-1}^{-1}}.$$ Set $v_k=\phi(x_k,\omega_{a_kk})$, $\epsilon_k=\zeta_k$, $\mathcal{H}_k=\sigma(v_s,\epsilon_s;s\leq k)$, $\xi_t=\sum_{k=1}^{t-1}v_k\epsilon_k$ and $V_t=\sum_{k=1}^tv_{k-1}v_{k-1}^\top$. Note that $|\epsilon_k|\leq\gamma_0$, so $\epsilon_k$ is $\gamma_0$-sub-Gaussian, meaning that for any $u\in\mathbb{R}$, $t\geq1$, $$\mathbb{E}\left[\exp\left(u\zeta_t\right)|\mathcal{H}_{t-1}\right]\leq\exp\left(\frac{u^2\gamma_0^2}{2}\right)\quad\textrm{a.s.}$$
Further, by Assumption (ref), $\|\phi(x_k,\omega_{a_kk})\|_2\leq\bar{C}_{\phi}$, implying that $\mathrm{det}(\bar{V}_t)\leq\left(\eta_0+(t-1)\bar{C}_{\phi}^2\right)^d$.
So by Lemma (ref), given any $\delta>0$, with probability at least $1-\delta$, for all $t\geq2$ we have
\begin{equation}
\left\|\sum_{k=1}^{t-1}\phi(x_k,\omega_{a_kk})\{r_k-G(\theta_*^\top \phi(x_k,\omega_{a_kk}))\}\right\|_{\Phi_{t-1}^{-1}}\leq\gamma_0\sqrt{d\log(1+t\bar{C}_{\phi}^2/\eta_0)+2\log(1/\delta)}.
\end{equation}
Note that $\gamma_0>1$ according to Assumption (ref), hence with probability at least $1-\delta$, uniformly over all $t\geq2$ and all $x\in\mathcal{X}$ and $\omega\in\Omega$,
$$\begin{array}{rl}
&\quad\displaystyle\left|\theta_*^\top \phi(x,\omega)-\hat{\theta}_{t-1}^\top \phi(x,\omega)\right|\\
&\displaystyle\leq\frac{2}{\min\{1,\underline{\mu}\}}\|\phi(x,\omega)\|_{\Phi_{t-1}^{-1}}\bigg(\gamma_0\sqrt{d\log(1+t\bar{C}_{\phi}^2/\eta_0)+2\log(1/\delta)}+\sqrt{\eta_0}\|\theta_*\|_2\bigg).
\end{array}$$
Hence (ref) follows from (iv) of Assumption (ref) that $\|\theta_*\|_2\leq \bar{\alpha}$. This immediately implies the high-probability bound (ref) taken uniformly over all $a\in[A], t\geq2$.
$\blacksquare$
\section{Minimum Eigenvalue of \texorpdfstring{$\Phi_{t-1}$}{Phi}}
In this section, we first verify the examples satisfying Assumption (ref) (Lemma (ref), Lemma (ref), Lemma (ref)). Then we show that Assumption (ref) implies a lower bound on the minimum eigenvalue for $\Phi_{t-1}$ (Proposition (ref)).
We first present Lemma (ref), which is useful for proving Lemmas (ref) -- (ref).
\begin{lemma}
Let $Z^0_{at}\in\mathbb R^d$ be a possibly unbounded random vector. Suppose
$\mathbb P\left(|v^\top Z^0_{at}|\le \epsilon
\,\middle|\,\mathcal F_{t-1}\right)\le C_T\epsilon, \forall v\in\mathbb S^{d-1}, \epsilon>0$,
and suppose that $\mathbb P\left(\|Z^0_{at}\|_2\le \bar C_{\phi}\,\middle|\,\mathcal F_{t-1}\right)\ge q_T\ \text{a.s.}$ for some deterministic $q_T\in(0,1]$. Define the bounded vector $Z_{at}$
by the conditional law
$Z_{at}\sim\mathcal L\left(Z^0_{at}\,\middle|\,\|Z^0_{at}\|_2\le \bar C_{\phi},\mathcal{F}_{t-1}\right)$.
If $\frac{C_T}{q_T}\le M_T$, then $Z_{at}$ satisfies Assumption (ref).
Moreover, $\|Z_{at}\|_2\le \bar C_{\phi}$ almost surely.
\end{lemma}
\proof{Proof of Lemma (ref).}
By construction, $\|Z_{at}\|_2\le \bar C_{\phi}\ \ \text{a.s.}$. Fix $v\in\mathbb S^{d-1}$ and $\epsilon>0$. Then
$$\begin{array}{rl}
\mathbb P\left(|v^\top Z_{at}|\le \epsilon\,\middle|\,\mathcal F_{t-1}\right)&\displaystyle=\mathbb P\left(|v^\top Z^0_{at}|\le \epsilon\,\middle|\,\|Z^0_{at}\|\leq\bar{C}_{\phi},\mathcal F_{t-1}\right)=\frac{\mathbb P\left(|v^\top Z^0_{at}|\le \epsilon,\,\|Z^0_{at}\|\leq\bar{C}_{\phi}\,\middle|\,\mathcal F_{t-1}\right)}{\mathbb P\left(\|Z^0_{at}\|\leq\bar{C}_{\phi}\,\middle|\,\mathcal F_{t-1}\right)}\\
&\displaystyle\le\frac{\mathbb P\left(|v^\top Z^0_{at}|\le \epsilon\,\middle|\,\mathcal F_{t-1}\right)}{q_T}\le\frac{C_T}{q_T}\epsilon\le M_T\epsilon.
\end{array}$$
In particular, the above inequality holds for all
\(0<\epsilon\le (2AM_T)^{-1}\), so Assumption (ref)
holds.
$\blacksquare$
\begin{lemma}[Truncated Gaussian]
Assumption (ref) holds under the following conditions:
\begin{itemize}
• conditional on $\mathcal{F}_{t-1}$, $Z_{at}\sim\mathcal{N}(\mu_{at},\Sigma_{at})$ and $\phi(x_t,\omega_{at})\sim\mathcal{L}(Z_{at}\mid \|Z_{at}\|_2\le \bar C_{\phi},\mathcal{F}_{t-1})$.
• There exist deterministic sequences $\sigma_T>0$, $\bar{\sigma}_T>0$ and $\bar{\mu}_T\in[0,\bar{C}_{\phi})$ such that uniformly over $a\in[A], t\in[T]$,
$\lambda_{\min}(\Sigma_{at})\ge \frac{1}{\sigma_T^2},\ \lambda_{\max}(\Sigma_{at})\leq\bar{\sigma}_T^2, \ \|\mu_{at}\|_2\leq\bar{\mu}_T,\ \ \mathrm{a.s.}$
• Let $F_{\chi_d^2}(\cdot)$ denote the cumulative distribution function of a chi-square random variable with $d$ degrees of freedom. Suppose $\sqrt{2/\pi}\sigma_T\leq M_TF_{\chi_d^2}\left(\frac{(\bar{C}_{\phi}-\bar{\mu}_T)^2}{\bar{\sigma}_T^2}\right)$ where $M_T=\sqrt{\mathrm{polylog}(T)}/A$.
\end{itemize}
\end{lemma}
\proof{Proof of Lemma (ref)}
Fix $a\in[A],t\in[T]$ and $v\in\mathbb{S}^{d-1}$. Conditional on $\mathcal{F}_{t-1}$, $$v^\top Z_{at}\sim\mathcal{N}(v^\top\mu_{at},v^\top\Sigma_{at}v).$$
Since $v\in\mathbb{S}^{d-1}$, $v^\top\Sigma_{at}v\geq1/\sigma_T^2$. The density of $v^\top Z_{at}$ is bounded by $\displaystyle\frac{1}{\sqrt{2\pi}\sqrt{v^\top\Sigma_{at}v}}\leq\frac{\sigma_T}{\sqrt{2\pi}}$. Let $f_{atv}$ be the density of $v^\top Z_{at}$. So for every $\epsilon>0$,
$$\mathbb{P}(|v^\top Z_{at}|\leq\epsilon\mid\mathcal{F}_{t-1})=\int_{-\epsilon}^{\epsilon}f_{atv}(u)du\leq\frac{2\epsilon\sigma_T}{\sqrt{2\pi}}=\sqrt{2/\pi}\sigma_T\epsilon.$$
Next, note that $Z_{at}=\mu_{at}+\Sigma_{at}^{1/2}Z$ where $Z\sim\mathcal{N}(0,\mathbf{I}_d)$. Note that
$$\|Z_{at}\|_2\leq_{(1)}\|\mu_{at}\|_2+\|\Sigma_{at}^{1/2}Z\|_2\leq_{(2)}\|\mu_{at}\|_2+\sqrt{\lambda_{\max}(\Sigma_{at})}\|Z\|_2\leq_{(3)}\bar{\mu}_T+\bar{\sigma}_T\|Z\|_2,$$
where (1) follows from triangular inequality, (2) follows because $\|\Sigma_{at}^{1/2}Z\|_2\leq\sqrt{\lambda_{\max}(\Sigma_{at})}\|Z\|_2$, (3) follows from condition (ii) in the lemma. Therefore, the event $\{\|Z\|_2\leq\frac{\bar{C}_{\phi}-\bar{\mu}_T}{\bar{\sigma}_T}\}$ implies
$$\|Z_{at}\|_2\leq\bar{\mu}_T+\bar{\sigma}_T\frac{\bar{C}_{\phi}-\bar{\mu}_T}{\bar{\sigma}_T}=\bar{C}_{\phi}.$$
Hence
$$\mathbb{P}(\|Z_{at}\|_2\le \bar C_{\phi}\mid\mathcal{F}_{t-1})\geq\mathbb{P}\left(\|Z\|_2\leq\frac{\bar{C}_{\phi}-\bar{\mu}_T}{\bar{\sigma}_T}\,\mid\,\mathcal{F}_{t-1}\right)=F_{\chi_d^2}\left(\frac{(\bar{C}_{\phi}-\bar{\mu}_T)^2}{\bar{\sigma}_T^2}\right)=q_T.$$
Applying Lemma (ref) with $C_T=\sqrt{2/\pi}\sigma_T$ and $q_T=F_{\chi_d^2}\left(\frac{(\bar{C}_{\phi}-\bar{\mu}_T)^2}{\bar{\sigma}_T^2}\right)$ gives
$$\mathbb{P}(|v^\top\phi(x_t,\omega_{at})|\leq\epsilon\mid\mathcal{F}_{t-1})\leq\frac{\sqrt{2/\pi}\sigma_T}{q_T}\epsilon\leq M_T\epsilon.$$
So Assumption (ref) is satisfied.
$\blacksquare$
\begin{lemma}[Truncated Student's t distribution]
Assumption (ref) holds under conditions below:
\begin{itemize}
• $\phi(x_t,\omega_{at})\sim\mathcal{L}(Z_{at}\mid \|Z_{at}\|_2\le \bar C_{\phi},\mathcal{F}_{t-1})$, where $Z_{at}\sim t_{\xi}(\mu_{at},\Sigma_{at})$ conditioning on $\mathcal{F}_{t-1}$, and $t_{\xi}(\mu_{at},\Sigma_{at})$ is a $d$-dimensional Student's $t$ distribution with $\xi>0$ degrees of freedom, location $\mu_{at}$, scale matrix $\Sigma_{at}$.
• There exists deterministic sequences $\sigma_T>0$, $\bar{\sigma}_T>0$ and $\bar{\mu}_T\in[0,\bar{C}_{\phi})$ such that uniformly over all $a\in[A]$, $t\in[T]$, $\lambda_{\min}(\Sigma_{at})\geq1/\sigma_T^2$, $\lambda_{\max}(\Sigma_{at})\leq\bar{\sigma}_T^2$, $\|\mu_{at}\|_2\leq\bar{\mu}_T$\ $\mathrm{a.s.}$.
• $2c_{\xi}\sigma_T/q_T\leq M_T=\sqrt{\mathrm{polylog}(T)}/A$, where $c_{\xi}:=\frac{\Gamma((\xi+1)/2)}{\sqrt{\xi\pi}\Gamma(\xi/2)}$, $q_T=F_{d,\xi}((\bar{C}_{\phi}-\bar{\mu}_T)^2/(d\bar{\sigma}_T^2))$, and $F_{d,\xi}(\cdot)$ denotes the cumulative distribution of the $F$-distribution with $d$ and $\xi$ degrees of freedom.
\end{itemize}
\end{lemma}
\proof{Proof of Lemma (ref)}
Fix $a\in[A], t\in[T], v\in\mathbb{S}^{d-1}$. The multivariate Student's $t$ random vector $Z_{at}$ can be written as $Z_{at}=\mu_{at}+\frac{\Sigma_{at}^{1/2}Z}{\sqrt{S/\xi}}$,
where $Z\sim\mathcal{N}(0,\mathbf{I}_d)$, $S\sim\chi_{\xi}^2$, where $\chi_{\xi}^2$ is the chi-square distribution with $\xi$ degrees of freedom, $Z$ and $S$ are independent. So
$$v^\top Z_{at}=v^\top\mu_{at}+\frac{v^\top \Sigma_{at}^{1/2}Z}{\sqrt{S/\xi}}.$$
Since $v^\top \Sigma_{at}^{1/2}Z\sim\mathcal{N}(0,v^\top\Sigma_{at}v)$, it holds that $v^\top Z_{at}\sim t_{\xi}(v^\top\mu_{at},v^\top\Sigma_{at}v)$, where by the eigenvalue lower bound, we have $v^\top\Sigma_{at}v\geq1/\sigma_T^2$. The density $f_{atv}$ of the univariate Student's $t$ random variable $v^\top Z_{at}$ is
$$f_{atv}(y)=\frac{c_{\xi}}{\sqrt{v^\top\Sigma_{at}v}}\left(1+\frac{(y-v^\top\mu_{at})^2}{\xi [v^\top\Sigma_{at}v]}\right)^{-(\xi+1)/2}.$$
Hence $\sup_yf_{atv}(y)\leq c_{\xi}/\sqrt{v^\top\Sigma_{at}v}\leq c_{\xi}\sigma_T$. So for every $\epsilon>0$,
$$\mathbb{P}\left(|v^\top Z_{at}|\leq\epsilon\mid\mathcal{F}_{t-1}\right)=\int_{-\epsilon}^{\epsilon}f_{atv}(u)du\leq2c_{\xi}\sigma_T\epsilon.$$
Next, we lower bound the probability of the truncation event $\{\|Z_{at}\|_2\leq\bar{C}_{\phi}\}$. Note that
$$\|Z_{at}\|_2\leq\|\mu_{at}\|_2+\|\Sigma_{at}^{1/2}Z\|_2/\sqrt{S/\xi}\leq\bar{\mu}_T+\bar{\sigma}_T\|Z\|_2/\sqrt{S/\xi}.$$
Therefore, $\|Z\|_2/\sqrt{S/\xi}\leq(\bar{C}_{\phi}-\bar{\mu}_T)/\bar{\sigma}_T$ implies $\|Z_{at}\|_2\leq\bar{\mu}_T+\bar{\sigma}_{T}\frac{\bar{C}_{\phi}-\bar{\mu}_T}{\bar{\sigma}_T}=\bar{C}_{\phi}$. So
$$\begin{array}{rl}
\mathbb{P}(\|Z_{at}\|_2\leq\bar{C}_{\phi}\mid\mathcal{F}_{t-1})&\displaystyle\geq\mathbb{P}\left(\frac{\|Z\|_2}{\sqrt{S/\xi}}\leq\frac{\bar{C}_{\phi}-\bar{\mu}_T}{\bar{\sigma}_T}\mid\mathcal{F}_{t-1}\right)\\
&\displaystyle=\mathbb{P}\left(\frac{\|Z\|_2^2/d}{S/\xi}\leq\frac{(\bar{C}_{\phi}-\bar{\mu}_T)^2}{d\bar{\sigma}_T^2}\mid\mathcal{F}_{t-1}\right)=F_{d,\xi}\left(\frac{(\bar{C}_{\phi}-\bar{\mu}_T)^2}{d\bar{\sigma}_T^2}\right)=q_T.
\end{array}$$
Hence applying Lemma (ref), we have $\mathbb{P}(|v^\top\phi(x_t,\omega_{at})|\leq\epsilon\mid\mathcal{F}_{t-1})\leq M_T\epsilon$, so Assumption (ref)
holds.
$\blacksquare$
\begin{lemma}[Uniform distribution on a hyperrectangle]
Assumption (ref) holds under (i)--(ii):
\begin{itemize}
• Conditional on $\mathcal{F}_{t-1}$, $\phi(x_t,\omega_{at})=\bar{\phi}_{at}+U_{at}$, where $\bar{\phi}_{at}$ is a fixed constant vector, $U_{at}\sim\mathrm{Unif}[-R_{at,j},R_{at,j}]$ for $j\in[d]$ and $U_{at,j}$ are independent across $j\in[d]$.
• $R_{at,j}\geq\sqrt{d}/M_T$ where $M_T=\sqrt{\mathrm{polylog}(T)}/A$ and
$\|\bar{\phi}_{at}\|_2+\left(\sum_{j=1}^dR_{at,j}^2\right)^{1/2}\leq\bar{C}_{\phi},\ \ \mathrm{a.s.}$
\end{itemize}
\end{lemma}
\proof{Proof of Lemma (ref)}
Fix $a\in[A],t\in[T],v\in\mathbb{S}^{d-1}$. Since $\|v\|_2=1$, there exists a coordinate $j^*\in[d]$, s.t. $|v_{j^*}|\geq1/\sqrt{d}$. Note that $v^\top\phi(x_t,\omega_{at})=v^\top\bar{\phi}_{at}+v^\top U_{at}=v^\top\bar{\phi}_{at}+\sum_{j=1}^dv_jU_{at,j}$.
Conditional on all $\{U_{at,j}: j\neq j^*\}$, $v^\top\phi(x_t,\omega_{at})=C+v_{j^*}U_{at,j^*}$ where $C$ is a fixed constant.
Conditional on $\mathcal{F}_{t-1}$, $U_{at,j}$ are independent uniform random on $[-R_{at,j},R_{at,j}]$.
Since $U_{at,j^*}\sim\mathrm{Unif}[-R_{at,j^*},R_{at,j^*}]$, $C+v_{j^*}U_{at,j^*}$ is uniform on an interval of length $2R_{at,j^*}|v_{j^*}|$. Therefore, for any interval $I\subset\mathbb{R}$ of length $|I|$, we have
$$\mathbb{P}(C+v_{j^*}U_{at,j^*}\in I\mid\{U_{at,j}:j\neq j^*\},\mathcal{F}_{t-1})\leq\frac{|I|}{2R_{at,j^*}|v_{j^*}|}.$$
Take $I=[-\epsilon,\epsilon]$, then
$$\mathbb{P}\left(|v^\top\phi(x_t,\omega_{at})|\leq\epsilon\mid\mathcal{F}_{t-1},\{U_{at,j}: j\neq j^*\}\right)\leq\frac{2\epsilon}{2R_{at,j^*}|v_{j^*}|}\leq\frac{\sqrt{d}}{R_{at,j^*}}\epsilon.$$
Taking expectation over the conditioned coordinates of $U_{at}$ in the above inequality gives
$$\mathbb{P}(|v^\top\phi(x_t,\omega_{at})|\leq\epsilon\mid\mathcal{F}_{t-1})\leq M_T\epsilon$$
with $M_T=\sqrt{\mathrm{polylog}(T)}/A$.
$\blacksquare$
\begin{lemma}[Theorem 3.1 of tropp2011user]
Let $\mathcal{F}_1\subset\mathcal{F}_2\cdots$ be a filtration and consider a finite sequence $\{X_k\}$ of positive semi-definite matrices with dimension $d$ adapted to this filtration. Suppose that $\lambda_{\max}(X_k)\leq R$ almost surely. Define the series $Y\equiv\sum_kX_k$ and $W\equiv\sum_k\mathbb{E}[X_k|\mathcal{H}_{k-1}]$. Then for all $\mu\geq0$, $\gamma\in[0,1)$,
$\mathbb{P}\left(\lambda_{\min}(Y)\leq(1-\gamma)\mu, \lambda_{\min}(W)\geq\mu\right)\leq d\left(\frac{e^{-\gamma}}{(1-\gamma)^{1-\gamma}}\right)^{\mu/R}$.
\end{lemma}
\begin{proposition}[Minimum eigenvalue]
Suppose Assumption (ref) holds. Then
\begin{equation}
\lambda_{\min}\!\left(\mathbb E\!\left[\phi(x_t,\omega_{a_tt})\phi(x_t,\omega_{a_tt})^\top\,\middle|\,\mathcal F_{t-1}\right]\right)\ge\frac{1/8}{\mathrm{polylog}(T)}.
\end{equation}
Further, for any $\delta\in(0,1)$, with probability at least $1-\delta$, \begin{equation}
\lambda_{\min}(\Phi_{t-1})\geq(t-1)/[16\mathrm{polylog}(T)]
\end{equation}
holds uniformly for all $t\geq100\bar{C}_{\phi}^2\mathrm{polylog}(T)\log(Td/\delta)$.
\end{proposition}
\proof{Proof of Proposition (ref)}
Fix $v\in\mathbb S^{d-1}$. Since $a_t\in[A]$, for any $\epsilon>0$,
$$\{|v^\top \phi(x_t,\omega_{a_tt})|\le \epsilon\}\subseteq\bigcup_{a=1}^A\{|v^\top\phi(x_t,\omega_{at})|\le \epsilon\}.$$
Therefore, by applying union bound and
Assumption (ref),
$$\mathbb P\!\left(
|v^\top\phi(x_t,\omega_{a_t t})|\le \epsilon
\,\middle|\,
\mathcal{F}_{t-1}
\right)\leq\sum_{a=1}^A
\mathbb P\!\left(
|v^\top\phi(x_t,\omega_{at})|\le \epsilon
\,\middle|\,
\mathcal{F}_{t-1}
\right) \le AM_T\epsilon.$$
Take $\epsilon=(2AM_T)^{-1}$. Then the above inequality implies that
$$\mathbb{P}\!\left(|v^\top\phi(x_t,\omega_{a_t t})|>(2AM_T)^{-1}\,\middle|\,\mathcal{F}_{t-1}\right)\geq\frac{1}{2}.$$
Hence
$$\begin{array}{rl}
\displaystyle v^\top\mathbb E[\phi(x_t,\omega_{a_t t})\phi(x_t,\omega_{a_t t})^\top\mid\mathcal{F}_{t-1}]v&\displaystyle=\mathbb{E}[(v^\top\phi(x_t,\omega_{a_t t}))^2\mid\mathcal{F}_{t-1}]\\
&\displaystyle\geq(2AM_T)^{-2}\mathbb{P}\!\left(|v^\top\phi(x_t,\omega_{a_t t})|>(2AM_T)^{-1}\,\middle|\,\mathcal{F}_{t-1}\right)\\
&\displaystyle\geq\frac{1/8}{(AM_T)^2}=\frac{1/8}{\mathrm{polylog}(T)}.
\end{array}$$
Since this holds for any $v\in\mathbb{S}^{d-1}$, (ref) follows. Setting $\gamma=1/2$, $R=\bar{C}_{\phi}^2$ in Lemma (ref), with probability at least $1-\exp\{\log(d)-0.01(t-1)/[\bar{C}_{\phi}^2\mathrm{polylog}(T)]\}$,
$\lambda_{\min}(\Phi_{t-1})\geq(t-1)/[16\mathrm{polylog}(T)]$. Particularly, for any $\delta\in(0,1)$, with probability at least $1-\delta$, $\lambda_{\min}(\Phi_{t-1})\geq(t-1)/[16\mathrm{polylog}(T)]$ holds uniformly for all $t\geq100\bar{C}_{\phi}^2\mathrm{polylog}(T)\log(Td/\delta)$.
$\blacksquare$
\section{Index Estimation under Unknown Reward Function}
The same argument for Proposition (ref) extends to Proposition (ref) for the high probability bound of the index estimation error when the reward parameter $\theta_*$ is unknown and learned online. The main difference is that the primitive loss is evaluated at the plug-in estimate $\hat\theta_{t-1}$ rather than at the true parameter $\theta_*$. This introduces an additional error term in the optimality inequality:
$$\mbox{population curvature}\;\;\leq\;\;\mbox{empirical fluctuation}\;\;+\;\;\mbox{plug-in error from }\hat{\theta}_{t-1}.$$
Consequently, Proposition (ref) yields the same type of confidence radius for $\rho_a^\top\psi(x_t)$, with an additional additive term that accounts for uncertainty in the reward parameter.
Recall from Section (ref) that
$\hat{\rho}_{at}\in\argmin_{\rho\in\mathcal{B}}\sum_{s\in\mathcal{S}_{at}}\hat{\ell}_{as,t}(\rho)$, where $\hat{\ell}_{as,t}$ is the loss defined as (ref) when plugging in $\hat{\theta}_{t-1}$ for the unknown $\theta_*$. Lemma (ref) in the below characterizes how the estimation error of $\theta_*$ propagates into the estimation error of $\rho_a^\top\psi(x_t)$.
\proof{Proof of Lemma (ref)}
Recall from (ref) that
$$J_{at}(\rho):=\sum_{s\in\mathcal{S}_{at}}\left\{[\hat{\ell}_{as,t}(\rho)-\ell_{as}(\rho)]-[\hat{\ell}_{as,t}(\rho_a)-\ell_{as}(\rho_a)]\right\}.$$
Note that (ref) and (ref) imply that
$$\begin{array}{rl}
&\displaystyle\quad[\hat{\ell}_{as,t}(\rho_a)-\ell_{as}(\rho_a)]-[\hat{\ell}_{as,t}(\hat{\rho}_{at})-\ell_{as}(\hat{\rho}_{at})]\\
&\displaystyle=\int_0^{\rho_a^\top\psi(x_{s})}[(G(\theta_*^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}-(G(\hat{\theta}_{t-1}^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}]du\\
&\displaystyle\quad-\int_{0}^{\hat{\rho}_{at}^\top\psi(x_{s})}[(G(\theta_*^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}-(G(\hat{\theta}_{t-1}^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}]du\\
\\
&\displaystyle=\int_{\rho_a^\top\psi(x_{s})}^{\hat{\rho}_{at}^\top\psi(x_{s})}[(G(\hat{\theta}_{t-1}^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}-(G(\theta_*^\top\phi(x_{s},\omega_{as}))-\Lambda(u))^{+}]du\\
&\displaystyle\leq_{(i)}\left|G(\hat{\theta}_{t-1}^\top\phi(x_{s},\omega_{as}))-G(\theta_*^\top\phi(x_{s},\omega_{as}))\right|\cdot|\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)|,
\end{array}$$
where (i) uses the 1-Lipchitz property of $z\mapsto z^{+}$.
Thus
$$\begin{array}{rl}
-J_{at}(\hat{\rho}_{at})&\displaystyle\leq_{(i)}\sqrt{\sum_{s\in\mathcal{S}_{at}}\{\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)\}^2}\sqrt{\sum_{s\in\mathcal{S}_{at}}\left[G(\hat{\theta}_{t-1}^\top\phi(x_{s},\omega_{as}))-G(\theta_*^\top\phi(x_{s},\omega_{as}))\right]^2}\\
&\displaystyle\leq_{(ii)}\frac{c_0}{8}\sum_{s\in\mathcal{S}_{at}}\{\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)\}^2+\frac{2}{c_0}\sum_{s\in\mathcal{S}_{at}}\left[G(\hat{\theta}_{t-1}^\top\phi(x_{s},\omega_{as}))-G(\theta_*^\top\phi(x_{s},\omega_{as}))\right]^2\\
&\displaystyle\leq_{(iii)}\frac{c_0}{8}\sum_{s\in\mathcal{S}_{at}}\{\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)\}^2+\frac{2}{c_0}\sum_{s\in\mathcal{S}_{at}}L^2\{(\hat{\theta}_{t-1}-\theta_*)^\top\phi(x_{s},\omega_{as})\}^2
\end{array}$$
where (i) above holds from Cauchy-Schwarz inequality, (ii) holds from applying
$$2ab\leq\epsilon a^2+\epsilon^{-1}b^2$$
to $\displaystyle\epsilon=\frac{c_0}{4}$, $\displaystyle a=\sqrt{\sum_{s\in\mathcal{S}_{at}}\{\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)\}^2}$, $\displaystyle b=\sqrt{\sum_{s\in\mathcal{S}_{at}}\left[G(\hat{\theta}_{t-1}^\top\phi(x_{s},\omega_{as}))-G(\theta_*^\top\phi(x_{s},\omega_{as}))\right]^2}$, (iii) holds from the Lipschitz property of $G$ according to Assumption (ref). Hence the result follows.
$\blacksquare$
\begin{proposition}[Restatement of Proposition (ref)]
Suppose Assumptions (ref), (ref), (ref), (ref), (ref) hold. Let $V_{at}(\eta_1)$ be defined as (ref). Given any $\delta>0$, with probability $1-2\delta/3$, uniformly over all $a\in[A]$ and $t\in[T]$,
$$\begin{array}{rl}
|(\hat{\rho}_{at}-\rho_a)^\top\psi(x_t)|&\displaystyle\leq\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}}\Bigg[\sqrt{\frac{4\Gamma_{at}(\delta)}{\kappa\mu_1}\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)+\frac{20}{\kappa\mu_1}+\frac{1}{2}+\eta_1d_{\mathcal{B}}^2}\\
&\quad\quad\quad\quad\quad\quad\quad\quad\displaystyle+\frac{2\sqrt{2}L}{\kappa\mu_1}\sqrt{\bar{C}_{at}(\delta)\sum_{s\in\mathcal{S}_{at}}\|\phi(x_{s},\omega_{as})\|_{\Phi_{t-1}^{-1}}^2}\Bigg],
\end{array}$$
where
$$\Gamma_{at}(\delta)\!:=m\log(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)+\log\left(\left\lceil\log_2\big(1+n_{at}\min\{9\overline{\iota}^2,d_{\mathcal{B}}^2\bar{C}_{\psi}^2\}\right)\right\rceil+1\big)+\log(6AT/\delta),$$
$$\bar{C}_{at}(\delta):=\frac{4}{\min\{1,\underline{\mu}\}^2}\bigg(\gamma_0\sqrt{d\log(1+t\bar{C}_{\phi}^2/\eta_0)+2\log(3/\delta)}+\sqrt{\eta_0}\bar{\alpha}\bigg)^2.$$
\end{proposition}
\proof{Proof of Proposition (ref)}
For any $s\in[T]$, define $\mathcal{G}_{s-1}:=\sigma(\mathcal{F}_{s-1},x_{s})$. Note that
\begin{equation}
\begin{array}{rl}
0&\geq_{(1)}\sum_{s\in\mathcal{S}_{at}}\hat{\ell}_{as,t}(\hat{\rho}_{at})-\sum_{s\in\mathcal{S}_{at}}\hat{\ell}_{as,t}(\rho_a)\\
&=_{(2)}\sum_{s\in\mathcal{S}_{at}}\mathbb{E}\left[\ell_{as}(\hat{\rho}_{at})-\ell_{as}(\rho_a)\mid\mathcal{G}_{s-1}\right]+H_{at}(\hat{\rho}_{at})+J_{at}(\hat{\rho}_{at})\\
&\geq_{(3)}\frac{\kappa\mu_1}{2}\sum_{s\in\mathcal{S}_{at}}[\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)]^2-1+H_{at}(\hat{\rho}_{at})+J_{at}(\hat{\rho}_{at}),
\end{array}
\end{equation}
where (1) holds because $\displaystyle\hat{\rho}_{at}=\argmin_{\rho\in\mathcal{B}}\frac{1}{n_{at}}\sum_{s\in\mathcal{S}_{at}}\hat{\ell}_{as,t}(\rho)$, (2) holds with
$$H_{at}(\rho):=\sum_{s\in\mathcal{S}_{at}}\left\{\ell_{as}(\rho)-\ell_{as}(\rho_a)-\mathbb{E}[\ell_{as}(\rho)-\ell_{as}(\rho_a)\mid\mathcal{G}_{s-1}]\right\},$$
$$J_{at}(\rho):=\sum_{s\in\mathcal{S}_{at}}\left\{[\hat{\ell}_{as,t}(\rho)-\ell_{as}(\rho)]-[\hat{\ell}_{as,t}(\rho_a)-\ell_{as}(\rho_a)]\right\},$$
and (3) follows from Lemma (ref). So (ref) implies that
\begin{equation}
\frac{\kappa\mu_1}{2}\sum_{s\in\mathcal{S}_{at}}[\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)]^2\leq-(H_{at}(\hat{\rho}_{at})+J_{at}(\hat{\rho}_{at}))+1.
\end{equation}
Lemma (ref) implies that with probability at least $1-\delta/3$, uniformly over all $t\in[T]$ and $a\in[A]$ we have
\begin{equation}
-H_{at}(\hat{\rho}_{at})\leq\frac{\kappa\mu_1}{8}\sum_{s\in\mathcal{S}_{at}}\{(\hat{\rho}_{at}-\rho_a)^\top\psi(x_{s})\}^2+\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+4+\frac{\kappa\mu_1}{8},
\end{equation}
where
$$\Gamma_{at}(\delta)\!:=m\log(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)+\log(Q_{at}+1)+\log\left(\!
\frac{6AT}{\delta}\!\right).$$
Lemma (ref) implies
$$-J_{at}(\hat{\rho}_{at})\leq\frac{\kappa\mu_1}{8}\sum_{s\in\mathcal{S}_{at}}\{\psi(x_{s})^\top(\hat{\rho}_{at}-\rho_a)\}^2+\frac{2}{\kappa\mu_1}\sum_{s\in\mathcal{S}_{at}}L^2\{(\hat{\theta}_{t-1}-\theta_*)^\top\phi(x_{s},\omega_{as})\}^2.$$
Hence combining this inequality and (ref), with probability at least $1-\delta/3$, uniformly over all $t\in[T], a\in[A]$ we have
\begin{equation}
\begin{array}{rl}
&\quad-(H_{at}(\hat{\rho}_{at})+J_{at}(\hat{\rho}_{at}))\\
&\leq\frac{\kappa\mu_1}{4}\sum_{s\in\mathcal{S}_{at}}\{(\hat{\rho}_{at}-\rho_a)^\top\psi(x_{s})\}^2+\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+4+\frac{\kappa\mu_1}{8}\\
&\quad+\frac{2L^2}{\kappa\mu_1}\sum_{s\in\mathcal{S}_{at}}\{(\hat{\theta}_{t-1}-\theta_*)^\top\phi(x_{s},\omega_{as})\}^2
\end{array}
\end{equation}
Thus (ref) further implies that with probability at least $1-\delta/3$, uniformly over all $t\in[T]$ we have
\begin{equation}
\begin{array}{rl}
\frac{\kappa\mu_1}{4}\sum_{s\in\mathcal{S}_{at}}\{(\hat{\rho}_{at}-\rho_a)^\top\psi(x_{s})\}^2&\leq\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+5+\frac{\kappa\mu_1}{8}\\
&\quad+\frac{2L^2}{\kappa\mu_1}\sum_{s\in\mathcal{S}_{at}}\{(\hat{\theta}_{t-1}-\theta_*)^\top\phi(x_{s},\omega_{as})\}^2,
\end{array}
\end{equation}
combining with the fact that $\eta_1\|\hat{\rho}_{at}-\rho_a\|^2\leq\eta_1d_{\mathcal{B}}^2$, and recall that
$$V_{at}(\eta_1)=\eta_1\mathbf{I}_m+\sum_{s\in\mathcal{S}_{at}}\psi(x_{s})\psi(x_{s})^\top,$$
the above inequality then implies that with probability at least $1-\delta/3$, uniformly over all $t\in[T]$ and $a\in[A]$, we have
\begin{equation}
\begin{array}{rl}
\|\hat{\rho}_{at}-\rho_a\|_{V_{at}(\eta_1)}^2&\leq\frac{4}{\kappa\mu_1}\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+\frac{20}{\kappa\mu_1}+\frac{1}{2}+\eta_1d_{\mathcal{B}}^2\\
&\quad+\frac{8L^2}{(\kappa\mu_1)^2}\sum_{s\in\mathcal{S}_{at}}\!\{(\hat{\theta}_{t-1}-\theta_*)^\top\phi(x_{s},\omega_{as})\}^2.
\end{array}
\end{equation}
Lemma (ref) implies that with probability at least $1-\delta/3$, uniformly over all $t\in[T]$ and $a\in[A]$,
\begin{equation}
\frac{8L^2}{(\kappa\mu_1)^2}\sum_{s\in\mathcal{S}_{at}}\{(\hat{\theta}_{t-1}-\theta_*)^\top\phi(x_{s},\omega_{as})\}^2\leq\frac{8L^2}{(\kappa\mu_1)^2}\bar{C}_{at}(\delta)\sum_{s\in\mathcal{S}_{at}}\|\phi(x_{s},\omega_{as})\|_{\Phi_{t-1}^{-1}}^2,
\end{equation}
where
$$\bar{C}_{at}(\delta):=\frac{4}{\min\{1,\underline{\mu}\}^2}\bigg(\gamma_0\sqrt{d\log(1+t\bar{C}_{\phi}^2/\eta_0)+2\log(3/\delta)}+\sqrt{\eta_0}\bar{\alpha}\bigg)^2.$$
Thus with probability $1-2\delta/3$ we have
\begin{equation}
\begin{array}{rl}
\|\hat{\rho}_{at}-\rho_a\|_{V_{at}(\eta_1)}&\leq\sqrt{\frac{4}{\kappa\mu_1}\!\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+\frac{20}{\kappa\mu_1}+\frac{1}{2}+\eta_1d_{\mathcal{B}}^2}\\
&\quad+\frac{2\sqrt{2}L}{\kappa\mu_1}\sqrt{\bar{C}_{at}(\delta)\sum_{s\in\mathcal{S}_{at}}\|\phi(x_{s},\omega_{as})\|_{\Phi_{t-1}^{-1}}^2}.
\end{array}
\end{equation}
By Cauchy-Schwarz inequality,
$|(\hat{\rho}_{at}-\rho_a)^\top\psi(x_t)|\leq\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}}\|\hat{\rho}_{at}-\rho_a\|_{V_{at}(\eta_1)}$, so combining (ref), the result follows.
$\blacksquare$
\section{Regret under Unknown Reward Function}
\proof{Proof of Theorem (ref)}
Let $\mathcal{E}$ denote the event that conditions (i)-(ii) hold in the following:
\begin{itemize}
• Uniformly over all $a\in[A]$, $t\in[T]$,
$$\begin{array}{rl}
&\quad|(\theta_*-\hat{\theta}_{t-1})^\top\phi(x_t,\omega_{at})|\\
&\displaystyle\leq\frac{2}{\min\{\underline{\mu},1\}}\|\phi(x_t,\omega_{at})\|_{\Phi_{t-1}^{-1}}\bigg(\gamma_0\sqrt{d\log(1+t\bar{C}_{\phi}^2/\eta_0)+2\log(2/\delta)}+\sqrt{\eta_0}\bar{\alpha}\bigg);
\end{array}$$
• Uniformly over all $a\in[A]$, $t\in[T]$,
$$\begin{array}{rl}
\displaystyle|(\hat{\rho}_{at}-\rho_a)^\top\psi(x_t)|&\displaystyle\leq \bigg[\sqrt{\frac{4}{\kappa\mu_1}\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+\frac{20}{\kappa\mu_1}+\frac{1}{2}+\eta_1d_{\mathcal{B}}^2}\\
&\quad\displaystyle+\frac{2\sqrt{2}L}{\kappa\mu_1}\sqrt{C_{at}(\delta)\sum_{s\in\mathcal{S}_{at}}\|\phi(x_{s},\omega_{as})\|_{\Phi_{t-1}^{-1}}^2}\bigg]\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}},
\end{array}$$
where $\displaystyle V_{at}(\eta_1)=\eta_1\mathbf{I}_m+\sum_{s\in\mathcal{S}_{at}}\psi(x_{s})\psi(x_{s})^\top$, $Q_{at}:=\left\lceil\log_2\left(1+n_{at}\min\{9\overline{\iota}^2,d_{\mathcal{B}}^2\bar{C}_{\psi}^2\}\right)\right\rceil$,
$$\Gamma_{at}(\delta)\!:=m\log(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)+\log(2Q_{at}+2)+\log\left(\!
6AT/\delta\!\right),$$
$$C_{at}(\delta):=\frac{4}{\min\{\underline{\mu},1\}^2}\bigg(\gamma_0\sqrt{d\log(1+t\bar{C}_{\phi}^2/\eta_0)+2\log(6/\delta)}+\sqrt{\eta_0}\bar{\alpha}\bigg)^2.$$
\end{itemize}
Thus on $\mathcal{E}$,
$\widetilde{\mu}_t(x_t,\omega_{at})\geq\mu^*(x_t,\omega_{at})$ holds uniformly over $a\in[A], t\in[T]$ and $\widetilde{\sigma}_{at}\geq\sigma_{at}$ holds uniformly over all $a\in[A], t\in[T]$. (ref), (ref), Lemma (ref) and Proposition (ref) imply that $\mathcal{E}$ holds with probability at least $1-\delta$.
Theorem (ref) implies
\begin{equation}
\mathbb{E}\left[\sum_{t=1}^T\Delta_t(\tilde{\pi})\ \big|\ \mathcal{E}\right]\leq\mathbb{E}\left[\sum_{t=1}^T\widetilde{\mu}_t(x_t,\omega_{a_tt})-\mu(\theta_*;x_t,\omega_{a_tt})\ \big|\ \mathcal{E}\right]+\mathbb{E}\left[\sum_{t=1}^T\sum_{a\in\mathcal{A}_t}(\widetilde{\sigma}_{at}-\sigma_{at})\ \big|\ \mathcal{E}\right].
\end{equation}
On $\mathcal{E}$, using the fact that $$\begin{array}{rl}
&\quad\displaystyle\widetilde{\mu}_t(x_t,\omega_{a_tt})-\mu(\theta_*;x_t,\omega_{a_tt})\\
&\displaystyle\leq\left|\widetilde{\mu}_t(x_t,\omega_{a_tt})-G(\hat{\theta}_{t-1}^\top\phi(x_t,\omega_{a_tt}))\right|+\left|G(\hat{\theta}_{t-1}^\top\phi(x_t,\omega_{a_tt}))-\mu(\theta_*;x_t,\omega_{a_tt})\right|,
\end{array}$$
and the Lipschitz property of $G$ by Assumption (ref), we have
$$\begin{array}{rl}
&\quad\displaystyle\sum_{t=1}^T\widetilde{\mu}_t(x_t,\omega_{a_tt})-\mu(\theta_*;x_t,\omega_{a_tt})\\
&\displaystyle\leq\frac{4L}{\min\{\underline{\mu},1\}}\bigg(\gamma_0\sqrt{d\log(1+t\bar{C}_{\phi}^2/\eta_0)+2\log(2/\delta)}+\sqrt{\eta_0}\bar{\alpha}\bigg)\sum_{t=1}^T\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}.
\end{array}$$
Since $\mathrm{det}(\Phi_t)=\mathrm{det}(\Phi_{t-1})(1+\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}^2)$ and $\Phi_0=\eta_0\mathbf{I}_d$, we have
$$\begin{array}{rl}
\displaystyle\log\frac{\mathrm{det}(\Phi_T)}{\mathrm{det}(\Phi_0)}&\displaystyle=\sum_{t=1}^T\log(1+\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}^2)\\
&\displaystyle\geq_{(i)}\sum_{t=1}^T\frac{\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}^2}{1+\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}^2}\geq_{(ii)}\sum_{t=1}^T\frac{\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}^2}{1+\bar{C}_{\phi}^2/\eta_0},
\end{array}$$
where (i) uses the fact that $\log(1+a)\geq\frac{a}{1+a}$ for $a\geq0$ and (ii) uses $\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}^2\leq\bar{C}_{\phi}^2/\eta_0$. Hence the above inequality implies that
$$\sum_{t=1}^T\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}^2\leq(1+\bar{C}_{\phi}^2/\eta_0)\log\frac{\mathrm{det}(\Phi_T)}{\mathrm{det}(\Phi_0)}\leq_{(1)}(1+\bar{C}_{\phi}^2/\eta_0)d\log\left(1+T\bar{C}_{\phi}^2/(\eta_0d)\right),$$
where (1) follows because
$\displaystyle\mathrm{det}(\Phi_T)\leq\left(\frac{\mathrm{tr}(\Phi_T)}{d}\right)^d\leq\left(\eta_0+T\bar{C}_{\phi}^2/(\eta_0d)\right)^d$ and $\mathrm{det}(\Phi_0)=\eta_0^d$ so that
$\displaystyle\log\frac{\mathrm{det}(\Phi_T)}{\mathrm{det}(\Phi_0)}\leq d\log\left(1+T\bar{C}_{\phi}^2/(\eta_0d)\right)$. Thus by Cauchy-Schwarz inequality,
$$\sum_{t=1}^T\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}\leq\sqrt{T\sum_{t=1}^T\|\phi(x_t,\omega_{a_tt})\|_{\Phi_{t-1}^{-1}}^2}\leq\sqrt{T(1+\bar{C}_{\phi}^2/\eta_0)d\log\left(1+T\bar{C}_{\phi}^2/(\eta_0d)\right)},$$
implying that on $\mathcal{E}$, we have
\begin{equation}
\sum_{t=1}^T\widetilde{\mu}_t(x_t,\omega_{a_tt})-\mu(\theta_*;x_t,\omega_{a_tt})\leq (C_{\mu}\sqrt{d}+4L\gamma_0\sqrt{\eta_0}\bar{\alpha})\sqrt{T},
\end{equation}
where
\begin{equation}
C_\mu=\frac{4L\left[\gamma_0\sqrt{d\log(1+T\bar{C}_{\phi}^2/\eta_0)+2\log(2/\delta)}+\sqrt{\eta_0}\bar{\alpha}\right]}{\min\{\underline{\mu},1\}}\sqrt{\left(1+\bar{C}_{\phi}^2/\eta_0\right)\log\left(1+T\bar{C}_{\phi}^2/(\eta_0d)\right)}.
\end{equation}
Additionally, Assumption (ref) and Proposition (ref) imply that with probability at least $1-\delta/3$,
$$\lambda_{\min}(\Phi_{t-1})\geq(t-1)/[16\mathrm{polylog}(T)]$$
holds uniformly for all $t\geq\tilde{\tau}_0:=100\bar{C}_{\phi}^2\mathrm{polylog}(T)\log(6TAd/\delta)$ and $a\in[A]$, under which $$\sum_{s\in\mathcal{S}_{at}}\|\phi(x_{s},\omega_{as})\|_{\Phi_{t-1}^{-1}}^2\leq\frac{16\mathrm{polylog}(T)\bar{C}_{\phi}^2n_{at}}{t-1}\leq16\mathrm{polylog}(T)\bar{C}_{\phi}^2,$$
where the last inequality uses the fact that $n_{at}\leq t$. Henceforth, combining (ref) and (ref), with probability at least $1-\delta$, uniformly over all $t\geq100\bar{C}_{\phi}^2\mathrm{polylog}(T)\log(6TAd/\delta)$ we have
$$\begin{array}{rl}
\displaystyle\|\hat{\rho}_{at}-\rho_a\|_{V_{at}(\eta_1)}&\displaystyle\leq\sqrt{\frac{4}{\kappa\mu_1}\!\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\Gamma_{at}(\delta)+\frac{20}{\kappa\mu_1}+\frac{1}{2}+\eta_1d_{\mathcal{B}}^2}\\
&\quad\displaystyle+\frac{8\sqrt{2}L}{\kappa\mu_1}\bar{C}_{\phi}\sqrt{\bar{C}_{at}(\delta)\mathrm{polylog}(T)}.
\end{array}$$
Furthermore, by (ref) and the Lipschitz property of $\Lambda$ by Assumption (ref), conditional on event $\mathcal{E}$, with probability at least $1-\delta$, uniformly over all $a\in[A]$, $t\ge\tilde{\tau}_0=100\bar{C}_{\phi}^2\mathrm{polylog}(T)\log(6TAd/\delta)$,
\begin{equation}
\widetilde{\sigma}_{at}-\sigma_{at}\leq C_{\sigma}\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}},
\end{equation}
where
\begin{equation}
\begin{array}{rl}
C_{\sigma}=2L\bigg[&\sqrt{\frac{4}{\kappa\mu_1}\left(\frac{144}{\kappa\mu_1}+2\min\{2\overline{\iota},\bar{C}_{\psi}d_{\mathcal{B}}\}+6\right)\overline\Gamma_{a}(\delta)+\frac{20}{\kappa\mu_1}+\frac{1}{2}+\eta_1d_{\mathcal{B}}^2}\\
&\quad+\frac{8\sqrt{2}L}{\kappa\mu_1}\bar{C}_{\phi}\sqrt{\bar{C}_{a}(\delta)\mathrm{polylog}(T)}\bigg],
\end{array}
\end{equation}
and $\overline\Gamma_{a}(\delta)$, $\overline{Q}_{a}$, $\bar{C}_a(\delta)$ are defined as
$$\overline\Gamma_{a}(\delta)\!:=m\log(1+2d_{\mathcal{B}}\bar{C}_{\psi}T)+\log(2\overline{Q}_{a}+2)+\log\left(\!
\frac{6AT}{\delta}\!\right),\quad \overline{Q}_{a}:=\left\lceil\log_2\left(1+T\min\{9\overline{\iota}^2,d_{\mathcal{B}}^2\bar{C}_{\psi}^2\}\right)\right\rceil,$$
$$\bar{C}_{a}(\delta):=\frac{4}{\min\{\underline{\mu},1\}^2}\bigg(\gamma_0\sqrt{d\log(1+T\bar{C}_{\phi}^2/\eta_0)+2\log(6/\delta)}+\sqrt{\eta_0}\bar{\alpha}\bigg)^2.$$
Define $\displaystyle\tilde{V}_{a,n_{at}}:=\eta_1\mathbf{I}_m+\sum_{s\in\mathcal{S}_{at}}\psi(x_{s})\psi(x_{s})^\top=V_{at}(\eta_1)$ and let $\tilde{V}_{a,0}:=\eta_1\mathbf{I}_m$. Note that
$$\mathrm{det}(\tilde{V}_{a,n_{at}})=\mathrm{det}\left(\tilde{V}_{a,n_{at}-1}\right)\left(1+\|\psi(x_{t_a(n_{at})})\|_{\tilde{V}_{a,n_{at}-1}^{-1}}^2\right),$$
where $t_a(n_{at})$ is the period where $a$ is queried the $n_{at}$-th time. Thus
$$\begin{array}{rl}
\displaystyle\log\frac{\mathrm{det}(\tilde{V}_{a,n_{aT}})}{\mathrm{det}(\tilde{V}_{a,0})}&\displaystyle=\sum_{s\in\mathcal{S}_{aT}}\log\left(1+\|\psi(x_{s})\|_{\tilde{V}_{a,n_{as}}^{-1}}^2\right)\\
&\displaystyle\geq_{(i)}\sum_{s\in\mathcal{S}_{aT}}\frac{\|\psi(x_{s})\|_{\tilde{V}_{a,n_{as}}^{-1}}^2}{1+\|\psi(x_{s})\|_{\tilde{V}_{a,n_{as}}^{-1}}^2}\geq_{(ii)}\sum_{s\in\mathcal{S}_{aT}}\frac{\|\psi(x_{s})\|_{\tilde{V}_{a,n_{as}}^{-1}}^2}{1+\bar{C}_{\psi}^2/\eta_1},
\end{array}$$
where inequality (i) uses the fact that $\log(1+a)\geq\frac{a}{1+a}$ for $a\geq0$ and (ii) uses the fact that $\|\psi(x_{s})\|_{\tilde{V}_{a,n_{as}}^{-1}}^2\leq\bar{C}_{\psi}^2/\eta_1$. Hence the above inequality implies that
$$\sum_{s\in\mathcal{S}_{aT}}\|\psi(x_{s})\|_{\tilde{V}_{a,n_{at}}^{-1}}^2\leq(1+\bar{C}_{\psi}^2/\eta_1)\log\frac{\mathrm{det}(\tilde{V}_{a,n_{aT}})}{\mathrm{det}(\tilde{V}_{a,0})}\leq_{(1)}(1+\bar{C}_{\psi}^2/\eta_1)m\log\left(1+n_{aT}\bar{C}_{\psi}^2/(\eta_1m)\right),$$
where (1) follows since $\mathrm{det}(\tilde{V}_{a,0})=\eta_1^m$ and $\displaystyle\mathrm{det}(\tilde{V}_{a,n_{aT}})\leq\left(\frac{\mathrm{tr}(\tilde{V}_{a,n_{aT}})}{m}\right)^m\leq\left(\eta_1+\frac{n_{aT}\bar{C}_{\psi}^2}{\eta_1m}\right)^m$
so that
$\displaystyle\log\frac{\mathrm{det}(\tilde{V}_{a,n_{aT}})}{\mathrm{det}(\tilde{V}_{a,0})}\leq m\log\left(1+\frac{n_{aT}\bar{C}_{\psi}^2}{\eta_1m}\right)$.
Further, for any $a\in[A]$,
$$\begin{array}{rl}
\displaystyle\sum_{t=\tilde{\tau}_0}^T\|\psi(x_t)\|_{\tilde{V}_{a,n_{at}}^{-1}}\mathbb{I}\{a\in\mathcal{A}_t\}&\displaystyle\leq\sum_{t=1}^T\|\psi(x_t)\|_{\tilde{V}_{a,n_{at}}^{-1}}\mathbb{I}\{a\in\mathcal{A}_t\}=\sum_{s\in\mathcal{S}_{aT}}\|\psi(x_{s})\|_{\tilde{V}_{a,n_{as}}^{-1}}\\
&\displaystyle\leq_{(i)}\sqrt{n_{aT}\sum_{s\in\mathcal{S}_{aT}}\|\psi(x_{s})\|_{\tilde{V}_{a,n_{as}}^{-1}}^2},
\end{array}$$
where inequality (i) follows from Cauchy-Schwarz inequality. Note that $n_{aT}\leq T$, thus
for any $a\in[A]$,
$$\sum_{t=\tilde{\tau}_0}^T\|\psi(x_t)\|_{\tilde{V}_{a,n_{at}}^{-1}}\mathbb{I}\{a\in\mathcal{A}_t\}\leq\sqrt{T(1+\bar{C}_{\psi}^2/\eta_1)m\log\left(1+T\bar{C}_{\psi}^2/(\eta_1m)\right)}.$$
Combining with (ref), conditional on event $\mathcal{E}$, with probability at least $1-\delta$, uniformly over all $a\in[A]$, we have
$$\begin{array}{rl}
\displaystyle\sum_{t=1}^T(\widetilde{\sigma}_{at}-\sigma_{at})\mathbb{I}\{a\in\mathcal{A}_t\}&\displaystyle\leq\sum_{t=1}^{\tilde{\tau}_0-1}(\widetilde{\sigma}_{at}-\sigma_{at})\mathbb{I}\{a\in\mathcal{A}_t\}+\sum_{t=\tilde{\tau}_0}^{T}(\widetilde{\sigma}_{at}-\sigma_{at})\mathbb{I}\{a\in\mathcal{A}_t\}\\
&\displaystyle\leq2(\tilde{\tau}_0-1)+C_{\sigma}\sqrt{T(1+\bar{C}_{\psi}^2/\eta_1)m\log\left(1+T\bar{C}_{\psi}^2/(\eta_1m)\right)},
\end{array}$$
where the second inequality follows because for $t\in[1,\tilde{\tau}_0]$, $\widetilde{\sigma}_{at}-\sigma_{at}\leq2$ by definition of the indices according to Assumption (ref). Henceforth, conditional on event $\mathcal{E}$, with probability at least $1-\delta$,
$$\begin{array}{rl}
\displaystyle\sum_{t=1}^T\sum_{a\in\mathcal{A}_t}(\widetilde{\sigma}_{at}-\sigma_{at})&\displaystyle=\sum_{a\in[A]}\sum_{t=1}^T(\widetilde{\sigma}_{at}-\sigma_{at})\mathbb{I}\{a\in\mathcal{A}_t\}\\
&\displaystyle\leq2A\tilde{\tau}_0+AC_{\sigma}\sqrt{T(1+\bar{C}_{\psi}^2/\eta_1)m\log\left(1+T\bar{C}_{\psi}^2/(\eta_1m)\right)}.
\end{array}$$
Note that by definition, $\Delta_t(\tilde{\pi})\leq1+2A$ for any $t\in[T]$. So (ref) and (ref) together further imply that
\begin{equation}
\begin{array}{rl}
\mathbb{E}\left[\sum_{t=1}^T\Delta_t(\tilde{\pi})\ \big|\ \mathcal{E}\right]&\leq(C_{\mu}\sqrt{d}+4L\gamma_0\sqrt{\eta_0}\bar{\alpha})\sqrt{T}+2A\tilde{\tau}_0+T(1+2A)\delta\\
&\quad+AC_{\sigma}\sqrt{T(1+\bar{C}_{\psi}^2/\eta_1)m\log\left(1+T\bar{C}_{\psi}^2/(\eta_1m)\right)}.
\end{array}
\end{equation}
Recall that $\mathcal{E}$ holds with probability at least $1-\delta$. Thus
\begin{equation}
\mathbb{E}\left[\sum_{t=1}^T\Delta_t(\tilde{\pi})\mathbb{I}\{\mathcal{E}^c\}\right]\leq T(2A+1)\delta.
\end{equation}
Thus setting $\delta=1/\sqrt{T}$, (ref) and (ref) imply that ignoring logarithmic factors, we have
\begin{equation}
\begin{array}{rl}
\mathbb{E}\bigg[\sum_{t=1}^T\Delta_t(\tilde{\pi})\bigg]&\leq(C_{\mu}\sqrt{d}+4L\gamma_0\sqrt{\eta_0}\bar{\alpha}+4A+2)\sqrt{T}+2A\tilde{\tau}_0\\
&\quad+AC_{\sigma}\sqrt{T(1+\bar{C}_{\psi}^2/\eta_1)m\log\left(1+T\bar{C}_{\psi}^2/(\eta_1m)\right)}.
\end{array}
\end{equation}
Recall that $C_\mu$ and $C_{\delta}$ are defined as (ref) and (ref). So ignoring logarithmic factors we have
$$\mathbb{E}\left[\sum_{t=1}^T\Delta_t(\tilde{\pi})\right]\leq\widetilde{O}\left((d+Am+A\sqrt{dm})\sqrt{T}\right).$$
Next, we compute $\eta_0, \eta_1$ that minimize the order of the right hand side of (ref) (ignoring logarithmic factor dependence). In the following, for functions $f,g:\mathbb{N}\to\mathbb{R}_{+}$, we write $f(T)=\widetilde{\Theta}(g(T))$ if both $f(T)=\widetilde{O}(g(T))$ and $g(T)=\widetilde{O}(f(T))$ hold.
Suppressing logarithmic factors, we have $C_\mu
=
\widetilde\Theta\left(
\sqrt{1+\frac1{\eta_0}}
\right)$. Moreover, $\overline\Gamma_a(\delta)
=
\widetilde\Theta(m)$
and $\sqrt{\overline C_a(\delta)}
=
\widetilde\Theta\left(\sqrt d+\sqrt{\eta_0}\right)$.
Therefore, $C_\sigma
=
\widetilde\Theta\left(
\sqrt{m+\eta_1}+\sqrt d+\sqrt{\eta_0}
\right)$.
Substituting these estimates into the regret bound and dropping additive
terms independent of $\eta_0,\eta_1$, the relevant log-free objective is
\[
R(\eta_0,\eta_1)
\asymp
\sqrt T
\left[
d\sqrt{1+\frac1{\eta_0}}
+\sqrt{\eta_0}
+
A\sqrt m
\sqrt{1+\frac1{\eta_1}}
\left(
\sqrt{m+\eta_1}+\sqrt d+\sqrt{\eta_0}
\right)
\right].
\]
Since the factor $\sqrt T$ is common to all $\eta_0,\eta_1$-dependent
terms, it does not affect the minimizer. Define $g(\eta_1):=\sqrt{1+\frac1{\eta_1}}, b(\eta_1):=\sqrt{m+\eta_1}+\sqrt d.$
Then the relevant objective can be written as $r(\eta_0,\eta_1)
=
d\sqrt{1+\frac1{\eta_0}}
+
\left[
1+A\sqrt m\,G(\eta_1)
\right]\sqrt{\eta_0}
+
A\sqrt m\,g(\eta_1)b(\eta_1)$.
We first optimize $\eta_0$ for fixed $\eta_1$. Let $K(\eta_1):=1+A\sqrt m\,g(\eta_1)$.
The $\eta_0$-dependent part is $\displaystyle f(\eta_0;\eta_1)
=
d\sqrt{1+1/\eta_0}
+
K(\eta_1)\sqrt{\eta_0}$.
The first-order condition is $-\frac{d}{2\eta_0^2\sqrt{1+1/\eta_0}}
+
\frac{K(\eta_1)}{2\sqrt{\eta_0}}
=
0$, equivalently, $K(\eta_1)
=
\frac{d}{\eta_0\sqrt{1+\eta_0}}$.
Let $\rho(\eta_1):=\frac{d}{K(\eta_1)}$.
Then the positive solution satisfies
$$\eta_0^\star(\eta_1)
\asymp
\begin{cases}
\rho(\eta_1), & \rho(\eta_1)\lesssim 1,\\[0.8ex]
\rho(\eta_1)^{2/3}, & \rho(\eta_1)\gtrsim 1.
\end{cases}$$
It remains to optimize $\eta_1$. By the envelope theorem,
$$\frac{d}{d\eta_1}
r(\eta_0^\star(\eta_1),\eta_1)
=
A\sqrt m
\left[
g'(\eta_1)
\left(
b(\eta_1)+\sqrt{\eta_0^\star(\eta_1)}
\right)
+
g(\eta_1)b'(\eta_1)
\right].$$
Since $\frac{g'(\eta_1)}{g(\eta_1)}
=
-\frac{1}{2\eta_1(\eta_1+1)}, \ b'(\eta_1)
=
\frac{1}{2\sqrt{m+\eta_1}}$,
the first-order condition is equivalent to
$$\eta_1(\eta_1+1)
=
\sqrt{m+\eta_1}
\left[
\sqrt{m+\eta_1}
+
\sqrt d
+
\sqrt{\eta_0^\star(\eta_1)}
\right].$$
Thus $\eta_1^2-m
=
\left[
\sqrt d+\sqrt{\eta_0^\star(\eta_1)}
\right]
\sqrt{m+\eta_1}$. We next show that the term $\sqrt{\eta_0^\star(\eta_1)}$ never changes
the polynomial order of the $\eta_1$ minimizer. Since
$K(\eta_1)\ge 1$, we have $\rho(\eta_1)\le d$. If
$\rho(\eta_1)\lesssim 1$, then $\sqrt{\eta_0^\star(\eta_1)}
\asymp
\rho(\eta_1)^{1/2}
\lesssim
1
\lesssim
\sqrt d$.
If $\rho(\eta_1)\gtrsim 1$, then $\sqrt{\eta_0^\star(\eta_1)}
\asymp
\rho(\eta_1)^{1/3}
\lesssim
d^{1/3}
\lesssim
\sqrt d$.
Therefore, $\sqrt d+\sqrt{\eta_0^\star(\eta_1)}
\asymp
\sqrt d$, and the $\eta_1$ balancing equation reduces to $\eta_1^2
\asymp
m+\sqrt d\,\sqrt{m+\eta_1}$. We now solve this equation by considering different regimes. If $d\lesssim m$, then at $\eta_1\asymp \sqrt m$, $\sqrt d\,\sqrt{m+\eta_1}\lesssim m$.
Hence $\eta_1^\star\asymp m^{1/2}$. If $m\lesssim d\lesssim m^3$, then the solution satisfies
$\eta_1\lesssim m$, so $m+\eta_1\asymp m$. Hence $\eta_1^2
\asymp
\sqrt{dm}$, and therefore $\eta_1^\star
\asymp
(dm)^{1/4}$. If $d\gtrsim m^3$, then the solution satisfies $\eta_1\gtrsim m$, so
$m+\eta_1\asymp \eta_1$. Hence $\eta_1^2
\asymp
\sqrt{d\eta_1}$,
and therefore $\eta_1^\star
\asymp
d^{1/3}$. Combining the three regimes gives $\eta_1^\star
\asymp
\max\left\{m^{1/2},(dm)^{1/4},d^{1/3}\right\}$.
At this optimizer, $G(\eta_1^\star)=\Theta(1)$. Therefore, $K(\eta_1^\star)
=
1+A\sqrt m\,G(\eta_1^\star)
\asymp
A\sqrt m$. Substituting this into the expression for $\eta_0^\star$ gives $\rho(\eta_1^\star)
=
\frac{d}{K(\eta_1^\star)}
\asymp
\frac{d}{A\sqrt m}$. Thus
$$\eta_0^\star
\asymp
\begin{cases}
\dfrac{d}{A\sqrt m}, & d\lesssim A\sqrt m,\\[1.2ex]
\left(\dfrac{d}{A\sqrt m}\right)^{2/3}, & d\gtrsim A\sqrt m.
\end{cases}$$
Equivalently, $\eta_0^\star
\asymp
\min\left\{
\frac{d}{A\sqrt m},
\left(\frac{d}{A\sqrt m}\right)^{2/3}
\right\}$. Consequently, suppressing logarithmic factors, the optimal polynomial
choices are $\eta_1^\star
\asymp
\max\left\{m^{1/2},(dm)^{1/4},d^{1/3}\right\},\ \eta_0^\star
\asymp
\min\left\{
\frac{d}{A\sqrt m},
\left(\frac{d}{A\sqrt m}\right)^{2/3}
\right\}$.
$\blacksquare$
\begin{algorithm}[!htp]
\caption{\textsc{COSMOS}\ Policy Algorithm}
\textbf{Initialization.}
Observe an initial context $x_0$. Query each box $a\in[A]$ once and record the observed output-cost pairs $\{(\omega_{a0},c_{a0})\}_{a\in[A]}$.
\For{$t=1,2,\ldots,T$}{
Observe context $x_t$. Initialize $\mathcal A_t=\emptyset$ and $M_t=-\infty$\;
For any $a\in[A]$, compute $\hat{\rho}_{at}$ by (ref) and set $\tilde{\sigma}_{at}=\Lambda(\hat{\rho}_{at}^\top\psi(x_t)+B_{at}\|\psi(x_t)\|_{V_{at}(\eta_1)^{-1}})$, where $B_{at}$ is defined as in Proposition (ref), $V_{at}(\eta_1)$ is defined as (ref)\;
Order the
boxes so that $\widetilde\sigma_{(1)t}\ge
\widetilde\sigma_{(2)t}\ge
\cdots\ge
\widetilde\sigma_{(A)t}$.
Set $\widetilde\sigma_{(A+1)t}:=-\infty$\;
\For{$k=1,2,\ldots,A$}{
Query box $(k)$ and observe its output and cost
$(\omega_{(k)t},c_{(k)t})$\;
Add $(k)$ to the queried set:
$\mathcal A_t\leftarrow \mathcal A_t\cup\{(k)\}$\;
Compute the optimistic reward estimate
$\widetilde\mu_t(x_t,\omega_{(k)t})=G\!\left(\hat\theta_{t-1}^\top\phi(x_t,\omega_{(k)t})+\beta_t\,\big\|\phi(x_t,\omega_{(k)t})\big\|_{\Phi_{t-1}^{-1}}\right)$,
where $\Phi_{t-1}$ is defined as in (ref) and $\beta_t$ is as given in Lemma (ref)\;
Update
$M_t \leftarrow
\max_{a\in\mathcal A_t}
\widetilde\mu_t(x_t,\omega_{at})$\;
\textbf{if} $M_t\ge \widetilde\sigma_{(k+1)t}$, stop querying and \textbf{break}\;
}
Select and deploy
$
a_t\in
\argmax_{a\in\mathcal A_t}
\widetilde\mu_t(x_t,\omega_{at}),
$
and observe reward $r_t$\;
}
\end{algorithm}