Introduction
Linear bandits ([1 , 25 ] ) are a widely studied framework for sequential decision-making that generalizes multi-armed bandits ([11 , 6 ] ) by modeling expected rewards as linear functions of action features. Recent work ([60 , 12 , 44 , 17 ] ) extends linear bandits to the non-stationary setting, where the unknown reward parameter may change over time. Such temporal variation arises in applications including large language model (LLM) serving ([54 , 37 ] ), recommendation systems ([24 , 61 ] ), and dynamic pricing ([65 ] ). In these environments, the learner must estimate rewards from noisy feedback while adapting to changes in the underlying environment.
Early work on non-stationary bandits focuses on exogenous non-stationarity, where the environment changes independently of the learner’s actions ([23 , 10 , 32 ] ). In many applications, however, the learner’s recent decisions themselves influence subsequent rewards, giving rise to endogenous non-stationarity. One concrete example is key–value (KV) caching in LLM serving with a fixed retention window [48 ] . Refreshing a prefix makes its KV tensors available for reuse in the current and subsequent rounds. The benefit of a refresh therefore depends on earlier decisions: refreshing an uncached prefix can enable reuse for additional requests, whereas refreshing an already cached prefix extends its availability. Related memory effects arise in model or adapter routing [22 ] , where recent pinning and routing decisions determine which models or adapters remain warm. In recommendation and advertising [58 , 4 ] , recent exposures modify users’ responses through priming, boredom, or wear-out effects; for example, repeatedly displaying similar advertisements may cause user fatigue and reduce subsequent rewards. In dynamic pricing, past prices affect subsequent revenues through finite-memory reference price effects [16 ] or through their impact on resource occupancy and availability [30 ] .
Recent work on linear bandits with memory (LBM) [14 , 5 ] studies one specific endogenous non-stationarity setting: the most recent M M M actions determine a known memory matrix A ( ⋅ ) A(\cdot) A ( ⋅ ) that transforms a fixed unknown reward parameter. Their algorithms divide the learning horizon into episodes with fixed length and select an entire sequence of actions at the start of each episode by maximizing the optimistic reward objective. The best known regret bound with this approach is O ~ ( R S d M T + σ max { 1 , S } d max { d , R 2 } T ) \widetilde{O}(RS\sqrt{dMT}+\sigma\max\{1,S\}\sqrt{d\max\{d,R^2\}T}) O ( R S d M T + σ max { 1 , S } d max { d , R 2 } T ) , where T T T is the horizon, M M M is the memory length, d d d is the reward-parameter dimension, σ \sigma σ is the sub-Gaussian noise, and R R R and S S S bound the operator norm of A ( ⋅ ) A(\cdot) A ( ⋅ ) and the Euclidean norm of θ ∗ \theta^* θ ∗ , respectively. The first regret term couples memory length and horizon through M T \sqrt{MT} M T , while the second introduces additional dependence on R R R and S S S relative to the usual O ~ ( σ d T ) \widetilde{O}(\sigma d\sqrt{T}) O ( σ d T ) statistical term. A similar memory–horizon term appears in the extension to generalized linear bandits with memory (GLBM [5 ] ). At the meantime, the existing literature does not yet provide minimax regret lower bounds that quantify the cost of memory. Thus, it remained an open question: is the multiplicative memory–horizon dependence intrinsic, or can near-optimal regret be achieved with an additive memory cost?
Memory-dependent rewards in these LBM and GLBM settings pose two main challenges. First, policy updates must account for persistent memory. Although new observations allow the learner to improve the policy, each updated policy inherits a memory state shaped by earlier decisions. Frequent updates may therefore accumulate memory-induced error, requiring a tradeoff between incorporating new information and maintaining policy stability. Second, learning must account for the long-term effects of actions. An action determines not only the immediate reward but also the memory state governing future rewards. The learning agent must therefore account for these long-term effects while learning the unknown reward parameter. Our key observation is that the most recent M M M actions in LBM naturally form a state with known and deterministic transitions, as in reinforcement learning (RL), while rewards are governed by a shared unknown parameter, as in linear bandits. Neither view alone suffices: a myopic bandit approach neglects future memory effects and can incur linear regret, whereas a direct tabular RL algorithm does not exploit the shared reward structure and yields a regret with exponential dependence on the memory length.
We therefore ask:
Can we exploit this structure to learn from bandit feedback while planning over memory states as in RL, and achieve near-optimal regret?
We develop algorithms and regret guarantees for LBM and GLBM. Our contributions are as follows.
We develop a Bellman-centric algorithm, RSM-LinUCB (Algorithm 1), in § 3 . It constructs optimistic reward estimates using linear-bandit confidence sets and uses Bellman planning over memory states to account for the long-term effects of actions. To control the memory-induced costs of policy updates, RSM-LinUCB adopts determinant-triggered rare switching [1 ] : it updates optimistic reward estimates and policy only when the determinant of the information matrix doubles. We further develop RSM-GLMUCB for GLBM in § 5 , extending optimistic reward estimation, Bellman planning, and rare policy updates to generalized linear rewards.
We establish near-optimal regret guarantees for RSM-LinUCB in § 4 . Our analysis admits a Bellman regret decomposition that separates memory-induced boundary costs from cumulative reward-estimation error along the learner’s trajectory. Specifically, Theorem 1 gives an upper bound of O ~ ( d R S ( M + 1 ) + σ d T ) \widetilde{O}(dRS(M+1)+\sigma d\sqrt{T}) O ( d R S ( M + 1 ) + σ d T ) . Compared with prior bounds, this replaces multiplicative memory–horizon dependence with an additive memory cost, while removing polynomial dependence on R R R and S S S from the leading statistical term. The matching lower bound in Theorem 2 establishes optimality up to logarithmic factors. For GLBM, we further obtain O ~ ( d ( M + 1 ) Δ μ + σ d T + d 2 κ v ρ 2 Δ μ ) \widetilde{O}(d(M+1)\Delta_\mu+\sigma d\sqrt{T}+d^2\kappa v\rho^2\Delta_\mu) O ( d ( M + 1 ) Δ μ + σ d T + d 2 κ v ρ 2 Δ μ ) in § 5 . Here, Δ μ \Delta_\mu Δ μ is the range of reward means, κ \kappa κ is the worst-case inverse slope of the link function, and v v v and ρ \rho ρ govern reward dispersion and relative slope variation, respectively. This bound retains the separation between memory and statistical costs, with an additional curvature-induced error. The lower bound in Theorem 4 shows that the first two terms are near-optimal. Detailed comparisons of theoretical results are in Table 1 .
Table 1. Comparison of regret bounds for the basic LBM setting and the extended GLBM setting.
We evaluate our algorithms on synthetic instances and two semi-synthetic caching tasks in LLM serving. Synthetic experiments examine performance over T T T and sensitivity to M M M , R R R , and S S S , with RSM-LinUCB reducing cumulative regret by at least 61% relative to the baselines. For KV caching, we use the Mooncake conversation trace [48 ] to evaluate prefix-cache refresh decisions. On this task, RSM-LinUCB reduces cumulative regret by at least 20%. For semantic caching, we use vCache/SemBenchmarkLmArena [53 ] . The feedback
is exponential with a reciprocal mean function, yielding a generalized linear reward model. On this task, RSM-GLMUCB reduces cumulative regret by at least 46% relative to the baselines.
Notes. We assume M ≥ 1 M \ge1 M ≥ 1 as the models reduce to standard (generalized) linear bandits when M = 0 M = 0 M = 0 . Here, n = ∣ A ∣ n = |\mathcal{A}| n = ∣ A ∣ denotes the action set size, and τ w \tau_w τ w denotes the cumulative warm-up regret in Ann et al. [5 ] , which may not be sublinear in T T T when insufficient feature coverage prevents the warm-up stopping condition from being met. For ρ > 0 \rho> 0 ρ > 0 , C μ C_\mu C μ and Γ μ \Gamma_\mu Γ μ are parameter-dependent factors satisfying C μ ≥ ( 1 + ρ R S ) 3 / 2 C_\mu\ge(1+\rho RS)^{3/2} C μ ≥ ( 1 + ρR S ) 3/2 and Γ μ ≳ d + ( M T ) 1 / 4 \Gamma_\mu\gtrsim d+(MT)^{1/4} Γ μ ≳ d + ( M T ) 1/4 . For GLBM, σ \sigma σ denotes an upper bound on the conditional standard deviation.
Problem Setup
We consider linear bandits with memory (LBM). Let [ T ] : = { 1 , … , T } [T] := \{1,\ldots,T\} [ T ] := { 1 , … , T } , and let A ⊆ R d \mathcal{A} \subseteq\mathbb{R}^{d} A ⊆ R d be an action set satisfying sup a ∈ A ∥ a ∥ 2 ≤ 1 \sup_{a\in\mathcal{A}}\|a\|_2 \le1 sup a ∈ A ∥ a ∥ 2 ≤ 1 . At each round t ∈ [ T ] t \in[T] t ∈ [ T ] , the learner selects an action a t ∈ A a_t \in\mathcal{A} a t ∈ A based on the observed history and receives a noisy reward y t y_t y t . The reward depends on the current action, a fixed parameter θ ⋆ ∈ R d \theta^\star\in\mathbb{R}^{d} θ ⋆ ∈ R d , and the memory state s t s_t s t . The memory state s t : = ( a t − M , … , a t − 1 ) s_t := (a_{t-M},\ldots,a_{t-1}) s t := ( a t − M , … , a t − 1 ) records the preceding M M M actions, where M M M is the known memory length. We denote the memory state space by S : = A M \mathcal{S} := \mathcal{A}^{M} S := A M and fix an initial memory state s 1 = ( a 1 − M , … , a 0 ) s_1 = (a_{1-M},\ldots,a_0) s 1 = ( a 1 − M , … , a 0 ) . For notation simplicity, we use f ( s t , a t ) = s t + 1 = ( a t − M + 1 , … , a t ) f(s_t,a_t)=s_{t+1}=(a_{t-M+1},\ldots,a_t) f ( s t , a t ) = s t + 1 = ( a t − M + 1 , … , a t ) to denote the memory state transition. Specifically, the observed reward is
y t = ⟨ a t , A ( s t ) θ ⋆ ⟩ + ϵ t . (1) y_t=\langle a_t,A(s_t)\theta^\star\rangle+\epsilon_t. \tag*{(1)} y t = ⟨ a t , A ( s t ) θ ⋆ ⟩ + ϵ t . (1)
The reward parameter θ ⋆ \theta^\star θ ⋆ is unknown and satisfies θ ⋆ ∈ Θ : = { θ ∈ R d : ∥ θ ∥ 2 ≤ S } \theta^\star\in\Theta:= \{\theta\in\mathbb{R}^{d}:\|\theta\|_2 \le S\} θ ⋆ ∈ Θ := { θ ∈ R d : ∥ θ ∥ 2 ≤ S } . The memory map A : S → R d × d A:\mathcal{S}\to\mathbb{R}^{d\times d} A : S → R d × d is known a priori and uniformly bounded in operator norm: sup s ∈ S ∥ A ( s ) ∥ o p ≤ R \sup_{s\in\mathcal{S}}\|A(s)\|_{\mathrm{op}}\le R sup s ∈ S ∥ A ( s ) ∥ op ≤ R . The noise sequence ( ϵ t ) t ≥ 1 (\epsilon_t)_{t\ge1} ( ϵ t ) t ≥ 1 is conditionally zero-mean and σ \sigma σ -sub-Gaussian given the history and the current action. Defining the effective feature ϕ ( s , a ) : = A ( s ) T a \phi(s,a) := A(s)^{\mathsf{T}}a ϕ ( s , a ) := A ( s ) T a , we can express the conditional mean reward as
r ( s , a ) = ⟨ a , A ( s ) θ ⋆ ⟩ = ⟨ ϕ ( s , a ) , θ ⋆ ⟩ . r(s,a) = \langle a, A(s)\theta^\star\rangle= \langle\phi(s,a),\theta^\star\rangle. r ( s , a ) = ⟨ a , A ( s ) θ ⋆ ⟩ = ⟨ ϕ ( s , a ) , θ ⋆ ⟩ .
The learner aims to maximize the cumulative mean reward. We compare the learner with the optimal length-T T T action sequence, whose cumulative mean reward is
OPT T ( θ ⋆ ) : = sup a ˉ 1 , … , a ˉ T ∈ A ∑ t = 1 T ⟨ a ˉ t , A ( a ˉ t − M , … , a ˉ t − 1 ) θ ⋆ ⟩ . (2) \operatorname{OPT}_{T}(\theta^\star) := \sup_{\bar{a}_1,\ldots,\bar{a}_T\in\mathcal{A}} \sum_{t=1}^{T} \langle\bar{a}_t,A(\bar{a}_{t-M},\ldots,\bar{a}_{t-1})\theta^\star\rangle. \tag*{(2)} OPT T ( θ ⋆ ) := a ˉ 1 , … , a ˉ T ∈ A sup t = 1 ∑ T ⟨ a ˉ t , A ( a ˉ t − M , … , a ˉ t − 1 ) θ ⋆ ⟩ . (2)
Finally, for a policy π \pi π generating actions a 1 π , … , a T π a_1^\pi,\ldots,a_T^\pi a 1 π , … , a T π , we define its policy regret as
Reg T ( π ) : = OPT T ( θ ⋆ ) − ∑ t = 1 T ⟨ a t π , A ( a t − M π , … , a t − 1 π ) θ ⋆ ⟩ . (3) \operatorname{Reg}_{T}(\pi) := \operatorname{OPT}_{T}(\theta^\star) - \sum_{t=1}^{T}\langle a_t^\pi,A(a_{t-M}^\pi,\ldots,a_{t-1}^\pi)\theta^\star\rangle. \tag*{(3)} Reg T ( π ) := OPT T ( θ ⋆ ) − t = 1 ∑ T ⟨ a t π , A ( a t − M π , … , a t − 1 π ) θ ⋆ ⟩ . (3)
Bellman-Centric Algorithm Design
We introduce Rare-Switch Memory LinUCB (RSM-LinUCB; see Algorithm 1). This algorithm is motivated by the observation that LBM lies at the interface between stochastic linear bandits and reinforcement learning (RL). The most recent M M M actions in LBM naturally form a state with known, deterministic transitions, while rewards are governed by a shared unknown parameter, as in linear bandits. Thus, LBM requires non-myopic planning, as in RL, but only the reward parameter needs to be learned from bandit feedback.
From the bandit side, we construct an optimistic reward function u k ( s , a ) u_k(s,a) u k ( s , a ) using a linear bandit confidence set. From the RL side, we solve the corresponding Bellman equation to obtain a value function J k ( s ) J_k(s) J k ( s ) and select actions by accounting for both immediate optimism and the value of the resulting memory state. This non-myopic planning step goes beyond the batching-based treatment of memory used in prior LBM algorithms (Clerici et al. [14 ] , Ann et al. [5 ] ). To prevent frequent policy changes from repeatedly inducing memory-state transients, we adopt a determinant-triggered rare-switching rule (Abbasi-Yadkori et al. [1 ] ) and replan only after the accumulated statistical information has increased substantially.
Algorithm 1 Rare-Switch Memory LinUCB
Input: Confidence level δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , regularization λ > 0 \lambda> 0 λ > 0 , discount factor γ \gamma γ
Initialize: V ‾ 0 ← λ I d \overline{V}_0 \leftarrow\lambda I_d V 0 ← λ I d , b ‾ 0 ← 0 d \overline{b}_0 \leftarrow0_d b 0 ← 0 d , t ← 1 t \leftarrow1 t ← 1 , k ← 0 k \leftarrow0 k ← 0
while t ≤ T t \le T t ≤ T do
k ← k + 1 k \leftarrow k+1 k ← k + 1 , τ k ← t \tau_k \leftarrow t τ k ← t , V ‾ k ← V t − 1 \overline{V}_k \leftarrow V_{t-1} V k ← V t − 1 , b ‾ k ← b t − 1 \overline{b}_k \leftarrow b_{t-1} b k ← b t − 1 , θ ‾ k ← V ‾ k − 1 b t − 1 \overline{\theta}_k \leftarrow\overline{V}_{k}^{-1}b_{t-1} θ k ← V k − 1 b t − 1
while t ≤ T t \le T t ≤ T and det ( V t − 1 ) < 2 det ( V ‾ k ) \det(V_{t-1}) < 2\det(\overline{V}_k) det ( V t − 1 ) < 2 det ( V k ) do
Play a t a_t a t according to Equation (4) with u k ( s , a ) u_k(s,a) u k ( s , a ) and J k ( s ) J_k(s) J k ( s ) defined as in Equations (5) and (6) , and observe reward y t y_t y t
V t ← V t − 1 + ϕ ( s t , a t ) ϕ ( s t , a t ) ⊤ V_t \leftarrow V_{t-1}+\phi(s_t,a_t)\phi(s_t,a_t)^\top V t ← V t − 1 + ϕ ( s t , a t ) ϕ ( s t , a t ) ⊤ , b t ← b t − 1 + y t ϕ ( s t , a t ) b_t \leftarrow b_{t-1}+y_t\phi(s_t,a_t) b t ← b t − 1 + y t ϕ ( s t , a t ) , s t + 1 ← f ( s t , a t ) s_{t+1} \leftarrow f(s_t,a_t) s t + 1 ← f ( s t , a t ) , t ← t + 1 t \leftarrow t+1 t ← t + 1
end while
end while
Input and initialization. The algorithm takes a confidence level δ \delta δ , a regularization parameter λ \lambda λ , and a discount factor γ \gamma γ as inputs. It initializes the information matrix and reward feature vector as V 0 = λ I d V_0=\lambda I_d V 0 = λ I d and b 0 = 0 d b_0=0_d b 0 = 0 d , respectively, and sets the episode counter k = 0 k=0 k = 0 . The algorithm proceeds in episodes, during each of which the reward estimator and the resulting policy remain fixed to limit the frequency of policy changes and to control the cost of the memory state transients.
Action selection with frozen parameters. At the beginning of episode k k k , the algorithm records the starting round τ k \tau_k τ k and freezes the current information matrix V ‾ k \overline{V}_k V k , reward feature vector b ‾ k \overline{b}_k b k , and parameter estimate θ ‾ k \overline{\theta}_k θ k . At round t t t within episode k k k , the algorithm selects an action that maximizes the optimistic action value, given by
a t ∈ arg max a ∈ A { u k ( s t , a ) + γ J k ( f ( s t , a ) ) } . (4) a_t \in\arg\max_{a \in\mathcal{A}}\left\{u_k(s_t,a)+\gamma J_k(f(s_t,a))\right\}. \tag*{(4)} a t ∈ arg a ∈ A max { u k ( s t , a ) + γ J k ( f ( s t , a )) } . (4)
where u k ( s , a ) u_k(s,a) u k ( s , a ) denotes the optimistic reward estimate and J k ( s ) J_k(s) J k ( s ) the corresponding optimal discounted value, defined as
u k ( s , a ) = Π [ − R S , R S ] ( ϕ ( s , a ) ⊤ θ ‾ k + β ‾ k ∥ ϕ ( s , a ) ∥ V ‾ k − 1 ) . (5) u_k(s,a)=\Pi_{[-R_S,R_S]}\left(\phi(s,a)^\top\overline{\theta}_k+\overline{\beta}_k\left\|\phi(s,a)\right\|_{\overline{V}_k^{-1}}\right). \tag*{(5)} u k ( s , a ) = Π [ − R S , R S ] ( ϕ ( s , a ) ⊤ θ k + β k ∥ ϕ ( s , a ) ∥ V k − 1 ) . (5)
J k ( s ) = sup a ‾ 0 , a ‾ 1 , … ∑ j = 0 ∞ γ j u k ( s ‾ j , a ‾ j ) . (6) J_k(s)=\sup_{\overline{a}_0,\overline{a}_1,\ldots}\sum_{j=0}^{\infty}\gamma^j u_k(\overline{s}_j,\overline{a}_j). \tag*{(6)} J k ( s ) = a 0 , a 1 , … sup j = 0 ∑ ∞ γ j u k ( s j , a j ) . (6)
Here, β ‾ k = λ S + σ 2 log ( 1 δ ) + d log ( 1 + τ k R 2 λ d ) \overline{\beta}_k=\sqrt{\lambda}S+\sigma\sqrt{2\log\left(\frac{1}{\delta}\right)+d\log\left(1+\frac{\tau_kR^2}{\lambda d}\right)} β k = λ S + σ 2 log ( δ 1 ) + d log ( 1 + λ d τ k R 2 ) is the confidence level, Π [ − R S , R S ] \Pi_{[-R_S,R_S]} Π [ − R S , R S ] projects the estimate to the range of rewards, and s ‾ 0 = s \overline{s}_0=s s 0 = s , s ‾ j + 1 = f ( s ‾ j , a ‾ j ) \overline{s}_{j+1}=f(\overline{s}_j,\overline{a}_j) s j + 1 = f ( s j , a j ) is the memory-state trajectory. With high probability, u k ( s , a ) u_k(s,a) u k ( s , a ) upper bounds the expected reward of taking action a a a in memory state s s s . Built on this optimistic reward function, J k ( s ) J_k(s) J k ( s ) accounts for the optimistic cumulative reward obtainable from state s s s by recursively evaluating future action sequences and their induced memory-state transitions. The algorithm plays a t a_t a t and observes the reward y t y_t y t .
Determinant-triggered policy updates. The agent updates V t V_t V t , b t b_t b t , and the memory state s t + 1 s_{t+1} s t + 1 using the selected action and the observed reward. The algorithm uses a determinant-triggered rare-switching rule, starting a new episode only when det ( V t ) ≥ 2 det ( V ‾ k ) \det(V_t) \ge2\det(\overline{V}_k) det ( V t ) ≥ 2 det ( V k ) . Thus, the estimator used for planning and the resulting policy remain fixed within each episode, even as new observations continue to accumulate. The selected actions may nevertheless vary as the memory state evolves. This update rule limits the number of policy changes and the memory state transients. Therefore, any two initial memories at the start of episode become identical after the same sequence of M M M actions, allowing us to bound the transient contribution through an M M M -dependent value span. Unlike the predetermined batching policies used in prior work on LBM ([14 , 5 ] ), our episode boundaries adapt to the information accumulated by the learner. The determinant-doubling rule therefore controls the frequency of replanning while ensuring that each policy update is triggered by a substantial increase in statistical information.
Theoretical Guarantee
Upper Bound of RSM-LinUCB
Our analysis first establishes that, under any bounded reward function, the optimal discounted values of two memory states differ by at most 2 R S M 2RSM 2 R S M .
Lemma 1 (Finite-memory value span). Let γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) and r q : S × A → [ − R S , R S ] r_q:\mathcal{S} \times\mathcal{A} \to[-R_S,R_S] r q : S × A → [ − R S , R S ] be any reward function. Define J q ( s ) = sup a 0 , a 1 , … ∑ j = 0 ∞ γ j r q ( s j , a j ) J_q(s) = \sup_{a_0,a_1,\ldots} \sum_{j=0}^{\infty} \gamma^j r_q(s_j,a_j) J q ( s ) = sup a 0 , a 1 , … ∑ j = 0 ∞ γ j r q ( s j , a j ) , where s 0 = s s_0=s s 0 = s and s j + 1 = f ( s j , a j ) s_{j+1}=f(s_j,a_j) s j + 1 = f ( s j , a j ) . Then
span ( J q ) ≔ sup s ∈ S J q ( s ) − inf s ∈ S J q ( s ) ≤ 2 R S M . \operatorname{span}(J_q) \coloneqq\sup_{s\in\mathcal{S}} J_q(s) - \inf_{s\in\mathcal{S}} J_q(s) \le2RSM. span ( J q ) : = s ∈ S sup J q ( s ) − s ∈ S inf J q ( s ) ≤ 2 R S M . The key insight behind Lemma 1 is that applying the same sequence of M M M actions from any two initial memory states makes the resulting states coincide. The initial history at each episode
can therefore affect rewards during the first M M M rounds, which bounds the effect of the starting state at each episode boundary. Combining this property with the Bellman optimality equation and optimism yields the following regret decomposition.
Lemma 2 (Bellman-centric regret decomposition). Consider Algorithm 1 with T ≥ 2 T \ge2 T ≥ 2 and γ = 1 − 1 / T \gamma= 1 - 1/T γ = 1 − 1/ T . Let π \pi π denote the policy generated by Algorithm 1, K K K the total number of episodes, and k ( t ) k(t) k ( t ) the episode containing round t t t . Then, with probability at least 1 − δ 1 - \delta 1 − δ ,
Reg T ( π ) ≤ 2 ( K + 2 ) R S M + ∑ t = 1 T [ u k ( t ) ( s t π , a t π ) − r θ ⋆ ( s t π , a t π ) ] . \operatorname{Reg}_{T}(\pi) \le2(K+2)RSM + \sum_{t=1}^{T} \left[u_{k(t)}(s_t^\pi, a_t^\pi) - r_{\theta^\star}(s_t^\pi, a_t^\pi)\right]. Reg T ( π ) ≤ 2 ( K + 2 ) R S M + t = 1 ∑ T [ u k ( t ) ( s t π , a t π ) − r θ ⋆ ( s t π , a t π ) ] .
Lemma 2 separates the regret into a memory-induced error and the cumulative reward estimation error along the learner’s trajectory. The first term bounds the error of starting each episode from a potentially unfavorable memory state. Our determinant-doubling rule ensures K = O ( d log T ) K = O(d \log T) K = O ( d log T ) , so this error contributes only an additive memory-dependent term to the regret bound. The second term can be controlled by using ridge-regression confidence bounds and the elliptical potential lemma ([1 ] ). Specifically, the determinant doubling trick ensures that freezing the estimator within each episode increases the confidence intervals by at most a constant factor.
Theorem 1 (Upper Bound of Algorithm 1). For T ≥ 2 T \ge2 T ≥ 2 , with inputs 0 < λ ≤ d σ 2 / S 2 0 < \lambda\le d\sigma^2/S^2 0 < λ ≤ d σ 2 / S 2 , and γ = 1 − 1 / T \gamma= 1 - 1/T γ = 1 − 1/ T , the regret of Algorithm 1 satisfies
Reg T ( R S M - L i n U C B ) ≤ ( 4 d log ( 1 + T R 2 λ d ) + 6 ) R S M + 4 R S d log ( 1 + T R 2 λ d ) \operatorname{Reg}_{T}(\mathrm{RSM\text{-}LinUCB}) \le\left(4d\log\left(1+\frac{TR^2}{\lambda d}\right)+6\right)RSM + 4RSd\log\left(1+\frac{TR^2}{\lambda d}\right) Reg T ( RSM - LinUCB ) ≤ ( 4 d log ( 1 + λ d T R 2 ) + 6 ) R S M + 4 R S d log ( 1 + λ d T R 2 ) + 4 T d log ( 1 + T R 2 λ d ) ( σ d log ( 1 + T R 2 λ d ) + 2 log ( 1 δ ) + λ S ) +4\sqrt{Td\log\left(1+\frac{TR^2}{\lambda d}\right)}\left(\sigma\sqrt{d\log\left(1+\frac{TR^2}{\lambda d}\right)+2\log\left(\frac{1}{\delta}\right)}+\sqrt{\lambda}S\right) + 4 T d log ( 1 + λ d T R 2 ) ( σ d log ( 1 + λ d T R 2 ) + 2 log ( δ 1 ) + λ S ) = O ~ ( d R S ( M + 1 ) + σ d T ) =\widetilde{O}\left(dRS(M+1)+\sigma d\sqrt{T}\right) = O ( d R S ( M + 1 ) + σ d T ) with probability at least 1 − δ 1-\delta 1 − δ , where O ~ \widetilde{O} O omits logarithmic factors.
The regret bound consists of two additive terms. The first, O ~ ( d R S ( M + 1 ) ) \widetilde{O}(dRS(M+1)) O ( d R S ( M + 1 )) , captures the memory-induced error of starting each episode from a potentially unfavorable state. The finite memory value-span bound limits this error to O ( R S M ) O(RSM) O ( R S M ) per episode, while determinant doubling limits the number of episodes to O ~ ( d ) \widetilde{O}(d) O ( d ) . The additional O ~ ( d R S ) \widetilde{O}(dRS) O ( d R S ) term accounts for the initial exploration error present even without memory that also exists in ordinary linear bandits. The second term, O ~ ( σ d T ) \widetilde{O}(\sigma d\sqrt{T}) O ( σ d T ) , accounts for reward estimation error. Under the prescribed regularization, this term has no polynomial dependence on the parameter-scale factors R R R (for memory matrix A A A ) or S S S (for reward parameter θ ⋆ \theta^\star θ ⋆ ).
Lower Bound
Theorem 2 (Lower Bound of LBM). Suppose d ≥ 2 d \ge2 d ≥ 2 and T ≥ d max { M , 1 , σ 2 d 48 R 2 S 2 } T \ge d\max\{M,1,\frac{\sigma^2 d}{48R^2S^2}\} T ≥ d max { M , 1 , 48 R 2 S 2 σ 2 d } . There exists an admissible action set such that the minimax regret of LBM satisfies
inf π sup θ ⋆ : ∥ θ ⋆ ∥ 2 ≤ S A : ∥ A ∥ op ≤ R E [ Reg T ( π ) ] ≥ Ω ( d R S ( M + 1 ) + σ d T ) . \inf_{\pi}\ \sup_{\substack{\theta^\star:\ \lVert\theta^\star\rVert_2\le S\\ A:\ \lVert A\rVert_{\operatorname{op}}\le R}} \mathbb{E}[\operatorname{Reg}_T(\pi)] \ge\Omega\left(dRS(M+1)+\sigma d\sqrt{T}\right). π inf θ ⋆ : ∥ θ ⋆ ∥ 2 ≤ S A : ∥ A ∥ op ≤ R sup E [ Reg T ( π )] ≥ Ω ( d R S ( M + 1 ) + σ d T ) .
The upper bound in Theorem 1 matches the lower bound in Theorem 2 up to logarithmic factors. The first memory-induced error reflects the cost of obtaining information that is accessible only through a suitable action history. In our hard instance, the learner must repeatedly select a coordinate direction for M M M rounds before rewards can reveal whether that coordinate is informative. Identifying the rewarding coordinate among d d d candidates can therefore require Ω ( d M ) \Omega(dM) Ω ( d M ) rounds, with a reward gap of order R S RS R S during unsuccessful exploration. This yields the Ω ( d R S M ) \Omega(dRSM) Ω ( d R S M ) term, while the additional Ω ( d R S ) \Omega(dRS) Ω ( d R S ) term accounts for the initial exploration error already present in ordinary linear bandits, giving Ω ( d R S ( M + 1 ) ) \Omega(dRS(M+1)) Ω ( d R S ( M + 1 )) overall. The statistical estimation error Ω ( σ d T ) \Omega(\sigma d\sqrt{T}) Ω ( σ d T ) follows from the standard lower bound in linear bandits (Lattimore and Szepesvári [36 ] ), since ordinary linear bandits are a special case of LBM with a constant memory matrix.
Extension to Generalized Linear Bandits with Memory
Our Bellman-centric design achieves near-optimal regret for LBM. We next ask whether the same idea can improve prior bounds for generalized linear rewards (Ann et al. [5 ] ) and yield near-optimal leading regret terms, as summarized in Table 1 . The extension is not immediate: in generalized linear models the slope of the link function depends on the unknown parameter, which makes uncertainty estimation considerably harder than in the linear case. In this section, we extend our algorithm to generalized rewards, show that it achieves an additive memory error, and prove that the leading terms of the resulting bound are near-optimal.
Problem Setup
Generalized linear bandits with memory (GLBM) retain the same action space A \mathcal{A} A , known memory matrix A ( ⋅ ) A(\cdot) A ( ⋅ ) , and norm bounds R R R and S S S as in LBM. Similarly, we write ϕ ( s , a ) = A ( s ) ⊤ a \phi(s,a)=A(s)^{\top}a ϕ ( s , a ) = A ( s ) ⊤ a and z ( s , a ) = ϕ ( s , a ) ⊤ θ ∗ z(s,a)=\phi(s,a)^{\top}\theta^* z ( s , a ) = ϕ ( s , a ) ⊤ θ ∗ . Unlike LBM, where the conditional reward mean is z ( s , a ) z(s,a) z ( s , a ) , GLBM models the reward through a known canonical exponential family [38 , 42 , 5 ] . Specifically, an observation y y y at ( s , a ) (s,a) ( s , a ) has density or probability mass function
P [ y ∣ z ( s , a ) ] = exp ( y z ( s , a ) − b ( z ( s , a ) ) v + c ( y , v ) ) . \mathbb{P}[y\mid z(s,a)]=\exp\left(\frac{yz(s,a)-b(z(s,a))}{v}+c(y,v)\right). P [ y ∣ z ( s , a )] = exp ( v y z ( s , a ) − b ( z ( s , a )) + c ( y , v ) ) .
where v > 0 v>0 v > 0 is the known dispersion parameter which controls the noise level of the observed reward, and μ ( ⋅ ) = b ′ ( ⋅ ) \mu(\cdot)=b'(\cdot) μ ( ⋅ ) = b ′ ( ⋅ ) is the known link function. The conditional reward mean and variance are therefore given by E [ y ∣ z ( s , a ) ] = μ ( z ( s , a ) ) \mathbb{E}[y\mid z(s,a)]=\mu(z(s,a)) E [ y ∣ z ( s , a )] = μ ( z ( s , a )) and Var [ y ∣ z ( s , a ) ] = v μ ′ ( z ( s , a ) ) \operatorname{Var}[y\mid z(s,a)]=v\mu'(z(s,a)) Var [ y ∣ z ( s , a )] = v μ ′ ( z ( s , a )) , respectively.
Following prior work, we assume that μ \mu μ is twice continuously differentiable and satisfies μ ′ ( z ) > 0 \mu'(z)>0 μ ′ ( z ) > 0 and ∣ μ ′ ′ ( z ) ∣ ≤ ρ μ ′ ( z ) |\mu''(z)|\leq\rho\mu'(z) ∣ μ ′′ ( z ) ∣ ≤ ρ μ ′ ( z ) for every ∣ z ∣ ≤ R S |z|\leq RS ∣ z ∣ ≤ R S , where the known constant ρ ≥ 0 \rho\geq0 ρ ≥ 0 controls the relative variation of its slope. We further define
U μ : = sup ∣ z ∣ ≤ R S μ ′ ( z ) , κ : = ( inf ∣ z ∣ ≤ R S μ ′ ( z ) ) − 1 , Δ μ : = μ ( R S ) − μ ( − R S ) . (7) U_\mu:=\sup_{|z|\leq RS}\mu'(z),\quad\kappa:=\left(\inf_{|z|\leq RS}\mu'(z)\right)^{-1},\quad\Delta_\mu:=\mu(RS)-\mu(-RS). \tag*{(7)} U μ := ∣ z ∣ ≤ R S sup μ ′ ( z ) , κ := ( ∣ z ∣ ≤ R S inf μ ′ ( z ) ) − 1 , Δ μ := μ ( R S ) − μ ( − R S ) . (7)
Here, U μ U_\mu U μ bounds how fast the reward changes as z ( s , a ) z(s,a) z ( s , a ) varies, κ \kappa κ quantifies the worst-case flatness of the link function, and Δ μ \Delta_\mu Δ μ bounds the range of reward means. The definitions of OPT T \operatorname{OPT}_T OPT T and Reg T \operatorname{Reg}_T Reg T remain unchanged from § 2 , with the mean reward replaced by r ( s , a ) = μ ( ϕ ( s , a ) ⊤ θ ∗ ) r(s,a)=\mu(\phi(s,a)^{\top}\theta^*) r ( s , a ) = μ ( ϕ ( s , a ) ⊤ θ ∗ ) .
Algorithm and Theoretical Guarantee
In GLBM, the slope of the mean reward function depends on the unknown parameter, making uncertainty estimation more challenging than in the linear model. We therefore propose Rare-Switch Memory GLMUCB (RSM-GLMUCB; see Algorithm 2), which uses maximum likelihood estimation (MLE) to construct confidence sets C k C_k C k at each episode while retaining the discounted planning approach of Algorithm 1. The algorithm intersects each new confidence set with the previous one so that uncertainty does not increase across episodes. We also maintain two information matrices V t V_t V t and H t H_t H t : the former one uses all selected actions, while the latter one weights them by the estimated reward slope when predictions are sufficiently accurate. These weights, similar to the rare-switch policy in Algorithm 1, are fixed once recorded, and we update the policy only when either determinant doubles. This allows the algorithm to account for generalized rewards while keeping policy updates infrequent. Due to space limits, we defer further details of Algorithm 2 to Appendix § 10 .
Rare-Switch Memory GLMUCB
Input: Confidence level δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) ; regularization λ 1 , λ 2 > 0 \lambda_1,\lambda_2 > 0 λ 1 , λ 2 > 0 ; discount factor γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) .
Initialize: V 0 ← λ 1 I d V_0 \leftarrow\lambda_1 I_d V 0 ← λ 1 I d , H 0 ← λ 2 I d H_0 \leftarrow\lambda_2 I_d H 0 ← λ 2 I d , C 0 ← Θ C_0 \leftarrow\Theta C 0 ← Θ , t ← 1 t \leftarrow1 t ← 1 , k ← 0 k \leftarrow0 k ← 0 .
while t ≤ T t \le T t ≤ T do
k ← k + 1 k \leftarrow k+1 k ← k + 1 , τ k ← t \tau_k \leftarrow t τ k ← t , V ˉ k ← V t − 1 \bar{V}_k \leftarrow V_{t-1} V ˉ k ← V t − 1 , H ˉ k ← H t − 1 \bar{H}_k \leftarrow H_{t-1} H ˉ k ← H t − 1 .
Compute θ ^ k \hat{\theta}_k θ ^ k , C k C_k C k , and θ ˉ k \bar{\theta}_k θ ˉ k according to Equation (9) .
while t ≤ T t \le T t ≤ T and max { det ( V t − 1 ) det ( V ˉ k ) , det ( H t − 1 ) det ( H ˉ k ) } < 2 \max\left\{ \frac{\det(V_{t-1})}{\det(\bar{V}_k)}, \frac{\det(H_{t-1})}{\det(\bar{H}_k)} \right\} < 2 max { d e t ( V ˉ k ) d e t ( V t − 1 ) , d e t ( H ˉ k ) d e t ( H t − 1 ) } < 2 do
Play a t a_t a t according to Equation (12) with u k ( s , a ) u_k(s,a) u k ( s , a ) and J k ( s ) J_k(s) J k ( s ) defined as in Equation (13) , and observe y t y_t y t . Then compute w t w_t w t according to Equation (14) .
V t = V t − 1 + ϕ ( s t , a t ) ϕ ( s t , a t ) ⊤ V_t = V_{t-1} + \phi(s_t,a_t)\phi(s_t,a_t)^\top V t = V t − 1 + ϕ ( s t , a t ) ϕ ( s t , a t ) ⊤ , H t = H t − 1 + w t ϕ ( s t , a t ) ϕ ( s t , a t ) ⊤ H_t = H_{t-1} + w_t\phi(s_t,a_t)\phi(s_t,a_t)^\top H t = H t − 1 + w t ϕ ( s t , a t ) ϕ ( s t , a t ) ⊤ , s t + 1 ← f ( s t , a t ) s_{t+1} \leftarrow f(s_t,a_t) s t + 1 ← f ( s t , a t ) , t ← t + 1 t \leftarrow t+1 t ← t + 1 .
end while
end while
Theorem 3 (Upper bound of Algorithm 2). For T ≥ 2 T \ge2 T ≥ 2 , 0 < λ 1 ≤ κ v d / S 2 0 < \lambda_1 \le\kappa v d/S^2 0 < λ 1 ≤ κ v d / S 2 , 0 < λ 2 ≤ v d / S 2 0 < \lambda_2 \le v d/S^2 0 < λ 2 ≤ v d / S 2 , γ = 1 − 1 / T \gamma= 1-1/T γ = 1 − 1/ T . Under generalized reward, with probability at least 1 − δ 1-\delta 1 − δ , the regret of Algorithm 2 satisfies
Reg T ( R S M - G L M U C B ) ≤ O ~ ( d ( M + 1 ) Δ μ + d v U μ T + d 2 κ v ρ 2 Δ μ ) . \operatorname{Reg}_T(\mathrm{RSM\text{-}GLMUCB}) \le\widetilde{O}\left(d(M+1)\Delta_\mu+ d\sqrt{vU_\mu T} + d^2\kappa v\rho^2\Delta_\mu\right). Reg T ( RSM - GLMUCB ) ≤ O ( d ( M + 1 ) Δ μ + d v U μ T + d 2 κ v ρ 2 Δ μ ) .
The first is the memory-induced error: over O ~ ( d ) \widetilde{O}(d) O ( d ) episodes, the M M M -dependent transient cost is at most M Δ μ M\Delta_\mu M Δ μ per episode, with an initial exploration cost of O ~ ( d Δ μ ) \widetilde{O}(d\Delta_\mu) O ( d Δ μ ) . The second term accounts for parameter estimation error, where v U μ \sqrt{vU_\mu} v U μ bounds the conditional standard deviation of the observation noise, denoted by σ \sigma σ in Table 1 . These two terms have the similar interpretation as their counterparts in Theorem 1. The third term captures the additional cost of learning under parameter-dependent curvature. Here, κ \kappa κ reflects how small the derivative of the link function can be, while ρ \rho ρ controls its relative variation as the predicted reward parameter changes. Our analysis bounds the number of rounds with large prediction uncertainty or insufficient information by O ~ ( d 2 κ v ρ 2 + d ) \widetilde{O}(d^2\kappa v\rho^2+d) O ( d 2 κ v ρ 2 + d ) , and charges at most Δ μ \Delta_\mu Δ μ estimation error to each such round. When ρ = 0 \rho=0 ρ = 0 , the link function is affine and the curvature dependence vanishes, and this bound reduces to Theorem 1 under linear reward.
:::
Theorem 4 (Lower bound of GLBM). Let d ≥ 3 d \ge3 d ≥ 3 , M ≥ 0 M \ge0 M ≥ 0 , and T ≥ max { d M , d , v ( d − 1 ) 2 U μ max { 1 4 R 2 S 2 , ρ 2 } } T \ge\max\left\{dM,d,\frac{v(d-1)^2}{U_\mu}\max\left\{\frac{1}{4R^2S^2},\rho^2\right\}\right\} T ≥ max { d M , d , U μ v ( d − 1 ) 2 max { 4 R 2 S 2 1 , ρ 2 } } . Then there exists an admissible action set such that
inf π sup θ ∗ , A E [ Reg T ( π ) ] ≥ Ω ~ ( d ( M + 1 ) Δ μ + d v U μ T ) . (8) \inf_{\pi}\sup_{\theta^\ast,\mathcal{A}}\mathbb{E}\left[\operatorname{Reg}_T(\pi)\right] \ge\widetilde{\Omega}\left(d(M+1)\Delta_\mu+d\sqrt{vU_\mu T}\right). \tag*{(8)} π inf θ ∗ , A sup E [ Reg T ( π ) ] ≥ Ω ( d ( M + 1 ) Δ μ + d v U μ T ) . (8)
This lower bound matches the first two terms of the upper bound in Theorem 3 up to logarithmic factors. Thus, both the memory-induced error and the estimation error are unavoidable in GLBM, consistent with our findings for LBM. The remaining gap is the curvature-induced identification cost: our upper bound controls it through worst-case curvature, while the lower bound does not establish whether this dependence is necessary. Closing this gap remains an interesting direction. Compared with Ann et al. [5 ] , our upper bound offers three improvements. It avoids a separate warm-up phase whose regret can be linear in T T T ; isolates the dependence on M M M in an additive memory term while retaining the optimal T \sqrt{T} T estimation rate; and removes the additional M M M - and T T T -dependence from the curvature-induced error while improving its dimension dependence (see Table 1 ).
Numerical Experiments
We evaluate our algorithms on synthetic data and semi-synthetic datasets for KV- and semantic caching. For the LBM experiments, including the synthetic and KV-cache experiments, we compare RSM-LinUCB (ours) with OFUL (original) (Clerici et al. [14 ] ), its refined-block variant (OFUL (refined)), GLBM-SCB adapted to linear rewards (Ann et al. [5 ] ), and Myopic LinUCB (Abbasi-Yadkori et al. [1 ] ). For the GLBM experiment on semantic caching, we compare RSM-GLMUCB (ours) with GLBM-SCB and the per-round GLB-OMD algorithm (Zhang et al. [63 ] ). We measure cumulative pseudo-regret against the exact finite horizon optimum under the same initial memory. More implementation details and parameter choices are provided in Appendix § 11 .
Synthetic data experiments. We consider LBM instances with d = 10 d=10 d = 10 , A = { e 1 , … , e 10 } \mathcal{A}=\{e_1,\ldots,e_{10}\} A = { e 1 , … , e 10 } , and independent Gaussian noise of standard deviation σ = 0.25 \sigma=0.25 σ = 0.25 . The memory matrix is R e i e i ⊤ R e_i e_i^{\top} R e i e i ⊤ if the preceding M M M actions are all e i e_i e i , and zero otherwise, so switching actions delays informative rewards. We set θ ⋆ = S u \theta^\star=S u θ ⋆ = S u for a fixed unit direction u u u and use γ = 0.9999 \gamma=0.9999 γ = 0.9999 . We record a continuous trajectory up to T = 10 6 T=10^6 T = 1 0 6 and separately vary M ∈ { 100 , 200 , … , 1000 } M\in\{100,200,\ldots,1000\} M ∈ { 100 , 200 , … , 1000 } and R , S ∈ { 10 , 20 , … , 100 } R,S\in\{10,20,\ldots,100\} R , S ∈ { 10 , 20 , … , 100 } , one parameter at a time. Results average 30 noise seeds, with ten balanced initial histories averaged within each seed, and are presented in Figure 1 (A) - (D). After initial exploration, RSM-LinUCB achieves the lowest regret among all algorithms across the tested values of M M M , R R R , and S S S .
Figure 1. Cumulative pseudo-regret for synthetic (A–D), KV-cache (E–F), and semantic-cache (G–H). Shading denotes one standard deviation and some baseline curves exceed the displayed range.
KV cache. We use Mooncake conversation dataset (Qin et al. [48 ] ), containing 12,031 LLM requests whose anonymized hashes identify shared 512-token prefix blocks. Each action refreshes one candidate prefix, whose KV blocks remain available for the current and following M M M rounds. The reward is the normalized average number of reused prefix tokens across 36 held-out requests, a proxy for avoided prefill computation; its conditional expectation is linear in the post-refresh cache-availability feature, yielding an LBM instance. We simulate refresh decisions under a 3 × 10 6 3\times10^6 3 × 1 0 6 -token cache budget, where each round represents 10 seconds and M = 180 M=180 M = 180 corresponds approximately to Mooncake Store’s default 30-minute soft-pin lifetime (Mooncake Team [47 ] ). To reduce communication overhead and limit exposure of individual access patterns (LMCache, Wu et al. 2025), we
consider a lightweight refresh controller that receives aggregate cache-reuse statistics rather than request-level prefix logs. We set T = 10 5 T = 10^{5} T = 1 0 5 , M = 180 M = 180 M = 180 , and choose M ∈ { 30 , 60 , 90 , 120 , 150 , 180 } M \in\{30, 60, 90, 120, 150, 180\} M ∈ { 30 , 60 , 90 , 120 , 150 , 180 } , using paired request streams and three seeds, see Figure 1 (E) - (F). RSM-LinUCB achieves lower regret in the time comparison and the lowest mean regret throughout the memory sweep. We also note that at large M M M , regret increases slower, which is consistent with the fact that longer retention keeps more useful prefixes resident and reduces losses from missed reuse.
Semantic cache. We use vCache/SemBenchmarkLmArena (Schroeder et al. [53 ] ), which contains real LMArena queries, generated paraphrases, responses, embeddings, and semantic labels. Unlike exact prefix reuse in KV caching, semantic caching reuses complete answers and may return an unsuitable response. Effective semantic caching must therefore reduce model calls while maintaining reuse correctness (Bang [9 ] ; Schroeder et al. [53 ] ). We hence measure how long the cache sustains correct, cache-only service before the first model fallback or incorrect reuse. Each round, the controller refreshes one bundle without observing incoming queries, which then remains available for the current and following M M M rounds. We simulate unit-rate Poisson arrivals with independently sampled queries and use benchmark labels to assess correctness. For each simulated waiting-time measurement, we hold the resulting cache configuration fixed. If z = ϕ ( s , a ) ⊤ θ ⋆ ∈ [ 0 , 1 ) z = \phi(s, a)^{\top}\theta^{\star} \in[0, 1) z = ϕ ( s , a ) ⊤ θ ⋆ ∈ [ 0 , 1 ) denotes the rate of requests correctly served by the cache, this duration is exponentially distributed with mean μ ( z ) = 1 / ( 1 − z ) \mu(z) = 1/(1-z) μ ( z ) = 1/ ( 1 − z ) , yielding a generalized linear reward model. With a fixed 64 MiB payload budget, we report a T = 10 6 T = 10^{6} T = 1 0 6 run at M = 51 M = 51 M = 51 and a sweep over M ∈ { 10 , 20 , 24 , 30 , 40 , 50 } M \in\{10, 20, 24, 30, 40, 50\} M ∈ { 10 , 20 , 24 , 30 , 40 , 50 } , using three seeds, see Figure 1 (G) - (H). RSM-GLMUCB outperforms both baselines and achieves lower mean regret at every tested value of M M M . At larger M M M , its regret grows more slowly, consistent with longer retention improving cache coverage.
Conclusion
We developed RSM-LinUCB and RSM-GLMUCB for LBM and GLBM, combining linear bandit reward estimation and determinant-triggered rare switching with Bellman planning over memory states. Our analysis separates memory-induced error from estimation error, with leading regret terms matching the lower bounds up to logarithmic factors. Future work includes closing the gap in the curvature-induced term for GLBM by sharpening the upper bound or proving a matching lower bound. Another direction is to explore whether our action-dependent memory framework can help develop theoretical models of memory management in LLM-based systems.
Related works
Linear bandits with memory. The works most closely related to ours are the linear bandits with memory models studied by Clerici et al. [14 ] and Ann et al. [5 ] . Clerici et al. [14 ] introduce a linear bandit model in which the learner’s most recent actions endogenously affect the reward parameter. Their OFUL-memory algorithm reduces the original problem to learning a cyclic policy: at the start of each episode, the learner commits to a sequence of actions, with the first M M M actions clearing the memory inherited from the previous episode, and updates its parameter estimate only after executing the entire sequence. This approach achieves a O ~ ( T 3 / 4 ) \widetilde{O}(T^{3/4}) O ( T 3/4 ) regret bound against the optimal action sequence. Building on this algorithmic idea, Ann et al. [5 ] develop a sharper episode-level analysis of OFUL-memory, yielding a regret bound of O ~ ( R S d M T + σ max { 1 , S } d max { d , R 2 } T ) \widetilde{O}(RS\sqrt{dMT}+\sigma\max\{1,S\}\sqrt{d\max\{d,R^2\}T}) O ( R S d M T + σ max { 1 , S } d max { d , R 2 } T ) . However, this approach still selects an entire action sequence at the start of each predetermined episode with fixed length, leaving the memory length and horizon coupled in the regret bound. In contrast, our key observation is that the most recent M M M actions naturally form a state with known and deterministic transitions, while rewards are governed by a shared unknown parameter θ ⋆ \theta^\star θ ⋆ , as in linear bandits. Building on this structure, RSM-LinUCB combines optimistic reward estimation with Bellman planning and determinant-triggered rare switching. For M ≥ 1 M \ge1 M ≥ 1 and a general known memory map satisfying ∥ A ( ⋅ ) ∥ o p ≤ R \lVert A(\cdot)\rVert_{\mathrm{op}} \le R ∥ A ( ⋅ ) ∥ op ≤ R , our algorithm achieves O ~ ( d R S M + σ d T ) \widetilde{O}(dRSM+\sigma d\sqrt{T}) O ( d R S M + σ d T ) regret. This separates the memory-induced error from the statistical estimation error, making the memory cost additive and independent of the horizon up to logarithmic factors. The bound matches our lower bound up to logarithmic factors. Compared with the refined OFUL-memory bound in prior work, our d R S M dRSM d R S M term improves on its R S d M T RS\sqrt{dMT} R S d M T memory term, while our σ d T \sigma d\sqrt{T} σ d T estimation term removes the additional polynomial dependence on R R R and S S S . A detailed comparison is provided in Table 1 .
Non-stationary bandits. Our work is related to the broader literature on non-stationary bandits. Classical non-stationary bandit models characterize environmental changes through a bounded number of breakpoints [23 , 7 ] , with algorithms based on discounting, sliding windows, restarts, or adaptive change detection. Other formulations control non-stationarity through a variation budget or related regularity conditions [10 , 32 ] . These ideas have subsequently been extended to linear and contextual bandits [60 , 12 , 17 , 61 , 40 , 44 , 13 , 50 , 34 , 26 ] , as well as to generalized linear reward models [49 , 64 , 57 ] . In these models, the time-varying parameter θ t \theta_t θ t is typically generated by an exogenous process that is not controlled by the learner. By contrast, the non-stationarity in our setting is endogenous: the learner’s recent actions change the memory state and thereby affect future reward functions.
In addition to LBM, several models allow past actions to influence current rewards. Recency-dependent recommendation models [58 ] express each arm’s reward as a polynomial of recency-weighted play counts over a finite action set. Congested bandits [8 ] model each arm’s reward as depending on how often it was selected within a fixed window. Bandit-based pricing models [28 b] study queueing systems with reusable resources, where price changes induce transient effects before the system reaches a new steady state. Furthermore, related models include tallying and weighted-tallying bandits [46 , 45 ] , delayed-impact bandits [55 ] , priming and wear-in/wear-out effects [4 ] , rebounding or satiation dynamics [39 ] , last-switch-dependent rewards [35 , 21 ] , and bandits with deterministically evolving preferences [33 ] . These works typically impose specific forms on how past actions affect rewards, using arm-wise history statistics or application-specific dynamics, such as recency-weighted play counts, congestion effects, or queueing transients. In contrast, we consider a general matrix-valued memory map A ( a t − M , … , a t − 1 ) A(a_{t-M},\ldots,a_{t-1}) A ( a t − M , … , a t − 1 ) that accommodates order-sensitive and cross-action interactions without prescribing a particular memory mechanism, with regret bounds independent of the number of arms.
Generalized linear bandits. Generalized linear bandits model expected rewards through a known link function applied to a linear predictor. Early work developed optimistic algorithms based on maximum likelihood estimation (MLE) [20 , 41 ] . For logistic bandits, Faury et al. [18 ] removed the worst case curvature dependence from the leading T \sqrt{T} T term, while Abeille et al. [2 ] refined the role of curvature through instance-dependent upper and lower bounds. Lee et al. [38 ] developed likelihood-ratio confidence sequences for generalized linear models and applied them to bandits. Liu et al. [42 ] studied self-concordance in natural exponential families and derived regret guarantees for generalized linear bandits with subexponential reward tails. Computational efficiency has also received considerable attention [31 , 19 ] ; in particular, Zhang et al. [63 ] used online mirror descent in place of MLE to obtain efficient one-pass updates. Closely related to our update mechanism, Sawarni et al. [51 ] studied generalized linear bandits with limited adaptivity, including rarely-switching algorithms. These works address nonlinear reward learning, but their regret guarantees do not account for the effects of current actions on future memory states. In contrast, the GLBM setting allows rewards to depend on the preceding M M M actions and compares the learner with the optimal complete action sequence. Our extension combines likelihood-based confidence sets with Bellman planning and rare switching. Here, rare switching not only reduces replanning frequency but also controls the memory-induced error at episode boundaries, allowing the finite memory structure to separate this cost from statistical estimation error.
Detailed Algorithmic Steps in GLBM
In this appendix, we provide the omitted details of Algorithm 2 in GLBM. We begin with the action selection with frozen parameters in the algorithm.
Action selection with frozen parameters. Like Algorithm 1, RSM-GLMUCB freezes its parameter estimate at the beginning of each episode. For generalized rewards, however, we replace ridge regression with maximum likelihood estimation. Let Θ = { θ ∈ R d : ∥ θ ∥ 2 ≤ S } \Theta= \{\theta\in\mathbb{R}^{d} : \lVert\theta\rVert_2 \le S\} Θ = { θ ∈ R d : ∥ θ ∥ 2 ≤ S } . At the beginning of episode k k k , we compute the maximum likelihood estimate θ ^ k \hat{\theta}_k θ ^ k , construct a nested confidence set C k C_k C k of possible values of θ ⋆ \theta^\star θ ⋆ , and select the point θ ˉ k \bar{\theta}_k θ ˉ k in C k C_k C k closest to θ ^ k \hat{\theta}_k θ ^ k :
θ ^ k ∈ arg min θ ∈ Θ L τ k − 1 ( θ ) , C k = C k − 1 ∩ { θ ∈ Θ : L τ k − 1 ( θ ) − L τ k − 1 ( θ ^ k ) ≤ ν c T ( δ ) } , θ ˉ k = arg min θ ∈ C k ∥ θ − θ ^ k ∥ 2 2 . (9) \begin{aligned}
\hat{\theta}_k &\in\underset{\theta\in\Theta}{\arg\min}\ \mathcal{L}_{\tau_{k-1}}(\theta),\\
C_k &= C_{k-1}\cap\left\{\theta\in\Theta:\mathcal{L}_{\tau_{k-1}}(\theta)-\mathcal{L}_{\tau_{k-1}}(\hat{\theta}_k)\le\nu c_T(\delta)\right\},\\
\bar{\theta}_k &= \underset{\theta\in C_k}{\arg\min}\ \lVert\theta-\hat{\theta}_k\rVert_2^2. \tag*{(9)}
\end{aligned} θ ^ k C k θ ˉ k ∈ θ ∈ Θ arg min L τ k − 1 ( θ ) , = C k − 1 ∩ { θ ∈ Θ : L τ k − 1 ( θ ) − L τ k − 1 ( θ ^ k ) ≤ ν c T ( δ ) } , = θ ∈ C k arg min ∥ θ − θ ^ k ∥ 2 2 . (9)
where L t ( θ ) \mathcal{L}_t(\theta) L t ( θ ) measures how well θ \theta θ explains the rewards observed in the first t t t rounds. It is obtained by multiplying the negative log-likelihood by v v v and omitting terms independent of θ \theta θ , so minimizing it yields the maximum likelihood estimate. The confidence threshold c T ( δ ) c_T(\delta) c T ( δ ) determines the allowed increase v c T ( δ ) vc_T(\delta) v c T ( δ ) above this minimum when constructing the confidence set:
L t ( θ ) = ∑ j = 1 t [ b ( ϕ ( s j , a j ) ⊤ θ ) − y j ϕ ( s j , a j ) ⊤ θ ] (10) \mathcal{L}_t(\theta)=\sum_{j=1}^{t}\left[b\left(\phi(s_j,a_j)^{\top}\theta\right)-y_j\phi(s_j,a_j)^{\top}\theta\right] \tag*{(10)} L t ( θ ) = j = 1 ∑ t [ b ( ϕ ( s j , a j ) ⊤ θ ) − y j ϕ ( s j , a j ) ⊤ θ ] (10)
c T ( δ ) = log ( 2 δ ) + d + d log ( 1 + 4 R S T v d [ U μ R S + v U μ δ ] ) . (11) c_T(\delta)=\log\left(\frac{2}{\delta}\right)+d+d\log\left(1+\frac{4RST}{vd}\left[U_\mu RS+\frac{\sqrt{vU_\mu}}{\delta}\right]\right). \tag*{(11)} c T ( δ ) = log ( δ 2 ) + d + d log ( 1 + v d 4 R S T [ U μ R S + δ v U μ ] ) . (11)
If the intersection in Equation (9) is empty, the algorithm sets C k = C k − 1 C_k=C_{k-1} C k = C k − 1 , so the confidence sets remain nested and nonempty across episodes. After constructing C k C_k C k and θ ˉ k \bar{\theta}_k θ ˉ k , at each round t t t of episode k k k the algorithm selects an action that maximizes the optimistic action value, as in Algorithm 1:
a t ∈ arg max a ∈ A { u k ( s t , a ) + γ J k ( f ( s t , a ) ) } (12) a_t\in\mathop{\arg\max}_{a\in\mathcal{A}}\left\{u_k(s_t,a)+\gamma J_k(f(s_t,a))\right\} \tag*{(12)} a t ∈ arg max a ∈ A { u k ( s t , a ) + γ J k ( f ( s t , a )) } (12)
where u k ( s , a ) u_k(s,a) u k ( s , a ) is the optimistic reward estimate and J k ( s ) J_k(s) J k ( s ) is the corresponding optimal discounted value, defined as
u k ( s , a ) = max θ ∈ C k μ ( ϕ ( s , a ) ⊤ θ ) , J k ( s ) = sup a ˉ 0 , a ˉ 1 , … ∑ j = 0 ∞ γ j u k ( s ˉ j , a ˉ j ) . (13) u_k(s,a)=\max_{\theta\in C_k}\mu\left(\phi(s,a)^{\top}\theta\right),\qquad J_k(s)=\sup_{\bar{a}_0,\bar{a}_1,\ldots}\sum_{j=0}^{\infty}\gamma^j u_k(\bar{s}_j,\bar{a}_j). \tag*{(13)} u k ( s , a ) = θ ∈ C k max μ ( ϕ ( s , a ) ⊤ θ ) , J k ( s ) = a ˉ 0 , a ˉ 1 , … sup j = 0 ∑ ∞ γ j u k ( s ˉ j , a ˉ j ) . (13)
Here, s ˉ 0 = s \bar{s}_0=s s ˉ 0 = s and s ˉ j + 1 = f ( s ˉ j , a ˉ j ) \bar{s}_{j+1}=f(\bar{s}_j,\bar{a}_j) s ˉ j + 1 = f ( s ˉ j , a ˉ j ) . As in the linear model, this planning step accounts for both the immediate optimistic reward and the effect of current actions on future memory states. The algorithm plays a t a_t a t and observes the reward y t y_t y t . As discussed in § 3 , J k J_k J k can be approximated using discounted Howard policy iteration for small-scale problems or numerical planning methods for larger problems. In our semantic cache experiment (§ 7 and Appendix § 11 ), we further exploit its disjoint-bundle structure, combining a finite-vertex confidence approximation with sorting-based cache optimization and cyclic refreshes to implement the optimistic planning step more efficiently (Appendix § 11 .§ 5 ).
Determinant-triggered policy updates. Unlike Algorithm 1, RSM-GLMUCB also uses the local slope of the mean reward function when updating its information matrices. For the selected feature ϕ ( s t , a t ) \phi(s_t,a_t) ϕ ( s t , a t ) , it computes
w t = μ ′ ( ϕ ( s t , a t ) ⊤ θ ˉ k ) 1 { ρ ω k ( ϕ ( s t , a t ) ) ≤ 1 } (14) w_t=\mu'\left(\phi(s_t,a_t)^{\top}\bar{\theta}_k\right)\mathbf{1}\left\{\rho\omega_k\left(\phi(s_t,a_t)\right)\leq1\right\} \tag*{(14)} w t = μ ′ ( ϕ ( s t , a t ) ⊤ θ ˉ k ) 1 { ρ ω k ( ϕ ( s t , a t ) ) ≤ 1 } (14)
where ω k ( ϕ ( s , a ) ) = max θ ∈ C k ϕ ( s , a ) ⊤ θ − min θ ∈ C k ϕ ( s , a ) ⊤ θ \omega_k(\phi(s,a))=\max_{\theta\in C_k}\phi(s,a)^{\top}\theta-\min_{\theta\in C_k}\phi(s,a)^{\top}\theta ω k ( ϕ ( s , a )) = max θ ∈ C k ϕ ( s , a ) ⊤ θ − min θ ∈ C k ϕ ( s , a ) ⊤ θ denotes the prediction width for the feature ϕ ( s , a ) \phi(s,a) ϕ ( s , a ) . Under the property that ∣ μ ′ ′ ( z ) ∣ ≤ ρ μ ′ ( z ) |\mu''(z)|\leq\rho\mu'(z) ∣ μ ′′ ( z ) ∣ ≤ ρ μ ′ ( z ) , the width condition ensures that the reward slopes associated with parameters in C k C_k C k differ by at most a constant factor. This allows the estimated slope to be used as a weight.
Finally, the algorithm updates V t V_t V t and H t H_t H t by adding ϕ ( s t , a t ) ϕ ( s t , a t ) T \phi(s_t,a_t)\phi(s_t,a_t)^{\mathsf{T}} ϕ ( s t , a t ) ϕ ( s t , a t ) T and w t ϕ ( s t , a t ) ϕ ( s t , a t ) T w_t\phi(s_t,a_t)\phi(s_t,a_t)^{\mathsf{T}} w t ϕ ( s t , a t ) ϕ ( s t , a t ) T , respectively. The unweighted matrix V t V_t V t records all selected features, whereas H t H_t H t incorporates local slope information only when the prediction width is sufficiently small. In particular, when w t = 0 w_t = 0 w t = 0 , H t H_t H t remains unchanged, whereas V t V_t V t continues to accumulate information and may still trigger a policy update. While Algorithm 1 monitors only V t V_t V t , RSM-GLMUCB starts a new episode when either det ( V t ) ≥ 2 det ( V ‾ k ) \det(V_t) \ge2\det(\overline{V}_k) det ( V t ) ≥ 2 det ( V k ) or det ( H t ) ≥ 2 det ( H ‾ k ) \det(H_t) \ge2\det(\overline{H}_k) det ( H t ) ≥ 2 det ( H k ) . At the start of a new episode, the algorithm updates the confidence set, estimator, and policy, and resets both reference matrices.
Experimental Details
This appendix provides additional details of our experiments. We first describe the planning algorithm used to approximate the value function J k ( s ) J_k(s) J k ( s ) under small-scale settings.
Discounted Howard Policy Iteration
At the start of episode k k k , we use discounted Howard policy iteration to approximate J k ( s ) J_k(s) J k ( s ) in Equation (6) . The subroutine takes the frozen optimistic reward function u = u k u = u_k u = u k , discount factor γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) , and iteration budget I max I_{\max} I m a x . Since the memory transition f f f is known and deterministic, planning requires no additional interaction with the environment. The initial policy is myopic: it selects an action that maximizes the immediate optimistic reward,
π 0 ( s ) ∈ arg max a ∈ A u ( s , a ) . (15) \pi_0(s) \in\underset{a \in\mathcal{A}}{\arg\max}\ u(s,a). \tag*{(15)} π 0 ( s ) ∈ a ∈ A arg max u ( s , a ) . (15)
Algorithm 3 Discounted Howard Policy Iteration at Episode k k k
Input: Reward function u u u , discount factor γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) , and iteration budget I max I_{\max} I m a x .
Initialize: Set π 0 \pi_0 π 0 according to Equation (15) .
for i = 0 , … , I max − 1 i = 0,\ldots,I_{\max}-1 i = 0 , … , I m a x − 1 do
Update π i + 1 \pi_{i+1} π i + 1 according to Equation (16) with Q ~ i ( s , a ) \widetilde{Q}_i(s,a) Q i ( s , a ) and J ~ i ( s ) \widetilde{J}_i(s) J i ( s ) defined as in Equation (17) .
end for
return J ~ I max \widetilde{J}_{I_{\max}} J I m a x defined as in Equation (17) .
At iteration i i i , the algorithm updates the policy as
π i + 1 ( s ) ∈ arg max a ∈ A Q ~ i ( s , a ) , (16) \pi_{i+1}(s) \in\underset{a \in\mathcal{A}}{\arg\max}\ \widetilde{Q}_i(s,a), \tag*{(16)} π i + 1 ( s ) ∈ a ∈ A arg max Q i ( s , a ) , (16)
where Q ~ i ( s , a ) \widetilde{Q}_i(s,a) Q i ( s , a ) and J ~ i ( s ) \widetilde{J}_i(s) J i ( s ) denote the action value and the discounted value of policy π i \pi_i π i , respectively, defined as
Q ~ i ( s , a ) = u ( s , a ) + γ J ~ i ( f ( s , a ) ) , J ~ i ( s ) = u ( s , π i ( s ) ) + γ J ~ i ( f ( s , π i ( s ) ) ) . (17) \widetilde{Q}_i(s,a) = u(s,a) + \gamma\widetilde{J}_i(f(s,a)), \qquad\widetilde{J}_i(s) = u(s,\pi_i(s)) + \gamma\widetilde{J}_i(f(s,\pi_i(s))). \tag*{(17)} Q i ( s , a ) = u ( s , a ) + γ J i ( f ( s , a )) , J i ( s ) = u ( s , π i ( s )) + γ J i ( f ( s , π i ( s ))) . (17)
Since γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) , J ~ i \widetilde{J}_i J i is uniquely determined by this Bellman equation. Unlike the myopic initialization, this update accounts for both the immediate optimistic reward and the value of the next memory state. The algorithm performs I max I_{\max} I m a x policy improvements. It returns J ~ I max \widetilde{J}_{I_{\max}} J I m a x as an approximation to J k J_k J k , which is then used in the action-selection rules.
Theorem 5. Under the conditions of Theorem 1, consider RSM-LinUCB with J k J_k J k in Equation (4) replaced at each episode by J ~ I max \widetilde{J}_{I_{\max}} J I m a x returned by Algorithm 3. Let π \pi π denote the resulting policy. Then,
Reg T ( π ) ≤ ( 4 d log ( 1 + T R 2 λ d ) + 6 ) R S M + 4 R S d log ( 1 + T R 2 λ d ) + 4 T d log ( 1 + T R 2 λ d ) [ σ d log ( 1 + T R 2 λ d ) + 2 log ( 1 δ ) + λ S ] + 2 R S T 2 ( 1 − 1 T ) I max + 1 , \begin{aligned}
\operatorname{Reg}_{T}(\pi) \le{} & \left(4d\log\left(1+\frac{TR^2}{\lambda d}\right)+6\right)RSM+4RSd\log\left(1+\frac{TR^2}{\lambda d}\right) \\
& +4\sqrt{Td\log\left(1+\frac{TR^2}{\lambda d}\right)}
\left[\sigma\sqrt{d\log\left(1+\frac{TR^2}{\lambda d}\right)+2\log\left(\frac{1}{\delta}\right)}+\sqrt{\lambda}S\right] \\
& +2RST^2\left(1-\frac{1}{T}\right)^{I_{\max}+1},
\end{aligned} Reg T ( π ) ≤ ( 4 d log ( 1 + λ d T R 2 ) + 6 ) R S M + 4 R S d log ( 1 + λ d T R 2 ) + 4 T d log ( 1 + λ d T R 2 ) [ σ d log ( 1 + λ d T R 2 ) + 2 log ( δ 1 ) + λ S ] + 2 R S T 2 ( 1 − T 1 ) I m a x + 1 , holds with probability at least 1 − δ 1-\delta 1 − δ . Furthermore, if I max ≥ ⌈ 2 T log T ⌉ I_{\max} \ge\lceil2T\log T\rceil I m a x ≥ ⌈ 2 T log T ⌉ , the additional term is at most 2 R S 2RS 2 R S , and hence
Reg T ( π ) = O ~ ( d R S ( M + 1 ) + σ d T ) . \operatorname{Reg}_{T}(\pi)=\widetilde{O}\left(dRS(M+1)+\sigma d\sqrt{T}\right). Reg T ( π ) = O ( d R S ( M + 1 ) + σ d T ) .
Synthetic Experimental Setup
Data processing and parameter selections. For the instance construction, we use the coordinate action set A = { e 1 , … , e 10 } \mathcal{A}=\{e_1,\ldots,e_{10}\} A = { e 1 , … , e 10 } with a fixed ordering. For a history s = ( a t − M , … , a t − 1 ) s=(a_{t-M},\ldots,a_{t-1}) s = ( a t − M , … , a t − 1 ) , the memory map is
A ( s ) = { R e i e i T , if a t − M = ⋯ = a t − 1 = e i , 0 d × d , otherwise . \mathcal{A}(s)=
\begin{cases}
Re_i e_i^{\mathsf{T}}, & \text{if } a_{t-M}=\cdots=a_{t-1}=e_i,\\
0_{d\times d}, & \text{otherwise}.
\end{cases} A ( s ) = { R e i e i T , 0 d × d , if a t − M = ⋯ = a t − 1 = e i , otherwise .
Thus, after switching to an action, the learner must repeat it for M M M rounds before receiving a nonzero mean reward. The parameter is θ ⋆ = S u \theta^\star=Su θ ⋆ = S u , where u u u is a fixed nonnegative unit vector.
In the implementation, RSM-LinUCB uses regularization λ = 0.625 \lambda=0.625 λ = 0.625 and confidence parameter δ = 0.05 \delta=0.05 δ = 0.05 , together with the discount factor specified in the main text. Optimistic rewards are clipped to [ − R S , R S ] [-RS,RS] [ − R S , R S ] . For the block baselines, the two OFUL variants use their respective episode-length rules; when the nominal informative length of OFUL (original) is nonpositive, we set it to 1.
Comparator. We use ten balanced initial histories constructed from cyclic shifts of a repeated, fixed random permutation of the actions. Each history contains all actions equally often, and each action appears last in one of the ten histories. Results are averaged over these histories within each noise seed. All methods share the same initial histories and paired noise sequences, and the parameter rules are unchanged across the four sweeps. The comparator OPT T ( θ ⋆ ) \operatorname{OPT}_{T}(\theta^\star) OPT T ( θ ⋆ ) is thus the exact finite-horizon optimum from the same initial history. Let ℓ i \ell_i ℓ i denote the length of the trailing run of e i e_i e i in this history, with ℓ i = 0 \ell_i=0 ℓ i = 0 if the history does not end in e i e_i e i . Then
OPT T ( θ ⋆ ) = R S max i ∈ [ d ] u i ( T − M + ℓ i ) + , \operatorname{OPT}_{T}(\theta^\star)=RS\max_{i\in[d]}u_i(T-M+\ell_i)_+, OPT T ( θ ⋆ ) = R S i ∈ [ d ] max u i ( T − M + ℓ i ) + ,
where ( x ) + = max { x , 0 } (x)_+ = \max\{x,0\} ( x ) + = max { x , 0 } . Each term is the cumulative mean reward obtained by repeating e i e_i e i throughout the horizon, including the initial zero-reward rounds. These constant action sequences suffice: active rewards are constant and nonnegative, and each switch requires M M M zero-reward rounds, so delaying a switch or switching repeatedly cannot improve upon either staying with the initial trailing action or switching immediately to another action.
Moreover, the same structure also allows us to compute J k J_k J k exactly by comparing the discounted returns of repeatedly selecting each action under u k u_k u k . We only need to track the last action and how many consecutive times it has been selected, capped at M M M , giving O ( d M ) O(dM) O ( d M ) effective states on which the value function and its greedy policy are computed exactly.
Additional Synthetic Experiments
To complement the synthetic experiments in the main text, we consider an additive memory matrix of the form studied by Clerici et al. [14 ] , Ann et al. [5 ] . In this setting, the preceding actions contribute jointly to the memory matrix, and the learner selects actions from a continuous action set.
Data processing and parameter selections. We use d = 10 d = 10 d = 10 , A = { a ∈ R d : ∥ a ∥ 2 ≤ 1 } \mathcal{A} = \{a \in\mathbb{R}^{d} : \lVert a\rVert_2 \le1\} A = { a ∈ R d : ∥ a ∥ 2 ≤ 1 } , and independent Gaussian noise with standard deviation σ = 0.25 \sigma= 0.25 σ = 0.25 . For a history s t = ( a t − M , … , a t − 1 ) s_t = (a_{t-M}, \ldots, a_{t-1}) s t = ( a t − M , … , a t − 1 ) , the memory map is
A ( s t ) = R M + 1 ( I d + ∑ j = 1 M a t − j a t − j T ) . A(s_t) = \frac{R}{M+1}\left(I_d + \sum_{j=1}^{M} a_{t-j}a_{t-j}^{\mathsf{T}}\right). A ( s t ) = M + 1 R ( I d + j = 1 ∑ M a t − j a t − j T ) .
The normalization ensures ∥ A ( s t ) ∥ o p ≤ R \lVert A(s_t)\rVert_{\mathrm{op}} \le R ∥ A ( s t ) ∥ op ≤ R , allowing us to vary the memory length and operator-norm bound separately. We set θ ⋆ = S u \theta^\star= Su θ ⋆ = S u , using the same fixed nonnegative unit direction u u u as in the synthetic experiments in the main text. All methods start from zero initial memory and share paired noise sequences. Unless varied, T = 10 6 T = 10^6 T = 1 0 6 , M = 100 M = 100 M = 100 , and R = S = 1 R = S = 1 R = S = 1 . We record a continuous trajectory up to T = 10 6 T = 10^6 T = 1 0 6 and separately vary M ∈ { 100 , 200 , … , 1000 } M \in\{100, 200, \ldots, 1000\} M ∈ { 100 , 200 , … , 1000 } and R , S ∈ { 10 , 20 , … , 100 } R, S \in\{10, 20, \ldots, 100\} R , S ∈ { 10 , 20 , … , 100 } , one parameter at a time. RSM-LinUCB uses λ = 0.625 \lambda= 0.625 λ = 0.625 , δ = 0.05 \delta= 0.05 δ = 0.05 , and discount factor γ = 0.999 \gamma= 0.999 γ = 0.999 , with optimistic rewards clipped to [ − R S , R S ] [-RS, RS] [ − R S , R S ] . We compare against the same four baselines as in the synthetic experiments in the main text. Results average 24 seeds; shading denotes one sample standard deviation.
Comparator. We measure cumulative pseudo-regret against the exact finite-horizon optimum from the same zero initial memory. At round t t t , the mean reward is at most R S ( 1 + min { t − 1 , M } ) / ( M + 1 ) RS(1 + \min\{t - 1, M\})/(M + 1) R S ( 1 + min { t − 1 , M }) / ( M + 1 ) , and the constant action sequence a t = u a_t = u a t = u attains this bound at every round. Thus,
OPT T ( θ ⋆ ) = R S M + 1 ∑ t = 1 T ( 1 + min { t − 1 , M } ) . \operatorname{OPT}_{T}(\theta^\star) = \frac{RS}{M+1}\sum_{t=1}^{T}(1+\min\{t-1,M\}). OPT T ( θ ⋆ ) = M + 1 R S t = 1 ∑ T ( 1 + min { t − 1 , M }) .
which equals R S ( T − M / 2 ) RS(T - M/2) R S ( T − M /2 ) for T ≥ M T \ge M T ≥ M , including the initial memory build-up. For the implementation of RSM-LinUCB, we follow the gradient-based optimization approach of Clerici et al. [14 ] , Ann et al. [5 ] and approximate optimistic planning by projected gradient ascent over periodic action sequences of length M M M . We evaluate each sequence’s discounted return from the current memory, including its infinite periodic tail, and use at most 60 iterations per initialization, with four initializations and a warm start from the previous sequence. The selected sequence is repeated until the next determinant trigger.
Experimental Results. As shown in Figure 2 , RSM-LinUCB achieves the lowest mean regret at every tested value of M M M , R R R , and S S S . At T = 10 6 T = 10^{6} T = 1 0 6 , its mean regret is approximately 52.7% lower than that of the best baseline. These results complement the main experiments by demonstrating the advantage of our memory-aware planning approach under additive memory dynamics and a continuous action set.
Figure 2. Cumulative pseudo-regret for additional synthetic experiments with additive memory. Shading denotes one sample standard deviation. Some baseline curves exceed the displayed range.
KV Cache Experimental Setup
Data processing and parameter selections. We partition the Mooncake conversation trace (Qin et al. [48 ] ) into construction, calibration, and evaluation sets using a fixed, content-independent hash of its 10-second timestamp bins. Entire bins are assigned in proportions 40%/20%/40%, yielding 4,978, 2,230, and 4,823 requests, respectively. We allocate a larger construction share than in a preliminary 20%/20%/60% split to identify more reusable prefixes and obtain a richer action catalogue. This is quite useful when studying longer memory horizons: a small catalogue can become largely covered by the retained actions, leaving little scope for comparing different cache management policies. The split determines the available data, whereas the tested memory lengths are chosen separately from the retention timescale. Using only construction requests, we retain prefixes observed at least twice and project each request onto its deepest retained prefix. Distinct projected endpoints define candidate refresh actions. Shared blocks count only once toward capacity and reward. We then contract nonbranching chains whose blocks always have identical availability, preserving the permitted endpoints and branch points. The resulting catalogue contains $K = 855 actions and d = 864 d = 864 d = 864 informative segment coordinates. The catalogue and demand representation remain fixed across all tested values of M M M ; blocks outside the retained catalogue contribute no reusable-token reward.
Rewards are divided by a fixed token scale Z = 131,072 Z = 131{,}072 Z = 131 , 072 and averaged over 36 independently sampled requests per round. For the reported experiments, we use the conservative request-level range [ 0 , 1 ] [0,1] [ 0 , 1 ] , giving the sub-Gaussian noise parameter σ = 1 / ( 2 36 ) = 1 / 12 \sigma= 1/(2\sqrt{36}) = 1/12 σ = 1/ ( 2 36 ) = 1/12 . The parameter norm bound is set to S = 1.25 ∥ θ ^ c a l ∥ 2 ≈ 0.1452 S = 1.25\lVert\hat{\theta}_{\mathrm{cal}}\rVert_2 \approx0.1452 S = 1.25 ∥ θ ^ cal ∥ 2 ≈ 0.1452 , where θ ^ c a l \hat{\theta}_{\mathrm{cal}} θ ^ cal is the calibration mean expressed in the scaled feature coordinates. Our method uses λ = d σ 2 / S 2 ≈ 284.72 \lambda= d\sigma^2/S^2 \approx284.72 λ = d σ 2 / S 2 ≈ 284.72 and confidence level 10 − 5 10^{-5} 1 0 − 5 . The theoretical guarantee requires ∥ θ ⋆ ∥ 2 ≤ S \lVert\theta^\star\rVert_2 \le S ∥ θ ⋆ ∥ 2 ≤ S ; we verify this condition for the fixed empirical evaluation distribution without exposing its demand weights to the learner. The baselines (OFUL-M, GLBM-SCB) retain their respective block-length rules, confidence interval, and estimation updates. Nonpositive prescribed informative lengths L L L are replaced by one. GLBM-SCB uses its ordered online mirror-descent updates, with the implemented initialization λ G L B M = L / d \lambda_{\mathrm{GLBM}} = L/d λ GLBM = L / d . For scalability, the baseline methods use the same directional tree-planning machinery described below. Myopic LinUCB maximizes the confidence score for current state without planning future cache effects.
Simulation protocol. Each round represents a 10-second cache control epoch. At the start of each round, the controller refreshes one catalogue prefix, making its blocks available for current and the following M M M rounds. Refreshing an already resident block renews its retention. The M = 180 M = 180 M = 180 setting therefore represents approximately 30 minutes of retention, motivated by Mooncake Store’s documented soft-pin TTL [47 ] . To keep cache management lightweight, reduce communication overhead, and limit exposure of individual access patterns, we model a management controller separate from the request-serving engine, motivated by aggregate cache monitoring and privacy concerns in KV-cache sharing (LMCache, Wu et al. 2025). The controller makes refresh decisions at the epoch level, while the engine handles per-request matching to KV blocks and exports only epoch-level reuse statistics rather than prompt contents, request prefix identifiers, or tensor payloads. This interface is motivated by the aggregate prefix-cache query and hit counters available in serving systems such as vLLM (vLLM Contributors). The controller knows the fixed action catalogue and its own refresh history, which suffice to compute the cache feature; aggregate rewards then allow it to estimate unknown demand without identifying each arriving request’s KV blocks. This separation avoids maintaining request-level access logs at the controller while retaining the feedback needed for learning.
Let p i ∈ { 0 , 1 } d p_i \in\{0,1\}^d p i ∈ { 0 , 1 } d indicate the segments included in refresh action i i i , and let g ( s t ) ∈ { 0 , 1 } d g(s_t) \in\{0,1\}^d g ( s t ) ∈ { 0 , 1 } d indicate those still resident from the preceding M M M rounds. After action i t i_t i t , the available segments are indicated by w t = g ( s t ) + ( 1 − g ( s t ) ) ⊙ p i t w_t = g(s_t) + (1-g(s_t)) \odot p_{i_t} w t = g ( s t ) + ( 1 − g ( s t )) ⊙ p i t : previously resident segments remain available, and the current action adds the missing segments. We use the scaled cache feature x t = w t / d x_t = w_t/\sqrt{d} x t = w t / d . Both w t w_t w t and x t x_t x t are known to the controller because they depend only on its refresh history and the fixed action catalogue. For each request Q Q Q , let z j ( Q ) z_j(Q) z j ( Q ) be the number of matching prefix tokens in retained segment j j j . The number of reusable tokens is then w t ⊤ z ( Q ) w_t^\top z(Q) w t ⊤ z ( Q ) . Each round draws 36 requests and returns their normalized average reuse,
Y t = ( 36 Z ) − 1 ∑ j = 1 36 w t ⊤ z ( Q t , j ) , Y_t=(36Z)^{-1}\sum_{j=1}^{36}w_t^\top z(Q_{t,j}), Y t = ( 36 Z ) − 1 j = 1 ∑ 36 w t ⊤ z ( Q t , j ) ,
where Z Z Z is the fixed normalization constant. Defining θ ⋆ = ( d / Z ) E e v a l [ z ( Q ) ] \theta^\star=(\sqrt{d}/Z)\mathbb{E}_{\mathrm{eval}}[z(Q)] θ ⋆ = ( d / Z ) E eval [ z ( Q )] gives Y t = x t ⊤ θ ⋆ + ε t Y_t=x_t^\top\theta^\star+\varepsilon_t Y t = x t ⊤ θ ⋆ + ε t , where ε t \varepsilon_t ε t has zero mean conditional on the past and the chosen action. The controller observes only Y t Y_t Y t ; the individual demand vectors are used by the simulator to generate this feedback.
To express this model in the paper’s LBM notation, we add one coordinate. Let h = max i ∥ p i ∥ 2 2 h=\max_i\|p_i\|_2^2 h = max i ∥ p i ∥ 2 2 and define
a i = 1 1 + h ( 1 p i ) , A ( s ) = 1 + h d ( 0 g ( s ) ⊤ 0 diag ( 1 − g ( s ) ) ) . a_i=\frac{1}{\sqrt{1+h}}\begin{pmatrix}1\\p_i\end{pmatrix},
\qquad
A(s)=\sqrt{\frac{1+h}{d}}\begin{pmatrix}0&g(s)^\top\\0&\operatorname{diag}(1-g(s))\end{pmatrix}. a i = 1 + h 1 ( 1 p i ) , A ( s ) = d 1 + h ( 0 0 g ( s ) ⊤ diag ( 1 − g ( s )) ) .
These definitions ensure ∥ a i ∥ 2 ≤ 1 \|a_i\|_2\le1 ∥ a i ∥ 2 ≤ 1 and A ( s t ) ⊤ a i t = ( 0 , x t ) A(s_t)^\top a_{i_t}=(0,x_t) A ( s t ) ⊤ a i t = ( 0 , x t ) . With augmented parameter θ ˉ ⋆ = ( 0 , θ ⋆ ) \bar{\theta}^\star=(0,\theta^\star) θ ˉ ⋆ = ( 0 , θ ⋆ ) , the conditional mean reward is exactly ⟨ a i t , A ( s t ) θ ˉ ⋆ ⟩ \langle a_{i_t},A(s_t)\bar{\theta}^\star\rangle ⟨ a i t , A ( s t ) θ ˉ ⋆ ⟩ . The added feature coordinate is always zero and is omitted from regression, leaving d d d informative coordinates.
Comparator. The comparator O P T T ( θ ⋆ ) \mathrm{OPT}_T(\theta^\star) OPT T ( θ ⋆ ) is the maximum cumulative mean reward over all T T T -round refresh sequences in the fixed catalogue, starting from the same empty cache as the learner. We compute it offline using mean token demands under the empirical evaluation distribution.
Let q = M + 1 q=M+1 q = M + 1 , and let F j F_j F j denote the largest per-round mean reward obtainable from the union of at most j j j catalogue paths. These values are computed exactly by tree dynamic programming using the mean demand weights. To account for the initial cache build-up, we construct an ordered list by repeatedly adding the path with the largest additional demand coverage. For the reported catalogue, we verify against the exact dynamic program that the first j j j paths attain F j F_j F j for every j ≤ q j\le q j ≤ q , using integer token counts before normalization. Refreshing these paths in order and then cycling through them attains F min { t , q } F_{\min\{t,q\}} F m i n { t , q } at every round. No refresh sequence can exceed this value at round t t t , since its cache contains the union of at most min { t , q } \min\{t,q\} min { t , q } paths. Therefore, we set O P T T ( θ ⋆ ) = ∑ t = 1 T F min { t , M + 1 } \mathrm{OPT}_T(\theta^\star)=\sum_{t=1}^{T}F_{\min\{t,M+1\}} OPT T ( θ ⋆ ) = ∑ t = 1 T F m i n { t , M + 1 } to denote the optimal cumulative reward over T T T rounds in the experiment. Given the mean demand weights, this offline computation takes O ( d q 3 + K d q ) O(dq^3+Kdq) O ( d q 3 + K d q ) time, including the tree-DP calls for all j ≤ q j\le q j ≤ q and verification of the ordered paths.
Accelerated planning. In the KV cache experiment, we utilize the special prefix-cache structure to obtain a computationally efficient approximation to the optimistic planning step in RSM-LinUCB. Specifically, we approximate the ellipsoidal confidence bonus in u k u_k u k using a finite set of Gaussian directions to use tree dynamic programming for the linear objectives:
u ~ k ( x ) = clip [ 0 , B ] ( x ⊤ θ ˉ k + β ˉ k c max 1 ≤ j ≤ N ∣ g k , j ⊤ L k ⊤ x ∣ ) (18) \widetilde{u}_k(x)=\operatorname{clip}_{[0,B]}\left(x^\top\bar{\theta}_k+\frac{\bar{\beta}_k}{c}\max_{1\le j\le N}\left|g_{k,j}^\top L_k^\top x\right|\right) \tag*{(18)} u k ( x ) = clip [ 0 , B ] ( x ⊤ θ ˉ k + c β ˉ k 1 ≤ j ≤ N max g k , j ⊤ L k ⊤ x ) (18)
where x x x is the informative cache feature, L k L k ⊤ = V ˉ k − 1 L_k L_k^{\top} = \bar{V}_k^{-1} L k L k ⊤ = V ˉ k − 1 , g k , j ∼ N ( 0 , I d ) g_{k,j} \sim\mathcal{N}(0, I_d) g k , j ∼ N ( 0 , I d ) are independent directions drawn at each planning episode, and B = R S B = RS B = R S is the known expected reward bound. We use c = 1.5 c = 1.5 c = 1.5 and choose N = O ( log ( T / δ p l a n ) ) N = O(\log(T/\delta_{\mathrm{plan}})) N = O ( log ( T / δ plan )) to control the additional failure probability.
The resulting score is the clipped maximum of 2 N 2N 2 N linear objectives, each assigning an additive weight to every tree segment. For each objective, a tree-knapsack dynamic program finds the best union of at most q = M + 1 q = M + 1 q = M + 1 prefix paths exactly, counting shared segments only once. We then approximate the planning policy by selecting the union with the highest score and cyclically refreshing its constituent paths until the next determinant trigger. This implementation leaves the estimator and update schedule unchanged, and the resident cache equals the selected union after at most M M M rounds. Each tree optimization takes O ( d q 2 ) O(dq^2) O ( d q 2 ) time. Including matrix factorization and direction transformations, each replanning call takes O ( d 3 + N d 2 + N d q 2 ) O(d^3 + Nd^2 + Ndq^2) O ( d 3 + N d 2 + N d q 2 ) time and O ( d 2 + N d q ) O(d^2 + Ndq) O ( d 2 + N d q ) planning memory in the batched implementation.
As in polyhedral confidence set methods (Dani et al. [15 ] ) and randomized linear bandits (Abeille and Lazaric [3 ] ), our approximation introduces only an additional O ( d ) O(\sqrt{d}) O ( d ) factor in the estimation error (the second term in Theorem 1), up to logarithmic terms. The ridge estimator and its confidence guarantee remain unchanged, and the additional cost only comes from the confidence bound used in the optimistic reward estimate u ~ k \tilde{u}_k u ~ k in Equation (18) . Let x ⋆ x^\star x ⋆ denote an optimal steady cache feature. Each Gaussian direction has a constant probability of producing a confidence bound at least as large as the original one at x ⋆ x^\star x ⋆ . Taking the maximum over the prescribed number of independent directions therefore ensures u ~ k ( x ⋆ ) ≥ ( x ⋆ ) ⊤ θ ⋆ \tilde{u}_k(x^\star) \ge(x^\star)^\top\theta^\star u ~ k ( x ⋆ ) ≥ ( x ⋆ ) ⊤ θ ⋆ across episodes with high probability. Furthermore, Gaussian concentration also controls the enlargement of the confidence bound uniformly over cache features, including the feature x k x_k x k selected by maximizing u ~ k \tilde{u}_k u ~ k . Together with optimism at x ⋆ x^\star x ⋆ , this gives
( x ⋆ − x k ) ⊤ θ ⋆ ≤ u ~ k ( x k ) − x k ⊤ θ ⋆ ≤ O ~ ( d ) β ˉ k ∥ x k ∥ V ˉ k − 1 . (x^\star- x_k)^\top\theta^\star\le\tilde{u}_k(x_k) - x_k^\top\theta^\star\le\widetilde{O}(\sqrt{d})\,\bar{\beta}_k \lVert x_k \rVert_{\bar{V}_k^{-1}}. ( x ⋆ − x k ) ⊤ θ ⋆ ≤ u ~ k ( x k ) − x k ⊤ θ ⋆ ≤ O ( d ) β ˉ k ∥ x k ∥ V ˉ k − 1 .
Thus, the reward gap is still controlled by the original confidence width, enlarged by only a d \sqrt{d} d factor. Summing these widths introduces only an additional O ~ ( d ) \widetilde{O}(\sqrt{d}) O ( d ) factor in the estimation error. The memory transients under cyclic refreshes remain bounded by B M BM B M per episode, so the additive memory dependence is preserved.
Semantic Cache Experimental Setup
Data processing and parameter selections. We use the released GTE embeddings and GPT-4o-mini responses from vCache/SemBenchmarkLmArena. Exact-query deduplication leaves 56,438 queries, which we randomly divide into disjoint 20%/20%/60% construction, calibration, and evaluation splits. After excluding construction entries larger than 64 KiB, we partition the remaining 11,276 entries into K = 64 K = 64 K = 64 disjoint cache bundles by recursively splitting along the embedding coordinate with the largest variance at its median, giving d = 65 d = 65 d = 65 features. Each query is assigned to its nearest construction entry using cosine similarity, with routing fixed independently of which bundles are resident. Reuse is counted as successful only if the similarity is at least 0.9 and the two queries share the benchmark’s semantic-equivalence label. These labels are available only to the evaluator and do not certify factual correctness. Bundle sizes include the query and response text and float32 embeddings. For the 64 MiB payload budget C C C , we require ( M + 1 ) max i size ( i ) ≤ C (M + 1)\max_i \operatorname{size}(i) \le C ( M + 1 ) max i size ( i ) ≤ C for the memory length M M M , ensuring feasibility for every refresh history. The budget excludes search index and run-time overheads. For GLBM-SCB, we use blocks of length M + L M + L M + L , where L = max { 1 , ⌊ M T ⌋ − M } L = \max\{1, \lfloor\sqrt{MT}\rfloor- M\} L = max { 1 , ⌊ M T ⌋ − M } as used in their paper [5 ] .
Cache dynamics and generalized rewards. An action refreshes one bundle, which remains available in the current round and the following M M M rounds. Read hits do not extend retention, and the simulator performs no additional admissions or evictions. Let g ( s ) ∈ { 0 , 1 } K g(s) \in\{0,1\}^{K} g ( s ) ∈ { 0 , 1 } K indicate the bundles refreshed in the preceding M M M rounds. For 1 ≤ M < K 1 \le M < K 1 ≤ M < K , using the standard basis e 0 , … , e K e_0,\ldots,e_K e 0 , … , e K of R K + 1 \mathbb{R}^{K+1} R K + 1 , we define action set A = { a 1 , … , a K } \mathcal{A} = \{a_1,\ldots,a_K\} A = { a 1 , … , a K } , with action a i = M M + 1 e 0 + 1 M + 1 e i a_i = \sqrt{\frac{M}{M+1}}e_0 + \frac{1}{\sqrt{M+1}}e_i a i = M + 1 M e 0 + M + 1 1 e i , and memory matrix
A ( s ) ⊤ = ( 0 0 1 × K M + 1 M g ( s ) M + 1 diag ( 1 − g ( s ) ) ) . A(s)^{\top} =
\left(
\begin{array}{cc}
0 & 0_{1\times K} \\
\sqrt{\frac{M+1}{M}}g(s) & \sqrt{M+1}\operatorname{diag}(1-g(s))
\end{array}
\right). A ( s ) ⊤ = ( 0 M M + 1 g ( s ) 0 1 × K M + 1 diag ( 1 − g ( s )) ) .
Thus, every action has unit norm, ∥ A ( s ) ∥ o p ≤ R = M + 1 \|A(s)\|_{\mathrm{op}} \le R = \sqrt{M+1} ∥ A ( s ) ∥ op ≤ R = M + 1 , and
ϕ ( s , a i ) = A ( s ) ⊤ a i = ( 0 g ( s ) + diag ( 1 − g ( s ) ) e i ( K ) ) . \phi(s,a_i) = A(s)^{\top}a_i =
\left(
\begin{array}{c}
0 \\
g(s) + \operatorname{diag}(1-g(s))e_i^{(K)}
\end{array}
\right). ϕ ( s , a i ) = A ( s ) ⊤ a i = ( 0 g ( s ) + diag ( 1 − g ( s )) e i ( K ) ) .
where e i ( K ) e_i^{(K)} e i ( K ) is the i i i -th standard basis vector of R K \mathbb{R}^{K} R K . The nonzero coordinates therefore record exactly which bundles are available after the refresh, giving d = K + 1 = 65 d = K + 1 = 65 d = K + 1 = 65 .
The calibration split fixes the bundle arrival proportions ℓ i \ell_i ℓ i , while the evaluation split determines the unknown conditional success probabilities p i p_i p i . Simulated queries first select a bundle according to ℓ i \ell_i ℓ i and then sample a held-out query assigned to that bundle. Accordingly,
θ ⋆ = ( 0 , ℓ 1 p 1 , … , ℓ K p K ) ⊤ . \theta^\star= (0,\ell_1p_1,\ldots,\ell_Kp_K)^{\top}. θ ⋆ = ( 0 , ℓ 1 p 1 , … , ℓ K p K ) ⊤ .
and thus S = ∥ ( ℓ 1 , … , ℓ K ) ∥ 2 ≈ 0.1256 S = \|(\ell_1,\ldots,\ell_K)\|_2 \approx0.1256 S = ∥ ( ℓ 1 , … , ℓ K ) ∥ 2 ≈ 0.1256 . The learner observes only the resulting service time feedback. With unit rate Poisson arrivals and independently sampled queries, successful cache service has rate z = ϕ ( s , a ) ⊤ θ ⋆ z = \phi(s,a)^{\top}\theta^\star z = ϕ ( s , a ) ⊤ θ ⋆ , so interruptions have rate 1 − z 1-z 1 − z . Keeping the cache fixed during each service cycle gives Y t ∼ Exp ( 1 − z ) Y_t \sim\operatorname{Exp}(1-z) Y t ∼ Exp ( 1 − z ) , with μ ( z ) = 1 / ( 1 − z ) \mu(z) = 1/(1-z) μ ( z ) = 1/ ( 1 − z ) and v = 1 v = 1 v = 1 . All tested settings satisfy R S < 1 RS < 1 R S < 1 , with M M M counting completed service cycles.
Comparator. The comparator OPT T ( θ ⋆ ) \operatorname{OPT}_T(\theta^\star) OPT T ( θ ⋆ ) is the maximum cumulative mean reward over all T T T -round refresh sequences in the fixed catalogue, starting from the same empty cache as the learner and following the same retention rule. We compute it offline using the simulator’s true bundle contributions ℓ i p i \ell_i p_i ℓ i p i , which are not revealed to the learner. Let q = min { K , M + 1 } q = \min\{K, M+1\} q = min { K , M + 1 } . An optimal sequence refreshes the q q q highest-contribution bundles in decreasing order and then cycles through them. At round t t t , any feasible sequence can keep at most min { t , q } \min\{t,q\} min { t , q } bundles resident, and this sequence retains exactly the bundles with the largest contributions. Since μ \mu μ is increasing, it therefore maximizes the mean reward at every round. Summing these rewards gives the exact finite-horizon optimum, including the initial cache build-up. Sorting the contributions and computing prefix sums takes O ( K log K + q ) O(K\log K+q) O ( K log K + q ) time, without enumerating refresh sequences.
Accelerated planning. We exploit the disjoint-bundle structure to efficiently approximate the optimistic planning step in Algorithm 2. Specifically, we use a finite-vertex outer approximation for the confidence maximization in u k u_k u k and implement the resulting cache policy through cyclic refreshes. Following Dani et al. [15 ] , we approximate the optimistic reward u k ( s , a ) u_k(s,a) u k ( s , a ) as
u ~ k ( s , a ) = μ ( clip [ − R S , R S ] ( ϕ ( s , a ) ⊤ θ ‾ k + d max 0 ≤ j ≤ K ∣ ϕ ( s , a ) ⊤ F k e j ∣ ) ) , \widetilde{u}_k(s,a)=\mu\left(\operatorname{clip}_{[-R_S,R_S]}\left(\phi(s,a)^\top\overline{\theta}_k+\sqrt{d}\max_{0\le j\le K}\left|\phi(s,a)^\top F_k e_j\right|\right)\right), u k ( s , a ) = μ ( clip [ − R S , R S ] ( ϕ ( s , a ) ⊤ θ k + d 0 ≤ j ≤ K max ϕ ( s , a ) ⊤ F k e j ) ) ,
where F k = 8 e v c T ( δ ) + 4 λ 2 S 2 H ‾ k − 1 / 2 F_k=\sqrt{8evc_T(\delta)+4\lambda_2S^2}\,\overline{H}_k^{-1/2} F k = 8 e v c T ( δ ) + 4 λ 2 S 2 H k − 1/2 captures parameter uncertainty, d = K + 1 d=K+1 d = K + 1 , and e j e_j e j denotes the j j j -th coordinate vector.
This approximation reduces optimistic cache optimization to 2 d 2d 2 d linear objectives. For each objective, the disjoint-bundle structure allows us to find its best q q q -bundle cache by selecting the q = min { K , M + 1 } q=\min\{K,M+1\} q = min { K , M + 1 } largest bundle coordinates. Comparing these candidates solves the approximate optimistic optimization over q q q -bundle caches exactly. We then cyclically refresh the selected bundles until the next determinant trigger, establishing the selected cache after at most M M M initial rounds. Each replanning call takes O ( d 3 ) O(d^3) O ( d 3 ) time for matrix factorization and O ( d K log K ) O(dK\log K) O ( d K log K ) time for cache optimization, giving a total complexity of O ( d 3 + d K log K ) O(d^3+dK\log K) O ( d 3 + d K log K ) .
As in the polyhedral confidence approximation of Dani et al. [15 ] (Theorem 2), our implementation also introduces only an additional O ( d ) O(\sqrt{d}) O ( d ) factor in the estimation error (the second term in Theorem 3). The finite-vertex approximation contains the same H ‾ k \overline{H}_k H k -based confidence ellipsoid, so the resulting reward estimate remains optimistic, while its prediction confidence bound increases by at most d \sqrt{d} d relative to that ellipsoid. Since the approximate cache optimization is solved exactly, the reward gap is controlled by this enlarged confidence bound without further error from numerical optimization. For the reciprocal link μ ( z ) = 1 / ( 1 − z ) \mu(z)=1/(1-z) μ ( z ) = 1/ ( 1 − z ) , the relation
μ ( z ′ ) − μ ( z ) ≤ U μ μ ′ ( z ) ( z ′ − z ) , \mu(z')-\mu(z)\le\sqrt{U\mu\mu'(z)}\,(z'-z), μ ( z ′ ) − μ ( z ) ≤ U μ μ ′ ( z ) ( z ′ − z ) ,
for − R S ≤ z ≤ z ′ ≤ R S -RS \le z \le z' \le RS − R S ≤ z ≤ z ′ ≤ R S allows the prediction error to be translated into a mean-reward difference using the local slope. The estimation error argument in Theorem 3 therefore applies with only the additional O ( d ) O(\sqrt{d}) O ( d ) factor. Importantly, curvature weighting still uses the original confidence-width bounds rather than the enlarged planning bound, so the curvature-induced error does not acquire this factor. The determinant triggers are unchanged, and the initial cache transitions still contribute at most M Δ μ M\Delta_\mu M Δ μ per episode. Thus, the approximation enlarges only the estimation error term, while preserving the original orders of the memory-induced and curvature-induced errors.
Detailed Proofs
Proof of Lemma 1. Fix any two memory states s , s ′ ∈ S s,s' \in\mathcal{S} s , s ′ ∈ S and any action sequence ( a 0 , a 1 , … ) (a_0,a_1,\ldots) ( a 0 , a 1 , … ) . Let ( s j ) j ≥ 0 (s_j)_{j\ge0} ( s j ) j ≥ 0 and ( s j ′ ) j ≥ 0 (s'_j)_{j\ge0} ( s j ′ ) j ≥ 0 denote the resulting state trajectories, where s 0 = s s_0=s s 0 = s , s 0 ′ = s ′ s'_0=s' s 0 ′ = s ′ , and
s j + 1 = f ( s j , a j ) , s j + 1 ′ = f ( s j ′ , a j ) . s_{j+1}=f(s_j,a_j), \qquad s'_{j+1}=f(s'_j,a_j). s j + 1 = f ( s j , a j ) , s j + 1 ′ = f ( s j ′ , a j ) .
Applying the same sequence of M M M actions causes the two memory states to coincide. Therefore, s j = s j ′ s_j=s'_j s j = s j ′ for every j ≥ M j\ge M j ≥ M , and the rewards along the two trajectories may differ only during the first M M M rounds. Since every reward lies in [ − R S , R S ] [-RS,RS] [ − R S , R S ] , we obtain
∑ j = 0 ∞ γ j r q ( s j , a j ) = ∑ j = 0 ∞ γ j r q ( s j ′ , a j ) + ∑ j = 0 M − 1 γ j [ r q ( s j , a j ) − r q ( s j ′ , a j ) ] ≤ J q ( s ′ ) + 2 R S ∑ j = 0 M − 1 γ j . \sum_{j=0}^{\infty}\gamma^j r_q(s_j,a_j)
=
\sum_{j=0}^{\infty}\gamma^j r_q(s'_j,a_j)
+
\sum_{j=0}^{M-1}\gamma^j\left[r_q(s_j,a_j)-r_q(s'_j,a_j)\right]
\le J_q(s')+2RS\sum_{j=0}^{M-1}\gamma^j. j = 0 ∑ ∞ γ j r q ( s j , a j ) = j = 0 ∑ ∞ γ j r q ( s j ′ , a j ) + j = 0 ∑ M − 1 γ j [ r q ( s j , a j ) − r q ( s j ′ , a j ) ] ≤ J q ( s ′ ) + 2 R S j = 0 ∑ M − 1 γ j .
Taking the supremum over all action sequences on the left-hand side gives
J q ( s ) − J q ( s ′ ) ≤ 2 R S ∑ j = 0 M − 1 γ j ≤ 2 R S M . J_q(s)-J_q(s')\le2RS\sum_{j=0}^{M-1}\gamma^j\le2RSM. J q ( s ) − J q ( s ′ ) ≤ 2 R S j = 0 ∑ M − 1 γ j ≤ 2 R S M .
Since s s s and s ′ s' s ′ are arbitrary, it follows that
span ( J q ) = sup s ∈ S J q ( s ) − inf s ∈ S J q ( s ) ≤ 2 R S M . \operatorname{span}(J_q)=\sup_{s\in\mathcal{S}}J_q(s)-\inf_{s\in\mathcal{S}}J_q(s)\le2RSM. span ( J q ) = s ∈ S sup J q ( s ) − s ∈ S inf J q ( s ) ≤ 2 R S M .
This proves the claimed bound. Q.E.D.
Proof of Lemma 2. Recall that
β t = σ d log ( 1 + t R 2 λ d ) + 2 log ( 1 δ ) + λ S , θ ^ t = V t − 1 b t . \beta_t=\sigma\sqrt{d\log\left(1+\frac{tR^2}{\lambda d}\right)+2\log\left(\frac{1}{\delta}\right)}+\sqrt{\lambda}S,\qquad\hat{\theta}_t=V_t^{-1}b_t. β t = σ d log ( 1 + λ d t R 2 ) + 2 log ( δ 1 ) + λ S , θ ^ t = V t − 1 b t .
By the standard self-normalized concentration inequality, the event
E : = ⋂ t = 0 T { ∥ θ ^ t − θ ∗ ∥ V t ≤ β t } \mathcal{E}:=\bigcap_{t=0}^{T}\left\{\left\|\hat{\theta}_t-\theta^*\right\|_{V_t}\le\beta_t\right\} E := t = 0 ⋂ T { θ ^ t − θ ∗ V t ≤ β t }
satisfies P ( E ) ≥ 1 − δ \mathbb{P}(\mathcal{E}) \ge1-\delta P ( E ) ≥ 1 − δ . Throughout the proof, we work on the event E \mathcal{E} E . For every episode k k k and state–action pair ( s , a ) (s,a) ( s , a ) , the Cauchy–Schwarz inequality gives
∣ ϕ ( s , a ) ⊤ ( θ ˉ k − θ ⋆ ) ∣ ≤ β ˉ k ∥ ϕ ( s , a ) ∥ V ˉ k − 1 . \left|\phi(s,a)^{\top}(\bar{\theta}_k-\theta^\star)\right| \le\bar{\beta}_k \left\|\phi(s,a)\right\|_{\bar{V}_k^{-1}}. ϕ ( s , a ) ⊤ ( θ ˉ k − θ ⋆ ) ≤ β ˉ k ∥ ϕ ( s , a ) ∥ V ˉ k − 1 .
Since r ( s , a ) ∈ [ − R S , R S ] r(s,a) \in[-R_S,R_S] r ( s , a ) ∈ [ − R S , R S ] , clipping the optimistic estimate to [ − R S , R S ] [-R_S,R_S] [ − R S , R S ] preserves optimism. Therefore, u k ( s , a ) ≥ r ( s , a ) u_k(s,a) \ge r(s,a) u k ( s , a ) ≥ r ( s , a ) holds for every k k k and ( s , a ) (s,a) ( s , a ) . For any reward function r q : S × A → [ − R S , R S ] r_q:\mathcal{S}\times\mathcal{A}\to[-R_S,R_S] r q : S × A → [ − R S , R S ] , let J q J_q J q denote its optimal discounted value function and define
c q : = inf s ∈ S J q ( s ) . c_q := \inf_{s\in\mathcal{S}} J_q(s). c q := s ∈ S inf J q ( s ) .
By Lemma 1,
J q ( s ) − c q ∈ [ 0 , 2 R S M ] J_q(s)-c_q \in[0,2R_SM] J q ( s ) − c q ∈ [ 0 , 2 R S M ]
holds for every memory state s ∈ S s\in\mathcal{S} s ∈ S . After centering the Bellman optimality equation by c q c_q c q , we have
( 1 − γ ) c q + J q ( s ) − c q = sup a ∈ A { r q ( s , a ) + γ ( J q ( f ( s , a ) ) − c q ) } . (1-\gamma)c_q+J_q(s)-c_q=\sup_{a\in\mathcal{A}}\left\{r_q(s,a)+\gamma\left(J_q(f(s,a))-c_q\right)\right\}. ( 1 − γ ) c q + J q ( s ) − c q = a ∈ A sup { r q ( s , a ) + γ ( J q ( f ( s , a )) − c q ) } .
Now take r q = r r_q=r r q = r . Consider any comparator action sequence ( a 1 ⋆ , … , a T ⋆ ) (a_1^\star,\ldots,a_T^\star) ( a 1 ⋆ , … , a T ⋆ ) in Equation (2) , and let ( s t ⋆ ) t = 1 T + 1 (s_t^\star)_{t=1}^{T+1} ( s t ⋆ ) t = 1 T + 1 be its induced state trajectory. Evaluating the Bellman equation at ( s t ⋆ , a t ⋆ ) (s_t^\star,a_t^\star) ( s t ⋆ , a t ⋆ ) gives
r ( s t ⋆ , a t ⋆ ) ≤ ( 1 − γ ) c θ ⋆ + ( J θ ⋆ ( s t ⋆ ) − c θ ⋆ ) − γ ( J θ ⋆ ( s t + 1 ⋆ ) − c θ ⋆ ) . r(s_t^\star,a_t^\star)\le(1-\gamma)c_{\theta^\star}+\left(J_{\theta^\star}(s_t^\star)-c_{\theta^\star}\right)-\gamma\left(J_{\theta^\star}(s_{t+1}^\star)-c_{\theta^\star}\right). r ( s t ⋆ , a t ⋆ ) ≤ ( 1 − γ ) c θ ⋆ + ( J θ ⋆ ( s t ⋆ ) − c θ ⋆ ) − γ ( J θ ⋆ ( s t + 1 ⋆ ) − c θ ⋆ ) .
Summing over t ∈ [ T ] t\in[T] t ∈ [ T ] , we obtain
∑ t = 1 T r ( s t ⋆ , a t ⋆ ) ≤ T ( 1 − γ ) c θ ⋆ + ( J θ ⋆ ( s 1 ⋆ ) − c θ ⋆ ) + ( 1 − γ ) ∑ t = 2 T ( J θ ⋆ ( s t ⋆ ) − c θ ⋆ ) − γ ( J θ ⋆ ( s T + 1 ⋆ ) − c θ ⋆ ) ≤ T ( 1 − γ ) c θ ⋆ + 2 R S M [ 1 + ( T − 1 ) ( 1 − γ ) ] . \begin{aligned}
\sum_{t=1}^{T}r(s_t^\star,a_t^\star)
&\le T(1-\gamma)c_{\theta^\star}+\left(J_{\theta^\star}(s_1^\star)-c_{\theta^\star}\right)+(1-\gamma)\sum_{t=2}^{T}\left(J_{\theta^\star}(s_t^\star)-c_{\theta^\star}\right)\\
&\qquad-\gamma\left(J_{\theta^\star}(s_{T+1}^\star)-c_{\theta^\star}\right)\\
&\le T(1-\gamma)c_{\theta^\star}+2R_SM\left[1+(T-1)(1-\gamma)\right].
\end{aligned} t = 1 ∑ T r ( s t ⋆ , a t ⋆ ) ≤ T ( 1 − γ ) c θ ⋆ + ( J θ ⋆ ( s 1 ⋆ ) − c θ ⋆ ) + ( 1 − γ ) t = 2 ∑ T ( J θ ⋆ ( s t ⋆ ) − c θ ⋆ ) − γ ( J θ ⋆ ( s T + 1 ⋆ ) − c θ ⋆ ) ≤ T ( 1 − γ ) c θ ⋆ + 2 R S M [ 1 + ( T − 1 ) ( 1 − γ ) ] .
Since γ = 1 − 1 / T \gamma=1-1/T γ = 1 − 1/ T , taking the supremum over comparator action sequences yields
OPT T ( θ ⋆ ) ≤ c θ ⋆ + 4 R S M . (19) \operatorname{OPT}_T(\theta^\star)\le c_{\theta^\star}+4R_SM. \tag*{(19)} OPT T ( θ ⋆ ) ≤ c θ ⋆ + 4 R S M . (19)
We now analyze the trajectory generated by RSM-LinUCB. Let
E k : = { τ k , … , τ k + 1 − 1 } E_k:=\{\tau_k,\ldots,\tau_{k+1}-1\} E k := { τ k , … , τ k + 1 − 1 }
denote the set of rounds in episode k k k , where τ K + 1 = T + 1 \tau_{K+1}=T+1 τ K + 1 = T + 1 , and let
L k : = ∣ E k ∣ = τ k + 1 − τ k . L_k:=|E_k|=\tau_{k+1}-\tau_k. L k := ∣ E k ∣ = τ k + 1 − τ k .
Define c k : = inf s ∈ S J k ( s ) c_k := \inf_{s \in\mathcal{S}} J_k(s) c k := inf s ∈ S J k ( s ) . Since u k ( s , a ) ∈ [ − R S , R S ] u_k(s, a) \in[-RS, RS] u k ( s , a ) ∈ [ − R S , R S ] , Lemma 1 also gives
J k ( s ) − c k ∈ [ 0 , 2 R S M ] J_k(s) - c_k \in[0, 2RSM] J k ( s ) − c k ∈ [ 0 , 2 R S M ]
for every s ∈ S s \in\mathcal{S} s ∈ S . By the action-selection rule in Algorithm 1 and the Bellman optimality equation, for every t ∈ E k t \in E_k t ∈ E k ,
J k ( s t π ) = u k ( s t π , a t π ) + γ J k ( s t + 1 π ) . J_k(s_t^\pi) = u_k(s_t^\pi, a_t^\pi) + \gamma J_k(s_{t+1}^\pi). J k ( s t π ) = u k ( s t π , a t π ) + γ J k ( s t + 1 π ) .
Centering this equality by c k c_k c k gives
u k ( s t π , a t π ) + γ ( J k ( s t + 1 π ) − c k ) = ( 1 − γ ) c k + J k ( s t π ) − c k . u_k(s_t^\pi, a_t^\pi) + \gamma\left(J_k(s_{t+1}^\pi) - c_k\right) = (1-\gamma)c_k + J_k(s_t^\pi) - c_k. u k ( s t π , a t π ) + γ ( J k ( s t + 1 π ) − c k ) = ( 1 − γ ) c k + J k ( s t π ) − c k .
Summing over t ∈ E k t \in E_k t ∈ E k yields
L k ( 1 − γ ) c k − ∑ t ∈ E k u k ( s t π , a t π ) = − ( J k ( s τ k π ) − c k ) − ( 1 − γ ) ∑ t = τ k + 1 τ k + 1 − 1 ( J k ( s t π ) − c k ) + γ ( J k ( s τ k + 1 π ) − c k ) ≤ 2 R S M . \begin{aligned}
L_k(1-\gamma)c_k - \sum_{t \in E_k} u_k(s_t^\pi, a_t^\pi)
&= -\left(J_k(s_{\tau_k}^\pi)-c_k\right) - (1-\gamma)\sum_{t=\tau_k+1}^{\tau_{k+1}-1}\left(J_k(s_t^\pi)-c_k\right) \\
&\quad+ \gamma\left(J_k(s_{\tau_{k+1}}^\pi)-c_k\right) \\
&\le2RSM.
\end{aligned} L k ( 1 − γ ) c k − t ∈ E k ∑ u k ( s t π , a t π ) = − ( J k ( s τ k π ) − c k ) − ( 1 − γ ) t = τ k + 1 ∑ τ k + 1 − 1 ( J k ( s t π ) − c k ) + γ ( J k ( s τ k + 1 π ) − c k ) ≤ 2 R S M .
On the event E \mathcal{E} E , optimism implies J k ( s ) ≥ J θ ⋆ ( s ) J_k(s) \ge J_{\theta^\star}(s) J k ( s ) ≥ J θ ⋆ ( s ) for every s ∈ S s \in\mathcal{S} s ∈ S , and hence c k ≥ c θ ⋆ c_k \ge c_{\theta^\star} c k ≥ c θ ⋆ . Combining these observations, we obtain
L k ( 1 − γ ) c θ ⋆ − ∑ t ∈ E k r ( s t π , a t π ) ≤ L k ( 1 − γ ) c k − ∑ t ∈ E k u k ( s t π , a t π ) + ∑ t ∈ E k [ u k ( s t π , a t π ) − r ( s t π , a t π ) ] ≤ 2 R S M + ∑ t ∈ E k [ u k ( s t π , a t π ) − r ( s t π , a t π ) ] . \begin{aligned}
L_k(1-\gamma)c_{\theta^\star} - \sum_{t \in E_k} r(s_t^\pi, a_t^\pi)
&\le L_k(1-\gamma)c_k - \sum_{t \in E_k}u_k(s_t^\pi, a_t^\pi) \\
&\quad+ \sum_{t \in E_k}\left[u_k(s_t^\pi, a_t^\pi)-r(s_t^\pi, a_t^\pi)\right] \\
&\le2RSM + \sum_{t \in E_k}\left[u_k(s_t^\pi, a_t^\pi)-r(s_t^\pi, a_t^\pi)\right].
\end{aligned} L k ( 1 − γ ) c θ ⋆ − t ∈ E k ∑ r ( s t π , a t π ) ≤ L k ( 1 − γ ) c k − t ∈ E k ∑ u k ( s t π , a t π ) + t ∈ E k ∑ [ u k ( s t π , a t π ) − r ( s t π , a t π ) ] ≤ 2 R S M + t ∈ E k ∑ [ u k ( s t π , a t π ) − r ( s t π , a t π ) ] .
Finally, combining Equation (19) with the preceding inequality, summing over all episodes, and recalling that ∑ k = 1 K L k = T \sum_{k=1}^{K} L_k = T ∑ k = 1 K L k = T and 1 − γ = 1 / T 1-\gamma=1/T 1 − γ = 1/ T , we have
Reg T ( π ) = OPT T ( θ ⋆ ) − ∑ t = 1 T r ( s t π , a t π ) ≤ c θ ⋆ + 4 R S M − ∑ k = 1 K L k T c θ ⋆ + 2 K R S M + ∑ t = 1 T [ u k ( t ) ( s t π , a t π ) − r ( s t π , a t π ) ] = 2 ( K + 2 ) R S M + ∑ t = 1 T [ u k ( t ) ( s t π , a t π ) − r ( s t π , a t π ) ] . \begin{aligned}
\operatorname{Reg}_T(\pi) &= \operatorname{OPT}_T(\theta^\star) - \sum_{t=1}^{T}r(s_t^\pi, a_t^\pi) \\
&\le c_{\theta^\star} + 4RSM - \sum_{k=1}^{K}\frac{L_k}{T}c_{\theta^\star} + 2KRSM + \sum_{t=1}^{T}\left[u_{k(t)}(s_t^\pi, a_t^\pi)-r(s_t^\pi, a_t^\pi)\right] \\
&= 2(K+2)RSM + \sum_{t=1}^{T}\left[u_{k(t)}(s_t^\pi, a_t^\pi)-r(s_t^\pi, a_t^\pi)\right].
\end{aligned} Reg T ( π ) = OPT T ( θ ⋆ ) − t = 1 ∑ T r ( s t π , a t π ) ≤ c θ ⋆ + 4 R S M − k = 1 ∑ K T L k c θ ⋆ + 2 K R S M + t = 1 ∑ T [ u k ( t ) ( s t π , a t π ) − r ( s t π , a t π ) ] = 2 ( K + 2 ) R S M + t = 1 ∑ T [ u k ( t ) ( s t π , a t π ) − r ( s t π , a t π ) ] .
Since P ( E ) ≥ 1 − δ \mathbb{P}(\mathcal{E}) \ge1-\delta P ( E ) ≥ 1 − δ , this proves the bound. Q.E.D.
Proof of Theorem 1. Let E \mathcal{E} E and β t \beta_t β t be as defined in the proof of Lemma 2, and recall that P ( E ) ≥ 1 − δ \mathbb{P}(\mathcal{E}) \ge1-\delta P ( E ) ≥ 1 − δ . Throughout the proof, we work on the same event E \mathcal{E} E and write B = R S B=RS B = R S .
By Lemma 2, on E \mathcal{E} E ,
Reg T ( π ) ≤ 2 ( K + 2 ) B M + ∑ t = 1 T [ u k ( t ) ( s t π , a t π ) − r ( s t π , a t π ) ] . \operatorname{Reg}_T(\pi) \le2(K+2)BM+\sum_{t=1}^{T}\left[u_{k(t)}(s_t^\pi,a_t^\pi)-r(s_t^\pi,a_t^\pi)\right]. Reg T ( π ) ≤ 2 ( K + 2 ) B M + t = 1 ∑ T [ u k ( t ) ( s t π , a t π ) − r ( s t π , a t π ) ] .
It therefore remains to bound the number of episodes and the cumulative reward-estimation error.
The confidence bound used in the proof of Lemma 2, together with clipping to [ − B , B ] [-B,B] [ − B , B ] , gives
0 ≤ u k ( s , a ) − r ( s , a ) ≤ 2 min { B , β ‾ k ∥ ϕ ( s , a ) ∥ V ‾ k − 1 } 0 \le u_k(s,a)-r(s,a) \le2\min\left\{B,\overline{\beta}_k\left\|\phi(s,a)\right\|_{\overline{V}_k^{-1}}\right\} 0 ≤ u k ( s , a ) − r ( s , a ) ≤ 2 min { B , β k ∥ ϕ ( s , a ) ∥ V k − 1 }
for every episode k k k and state–action pair ( s , a ) (s,a) ( s , a ) . We first bound the total number of episodes. For every completed episode k ∈ [ K − 1 ] k\in[K-1] k ∈ [ K − 1 ] , the determinant-doubling condition implies
det ( V ‾ k + 1 ) = det ( V ‾ τ k + 1 − 1 ) ≥ 2 det ( V ‾ k ) . \det(\overline{V}_{k+1})=\det(\overline{V}_{\tau_{k+1}-1})\ge2\det(\overline{V}_k). det ( V k + 1 ) = det ( V τ k + 1 − 1 ) ≥ 2 det ( V k ) .
Since V ‾ 1 = V 0 = λ I d \overline{V}_1=V_0=\lambda I_d V 1 = V 0 = λ I d , it follows that
2 K − 1 det ( V 0 ) ≤ det ( V ‾ K ) ≤ det ( V T ) . 2^{K-1}\det(V_0)\le\det(\overline{V}_K)\le\det(V_T). 2 K − 1 det ( V 0 ) ≤ det ( V K ) ≤ det ( V T ) .
Therefore,
K ≤ 1 + 1 log 2 log ( det ( V T ) det ( λ I d ) ) . K\le1+\frac{1}{\log2}\log\left(\frac{\det(V_T)}{\det(\lambda I_d)}\right). K ≤ 1 + log 2 1 log ( det ( λ I d ) det ( V T ) ) .
Define
Γ T : = log ( det ( V T ) det ( λ I d ) ) ≤ d log ( 1 + T R 2 λ d ) = : Γ ‾ T , \Gamma_T:=\log\left(\frac{\det(V_T)}{\det(\lambda I_d)}\right)\le d\log\left(1+\frac{TR^2}{\lambda d}\right)=:\overline{\Gamma}_T, Γ T := log ( det ( λ I d ) det ( V T ) ) ≤ d log ( 1 + λ d T R 2 ) =: Γ T ,
where the inequality follows from ∥ ϕ ( s , a ) ∥ 2 ≤ R \|\phi(s,a)\|_2\le R ∥ ϕ ( s , a ) ∥ 2 ≤ R and the arithmetic–geometric mean inequality applied to the eigenvalues of V T V_T V T . Thus,
K ≤ 1 + Γ ‾ T log 2 ≤ 1 + 2 Γ ‾ T . (20) K\le1+\frac{\overline{\Gamma}_T}{\log2}\le1+2\overline{\Gamma}_T. \tag*{(20)} K ≤ 1 + log 2 Γ T ≤ 1 + 2 Γ T . (20)
We next compare the frozen information matrix with the current one. For any round t t t in episode k k k , the episode termination rule ensures that
det ( V t − 1 ) < 2 det ( V ‾ k ) . \det(V_{t-1})<2\det(\overline{V}_k). det ( V t − 1 ) < 2 det ( V k ) .
Since V t − 1 ⪰ V ‾ k V_{t-1}\succeq\overline{V}_k V t − 1 ⪰ V k , define
Q : = V ‾ k − 1 / 2 V t − 1 V ‾ k − 1 / 2 . Q:=\overline{V}_k^{-1/2}V_{t-1}\overline{V}_k^{-1/2}. Q := V k − 1/2 V t − 1 V k − 1/2 .
Every eigenvalue of Q Q Q is at least one, while
det ( Q ) = det ( V t − 1 ) det ( V ‾ k ) < 2. \det(Q)=\frac{\det(V_{t-1})}{\det(\overline{V}_k)}<2. det ( Q ) = det ( V k ) det ( V t − 1 ) < 2.
It follows that Q ⪯ 2 I d Q \preceq2I_d Q ⪯ 2 I d , and therefore
V t − 1 ⪯ 2 V ‾ k . V_{t-1} \preceq2\overline{V}_k. V t − 1 ⪯ 2 V k .
Equivalently, V ‾ k − 1 ⪯ 2 V t − 1 − 1 \overline{V}_k^{-1} \preceq2V_{t-1}^{-1} V k − 1 ⪯ 2 V t − 1 − 1 , which implies
∥ ϕ ( s t π , a t π ) ∥ V ‾ k − 1 ≤ 2 ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 . (21) \lVert\phi(s_t^\pi,a_t^\pi)\rVert_{\overline{V}_k^{-1}} \le\sqrt{2}\,\lVert\phi(s_t^\pi,a_t^\pi)\rVert_{V_{t-1}^{-1}}. \tag*{(21)} ∥ ϕ ( s t π , a t π ) ∥ V k − 1 ≤ 2 ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 . (21)
Combining Lemma 2, the reward-estimation error bound, Equation (20) and (21) , we obtain
Reg T ( π ) ≤ 2 ( K + 2 ) B M + 2 ∑ t = 1 T min { B , 2 β ˉ k ( t ) ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 } ≤ ( 4 d log ( 1 + T R 2 λ d ) + 6 ) B M + 2 ∑ t = 1 T min { B , 2 β ˉ k ( t ) ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 } . (22) \begin{aligned}
\operatorname{Reg}_T(\pi) \le2(K+2)BM+2\sum_{t=1}^{T}\min\left\{B,\sqrt{2}\,\bar{\beta}_{k(t)}\lVert\phi(s_t^\pi,a_t^\pi)\rVert_{V_{t-1}^{-1}}\right\} \\
&\le\left(4d\log\left(1+\frac{TR^2}{\lambda d}\right)+6\right)BM+2\sum_{t=1}^{T}\min\left\{B,\sqrt{2}\,\bar{\beta}_{k(t)}\lVert\phi(s_t^\pi,a_t^\pi)\rVert_{V_{t-1}^{-1}}\right\}. \tag*{(22)}
\end{aligned} Reg T ( π ) ≤ 2 ( K + 2 ) B M + 2 t = 1 ∑ T min { B , 2 β ˉ k ( t ) ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 } ≤ ( 4 d log ( 1 + λ d T R 2 ) + 6 ) B M + 2 t = 1 ∑ T min { B , 2 β ˉ k ( t ) ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 } . (22)
It remains to control the cumulative confidence widths. By the elliptical potential lemma (Abbasi-Yadkori et al. [1 ] , Lemma 11),
∑ t = 1 T min { 1 , ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 2 } ≤ 2 d log ( 1 + T R 2 λ d ) = 2 Γ ‾ T . (23) \sum_{t=1}^{T}\min\left\{1,\lVert\phi(s_t^\pi,a_t^\pi)\rVert_{V_{t-1}^{-1}}^2\right\}\le2d\log\left(1+\frac{TR^2}{\lambda d}\right)=2\overline{\Gamma}_T. \tag*{(23)} t = 1 ∑ T min { 1 , ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 2 } ≤ 2 d log ( 1 + λ d T R 2 ) = 2 Γ T . (23)
For notational convenience, let
q t : = ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 , q_t:=\lVert\phi(s_t^\pi,a_t^\pi)\rVert_{V_{t-1}^{-1}}, q t := ∥ ϕ ( s t π , a t π ) ∥ V t − 1 − 1 ,
and define
I > : = { t ∈ [ T ] : q t > 1 } , I ≤ : = { t ∈ [ T ] : q t ≤ 1 } . \mathcal{I}_{>}:=\{t\in[T]:q_t>1\},\qquad\mathcal{I}_{\le}:=\{t\in[T]:q_t\le1\}. I > := { t ∈ [ T ] : q t > 1 } , I ≤ := { t ∈ [ T ] : q t ≤ 1 } .
By Equation (23) , ∣ I > ∣ ≤ 2 Γ ‾ T |\mathcal{I}_{>}|\le2\overline{\Gamma}_T ∣ I > ∣ ≤ 2 Γ T . Moreover, since β ˉ k ( t ) ≤ β T \bar{\beta}_{k(t)}\le\beta_T β ˉ k ( t ) ≤ β T , the Cauchy–Schwarz inequality gives
∑ t = 1 T min { B , 2 β ˉ k ( t ) q t } ≤ B ∣ I > ∣ + 2 β T ∑ t ∈ I ≤ q t \sum_{t=1}^{T}\min\{B,\sqrt{2}\,\bar{\beta}_{k(t)}q_t\}\le B|\mathcal{I}_{>}|+\sqrt{2}\,\beta_T\sum_{t\in\mathcal{I}_{\le}}q_t t = 1 ∑ T min { B , 2 β ˉ k ( t ) q t } ≤ B ∣ I > ∣ + 2 β T t ∈ I ≤ ∑ q t
≤ 2 B Γ ‾ T + 2 β T T ∑ t ∈ I ≤ q t 2 \le2B\overline{\Gamma}_T+\sqrt{2}\,\beta_T\sqrt{T\sum_{t\in\mathcal{I}_{\le}}q_t^2} ≤ 2 B Γ T + 2 β T T t ∈ I ≤ ∑ q t 2
≤ 2 B Γ ‾ T + 2 β T T Γ ‾ T . \le2B\overline{\Gamma}_T+2\beta_T\sqrt{T\overline{\Gamma}_T}. ≤ 2 B Γ T + 2 β T T Γ T .
Substituting this bound into Equation (22) yields
Reg T ( π ) ≤ ( 4 d log ( 1 + T R 2 λ d ) + 6 ) B M + 4 B d log ( 1 + T R 2 λ d ) + 4 T d log ( 1 + T R 2 λ d ) [ σ d log ( 1 + T R 2 λ d ) + 2 log ( 1 δ ) + λ S ] . \begin{aligned}
\operatorname{Reg}_T(\pi)\le\left(4d\log\left(1+\frac{TR^2}{\lambda d}\right)+6\right)BM+4Bd\log\left(1+\frac{TR^2}{\lambda d}\right) \\
&+4\sqrt{Td\log\left(1+\frac{TR^2}{\lambda d}\right)}
\left[\sigma\sqrt{d\log\left(1+\frac{TR^2}{\lambda d}\right)+2\log\left(\frac{1}{\delta}\right)}+\sqrt{\lambda}S\right].
\end{aligned} Reg T ( π ) ≤ ( 4 d log ( 1 + λ d T R 2 ) + 6 ) B M + 4 B d log ( 1 + λ d T R 2 ) + 4 T d log ( 1 + λ d T R 2 ) [ σ d log ( 1 + λ d T R 2 ) + 2 log ( δ 1 ) + λ S ] .
Finally, recalling that B = R S B=RS B = R S , taking δ = T − 2 \delta=T^{-2} δ = T − 2 , and using λ S ≤ σ d \sqrt{\lambda}S\le\sigma\sqrt{d} λ S ≤ σ d , we obtain
Reg T ( π ) = O ~ ( d R S ( M + 1 ) + σ d T ) . \operatorname{Reg}_T(\pi)=\widetilde{O}\left(dRS(M+1)+\sigma d\sqrt{T}\right). Reg T ( π ) = O ( d R S ( M + 1 ) + σ d T ) .
Since all the bounds hold on the same event E \mathcal{E} E , the conclusion holds with probability at least 1 − δ 1-\delta 1 − δ .
This proves the claimed regret bound. Q.E.D.
Proof of Theorem 2. First, we consider the case when M ≥ 1 M \ge1 M ≥ 1 , and establish the memory-dependent lower bound. Let e 1 , … , e d e_1,\ldots,e_d e 1 , … , e d denote the standard basis vectors in R d \mathbb{R}^d R d , and define the memory map
A ( s ) = { R e i e i T , s = e i M ≔ ( e i , … , e i ) for some i ∈ [ d ] , 0 , otherwise . A(s)=\begin{cases}
R e_i e_i^{\mathsf{T}}, & s=e_i^M \coloneqq(e_i,\ldots,e_i)\text{ for some }i\in[d],\\
0, & \text{otherwise}.
\end{cases} A ( s ) = { R e i e i T , 0 , s = e i M : = ( e i , … , e i ) for some i ∈ [ d ] , otherwise .
Clearly, ∥ A ( s ) ∥ o p ≤ R \lVert A(s)\rVert_{\mathrm{op}}\le R ∥ A ( s ) ∥ op ≤ R for every s s s . For each i ∈ [ d ] i\in[d] i ∈ [ d ] , let θ ( i ) = S e i \theta^{(i)}=S e_i θ ( i ) = S e i , and take the action set to be A = B 2 d \mathcal{A}=\mathbb{B}_2^d A = B 2 d . All environments, including the null environment, share the initial memory s 1 = ( 0 d , … , 0 d ) ∈ A M s_1=(0_d,\ldots,0_d)\in\mathcal{A}^M s 1 = ( 0 d , … , 0 d ) ∈ A M , which is also used by the comparator. For the first M M M rounds, the memory therefore contains at least one zero action, so s t ≠ e i M s_t\ne e_i^M s t = e i M for every i ∈ [ d ] i\in[d] i ∈ [ d ] and all mean rewards are zero. The expected reward under parameter θ ( i ) \theta^{(i)} θ ( i ) is then
r θ ( i ) ( s t , a t ) = { R S ( a t ) i , s t = e i M , 0 , otherwise . r_{\theta^{(i)}}(s_t,a_t)=\begin{cases}
RS(a_t)_i, & s_t=e_i^M,\\
0, & \text{otherwise}.
\end{cases} r θ ( i ) ( s t , a t ) = { R S ( a t ) i , 0 , s t = e i M , otherwise .
For the environment θ ( i ) \theta^{(i)} θ ( i ) , an optimal comparator repeatedly selects e i e_i e i . Since the first M M M rounds yield zero reward, whereas every subsequent round yields reward R S RS R S , we have
OPT T ( θ ( i ) ) = R S ( T − M ) . \operatorname{OPT}_T(\theta^{(i)})=RS(T-M). OPT T ( θ ( i ) ) = R S ( T − M ) .
Let Reg T ( i ) ( π ) \operatorname{Reg}^{(i)}_T(\pi) Reg T ( i ) ( π ) denote the regret of policy π \pi π under parameter θ ( i ) \theta^{(i)} θ ( i ) , and let θ ( 0 ) = 0 \theta^{(0)}=0 θ ( 0 ) = 0 denote the null environment. We couple all environments by using the same realization of the learner’s internal randomness and the same noise sequence. Consider the trajectory generated by π \pi π in the null environment, and define
τ i = inf { t ∈ [ T ] : s t = e i M } . \tau_i=\inf\{t\in[T]:s_t=e_i^M\}. τ i = inf { t ∈ [ T ] : s t = e i M } .
If the set is empty, we set τ i = ∞ \tau_i=\infty τ i = ∞ . We further define the truncated hitting time
τ ‾ i = { τ i , τ i ≤ T , T + 1 , τ i = ∞ . \overline{\tau}_i=\begin{cases}
\tau_i, & \tau_i\le T,\\
T+1, & \tau_i=\infty.
\end{cases} τ i = { τ i , T + 1 , τ i ≤ T , τ i = ∞.
Before round τ ‾ i \overline{\tau}_i τ i , all conditional reward means are zero under both θ ( 0 ) \theta^{(0)} θ ( 0 ) and θ ( i ) \theta^{(i)} θ ( i ) . Hence, under the above coupling, the two trajectories coincide up to the action selected at round τ ‾ i \overline{\tau}_i τ i . Since the expected reward in each subsequent round is at most R S RS R S , it follows pathwise that
∑ t = 1 T r θ ( i ) ( s t π , a t π ) ≤ R S ( T − τ ‾ i + 1 ) . \sum_{t=1}^{T}r_{\theta^{(i)}}(s_t^\pi,a_t^\pi)\le RS(T-\overline{\tau}_i+1). t = 1 ∑ T r θ ( i ) ( s t π , a t π ) ≤ R S ( T − τ i + 1 ) .
Consequently,
Reg T ( i ) ( π ) ≥ R S ( τ ‾ i − ( M + 1 ) ) , \operatorname{Reg}^{(i)}_T(\pi)\ge RS\bigl(\overline{\tau}_i-(M+1)\bigr), Reg T ( i ) ( π ) ≥ R S ( τ i − ( M + 1 ) ) ,
and therefore
E [ Reg T ( i ) ( π ) ] ≥ R S E [ τ ‾ i − ( M + 1 ) ] . \mathbb{E}\left[\operatorname{Reg}^{(i)}_T(\pi)\right]\ge RS\mathbb{E}\left[\overline{\tau}_i-(M+1)\right]. E [ Reg T ( i ) ( π ) ] ≥ R S E [ τ i − ( M + 1 ) ] .
Now consider two distinct indices i , j ∈ [ d ] i,j \in[d] i , j ∈ [ d ] . If τ i < τ j < ∞ \tau_i < \tau_j < \infty τ i < τ j < ∞ , then the M M M actions immediately preceding τ i \tau_i τ i are all equal to e i e_i e i , whereas those immediately preceding τ j \tau_j τ j are all equal to e j e_j e j . Since i ≠ j i \ne j i = j , these two blocks cannot overlap, and thus τ j ≥ τ i + M \tau_j \ge\tau_i + M τ j ≥ τ i + M . Let τ ˉ ( 1 ) ≤ ⋯ ≤ τ ˉ ( d ) \bar{\tau}_{(1)} \le\cdots\le\bar{\tau}_{(d)} τ ˉ ( 1 ) ≤ ⋯ ≤ τ ˉ ( d ) denote the order statistics of τ ˉ 1 , … , τ ˉ d \bar{\tau}_1,\ldots,\bar{\tau}_d τ ˉ 1 , … , τ ˉ d . Since τ ˉ ( 1 ) ≥ M + 1 \bar{\tau}_{(1)} \ge M+1 τ ˉ ( 1 ) ≥ M + 1 , the preceding separation property implies
τ ˉ ( q ) − ( M + 1 ) ≥ min { ( q − 1 ) M , T − M } \bar{\tau}_{(q)}-(M+1) \ge\min\{(q-1)M,T-M\} τ ˉ ( q ) − ( M + 1 ) ≥ min {( q − 1 ) M , T − M }
for every q ∈ [ d ] q \in[d] q ∈ [ d ] . Therefore,
1 d ∑ i = 1 d E [ Reg T ( i ) ( π ) ] ≥ R S d ∑ q = 1 d min { ( q − 1 ) M , T − M } = R S d ∑ q = 0 d − 1 min { q M , T − M } . (24) \frac{1}{d}\sum_{i=1}^{d}\mathbb{E}\left[\operatorname{Reg}_{T}^{(i)}(\pi)\right]
\ge\frac{RS}{d}\sum_{q=1}^{d}\min\{(q-1)M,T-M\}
= \frac{RS}{d}\sum_{q=0}^{d-1}\min\{qM,T-M\}. \tag*{(24)} d 1 i = 1 ∑ d E [ Reg T ( i ) ( π ) ] ≥ d R S q = 1 ∑ d min {( q − 1 ) M , T − M } = d R S q = 0 ∑ d − 1 min { q M , T − M } . (24)
Under the assumption T ≥ d M T \ge dM T ≥ d M , we have q M ≤ T − M qM \le T-M q M ≤ T − M for every q ∈ { 0 , … , d − 1 } q \in\{0,\ldots,d-1\} q ∈ { 0 , … , d − 1 } . Hence,
1 d ∑ i = 1 d E [ Reg T ( i ) ( π ) ] ≥ ( d − 1 ) R S M 2 . \frac{1}{d}\sum_{i=1}^{d}\mathbb{E}\left[\operatorname{Reg}_{T}^{(i)}(\pi)\right]
\ge\frac{(d-1)RSM}{2}. d 1 i = 1 ∑ d E [ Reg T ( i ) ( π ) ] ≥ 2 ( d − 1 ) R S M .
It follows that
sup θ ⋆ , A E [ Reg T ( π ) ] ≥ 1 d ∑ i = 1 d E [ Reg T ( i ) ( π ) ] ≥ ( d − 1 ) R S M 2 . (25) \sup_{\theta^\star,A}\mathbb{E}\left[\operatorname{Reg}_{T}(\pi)\right]
\ge\frac{1}{d}\sum_{i=1}^{d}\mathbb{E}\left[\operatorname{Reg}_{T}^{(i)}(\pi)\right]
\ge\frac{(d-1)RSM}{2}. \tag*{(25)} θ ⋆ , A sup E [ Reg T ( π ) ] ≥ d 1 i = 1 ∑ d E [ Reg T ( i ) ( π ) ] ≥ 2 ( d − 1 ) R S M . (25)
For M = 0 M=0 M = 0 , take A = R I d A=RI_d A = R I d . The problem then reduces to a standard linear bandit over B 2 d \mathbb{B}_{2}^{d} B 2 d , with parameter R θ ⋆ R\theta^\star R θ ⋆ satisfying ∥ R θ ⋆ ∥ 2 ≤ R S \lVert R\theta^\star\rVert_2 \le RS ∥ R θ ⋆ ∥ 2 ≤ R S . Applying Proposition 2 of Zhang et al. [62 ] with their scale parameter set to R S / 4 RS/4 R S /4 , we obtain
sup θ ⋆ , A E [ Reg T ( π ) ] ≥ c d R S \sup_{\theta^\star,A}\mathbb{E}\left[\operatorname{Reg}_{T}(\pi)\right] \ge cdRS θ ⋆ , A sup E [ Reg T ( π ) ] ≥ c d R S
for some universal constant c > 0 c>0 c > 0 , provided that T ≥ d T \ge d T ≥ d . Combining the two cases, we then obtain
sup θ ⋆ , A E [ Reg T ( π ) ] ≥ Ω ( d R S ( M + 1 ) ) , (26) \sup_{\theta^\star,A}\mathbb{E}\left[\operatorname{Reg}_{T}(\pi)\right] \ge\Omega\left(dRS(M+1)\right), \tag*{(26)} θ ⋆ , A sup E [ Reg T ( π ) ] ≥ Ω ( d R S ( M + 1 ) ) , (26)
for every M ≥ 0 M \ge0 M ≥ 0 . We next establish the standard linear-bandit lower bound. Let the noise variables be independent Gaussian random variables,
ε t ∼ N ( 0 , σ 2 ) , \varepsilon_t \sim\mathcal{N}(0,\sigma^2), ε t ∼ N ( 0 , σ 2 ) ,
and consider the memory-independent map A ( s ) = R I d A(s)=RI_d A ( s ) = R I d for every s ∈ A M s \in\mathcal{A}^{M} s ∈ A M . This reduces the problem to a stochastic linear bandit over the unit Euclidean ball with effective parameter R θ ⋆ R\theta^\star R θ ⋆ . Applying Theorem 24.2 of Lattimore and Szepesvári [36 ] after rescaling the observations by σ \sigma σ , there exists a parameter θ ⋆ \theta^\star θ ⋆ satisfying ∥ θ ⋆ ∥ 2 2 = σ 2 d 2 48 T R 2 \lVert\theta^\star\rVert_2^2 = \frac{\sigma^2 d^2}{48TR^2} ∥ θ ⋆ ∥ 2 2 = 48 T R 2 σ 2 d 2 such that
E [ Reg T ( π ) ] ≥ σ d T 16 3 . \mathbb{E}\left[\operatorname{Reg}_T(\pi)\right] \ge\frac{\sigma d\sqrt{T}}{16\sqrt{3}}. E [ Reg T ( π ) ] ≥ 16 3 σ d T .
The parameter is admissible whenever R S ≥ σ d / 48 T RS \ge\sigma d/\sqrt{48T} R S ≥ σ d / 48 T . Therefore,
sup θ ⋆ , A E [ Reg T ( π ) ] ≥ σ d T 16 3 . (27) \sup_{\theta^\star,\mathcal{A}}\mathbb{E}\left[\operatorname{Reg}_T(\pi)\right] \ge\frac{\sigma d\sqrt{T}}{16\sqrt{3}}. \tag*{(27)} θ ⋆ , A sup E [ Reg T ( π ) ] ≥ 16 3 σ d T . (27)
Combining Equation (26) , we conclude that, for every policy π \pi π ,
sup θ ⋆ , A E [ Reg T ( π ) ] ≥ Ω ( d R S ( M + 1 ) + σ d T ) . \sup_{\theta^\star,\mathcal{A}}\mathbb{E}\left[\operatorname{Reg}_T(\pi)\right] \ge\Omega\left(dRS(M+1)+\sigma d\sqrt{T}\right). θ ⋆ , A sup E [ Reg T ( π ) ] ≥ Ω ( d R S ( M + 1 ) + σ d T ) .
Taking the infimum over all policies proves Theorem 2. Q.E.D.
Proof of Theorem 3. We work on the event E \mathcal{E} E from Lemma 3 which happens with probability at least 1 − δ 1-\delta 1 − δ . According to Lemma 5, it remains to bound the reward estimation error.
Consider first a round t t t with w t > 0 w_t>0 w t > 0 , and let k = k ( t ) k=k(t) k = k ( t ) denote its episode. The definition of w t w_t w t and Equation (37) in Appendix § 13 imply that μ ′ ( ϕ t ⊤ θ ) ≤ e w t \mu'(\phi_t^\top\theta)\le e w_t μ ′ ( ϕ t ⊤ θ ) ≤ e w t for every θ ∈ C k \theta\in C_k θ ∈ C k . Since θ ⋆ \theta^\star θ ⋆ and the maximizer defining u k ( s t , a t ) u_k(s_t,a_t) u k ( s t , a t ) belong to the convex set C k C_k C k , the mean value theorem and Lemma 4 give that
u k ( s t , a t ) − r ( s t , a t ) ≤ e w t ω k ( ϕ t ) ≤ 2 e β 2 w t ∥ ϕ t ∥ H t − 1 − 1 . u_k(s_t,a_t)-r(s_t,a_t)\le e w_t\omega_k(\phi_t)\le\sqrt{2}e\beta_2w_t\lVert\phi_t\rVert_{H_{t-1}^{-1}}. u k ( s t , a t ) − r ( s t , a t ) ≤ e w t ω k ( ϕ t ) ≤ 2 e β 2 w t ∥ ϕ t ∥ H t − 1 − 1 .
Further denote that ℓ t = w t ∥ ϕ t ∥ H t − 1 − 1 2 \ell_t=w_t\lVert\phi_t\rVert_{H_{t-1}^{-1}}^2 ℓ t = w t ∥ ϕ t ∥ H t − 1 − 1 2 . Applying the elliptical potential lemma (Lemma 11 in Abbasi-Yadkori et al. [1 ] ) to the vectors w t ϕ t \sqrt{w_t}\phi_t w t ϕ t yields
∑ t = 1 T min { 1 , ℓ t } ≤ 2 log ( det H T det H 0 ) ≤ 2 Γ 2 . \sum_{t=1}^{T}\min\{1,\ell_t\}\le2\log\left(\frac{\det H_T}{\det H_0}\right)\le2\Gamma_2. t = 1 ∑ T min { 1 , ℓ t } ≤ 2 log ( det H 0 det H T ) ≤ 2 Γ 2 .
Therefore, by the Cauchy–Schwarz inequality and ∑ t = 1 T w t ≤ T U μ \sum_{t=1}^{T}w_t\le TU_\mu ∑ t = 1 T w t ≤ T U μ ,
∑ t : w t > 0 ℓ t ≤ 1 [ u k ( t ) ( s t , a t ) − r ( s t , a t ) ] ≤ 2 e β 2 ( ∑ t = 1 T w t ) ( ∑ t : ℓ t ≤ 1 ℓ t ) \sum_{\substack{t:w_t>0\\ \ell_t\le1}}\left[u_{k(t)}(s_t,a_t)-r(s_t,a_t)\right]\le\sqrt{2}e\beta_2\sqrt{\left(\sum_{t=1}^{T}w_t\right)\left(\sum_{\substack{t:\ell_t\le1}}\ell_t\right)} t : w t > 0 ℓ t ≤ 1 ∑ [ u k ( t ) ( s t , a t ) − r ( s t , a t ) ] ≤ 2 e β 2 ( t = 1 ∑ T w t ) t : ℓ t ≤ 1 ∑ ℓ t
≤ 2 e β 2 U μ T Γ 2 . \le2e\beta_2\sqrt{U_\mu T\Gamma_2}. ≤ 2 e β 2 U μ T Γ 2 .
The determinant identity ∑ t = 1 T log ( 1 + ℓ t ) = log ( det H T / det H 0 ) \sum_{t=1}^{T}\log(1+\ell_t)=\log(\det H_T/\det H_0) ∑ t = 1 T log ( 1 + ℓ t ) = log ( det H T / det H 0 ) also implies that at most Γ 2 / log 2 \Gamma_2/\log2 Γ 2 / log 2 rounds have ℓ t > 1 \ell_t>1 ℓ t > 1 . Bounding their estimation error by Δ μ \Delta_\mu Δ μ gives
∑ t : w t > 0 [ u k ( t ) ( s t , a t ) − r ( s t , a t ) ] ≤ 2 e β 2 U μ T Γ 2 + Δ μ Γ 2 log 2 . (28) \sum_{t:w_t>0}\left[u_{k(t)}(s_t,a_t)-r(s_t,a_t)\right]\le2e\beta_2\sqrt{U_\mu T\Gamma_2}+\frac{\Delta_\mu\Gamma_2}{\log2}. \tag*{(28)} t : w t > 0 ∑ [ u k ( t ) ( s t , a t ) − r ( s t , a t ) ] ≤ 2 e β 2 U μ T Γ 2 + log 2 Δ μ Γ 2 . (28)
We next consider rounds with w t = 0 w_t = 0 w t = 0 . There are no such rounds if ρ = 0 \rho= 0 ρ = 0 . Otherwise, Lemma 4 gives
1 < ρ ω k ( t ) ( ϕ t ) ≤ 2 ρ β 1 ∥ ϕ t ∥ V t − 1 and ∥ ϕ t ∥ V t − 1 2 > 1 2 ρ 2 β 1 2 . 1 < \rho\omega_{k(t)}(\phi_t) \le\sqrt{2}\rho\beta_1\|\phi_t\|_{V_{t-1}} \quad\text{and} \quad\|\phi_t\|_{V_{t-1}}^2 > \frac{1}{2\rho^2\beta_1^2}. 1 < ρ ω k ( t ) ( ϕ t ) ≤ 2 ρ β 1 ∥ ϕ t ∥ V t − 1 and ∥ ϕ t ∥ V t − 1 2 > 2 ρ 2 β 1 2 1 .
Using the determinant identity for V t V_t V t ,
∣ { t : w t = 0 } ∣ ≤ ∑ t = 1 T log ( 1 + ∥ ϕ t ∥ V t − 1 2 ) log ( 1 + 1 / ( 2 ρ 2 β 1 2 ) ) ≤ Γ 1 log ( 1 + 1 / ( 2 ρ 2 β 1 2 ) ) ≤ ( 1 + 2 ρ 2 β 1 2 ) Γ 1 , \left|\{t:w_t=0\}\right| \le\frac{\sum_{t=1}^{T}\log\left(1+\|\phi_t\|_{V_{t-1}}^2\right)}{\log\left(1+1/(2\rho^2\beta_1^2)\right)} \le\frac{\Gamma_1}{\log\left(1+1/(2\rho^2\beta_1^2)\right)} \le(1+2\rho^2\beta_1^2)\Gamma_1, ∣ { t : w t = 0 } ∣ ≤ log ( 1 + 1/ ( 2 ρ 2 β 1 2 ) ) ∑ t = 1 T log ( 1 + ∥ ϕ t ∥ V t − 1 2 ) ≤ log ( 1 + 1/ ( 2 ρ 2 β 1 2 ) ) Γ 1 ≤ ( 1 + 2 ρ 2 β 1 2 ) Γ 1 ,
where the last inequality follows from log ( 1 + x ) ≥ x / ( 1 + x ) \log(1+x) \ge x/(1+x) log ( 1 + x ) ≥ x / ( 1 + x ) for x ≥ 0 x \ge0 x ≥ 0 . Note that the final bound also holds when ρ = 0 \rho= 0 ρ = 0 . Hence,
∑ t : w t = 0 [ u k ( t ) ( s t , a t ) − r ( s t , a t ) ] ≤ Δ μ ( 1 + 2 ρ 2 β 1 2 ) Γ 1 . (29) \sum_{t:w_t=0}\left[u_{k(t)}(s_t,a_t)-r(s_t,a_t)\right] \le\Delta_\mu(1+2\rho^2\beta_1^2)\Gamma_1. \tag*{(29)} t : w t = 0 ∑ [ u k ( t ) ( s t , a t ) − r ( s t , a t ) ] ≤ Δ μ ( 1 + 2 ρ 2 β 1 2 ) Γ 1 . (29)
Combining Lemma 5 with Equation (28) and (29) , we obtain
Reg T ( R S M - G L M U C B ) ≤ ( 3 + Γ 1 + Γ 2 log 2 ) M Δ μ + 2 e β 2 U μ T Γ 2 + Δ μ Γ 2 log 2 + Δ μ ( 1 + 2 ρ 2 β 1 2 ) Γ 1 (30) \operatorname{Reg}_T(\mathrm{RSM\text{-}GLMUCB}) \le\left(3+\frac{\Gamma_1+\Gamma_2}{\log2}\right)M\Delta_\mu+2e\beta_2\sqrt{U_\mu T\Gamma_2}+\frac{\Delta_\mu\Gamma_2}{\log2}+\Delta_\mu(1+2\rho^2\beta_1^2)\Gamma_1 \tag*{(30)} Reg T ( RSM - GLMUCB ) ≤ ( 3 + log 2 Γ 1 + Γ 2 ) M Δ μ + 2 e β 2 U μ T Γ 2 + log 2 Δ μ Γ 2 + Δ μ ( 1 + 2 ρ 2 β 1 2 ) Γ 1 (30)
= O ~ ( d ( M + 1 ) Δ μ + d v U μ T + d 2 κ v ρ 2 Δ μ ) , (31) =\widetilde{O}\left(d(M+1)\Delta_\mu+d\sqrt{vU_\mu T}+d^2\kappa v\rho^2\Delta_\mu\right), \tag*{(31)} = O ( d ( M + 1 ) Δ μ + d v U μ T + d 2 κ v ρ 2 Δ μ ) , (31)
which completes the proof. Q.E.D.
Proof of Theorem 4. By Lemma 6 , there exists an admissible action set and a common initial memory state for which every policy incurs expected regret at least c 1 d ( M + 1 ) Δ μ 1 + log ( 1 + ρ R S ) c_1\frac{d(M+1)\Delta_\mu}{1+\log(1+\rho RS)} c 1 1 + l o g ( 1 + ρR S ) d ( M + 1 ) Δ μ for some universal constant c 1 > 0 c_1 > 0 c 1 > 0 . On the other hand, Lemma 7 gives an admissible action set for which every policy incurs expected regret at least c 2 d v U μ T c_2d\sqrt{vU_\mu T} c 2 d v U μ T , with a universal constant c 2 > 0 c_2 > 0 c 2 > 0 .
For the fixed problem parameters, choose the construction with the larger of the two lower bounds, and we obtain that
inf π ∈ Π ⋆ , A E [ Reg T ( π ) ] ≥ max { c 1 d ( M + 1 ) Δ μ 1 + log ( 1 + ρ R S ) , c 2 d v U μ T } ≥ min { c 1 , c 2 } 2 ( d ( M + 1 ) Δ μ 1 + log ( 1 + ρ R S ) + d v U μ T ) , \begin{aligned}
\inf_{\pi\in\Pi_{\star,A}}\mathbb{E}[\operatorname{Reg}_T(\pi)] \ge\max\left\{c_1\frac{d(M+1)\Delta_\mu}{1+\log(1+\rho RS)},c_2d\sqrt{vU_\mu T}\right\} \\
&\ge\frac{\min\{c_1,c_2\}}{2}\left(\frac{d(M+1)\Delta_\mu}{1+\log(1+\rho RS)}+d\sqrt{vU_\mu T}\right),
\end{aligned} π ∈ Π ⋆ , A inf E [ Reg T ( π )] ≥ max { c 1 1 + log ( 1 + ρR S ) d ( M + 1 ) Δ μ , c 2 d v U μ T } ≥ 2 min { c 1 , c 2 } ( 1 + log ( 1 + ρR S ) d ( M + 1 ) Δ μ + d v U μ T ) ,
which proves the theorem. Q.E.D.
Proof of Theorem 5. We first control the error introduced by Algorithm 3. Fix an episode k k k and use J ~ i \widetilde{J}_i J i to denote the value function computed at iteration i i i within this episode. Recall that J k J_k J k is the optimal discounted value function under the frozen optimistic reward u k u_k u k . Since J ~ i \widetilde{J}_i J i is the value of policy π i \pi_i π i under the same reward function, it holds that J ~ i ( s ) ≤ J k ( s ) \widetilde{J}_i(s) \le J_k(s) J i ( s ) ≤ J k ( s ) for every memory state s ∈ S s \in\mathcal{S} s ∈ S . By the contraction property of discounted Howard policy iteration (Lemma 2 in Scherrer [52 ] ),
∥ J k − J ~ i ∥ ∞ ≤ γ i ∥ J k − J ~ 0 ∥ ∞ . \left\lVert J_k-\widetilde{J}_i\right\rVert_\infty\le\gamma^i\left\lVert J_k-\widetilde{J}_0\right\rVert_\infty. J k − J i ∞ ≤ γ i J k − J 0 ∞ .
Since u k ( s , a ) ∈ [ − R S , R S ] u_k(s,a) \in[-RS,RS] u k ( s , a ) ∈ [ − R S , R S ] , both J k J_k J k and J ~ 0 \widetilde{J}_0 J 0 take values in [ − R S / ( 1 − γ ) , R S / ( 1 − γ ) ] [-RS/(1-\gamma),RS/(1-\gamma)] [ − R S / ( 1 − γ ) , R S / ( 1 − γ )] . Therefore,
∥ J k − J ~ i ∥ ∞ ≤ 2 R S γ i 1 − γ . (32) \left\lVert J_k-\widetilde{J}_i\right\rVert_\infty\le\frac{2RS\gamma^i}{1-\gamma}. \tag*{(32)} J k − J i ∞ ≤ 1 − γ 2 R S γ i . (32)
Within episode k k k , the implemented algorithm selects
a t π ∈ arg max a ∈ A { u k ( s t π , a ) + γ J ~ I max ( f ( s t π , a ) ) } . a_t^\pi\in\arg\max_{a\in\mathcal{A}}\left\{u_k(s_t^\pi,a)+\gamma\widetilde{J}_{I_{\max}}\left(f(s_t^\pi,a)\right)\right\}. a t π ∈ arg a ∈ A max { u k ( s t π , a ) + γ J I m a x ( f ( s t π , a ) ) } .
By the Bellman optimality equation for J k J_k J k and Equation (32) ,
J k ( s t π ) = max a ∈ A { u k ( s t π , a ) + γ J k ( f ( s t π , a ) ) } ≤ max a ∈ A { u k ( s t π , a ) + γ J ~ I max ( f ( s t π , a ) ) } + 2 R S γ I max + 1 1 − γ = u k ( s t π , a t π ) + γ J ~ I max ( s t + 1 π ) + 2 R S γ I max + 1 1 − γ ≤ u k ( s t π , a t π ) + γ J k ( s t + 1 π ) + 2 R S γ I max + 1 1 − γ , \begin{aligned}
J_k(s_t^\pi) &= \max_{a\in\mathcal{A}}\left\{u_k(s_t^\pi,a)+\gamma J_k\left(f(s_t^\pi,a)\right)\right\}\\
&\le\max_{a\in\mathcal{A}}\left\{u_k(s_t^\pi,a)+\gamma\widetilde{J}_{I_{\max}}\left(f(s_t^\pi,a)\right)\right\}+\frac{2RS\gamma^{I_{\max}+1}}{1-\gamma}\\
&=u_k(s_t^\pi,a_t^\pi)+\gamma\widetilde{J}_{I_{\max}}(s_{t+1}^\pi)+\frac{2RS\gamma^{I_{\max}+1}}{1-\gamma}\\
&\le u_k(s_t^\pi,a_t^\pi)+\gamma J_k(s_{t+1}^\pi)+\frac{2RS\gamma^{I_{\max}+1}}{1-\gamma},
\end{aligned} J k ( s t π ) = a ∈ A max { u k ( s t π , a ) + γ J k ( f ( s t π , a ) ) } ≤ a ∈ A max { u k ( s t π , a ) + γ J I m a x ( f ( s t π , a ) ) } + 1 − γ 2 R S γ I m a x + 1 = u k ( s t π , a t π ) + γ J I m a x ( s t + 1 π ) + 1 − γ 2 R S γ I m a x + 1 ≤ u k ( s t π , a t π ) + γ J k ( s t + 1 π ) + 1 − γ 2 R S γ I m a x + 1 ,
where the last inequality uses J ~ I max ≤ J k \widetilde{J}_{I_{\max}}\le J_k J I m a x ≤ J k . Consequently,
0 ≤ J k ( s t π ) − u k ( s t π , a t π ) − γ J k ( s t + 1 π ) ≤ 2 R S γ I max + 1 1 − γ . (33) 0\le J_k(s_t^\pi)-u_k(s_t^\pi,a_t^\pi)-\gamma J_k(s_{t+1}^\pi)\le\frac{2RS\gamma^{I_{\max}+1}}{1-\gamma}. \tag*{(33)} 0 ≤ J k ( s t π ) − u k ( s t π , a t π ) − γ J k ( s t + 1 π ) ≤ 1 − γ 2 R S γ I m a x + 1 . (33)
The first inequality follows from Bellman optimality. Thus, approximate planning introduces only the error on the right-hand side into the Bellman equality used in the proof of Lemma 2.
We now work on the confidence event E \mathcal{E} E defined in the proof of Lemma 2. The same concentration argument applies to the trajectory of the implemented algorithm, so P ( E ) ≥ 1 − δ \mathbb{P}(\mathcal{E})\ge1-\delta P ( E ) ≥ 1 − δ . Let E k E_k E k , L k L_k L k , and c k = inf s ∈ S J k ( s ) c_k=\inf_{s\in\mathcal{S}}J_k(s) c k = inf s ∈ S J k ( s ) be as defined in that proof. By Lemma 1,
J k ( s ) − c k ∈ [ 0 , 2 R S M ] . J_k(s)-c_k\in[0,2RSM]. J k ( s ) − c k ∈ [ 0 , 2 R S M ] .
holds for every s ∈ S s\in\mathcal{S} s ∈ S . Centering Equation (33) by c k c_k c k and summing over t ∈ E k t\in E_k t ∈ E k yields
L k ( 1 − γ ) c k − ∑ t ∈ E k u k ( s t π , a t π ) ≤ − ( J k ( s τ k π ) − c k ) − ( 1 − γ ) ∑ t = τ k + 1 τ k + 1 − 1 ( J k ( s t π ) − c k ) + γ ( J k ( s τ k + 1 π ) − c k ) + 2 R S L k γ I max + 1 1 − γ L_k(1-\gamma)c_k-\sum_{t\in E_k}u_k(s_t^\pi,a_t^\pi)
\le-(J_k(s_{\tau_k}^\pi)-c_k)-(1-\gamma)\sum_{t=\tau_k+1}^{\tau_{k+1}-1}(J_k(s_t^\pi)-c_k)+\gamma(J_k(s_{\tau_{k+1}}^\pi)-c_k)+\frac{2RSL_k\gamma^{I_{\max}+1}}{1-\gamma} L k ( 1 − γ ) c k − t ∈ E k ∑ u k ( s t π , a t π ) ≤ − ( J k ( s τ k π ) − c k ) − ( 1 − γ ) t = τ k + 1 ∑ τ k + 1 − 1 ( J k ( s t π ) − c k ) + γ ( J k ( s τ k + 1 π ) − c k ) + 1 − γ 2 R S L k γ I m a x + 1
≤ 2 R S M + 2 R S L k γ I max + 1 1 − γ . \le2RSM+\frac{2RSL_k\gamma^{I_{\max}+1}}{1-\gamma}. ≤ 2 R S M + 1 − γ 2 R S L k γ I m a x + 1 .
On E \mathcal{E} E , optimism still gives u k ( s , a ) ≥ r ( s , a ) u_k(s,a) \ge r(s,a) u k ( s , a ) ≥ r ( s , a ) , and hence J k ( s ) ≥ J θ ⋆ ( s ) J_k(s) \ge J_{\theta^\star}(s) J k ( s ) ≥ J θ ⋆ ( s ) and c k ≥ c θ ⋆ c_k \ge c_{\theta^\star} c k ≥ c θ ⋆ . Therefore,
L k ( 1 − γ ) c θ ⋆ − ∑ t ∈ E k r ( s t π , a t π ) ≤ 2 R S M + 2 R S L k γ I max + 1 1 − γ + ∑ t ∈ E k [ u k ( s t π , a t π ) − r ( s t π , a t π ) ] . L_k(1-\gamma)c_{\theta^\star}-\sum_{t\in E_k}r(s_t^\pi,a_t^\pi)\le2RSM+\frac{2RSL_k\gamma^{I_{\max}+1}}{1-\gamma}+\sum_{t\in E_k}\left[u_k(s_t^\pi,a_t^\pi)-r(s_t^\pi,a_t^\pi)\right]. L k ( 1 − γ ) c θ ⋆ − t ∈ E k ∑ r ( s t π , a t π ) ≤ 2 R S M + 1 − γ 2 R S L k γ I m a x + 1 + t ∈ E k ∑ [ u k ( s t π , a t π ) − r ( s t π , a t π ) ] .
Combining this inequality with Equation (19) , summing over episodes, and recalling that ∑ k = 1 K L k = T \sum_{k=1}^{K}L_k=T ∑ k = 1 K L k = T and T ( 1 − γ ) = 1 T(1-\gamma)=1 T ( 1 − γ ) = 1 , we obtain
Reg T ( π ) ≤ 2 ( K + 2 ) R S M + ∑ t = 1 T [ u k ( t ) ( s t π , a t π ) − r ( s t π , a t π ) ] + 2 R S T γ I max + 1 1 − γ . (34) \operatorname{Reg}_T(\pi)\le2(K+2)RSM+\sum_{t=1}^{T}\left[u_{k(t)}(s_t^\pi,a_t^\pi)-r(s_t^\pi,a_t^\pi)\right]+\frac{2RST\gamma^{I_{\max}+1}}{1-\gamma}. \tag*{(34)} Reg T ( π ) ≤ 2 ( K + 2 ) R S M + t = 1 ∑ T [ u k ( t ) ( s t π , a t π ) − r ( s t π , a t π ) ] + 1 − γ 2 R S T γ I m a x + 1 . (34)
The determinant and confidence width arguments in the proof of Theorem 1 remain unchanged.
Using Γ ‾ T \overline{\Gamma}_T Γ T and β T \beta_T β T defined there, Equation (34) gives
Reg T ( π ) ≤ ( 4 Γ ‾ T + 6 ) R S M + 4 R S Γ ‾ T + 4 β T T Γ ‾ T + 2 R S T γ I max + 1 1 − γ . \operatorname{Reg}_T(\pi)\le(4\overline{\Gamma}_T+6)RSM+4RS\overline{\Gamma}_T+4\beta_T\sqrt{T\overline{\Gamma}_T}+\frac{2RST\gamma^{I_{\max}+1}}{1-\gamma}. Reg T ( π ) ≤ ( 4 Γ T + 6 ) R S M + 4 R S Γ T + 4 β T T Γ T + 1 − γ 2 R S T γ I m a x + 1 .
Substituting the definitions of Γ ‾ T \overline{\Gamma}_T Γ T and β T \beta_T β T , and using γ = 1 − 1 / T \gamma=1-1/T γ = 1 − 1/ T , proves the first bound.
Finally, if I max ≥ ⌈ 2 T log T ⌉ I_{\max}\ge\lceil2T\log T\rceil I m a x ≥ ⌈ 2 T log T ⌉ , then
2 R S T 2 ( 1 − 1 T ) I max + 1 ≤ 2 R S T 2 exp ( − I max + 1 T ) ≤ 2 R S . 2RST^2\left(1-\frac{1}{T}\right)^{I_{\max}+1}\le2RST^2\exp\left(-\frac{I_{\max}+1}{T}\right)\le2RS. 2 R S T 2 ( 1 − T 1 ) I m a x + 1 ≤ 2 R S T 2 exp ( − T I m a x + 1 ) ≤ 2 R S .
This additional term is absorbed into O ~ ( d R S ( M + 1 ) ) \widetilde{O}(dRS(M+1)) O ( d R S ( M + 1 )) . The claimed regret order therefore follows from Theorem 1. All bounds hold on E \mathcal{E} E , completing the proof. Q.E.D.
Technical Lemmas
In this appendix, we introduce the technical lemmas and their proofs used in our paper.
Lemma 3 (Likelihood confidence for Algorithm 2). Under the generalized reward model, the event
E : = ⋂ t = 0 T { L t ( θ ⋆ ) − min θ ∈ Θ L t ( θ ) ≤ v c T ( δ ) } \mathcal{E}:=\bigcap_{t=0}^{T}\left\{\mathcal{L}_t(\theta^\star)-\min_{\theta\in\Theta}\mathcal{L}_t(\theta)\le v c_T(\delta)\right\} E := t = 0 ⋂ T { L t ( θ ⋆ ) − θ ∈ Θ min L t ( θ ) ≤ v c T ( δ ) } satisfies P ( E ) ≥ 1 − δ \mathbb{P}(\mathcal{E})\ge1-\delta P ( E ) ≥ 1 − δ . On E \mathcal{E} E , the confidence sets in Equation (9) contain θ ⋆ \theta^\star θ ⋆ at every episode, and 0 ≤ u k ( s , a ) − r ( s , a ) ≤ Δ μ 0\le u_k(s,a)-r(s,a)\le\Delta_\mu 0 ≤ u k ( s , a ) − r ( s , a ) ≤ Δ μ for every k k k and ( s , a ) ∈ S × A (s,a)\in\mathcal{S}\times\mathcal{A} ( s , a ) ∈ S × A .
Proof. Firstly, we want to apply Theorem 3.1 in Lee et al. [38 ] to the normalized negative log-likelihood L t / v \mathcal{L}_t/v L t / v .
To use this theorem, we first note that the unit-norm condition is satisfied by rescaling ϕ t \phi_t ϕ t to ϕ t / R \phi_t/R ϕ t / R and θ \theta θ to R θ R\theta R θ . Hence, we only need to verify that c T ( δ ) c_T(\delta) c T ( δ ) is a sufficient threshold. The conditional variance formula and the Cauchy–Schwarz inequality give E [ ∣ y t − μ ( ϕ t ⊤ θ ⋆ ) ∣ ] ≤ v U μ \mathbb{E}\left[|y_t-\mu(\phi_t^\top\theta^\star)|\right]\le\sqrt{vU_\mu} E [ ∣ y t − μ ( ϕ t ⊤ θ ⋆ ) ∣ ] ≤ v U μ . Hence, by Markov’s inequality, with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 , ∑ t = 1 T ∣ y t − μ ( ϕ t ⊤ θ ⋆ ) ∣ ≤ 2 T v U μ δ \sum_{t=1}^{T}|y_t-\mu(\phi_t^\top\theta^\star)|\le\frac{2T\sqrt{vU_\mu}}{\delta} ∑ t = 1 T ∣ y t − μ ( ϕ t ⊤ θ ⋆ ) ∣ ≤ δ 2 T v U μ holds. On this event, for every t ≤ T t\le T t ≤ T ,
sup θ ∈ Θ ∥ ∇ ( L t / v ) ( θ ) ∥ 2 ≤ R v ( ∑ j = 1 t ∣ y j − μ ( ϕ j ⊤ θ ⋆ ) ∣ + 2 t U μ R S ) ≤ 2 R T v ( U μ R S + v U μ δ ) : = G T . \begin{aligned}
\sup_{\theta\in\Theta}\left\|\nabla(\mathcal{L}_t/v)(\theta)\right\|_2\le\frac{R}{v}\left(\sum_{j=1}^{t}|y_j-\mu(\phi_j^\top\theta^\star)|+2tU_\mu RS\right) \\
&\le\frac{2RT}{v}\left(U_\mu RS+\sqrt{\frac{vU_\mu}{\delta}}\right) := G_T.
\end{aligned} θ ∈ Θ sup ∥ ∇ ( L t / v ) ( θ ) ∥ 2 ≤ v R ( j = 1 ∑ t ∣ y j − μ ( ϕ j ⊤ θ ⋆ ) ∣ + 2 t U μ R S ) ≤ v 2 R T ( U μ R S + δ v U μ ) := G T .
Applying Lee et al. [38 ] with confidence level δ / 2 \delta/2 δ /2 and intersecting the two events yields, for all t ≤ T t \le T t ≤ T , with probability at least 1 − δ 1-\delta 1 − δ ,
L t ( θ ⋆ ) − min θ ∈ Θ L t ( θ ) v ≤ log ( 2 δ ) + d log ( max { e , 2 e S G T d } ) ≤ log ( 2 δ ) + d + d log ( 1 + 2 S G T d ) = c T ( δ ) . \begin{aligned}
\frac{\mathcal{L}_t(\theta^\star)-\min_{\theta\in\Theta}\mathcal{L}_t(\theta)}{v}
\le\log\left(\frac{2}{\delta}\right)+d\log\left(\max\left\{e,\frac{2eSG_T}{d}\right\}\right) \\
&\le\log\left(\frac{2}{\delta}\right)+d+d\log\left(1+\frac{2SG_T}{d}\right)=c_T(\delta).
\end{aligned} v L t ( θ ⋆ ) − min θ ∈ Θ L t ( θ ) ≤ log ( δ 2 ) + d log ( max { e , d 2 e S G T } ) ≤ log ( δ 2 ) + d + d log ( 1 + d 2 S G T ) = c T ( δ ) .
This proves P ( E ) ≥ 1 − δ \mathbb{P}(\mathcal{E})\ge1-\delta P ( E ) ≥ 1 − δ . Since θ ⋆ ∈ C 0 \theta^\star\in C_0 θ ⋆ ∈ C 0 , the confidence set update then gives θ ⋆ ∈ C k \theta^\star\in C_k θ ⋆ ∈ C k by induction, and thus no intersection is empty. The remaining claim follows from the definition of u k u_k u k and the reward range [ μ ( − R S ) , μ ( R S ) ] [\mu(-RS),\mu(RS)] [ μ ( − R S ) , μ ( R S )] . Q.E.D.
Lemma 4 (Prediction widths). Define β 1 2 = 8 κ v c T ( δ ) + 4 λ 1 S 2 \beta_1^2=8\kappa vc_T(\delta)+4\lambda_1S^2 β 1 2 = 8 κ v c T ( δ ) + 4 λ 1 S 2 , and β 2 2 = 8 e v c T ( δ ) + 4 λ 2 S 2 \beta_2^2=8e\,vc_T(\delta)+4\lambda_2S^2 β 2 2 = 8 e v c T ( δ ) + 4 λ 2 S 2 . Then on E \mathcal{E} E , for every round t t t in episode k k k , it holds that
ω k ( ϕ t ) ≤ 2 β 1 ∥ ϕ t ∥ V t − 1 − 1 and ω k ( ϕ t ) ≤ 2 β 2 ∥ ϕ t ∥ H t − 1 − 1 . \omega_k(\phi_t)\le\sqrt{2}\beta_1\lVert\phi_t\rVert_{V_{t-1}^{-1}}\quad\text{and}\quad\omega_k(\phi_t)\le\sqrt{2}\beta_2\lVert\phi_t\rVert_{H_{t-1}^{-1}}. ω k ( ϕ t ) ≤ 2 β 1 ∥ ϕ t ∥ V t − 1 − 1 and ω k ( ϕ t ) ≤ 2 β 2 ∥ ϕ t ∥ H t − 1 − 1 .
Proof. Fix an episode k k k and any θ , θ ′ ∈ C k \theta,\theta'\in C_k θ , θ ′ ∈ C k . By (9) and the optimality of θ ˉ k \bar{\theta}_k θ ˉ k ,
L τ k − 1 ( θ ) + L τ k − 1 ( θ ′ ) 2 − L τ k − 1 ( θ + θ ′ 2 ) ≤ v c T ( δ ) . (35) \frac{\mathcal{L}_{\tau_k-1}(\theta)+\mathcal{L}_{\tau_k-1}(\theta')}{2}
-\mathcal{L}_{\tau_k-1}\left(\frac{\theta+\theta'}{2}\right)
\le vc_T(\delta). \tag*{(35)} 2 L τ k − 1 ( θ ) + L τ k − 1 ( θ ′ ) − L τ k − 1 ( 2 θ + θ ′ ) ≤ v c T ( δ ) . (35)
For every ζ ∈ Θ \zeta\in\Theta ζ ∈ Θ , we have
∇ 2 L τ k − 1 ( ζ ) = ∑ j < τ k μ ′ ( ϕ j T ζ ) ϕ j ϕ j T ≥ 1 κ ∑ j < τ k ϕ j ϕ j T . \nabla^2\mathcal{L}_{\tau_k-1}(\zeta)
=\sum_{j<\tau_k}\mu'(\phi_j^\mathsf{T}\zeta)\phi_j\phi_j^\mathsf{T}
\ge\frac{1}{\kappa}\sum_{j<\tau_k}\phi_j\phi_j^\mathsf{T}. ∇ 2 L τ k − 1 ( ζ ) = j < τ k ∑ μ ′ ( ϕ j T ζ ) ϕ j ϕ j T ≥ κ 1 j < τ k ∑ ϕ j ϕ j T .
The midpoint inequality for a convex function with this Hessian lower bound therefore gives
1 8 κ ∑ j < τ k ( ϕ j T ( θ − θ ′ ) ) 2 ≤ v c T ( δ ) . \frac{1}{8\kappa}\sum_{j<\tau_k}\left(\phi_j^\mathsf{T}(\theta-\theta')\right)^2
\le vc_T(\delta). 8 κ 1 j < τ k ∑ ( ϕ j T ( θ − θ ′ ) ) 2 ≤ v c T ( δ ) .
Since ∥ θ − θ ′ ∥ 2 ≤ 2 S \lVert\theta-\theta'\rVert_2\le2S ∥ θ − θ ′ ∥ 2 ≤ 2 S , it holds that
∥ θ − θ ′ ∥ V k 2 ≤ 8 κ v c T ( δ ) + 4 λ 1 S 2 = β 1 2 . (36) \lVert\theta-\theta'\rVert_{V_k}^2\le8\kappa vc_T(\delta)+4\lambda_1S^2=\beta_1^2. \tag*{(36)} ∥ θ − θ ′ ∥ V k 2 ≤ 8 κ v c T ( δ ) + 4 λ 1 S 2 = β 1 2 . (36)
For the weighted matrix, integrating ∣ ( log μ ′ ) ′ ∣ ≤ ρ \lvert(\log\mu')'\rvert\le\rho ∣( log μ ′ ) ′ ∣ ≤ ρ gives
exp ( − ρ ∣ z − z ′ ∣ ) ≤ μ ′ ( z ) μ ′ ( z ′ ) ≤ exp ( ρ ∣ z − z ′ ∣ ) , (37) \exp(-\rho\lvert z-z'\rvert)\le\frac{\mu'(z)}{\mu'(z')}\le\exp(\rho\lvert z-z'\rvert), \tag*{(37)} exp ( − ρ ∣ z − z ′ ∣) ≤ μ ′ ( z ′ ) μ ′ ( z ) ≤ exp ( ρ ∣ z − z ′ ∣) , (37)
for z , z ′ ∈ [ − R S , R S ] z,z'\in[-RS,RS] z , z ′ ∈ [ − R S , R S ] . The sets C k C_k C k are convex and nested. Thus, for every j < τ k j<\tau_k j < τ k , both ζ ∈ C k \zeta\in C_k ζ ∈ C k and θ ˉ k ( j ) \bar{\theta}_{k(j)} θ ˉ k ( j ) belong to C k ( j ) C_{k(j)} C k ( j ) . Whenever w j > 0 w_j>0 w j > 0 ,
ρ ∣ ϕ j T ( ζ − θ ˉ k ( j ) ) ∣ ≤ ρ ω k ( j ) ( ϕ j ) ≤ 1. \rho\left\lvert\phi_j^\mathsf{T}(\zeta-\bar{\theta}_{k(j)})\right\rvert
\le\rho\omega_{k(j)}(\phi_j)\le1. ρ ϕ j T ( ζ − θ ˉ k ( j ) ) ≤ ρ ω k ( j ) ( ϕ j ) ≤ 1.
By Equation (37) , μ ′ ( ϕ j T ζ ) ≥ e − 1 w j \mu'(\phi_j^\mathsf{T}\zeta) \ge e^{-1}w_j μ ′ ( ϕ j T ζ ) ≥ e − 1 w j . The same inequality holds when w j = 0 w_j=0 w j = 0 . Therefore, along the segment joining θ \theta θ and θ ′ \theta' θ ′ ,
∇ 2 L τ k − 1 ( ζ ) ⪰ e − 1 ∑ j < τ k w j ϕ j ϕ j T . \nabla^2\mathcal{L}_{\tau_k-1}(\zeta) \succeq e^{-1}\sum_{j<\tau_k}w_j\phi_j\phi_j^\mathsf{T}. ∇ 2 L τ k − 1 ( ζ ) ⪰ e − 1 j < τ k ∑ w j ϕ j ϕ j T .
Applying the midpoint inequality to Equation (35) again leads to
1 8 e ∑ j < τ k w j ( ϕ j T ( θ − θ ′ ) ) 2 ≤ v c T ( δ ) , \frac{1}{8e}\sum_{j<\tau_k}w_j\left(\phi_j^\mathsf{T}(\theta-\theta')\right)^2 \le v c_T(\delta), 8 e 1 j < τ k ∑ w j ( ϕ j T ( θ − θ ′ ) ) 2 ≤ v c T ( δ ) ,
and hence
∥ θ − θ ′ ∥ H ‾ k 2 ≤ 8 e v c T ( δ ) + 4 λ 2 S 2 = β 2 2 . (38) \lVert\theta-\theta'\rVert_{\overline{H}_k}^2 \le8e\,v c_T(\delta)+4\lambda_2S^2=\beta_2^2. \tag*{(38)} ∥ θ − θ ′ ∥ H k 2 ≤ 8 e v c T ( δ ) + 4 λ 2 S 2 = β 2 2 . (38)
This bound uses the fixed historical weights, rather than weights recomputed from the current estimate.
At any round t t t in episode k k k , both determinant ratios are less than two. By Lemma 12 in Abbasi-Yadkori et al. [1 ] , it holds that
V ‾ k − 1 ⪯ 2 V t − 1 − 1 , H ‾ k − 1 ⪯ 2 H t − 1 − 1 . \overline{V}_k^{-1}\preceq2V_{t-1}^{-1},\qquad\overline{H}_k^{-1}\preceq2H_{t-1}^{-1}. V k − 1 ⪯ 2 V t − 1 − 1 , H k − 1 ⪯ 2 H t − 1 − 1 .
Combining these inequalities with Equation (36) and Equation (38) and applying the Cauchy–Schwarz inequality proves the given width bounds. Q.E.D.
Lemma 5 (Episodes and regret). Let γ = 1 − 1 / T \gamma=1-1/T γ = 1 − 1/ T . Further define that Γ 1 = d log ( 1 + T R 2 λ 1 d ) \Gamma_1=d\log\left(1+\frac{TR^2}{\lambda_1d}\right) Γ 1 = d log ( 1 + λ 1 d T R 2 ) and Γ 2 = d log ( 1 + T U μ R 2 λ 2 d ) \Gamma_2=d\log\left(1+\frac{TU_\mu R^2}{\lambda_2d}\right) Γ 2 = d log ( 1 + λ 2 d T U μ R 2 ) . Then the number of episodes K K K satisfies K ≤ 1 + ( Γ 1 + Γ 2 ) / log 2 K\le1+(\Gamma_1+\Gamma_2)/\log2 K ≤ 1 + ( Γ 1 + Γ 2 ) / log 2 . Moreover, conditioned on E \mathcal{E} E , it holds that
Reg T ≤ ( K + 2 ) M Δ μ + ∑ t = 1 T ∣ u k ( t ) ( s t , a t ) − r ( s t , a t ) ∣ . \operatorname{Reg}_T\le(K+2)M\Delta_\mu+\sum_{t=1}^{T}\left|u_{k(t)}(s_t,a_t)-r(s_t,a_t)\right|. Reg T ≤ ( K + 2 ) M Δ μ + t = 1 ∑ T u k ( t ) ( s t , a t ) − r ( s t , a t ) .
Proof. Since ∥ ϕ t ∥ 2 ≤ R \lVert\phi_t\rVert_2\le R ∥ ϕ t ∥ 2 ≤ R and 0 ≤ w t ≤ U μ 0\le w_t\le U_\mu 0 ≤ w t ≤ U μ , the determinant–trace inequality gives
log ( det V T det V 0 ) ≤ Γ 1 and log ( det H T det H 0 ) ≤ Γ 2 . \log\left(\frac{\det V_T}{\det V_0}\right)\le\Gamma_1\quad\text{and}\quad\log\left(\frac{\det H_T}{\det H_0}\right)\le\Gamma_2. log ( det V 0 det V T ) ≤ Γ 1 and log ( det H 0 det H T ) ≤ Γ 2 .
Note that both matrices are nondecreasing in the positive semidefinite order. Each episode before the last ends with at least one determinant doubling, thus
( K − 1 ) log 2 ≤ log ( det V T det V 0 ) + log ( det H T det H 0 ) ≤ Γ 1 + Γ 2 . (K-1)\log2\le\log\left(\frac{\det V_T}{\det V_0}\right)+\log\left(\frac{\det H_T}{\det H_0}\right)\le\Gamma_1+\Gamma_2. ( K − 1 ) log 2 ≤ log ( det V 0 det V T ) + log ( det H 0 det H T ) ≤ Γ 1 + Γ 2 .
For the regret bound, we use the argument in the proof of Lemma 2. Once optimism holds, that argument uses only the reward range, the finite-memory transition and exact discounted planning within each episode. Furthermore, both r r r and u k u_k u k lie in [ μ ( − R S ) , μ ( R S ) ] [\mu(-RS),\mu(RS)] [ μ ( − R S ) , μ ( R S )] . Applying the positive affine transformation
h ↦ 2 R S Δ μ ( h − μ ( R S ) + μ ( − R S ) 2 ) h\mapsto\frac{2RS}{\Delta_\mu}\left(h-\frac{\mu(RS)+\mu(-RS)}{2}\right) h ↦ Δ μ 2 R S ( h − 2 μ ( R S ) + μ ( − R S ) )
to the rewards maps this interval to [ − R S , R S ] [-RS,RS] [ − R S , R S ] and preserves the maximizing policies. Regret and reward-estimation errors are both multiplied by 2 R S / Δ μ 2RS/\Delta_\mu 2 R S / Δ μ . Dividing the bound from the proof of Lemma 2 by this factor gives the decomposition in Lemma 5. Q.E.D.
Lemma 6. For d ≥ 3 d \ge3 d ≥ 3 and T ≥ ( d − 1 ) max { M , 1 } T \ge(d-1)\max\{M,1\} T ≥ ( d − 1 ) max { M , 1 } , there exists an admissible action set such that, for every policy π \pi π ,
sup θ ∗ E [ Reg T ( π ) ] ≥ Ω ( d ( M + 1 ) Δ μ 1 + log ( 1 + ρ R S ) ) . \sup_{\theta^*}\mathbb{E}[\operatorname{Reg}_T(\pi)] \ge\Omega\left(\frac{d(M+1)\Delta_\mu}{1+\log(1+\rho RS)}\right). θ ∗ sup E [ Reg T ( π )] ≥ Ω ( 1 + log ( 1 + ρR S ) d ( M + 1 ) Δ μ ) .
Proof. Let L = R S L=RS L = R S and p = d − 1 p=d-1 p = d − 1 . We construct p p p parameter instances that share the same action set and the same known memory matrix. In instance i i i , the learner receives a larger mean reward only after reaching a memory state associated with action i i i . Until that state is reached, the observations do not distinguish instance i i i from a common null environment. We first choose the two reward levels used in this construction and relate their difference to Δ μ \Delta_\mu Δ μ . Define
Γ μ = sup 0 < h < 2 L { μ ( − L + h ) − μ ( − L + 3 h 4 ) } . \Gamma_\mu=\sup_{0<h<2L}\left\{\mu(-L+h)-\mu\left(-L+\frac{3h}{4}\right)\right\}. Γ μ = 0 < h < 2 L sup { μ ( − L + h ) − μ ( − L + 4 3 h ) } .
We will show that Γ μ \Gamma_\mu Γ μ is at least a logarithmic fraction of Δ μ \Delta_\mu Δ μ . Since μ ′ ( z ) > 0 \mu'(z)>0 μ ′ ( z ) > 0 and ∣ μ ′ ′ ( z ) ∣ ≤ ρ μ ′ ( z ) |\mu''(z)|\le\rho\mu'(z) ∣ μ ′′ ( z ) ∣ ≤ ρ μ ′ ( z ) , for any z , z ′ ∈ [ − L , L ] z,z'\in[-L,L] z , z ′ ∈ [ − L , L ] ,
∣ log μ ′ ( z ) − log μ ′ ( z ′ ) ∣ = ∣ ∫ z ′ z μ ′ ′ ( u ) μ ′ ( u ) d u ∣ ≤ ρ ∣ z − z ′ ∣ . \left|\log\mu'(z)-\log\mu'(z')\right|=\left|\int_{z'}^z\frac{\mu''(u)}{\mu'(u)}\,du\right|\le\rho|z-z'|. ∣ log μ ′ ( z ) − log μ ′ ( z ′ ) ∣ = ∫ z ′ z μ ′ ( u ) μ ′′ ( u ) d u ≤ ρ ∣ z − z ′ ∣.
Exponentiating both sides gives
e − ρ ∣ z − z ′ ∣ μ ′ ( z ′ ) ≤ μ ′ ( z ) ≤ e ρ ∣ z − z ′ ∣ μ ′ ( z ′ ) . (39) e^{-\rho|z-z'|}\mu'(z')\le\mu'(z)\le e^{\rho|z-z'|}\mu'(z'). \tag*{(39)} e − ρ ∣ z − z ′ ∣ μ ′ ( z ′ ) ≤ μ ′ ( z ) ≤ e ρ ∣ z − z ′ ∣ μ ′ ( z ′ ) . (39)
Set h j = 2 L ( 3 / 4 ) j h_j=2L(3/4)^j h j = 2 L ( 3/4 ) j for j ≥ 0 j\ge0 j ≥ 0 , and let N N N be the smallest nonnegative integer such that ρ h N ≤ 1 \rho h_N\le1 ρ h N ≤ 1 (N = 0 N=0 N = 0 when ρ = 0 \rho=0 ρ = 0 ). Since h j + 1 = 3 h j / 4 h_{j+1}=3h_j/4 h j + 1 = 3 h j /4 , the intervals [ − L + 3 h j / 4 , − L + h j ] [-L+3h_j/4,-L+h_j] [ − L + 3 h j /4 , − L + h j ] , j = 0 , … , N j=0,\ldots,N j = 0 , … , N , are adjacent and together cover [ − L + 3 h N / 4 , L ] [-L+3h_N/4,L] [ − L + 3 h N /4 , L ] . Thus,
Δ μ = ∑ j = 0 N [ μ ( − L + h j ) − μ ( − L + 3 h j 4 ) ] + μ ( − L + 3 h N 4 ) − μ ( − L ) . \Delta_\mu=\sum_{j=0}^{N}\left[\mu(-L+h_j)-\mu\left(-L+\frac{3h_j}{4}\right)\right]+\mu\left(-L+\frac{3h_N}{4}\right)-\mu(-L). Δ μ = j = 0 ∑ N [ μ ( − L + h j ) − μ ( − L + 4 3 h j ) ] + μ ( − L + 4 3 h N ) − μ ( − L ) .
It remains to bound the change in μ \mu μ over the uncovered interval [ − L , − L + 3 h N / 4 ] [-L,-L+3h_N/4] [ − L , − L + 3 h N /4 ] . For any x ∈ [ − L , − L + 3 h N / 4 ] x\in[-L,-L+3h_N/4] x ∈ [ − L , − L + 3 h N /4 ] and y ∈ [ − L + 3 h N / 4 , − L + h N ] y\in[-L+3h_N/4,-L+h_N] y ∈ [ − L + 3 h N /4 , − L + h N ] , we have ∣ x − y ∣ ≤ h N |x-y|\le h_N ∣ x − y ∣ ≤ h N . Consequently, Equation (39) and ρ h N ≤ 1 \rho h_N\le1 ρ h N ≤ 1 imply μ ′ ( x ) ≤ e μ ′ ( y ) \mu'(x)\le e\mu'(y) μ ′ ( x ) ≤ e μ ′ ( y ) . Integrating first over y y y gives
h N 4 μ ′ ( x ) ≤ e ∫ − L + 3 h N / 4 − L + h N μ ′ ( y ) d y . \frac{h_N}{4}\mu'(x)\le e\int_{-L+3h_N/4}^{-L+h_N}\mu'(y)\,dy. 4 h N μ ′ ( x ) ≤ e ∫ − L + 3 h N /4 − L + h N μ ′ ( y ) d y .
Integrating this inequality over x ∈ [ − L , − L + 3 h N / 4 ] x\in[-L,-L+3h_N/4] x ∈ [ − L , − L + 3 h N /4 ] and dividing by h N / 4 h_N/4 h N /4 , we obtain
∫ − L − L + 3 h N / 4 μ ′ ( x ) d x ≤ 3 e ∫ − L + 3 h N / 4 − L + h N μ ′ ( y ) d y . \int_{-L}^{-L+3h_N/4}\mu'(x)\,dx\le3e\int_{-L+3h_N/4}^{-L+h_N}\mu'(y)\,dy. ∫ − L − L + 3 h N /4 μ ′ ( x ) d x ≤ 3 e ∫ − L + 3 h N /4 − L + h N μ ′ ( y ) d y .
Therefore,
μ ( − L + 3 h N 4 ) − μ ( − L ) ≤ 3 e [ μ ( − L + h N ) − μ ( − L + 3 h N 4 ) ] . \mu\left(-L+\frac{3h_N}{4}\right)-\mu(-L)\leq3e\left[\mu(-L+h_N)-\mu\left(-L+\frac{3h_N}{4}\right)\right]. μ ( − L + 4 3 h N ) − μ ( − L ) ≤ 3 e [ μ ( − L + h N ) − μ ( − L + 4 3 h N ) ] .
Each term in the preceding sum is at most Γ μ \Gamma_\mu Γ μ . This also holds for the term with h 0 = 2 L h_0=2L h 0 = 2 L : although 2 L 2L 2 L is excluded from the supremum defining Γ μ \Gamma_\mu Γ μ , continuity gives
μ ( L ) − μ ( L / 2 ) = lim h → 2 L [ μ ( − L + h ) − μ ( − L + 3 h 4 ) ] ≤ Γ μ . \mu(L)-\mu(L/2)=\lim_{h\to2L}\left[\mu(-L+h)-\mu\left(-L+\frac{3h}{4}\right)\right]\leq\Gamma_\mu. μ ( L ) − μ ( L /2 ) = h → 2 L lim [ μ ( − L + h ) − μ ( − L + 4 3 h ) ] ≤ Γ μ .
It follows that Δ μ ≤ ( N + 1 + 3 e ) Γ μ \Delta_\mu\leq(N+1+3e)\Gamma_\mu Δ μ ≤ ( N + 1 + 3 e ) Γ μ . Moreover, the definition of N N N gives N = ⌈ log ( max { 1 , 2 ρ L } ) log ( 4 / 3 ) ⌉ N=\left\lceil\frac{\log(\max\{1,2\rho L\})}{\log(4/3)}\right\rceil N = ⌈ l o g ( 4/3 ) l o g ( m a x { 1 , 2 ρ L }) ⌉ .
Hence,
Γ μ ≥ Δ μ N + 1 + 3 e , N = O ( 1 + log ( 1 + ρ L ) ) . (40) \Gamma_\mu\geq\frac{\Delta_\mu}{N+1+3e},\qquad N=O(1+\log(1+\rho L)). \tag*{(40)} Γ μ ≥ N + 1 + 3 e Δ μ , N = O ( 1 + log ( 1 + ρ L )) . (40)
Since μ \mu μ is strictly increasing, Γ μ > 0 \Gamma_\mu>0 Γ μ > 0 . By the definition of the supremum, we can choose h ∈ ( 0 , 2 L ) h\in(0,2L) h ∈ ( 0 , 2 L ) such that
μ ( − L + h ) − μ ( − L + 3 h 4 ) ≥ Γ μ 2 . \mu(-L+h)-\mu\left(-L+\frac{3h}{4}\right)\geq\frac{\Gamma_\mu}{2}. μ ( − L + h ) − μ ( − L + 4 3 h ) ≥ 2 Γ μ .
We further set that z 0 = − L + 3 h 4 z_0=-L+\frac{3h}{4} z 0 = − L + 4 3 h , z 1 = − L + h z_1=-L+h z 1 = − L + h , and g = μ ( z 1 ) − μ ( z 0 ) g=\mu(z_1)-\mu(z_0) g = μ ( z 1 ) − μ ( z 0 ) . Then − L < z 0 < z 1 < L -L<z_0<z_1<L − L < z 0 < z 1 < L and g ≥ Γ μ / 2 g\geq\Gamma_\mu/2 g ≥ Γ μ /2 . We next construct parameters and matrices whose natural parameters are exactly z 0 z_0 z 0 and z 1 z_1 z 1 .
Define α = ∣ z 0 ∣ + h / 4 L \alpha=\frac{|z_0|+h/4}{L} α = L ∣ z 0 ∣ + h /4 , η = h 4 α L \eta=\sqrt{\frac{h}{4\alpha L}} η = 4 α L h , c = 1 − η 2 c=\sqrt{1-\eta^2} c = 1 − η 2 , and let ξ = 1 \xi=1 ξ = 1 if z 0 ≥ 0 z_0\geq0 z 0 ≥ 0 and ξ = − 1 \xi=-1 ξ = − 1 otherwise. To verify that these quantities are well defined, observe that
α = { 1 − h / ( 2 L ) , 0 < h ≤ 4 L / 3 , h / L − 1 , 4 L / 3 < h < 2 L . \alpha=
\begin{cases}
1-h/(2L), & 0<h\leq4L/3,\\
h/L-1, & 4L/3<h<2L.
\end{cases} α = { 1 − h / ( 2 L ) , h / L − 1 , 0 < h ≤ 4 L /3 , 4 L /3 < h < 2 L .
Thus 0 < α < 1 0<\alpha<1 0 < α < 1 . Also, η 2 = h / 4 ∣ z 0 ∣ + h / 4 ∈ ( 0 , 1 ] \eta^2=\frac{h/4}{|z_0|+h/4}\in(0,1] η 2 = ∣ z 0 ∣ + h /4 h /4 ∈ ( 0 , 1 ] and c 2 = ∣ z 0 ∣ ∣ z 0 ∣ + h / 4 c^2=\frac{|z_0|}{|z_0|+h/4} c 2 = ∣ z 0 ∣ + h /4 ∣ z 0 ∣ . In particular, c 2 + η 2 = 1 c^2+\eta^2=1 c 2 + η 2 = 1 , and
ξ α L c 2 = z 0 , α L η 2 = h 4 = z 1 − z 0 . (41) \xi\alpha Lc^2=z_0,\qquad\alpha L\eta^2=\frac{h}{4}=z_1-z_0. \tag*{(41)} ξ α L c 2 = z 0 , α L η 2 = 4 h = z 1 − z 0 . (41)
These identities allow us to use the e 0 e_0 e 0 coordinate for a common reward level and coordinate i i i for the additional reward in instance i i i . Using the standard basis e 0 , … , e p e_0,\ldots,e_p e 0 , … , e p of R d \mathbb{R}^d R d , define
θ ( i ) = S ( c e 0 + η e i ) , \theta^{(i)}=S(ce_0+\eta e_i), θ ( i ) = S ( c e 0 + η e i ) ,
for i ∈ [ p ] i\in[p] i ∈ [ p ] , and let θ ( 0 ) = S c e 0 \theta^{(0)}=Sc e_0 θ ( 0 ) = S c e 0 . All parameters are admissible, since ∥ θ ( i ) ∥ 2 ≤ S \|\theta^{(i)}\|_2\leq S ∥ θ ( i ) ∥ 2 ≤ S holds. The parameter θ ( 0 ) \theta^{(0)} θ ( 0 ) will serve as the null environment.
We first consider M ≥ 1 M\geq1 M ≥ 1 . Take
A = { a 0 , a 1 , … , a p } , a 0 = α e 0 , a i = α e 0 + 1 − α 2 e i , i ∈ [ p ] , \mathcal{A}=\{a_0,a_1,\ldots,a_p\},\qquad a_0=\alpha e_0,\qquad a_i=\alpha e_0+\sqrt{1-\alpha^2}\,e_i,\quad i\in[p], A = { a 0 , a 1 , … , a p } , a 0 = α e 0 , a i = α e 0 + 1 − α 2 e i , i ∈ [ p ] ,
and initialize the memory at s 1 = a 0 M s_1=a_0^M s 1 = a 0 M . Here, a i M a_i^M a i M denotes the memory state consisting of M M M copies of a i a_i a i . The action a 0 a_0 a 0 is distinct from every a i a_i a i , i ∈ [ p ] i\in[p] i ∈ [ p ] , because α < 1 \alpha<1 α < 1 . Define the memory matrix by
A ( s ) ⊤ = { R ( ξ c e 0 + η e j ) e 0 ⊤ , s = a j M , j ∈ [ p ] , R ξ c e 0 e 0 ⊤ , otherwise . (42) A(s)^\top=
\begin{cases}
R(\xi c e_0+\eta e_j)e_0^\top, & s=a_j^M,\ j\in[p],\\
R\xi c e_0e_0^\top, & \text{otherwise}.
\end{cases} \tag*{(42)} A ( s ) ⊤ = { R ( ξ c e 0 + η e j ) e 0 ⊤ , R ξ c e 0 e 0 ⊤ , s = a j M , j ∈ [ p ] , otherwise . (42)
Furthermore, it can be verified that ∥ a i ∥ 2 ≤ 1 \lVert a_i\rVert_2\leq1 ∥ a i ∥ 2 ≤ 1 holds for i ∈ [ p ] ∪ { 0 } i\in[p]\cup\{0\} i ∈ [ p ] ∪ { 0 } . The operator norm of a rank-one matrix u v ⊤ uv^\top u v ⊤ is ∥ u ∥ 2 ∥ v ∥ 2 \lVert u\rVert_2\lVert v\rVert_2 ∥ u ∥ 2 ∥ v ∥ 2 . Hence the two cases in Equation (42) have operator norms R R R and R c ≤ R Rc\leq R R c ≤ R , respectively. Moreover, every action in A \mathcal{A} A satisfies e 0 ⊤ a = α e_0^\top a=\alpha e 0 ⊤ a = α . If s = a j M s=a_j^M s = a j M , then
ϕ ( s , a ) ⊤ θ ( i ) = α R ( ξ c e 0 + η e j ) ⊤ S ( c e 0 + η e i ) = α L ( ξ c 2 + η 2 1 { i = j } ) = z 0 + ( z 1 − z 0 ) 1 { i = j } . \begin{aligned}
\phi(s,a)^\top\theta^{(i)}=\alpha R(\xi c e_0+\eta e_j)^\top S(ce_0+\eta e_i) \\
&=\alpha L\left(\xi c^2+\eta^2\mathbf{1}\{i=j\}\right) \\
&=z_0+(z_1-z_0)\mathbf{1}\{i=j\}.
\end{aligned} ϕ ( s , a ) ⊤ θ ( i ) = α R ( ξ c e 0 + η e j ) ⊤ S ( c e 0 + η e i ) = α L ( ξ c 2 + η 2 1 { i = j } ) = z 0 + ( z 1 − z 0 ) 1 { i = j } .
For every other state, the same inner product equals ξ α L c 2 = z 0 \xi\alpha Lc^2=z_0 ξ α L c 2 = z 0 . Therefore, for all a ∈ A a\in\mathcal{A} a ∈ A ,
ϕ ( s , a ) ⊤ θ ( i ) = { z 1 , s = a i M , z 0 , otherwise . \phi(s,a)^\top\theta^{(i)}=
\begin{cases}
z_1, & s=a_i^M,\\
z_0, & \text{otherwise}.
\end{cases} ϕ ( s , a ) ⊤ θ ( i ) = { z 1 , z 0 , s = a i M , otherwise .
Under θ ( 0 ) \theta^{(0)} θ ( 0 ) , the e i e_i e i component is absent, so the natural parameter equals z 0 z_0 z 0 at every state–action pair. Thus, the only way to distinguish instance i i i from the null environment is to reach a i M a_i^M a i M .
For the first M M M rounds, the memory still contains at least one copy of the initial action a 0 a_0 a 0 . None of the states a i M a_i^M a i M can therefore occur during these rounds. Every action sequence receives mean reward μ ( z 0 ) \mu(z_0) μ ( z 0 ) for its first M M M rounds and at most μ ( z 1 ) \mu(z_1) μ ( z 1 ) thereafter. Repeating a i a_i a i attains this upper bound in instance i i i , since its memory is a i M a_i^M a i M from round M + 1 M+1 M + 1 onward. Therefore,
OPT T ( θ ( i ) ) = M μ ( z 0 ) + ( T − M ) μ ( z 1 ) = T μ ( z 0 ) + ( T − M ) g . \operatorname{OPT}_T(\theta^{(i)})=M\mu(z_0)+(T-M)\mu(z_1)=T\mu(z_0)+(T-M)g. OPT T ( θ ( i ) ) = M μ ( z 0 ) + ( T − M ) μ ( z 1 ) = T μ ( z 0 ) + ( T − M ) g .
We now compare the learner’s trajectories across environments. Use the same internal random seed for the learner in every environment. Let U 1 , … , U T U_1,\ldots,U_T U 1 , … , U T be independent uniform random variables, independent of that seed, and generate each reward observation as
y t = F ϕ ( s t , a t ) ⊤ θ − 1 ( U t ) , y_t=F^{-1}_{\phi(s_t,a_t)^\top\theta}(U_t), y t = F ϕ ( s t , a t ) ⊤ θ − 1 ( U t ) ,
where F z F_z F z is the cumulative distribution function of the reward with natural parameter z z z , and F z − 1 F_z^{-1} F z − 1 is its inverse. This construction gives the correct reward distribution in each environment. It also ensures that whenever two environments have the same natural parameter at a given round, they receive the same observation at that round. On the trajectory under θ ( 0 ) \theta^{(0)} θ ( 0 ) , define
τ i = inf { t ∈ [ T ] : s t = a i M } , τ ‾ i = min { τ i , T + 1 } , \tau_i=\inf\{t\in[T]:s_t=a_i^M\},\qquad\overline{\tau}_i=\min\{\tau_i,T+1\}, τ i = inf { t ∈ [ T ] : s t = a i M } , τ i = min { τ i , T + 1 } ,
with inf ∅ = ∞ \inf\varnothing= \infty inf ∅ = ∞ . Until round τ i \tau_i τ i , the trajectories under θ ( i ) \theta^{(i)} θ ( i ) and θ ( 0 ) \theta^{(0)} θ ( 0 ) coincide. Indeed, they start from the same memory and use the same learner seed. If their histories agree before some round t < τ i t < \tau_i t < τ i , they choose the same action, and both natural parameters equal z 0 z_0 z 0 . Their observations are then identical under the coupling, so their histories also agree at the next round. This proves the claim by induction. Their states and selected actions still agree at round τ i \tau_i τ i , but the observations at that round may differ; no agreement is needed thereafter.
Write Reg T ( i ) ( π ) \operatorname{Reg}_T^{(i)}(\pi) Reg T ( i ) ( π ) for the regret on the trajectory under θ ( i ) \theta^{(i)} θ ( i ) . On this trajectory, the first τ ˉ i − 1 \bar{\tau}_i - 1 τ ˉ i − 1 mean rewards equal μ ( z 0 ) \mu(z_0) μ ( z 0 ) , and every remaining mean reward is at most μ ( z 1 ) \mu(z_1) μ ( z 1 ) . Thus,
∑ t = 1 T r θ ( i ) ( s t π , a t π ) ≤ ( τ ˉ i − 1 ) μ ( z 0 ) + ( T − τ ˉ i + 1 ) μ ( z 1 ) = T μ ( z 0 ) + ( T − τ ˉ i + 1 ) g . \sum_{t=1}^{T} r_{\theta^{(i)}}(s_t^{\pi},a_t^{\pi}) \leq(\bar{\tau}_i-1)\mu(z_0)+(T-\bar{\tau}_i+1)\mu(z_1)
= T\mu(z_0)+(T-\bar{\tau}_i+1)g. t = 1 ∑ T r θ ( i ) ( s t π , a t π ) ≤ ( τ ˉ i − 1 ) μ ( z 0 ) + ( T − τ ˉ i + 1 ) μ ( z 1 ) = T μ ( z 0 ) + ( T − τ ˉ i + 1 ) g .
Subtracting the preceding upper bound from OPT T ( θ ( i ) ) \operatorname{OPT}_T(\theta^{(i)}) OPT T ( θ ( i ) ) yields
Reg T ( i ) ( π ) ≥ g ( τ ˉ i − M − 1 ) . \operatorname{Reg}_T^{(i)}(\pi) \geq g(\bar{\tau}_i-M-1). Reg T ( i ) ( π ) ≥ g ( τ ˉ i − M − 1 ) .
The inequality holds for each realization of the common randomness, and hence also after taking expectations.
It remains to count how quickly the null trajectory can visit the p p p different states. First, τ i ≥ M + 1 \tau_i \geq M+1 τ i ≥ M + 1 whenever τ i \tau_i τ i is finite. Second, if τ i < τ j < ∞ \tau_i < \tau_j < \infty τ i < τ j < ∞ for i ≠ j i \ne j i = j , then τ j − τ i ≥ M \tau_j-\tau_i \geq M τ j − τ i ≥ M . Otherwise the two length-M M M action windows defining s τ i = a i M s_{\tau_i}=a_{i}^{M} s τ i = a i M and s τ j = a j M s_{\tau_j}=a_{j}^{M} s τ j = a j M would overlap, requiring an action in the overlap to equal both a i a_i a i and a j a_j a j , which is impossible. For each realization, order the truncated hitting times as τ ˉ ( 1 ) ≤ ⋯ ≤ τ ˉ ( p ) \bar{\tau}_{(1)} \leq\cdots\leq\bar{\tau}_{(p)} τ ˉ ( 1 ) ≤ ⋯ ≤ τ ˉ ( p ) . If τ ˉ ( j ) ≤ T \bar{\tau}_{(j)} \leq T τ ˉ ( j ) ≤ T , the preceding separation argument gives
τ ˉ ( j ) ≥ M + 1 + ( j − 1 ) M = j M + 1. \bar{\tau}_{(j)} \geq M+1+(j-1)M=jM+1. τ ˉ ( j ) ≥ M + 1 + ( j − 1 ) M = j M + 1.
If it equals T + 1 T+1 T + 1 , it corresponds to an unvisited state. In either case,
τ ˉ ( j ) − ( M + 1 ) ≥ min { ( j − 1 ) M , T − M } . \bar{\tau}_{(j)}-(M+1) \geq\min\{(j-1)M,T-M\}. τ ˉ ( j ) − ( M + 1 ) ≥ min {( j − 1 ) M , T − M } .
Therefore,
1 p ∑ i = 1 p E [ Reg T ( i ) ( π ) ] ≥ g p E [ ∑ j = 1 p ( τ ˉ ( j ) − M − 1 ) ] ≥ g p ∑ j = 0 p − 1 min { j M , T − M } = g p ∑ j = 0 p − 1 j M = ( p − 1 ) M g 2 . (43) \begin{aligned}
\frac{1}{p}\sum_{i=1}^{p}\mathbb{E}\left[\operatorname{Reg}_T^{(i)}(\pi)\right]
\geq\frac{g}{p}\mathbb{E}\left[\sum_{j=1}^{p}\left(\bar{\tau}_{(j)}-M-1\right)\right] \\
&\geq\frac{g}{p}\sum_{j=0}^{p-1}\min\{jM,T-M\} \\
&= \frac{g}{p}\sum_{j=0}^{p-1}jM
= \frac{(p-1)Mg}{2}. \tag*{(43)}
\end{aligned} p 1 i = 1 ∑ p E [ Reg T ( i ) ( π ) ] ≥ p g E [ j = 1 ∑ p ( τ ˉ ( j ) − M − 1 ) ] ≥ p g j = 0 ∑ p − 1 min { j M , T − M } = p g j = 0 ∑ p − 1 j M = 2 ( p − 1 ) M g . (43)
The last equality uses T ≥ p M T \ge pM T ≥ pM , which implies T − M ≥ ( p − 1 ) M T-M \ge(p-1)M T − M ≥ ( p − 1 ) M .
For M = 0 M=0 M = 0 , keep the same parameter instances but instead take A = R I d A=R I_d A = R I d , A = { a 1 , … , a p } \mathcal{A}=\{a_1,\ldots,a_p\} A = { a 1 , … , a p } , and a i = α ( ξ c e 0 + η e i ) a_i=\alpha(\xi c e_0+\eta e_i) a i = α ( ξ c e 0 + η e i ) . These actions are admissible because ∥ a i ∥ 2 = α < 1 \lVert a_i\rVert_2=\alpha<1 ∥ a i ∥ 2 = α < 1 . For every i , j ∈ [ p ] i,j\in[p] i , j ∈ [ p ] , direct calculation gives
R a j T θ ( i ) = α L ( ξ c 2 + η 2 1 { i = j } ) = z 0 + ( z 1 − z 0 ) 1 { i = j } . R a_j^{\mathsf{T}}\theta^{(i)}=\alpha L\left(\xi c^2+\eta^2\mathbf{1}\{i=j\}\right)=z_0+(z_1-z_0)\mathbf{1}\{i=j\}. R a j T θ ( i ) = α L ( ξ c 2 + η 2 1 { i = j } ) = z 0 + ( z 1 − z 0 ) 1 { i = j } .
Thus, action i i i has mean reward μ ( z 1 ) \mu(z_1) μ ( z 1 ) in instance i i i , while every other action has mean reward μ ( z 0 ) \mu(z_0) μ ( z 0 ) . Under θ ( 0 ) \theta^{(0)} θ ( 0 ) , all actions again have mean μ ( z 0 ) \mu(z_0) μ ( z 0 ) . The optimal comparator always selects action i i i , so OPT T ( θ ( i ) ) = T μ ( z 1 ) \operatorname{OPT}_T(\theta^{(i)})=T\mu(z_1) OPT T ( θ ( i ) ) = T μ ( z 1 ) .
Use the same coupling as above, and now let τ i \tau_i τ i be the first round in which action i i i is selected on the null trajectory. Until that round, the observations in instance i i i and the null environment coincide. The first τ ˉ i − 1 \bar{\tau}_i-1 τ ˉ i − 1 mean rewards in instance i i i therefore equal μ ( z 0 ) \mu(z_0) μ ( z 0 ) , which gives
Reg T ( i ) ( π ) ≥ T μ ( z 1 ) − [ ( τ ˉ i − 1 ) μ ( z 0 ) + ( T − τ ˉ i + 1 ) μ ( z 1 ) ] = g ( τ ˉ i − 1 ) . \begin{aligned}
\operatorname{Reg}^{(i)}_T(\pi)\ge T\mu(z_1)-\left[(\bar{\tau}_i-1)\mu(z_0)+(T-\bar{\tau}_i+1)\mu(z_1)\right] \\
&=g(\bar{\tau}_i-1).
\end{aligned} Reg T ( i ) ( π ) ≥ T μ ( z 1 ) − [ ( τ ˉ i − 1 ) μ ( z 0 ) + ( T − τ ˉ i + 1 ) μ ( z 1 ) ] = g ( τ ˉ i − 1 ) .
Only one action can be selected per round, so the j j j -th distinct action cannot be selected before round j j j . After ordering the truncated first-visit times, this gives τ ˉ ( j ) ≥ j \bar{\tau}_{(j)}\ge j τ ˉ ( j ) ≥ j for j ∈ [ p ] j\in[p] j ∈ [ p ] ; unvisited actions also satisfy this inequality because T + 1 > p T+1>p T + 1 > p . Consequently, for T ≥ p T\ge p T ≥ p ,
1 p ∑ i = 1 p E [ Reg T ( i ) ( π ) ] ≥ g p ∑ j = 1 p ( j − 1 ) = ( p − 1 ) g 2 . (44) \frac{1}{p}\sum_{i=1}^{p}\mathbb{E}\left[\operatorname{Reg}^{(i)}_T(\pi)\right]\ge\frac{g}{p}\sum_{j=1}^{p}(j-1)=\frac{(p-1)g}{2}. \tag*{(44)} p 1 i = 1 ∑ p E [ Reg T ( i ) ( π ) ] ≥ p g j = 1 ∑ p ( j − 1 ) = 2 ( p − 1 ) g . (44)
In both cases, the supremum over admissible parameters is at least the average over the p p p constructed instances. Thus, Equation (43) and Equation (44) give
sup θ ∗ E [ Reg T ( π ) ] ≥ ( p − 1 ) max { M , 1 } g 2 ≥ ( d − 2 ) ( M + 1 ) Γ μ 8 ≥ ( d − 2 ) ( M + 1 ) Δ μ 8 ( N + 1 + 3 e ) . \begin{aligned}
\sup_{\theta^*}\mathbb{E}\left[\operatorname{Reg}_T(\pi)\right]\ge\frac{(p-1)\max\{M,1\}g}{2} \\
&\ge\frac{(d-2)(M+1)\Gamma_\mu}{8} \\
&\ge\frac{(d-2)(M+1)\Delta_\mu}{8(N+1+3e)}.
\end{aligned} θ ∗ sup E [ Reg T ( π ) ] ≥ 2 ( p − 1 ) max { M , 1 } g ≥ 8 ( d − 2 ) ( M + 1 ) Γ μ ≥ 8 ( N + 1 + 3 e ) ( d − 2 ) ( M + 1 ) Δ μ .
Here, the second inequality uses p = d − 1 p=d-1 p = d − 1 , max { M , 1 } ≥ ( M + 1 ) / 2 \max\{M,1\}\ge(M+1)/2 max { M , 1 } ≥ ( M + 1 ) /2 , and g ≥ Γ μ / 2 g\ge\Gamma_\mu/2 g ≥ Γ μ /2 ; the last inequality follows from Equation (40) . Finally, d − 2 ≥ d / 3 d-2\ge d/3 d − 2 ≥ d /3 for d ≥ 3 d\ge3 d ≥ 3 and N = O ( 1 + log ( 1 + ρ R S ) ) N=O(1+\log(1+\rho R S)) N = O ( 1 + log ( 1 + ρR S )) , proving the claimed lower bound. Q.E.D.
Lemma 7. Let d ≥ 2 d\ge2 d ≥ 2 . If T ≥ v ( d − 1 ) 2 U μ max { 1 4 R 2 S 2 , ρ 2 } T\ge\frac{v(d-1)^2}{U_\mu}\max\left\{\frac{1}{4R^2S^2},\rho^2\right\} T ≥ U μ v ( d − 1 ) 2 max { 4 R 2 S 2 1 , ρ 2 } , there exists an admissible action set such that, with A ( s ) = R I d A(s)=R I_d A ( s ) = R I d for every s s s , every policy π \pi π satisfies
sup θ ∗ E [ Reg T ( π ) ] ≥ 3 ( d − 1 ) 16 e v U μ T . \sup_{\theta^*}\mathbb{E}\left[\operatorname{Reg}_T(\pi)\right]\ge\frac{3(d-1)}{16\sqrt{e}}\sqrt{vU_\mu T}. θ ∗ sup E [ Reg T ( π ) ] ≥ 16 e 3 ( d − 1 ) v U μ T .
Proof. Let L = R S L=RS L = R S and p = d − 1 p=d-1 p = d − 1 . We construct a family of instances whose natural parameters lie near a point where μ ′ \mu' μ ′ attains U μ U_\mu U μ . In this region, differences in the natural parameters translate into mean-reward differences proportional to U μ U_\mu U μ . At the same time, we choose the instances sufficiently close to one another so that the learner cannot reliably distinguish their optimal actions within T T T rounds. We define z ⋆ ∈ arg max ∣ z ∣ ≤ L μ ′ ( z ) z_\star\in\operatorname*{arg\,max}_{|z|\le L}\mu'(z) z ⋆ ∈ arg max ∣ z ∣ ≤ L μ ′ ( z ) , ϵ = min { L 2 , 1 4 ρ } \epsilon=\min\left\{\frac{L}{2},\frac{1}{4\rho}\right\} ϵ = min { 2 L , 4 ρ 1 } , and η = ϵ L \eta=\sqrt{\frac{\epsilon}{L}} η = L ϵ , where 1 / ( 4 ρ ) = ∞ 1/(4\rho)=\infty 1/ ( 4 ρ ) = ∞ when ρ = 0 \rho=0 ρ = 0 . Such a z ⋆ z_\star z ⋆ exists because μ ′ \mu' μ ′ is continuous on [ − L , L ] [-L,L] [ − L , L ] . Also, 0 < η 2 ≤ 1 / 2 0<\eta^2\le1/2 0 < η 2 ≤ 1/2 . Set A ( s ) = R I d A(s)=RI_d A ( s ) = R I d for every s s s , and take
A = { a u = ( 1 − η 2 , η p u ) : u ∈ { − 1 , 1 } p } . \mathcal{A}=\left\{a_u=\left(\sqrt{1-\eta^2},\frac{\eta}{\sqrt{p}}u\right):u\in\{-1,1\}^p\right\}. A = { a u = ( 1 − η 2 , p η u ) : u ∈ { − 1 , 1 } p } .
The first coordinate is shared by all actions, while the remaining p p p coordinates can independently take either sign. Every action has unit norm, since
∥ a u ∥ 2 2 = 1 − η 2 + η 2 p ∑ j = 1 p u j 2 = 1. \lVert a_u\rVert_2^2=1-\eta^2+\frac{\eta^2}{p}\sum_{j=1}^{p}u_j^2=1. ∥ a u ∥ 2 2 = 1 − η 2 + p η 2 j = 1 ∑ p u j 2 = 1.
For each ω ∈ { − 1 , 1 } p \omega\in\{-1,1\}^p ω ∈ { − 1 , 1 } p , define
θ ( ω ) = 1 R ( z ⋆ 1 − η 2 , ν ω ) , \theta^{(\omega)}=\frac{1}{R}\left(z_\star\sqrt{1-\eta^2},\nu\omega\right), θ ( ω ) = R 1 ( z ⋆ 1 − η 2 , ν ω ) ,
where ν = 1 4 v p U μ η 2 T \nu=\frac{1}{4}\sqrt{\frac{vp}{U_\mu\eta^2T}} ν = 4 1 U μ η 2 T v p . All instances use the same action set and the same known memory matrix; only the unknown sign vector ω \omega ω changes. We first verify that these parameters satisfy the norm bound. By the definition of ϵ \epsilon ϵ ,
1 16 ϵ 2 = max { 1 4 L 2 , ρ 2 } . \frac{1}{16\epsilon^2}=\max\left\{\frac{1}{4L^2},\rho^2\right\}. 16 ϵ 2 1 = max { 4 L 2 1 , ρ 2 } .
Thus, the condition on T T T is equivalent to T ≥ v p 2 / ( 16 U μ ϵ 2 ) T\ge vp^2/(16U_\mu\epsilon^2) T ≥ v p 2 / ( 16 U μ ϵ 2 ) , which gives
p ν 2 = v p 2 16 U μ η 2 T ≤ ϵ 2 η 2 = L 2 η 2 . p\nu^2=\frac{vp^2}{16U_\mu\eta^2T}\le\frac{\epsilon^2}{\eta^2}=L^2\eta^2. p ν 2 = 16 U μ η 2 T v p 2 ≤ η 2 ϵ 2 = L 2 η 2 .
Consequently,
R 2 ∥ θ ( ω ) ∥ 2 2 = z ⋆ 2 ( 1 − η 2 ) + p ν 2 ≤ L 2 ( 1 − η 2 ) + L 2 η 2 = L 2 . R^2\lVert\theta^{(\omega)}\rVert_2^2=z_\star^2(1-\eta^2)+p\nu^2\le L^2(1-\eta^2)+L^2\eta^2=L^2. R 2 ∥ θ ( ω ) ∥ 2 2 = z ⋆ 2 ( 1 − η 2 ) + p ν 2 ≤ L 2 ( 1 − η 2 ) + L 2 η 2 = L 2 .
Therefore, ∥ θ ( ω ) ∥ 2 ≤ S \lVert\theta^{(\omega)}\rVert_2\le S ∥ θ ( ω ) ∥ 2 ≤ S for every ω \omega ω . For action a u a_u a u under parameter θ ( ω ) \theta^{(\omega)} θ ( ω ) , the natural parameter is
R a u ⊤ θ ( ω ) = ( 1 − η 2 ) z ⋆ + η ν p u ⊤ ω . Ra_u^\top\theta^{(\omega)}=(1-\eta^2)z_\star+\frac{\eta\nu}{\sqrt{p}}u^\top\omega. R a u ⊤ θ ( ω ) = ( 1 − η 2 ) z ⋆ + p η ν u ⊤ ω .
The preceding norm bounds imply
∣ R a u ⊤ θ ( ω ) ∣ ≤ R ∥ a u ∥ 2 ∥ θ ( ω ) ∥ 2 ≤ L . \left|Ra_u^\top\theta^{(\omega)}\right|\le R\lVert a_u\rVert_2\lVert\theta^{(\omega)}\rVert_2\le L. R a u ⊤ θ ( ω ) ≤ R ∥ a u ∥ 2 ∥ θ ( ω ) ∥ 2 ≤ L .
Moreover, ∣ u ⊤ ω ∣ ≤ p |u^\top\omega|\le p ∣ u ⊤ ω ∣ ≤ p and ν p ≤ L η \nu\sqrt{p}\le L\eta ν p ≤ L η , so
∣ R a u ⊤ θ ( ω ) − z ⋆ ∣ ≤ η 2 ∣ z ⋆ ∣ + η ν p ≤ L η 2 + L η 2 = 2 ϵ . \left|Ra_u^\top\theta^{(\omega)}-z_\star\right|\le\eta^2|z_\star|+\eta\nu\sqrt{p}\le L\eta^2+L\eta^2=2\epsilon. R a u ⊤ θ ( ω ) − z ⋆ ≤ η 2 ∣ z ⋆ ∣ + η ν p ≤ L η 2 + L η 2 = 2 ϵ .
Hence, all the constructed natural parameters lie in [ − L , L ] [-L,L] [ − L , L ] and are within 2 ϵ 2\epsilon 2 ϵ of z ⋆ z_\star z ⋆ . Since μ ′ ( z ⋆ ) = U μ \mu'(z_\star)=U_\mu μ ′ ( z ⋆ ) = U μ , the slope comparison in Equation (39) gives
μ ′ ( z ) ≥ e − ρ ∣ z − z ⋆ ∣ μ ′ ( z ⋆ ) ≥ e − 2 ρ ϵ U μ ≥ e − 1 / 2 U μ \mu'(z) \ge e^{-\rho|z-z_\star|}\mu'(z_\star) \ge e^{-2\rho\epsilon}U_\mu\ge e^{-1/2}U_\mu μ ′ ( z ) ≥ e − ρ ∣ z − z ⋆ ∣ μ ′ ( z ⋆ ) ≥ e − 2 ρ ϵ U μ ≥ e − 1/2 U μ
whenever z ∈ [ − L , L ] z\in[-L,L] z ∈ [ − L , L ] and ∣ z − z ⋆ ∣ ≤ 2 ϵ |z-z_\star|\le2\epsilon ∣ z − z ⋆ ∣ ≤ 2 ϵ . Together with the definition of U μ U_\mu U μ , this yields
e − 1 / 2 U μ ≤ μ ′ ( z ) ≤ U μ (45) e^{-1/2}U_\mu\le\mu'(z) \le U_\mu \tag*{(45)} e − 1/2 U μ ≤ μ ′ ( z ) ≤ U μ (45)
for every constructed natural parameter and every point between any two of them. These points all lie in [ − L , L ] [-L,L] [ − L , L ] , so the argument also applies when z ⋆ z_\star z ⋆ is an endpoint.
We next bound how well the learner can distinguish two instances that differ in a single coordinate. Let P z P_z P z denote the reward distribution with natural parameter z z z . Taking the expectation of the log-likelihood ratio under P z P_z P z , and using E P z [ y ] = μ ( z ) \mathbb{E}_{P_z}[y]=\mu(z) E P z [ y ] = μ ( z ) , gives
KL ( P z , P z ′ ) = μ ( z ) ( z − z ′ ) − b ( z ) + b ( z ′ ) v . \operatorname{KL}(P_z,P_{z'})=\frac{\mu(z)(z-z')-b(z)+b(z')}{v}. KL ( P z , P z ′ ) = v μ ( z ) ( z − z ′ ) − b ( z ) + b ( z ′ ) .
Since b ′ = μ b'=\mu b ′ = μ and b ′ ′ = μ ′ b''=\mu' b ′′ = μ ′ , Taylor’s formula gives
b ( z ′ ) − b ( z ) − μ ( z ) ( z ′ − z ) = ( z ′ − z ) 2 ∫ 0 1 ( 1 − α ) μ ′ ( z + α ( z ′ − z ) ) d α ≤ U μ 2 ( z ′ − z ) 2 , b(z')-b(z)-\mu(z)(z'-z)=(z'-z)^2\int_0^1(1-\alpha)\mu'\bigl(z+\alpha(z'-z)\bigr)\,d\alpha\le\frac{U_\mu}{2}(z'-z)^2, b ( z ′ ) − b ( z ) − μ ( z ) ( z ′ − z ) = ( z ′ − z ) 2 ∫ 0 1 ( 1 − α ) μ ′ ( z + α ( z ′ − z ) ) d α ≤ 2 U μ ( z ′ − z ) 2 ,
where we use the fact that the segment between z z z and z ′ z' z ′ lies in [ − L , L ] [-L,L] [ − L , L ] . Therefore,
KL ( P z , P z ′ ) = b ( z ′ ) − b ( z ) − μ ( z ) ( z ′ − z ) v ≤ U μ 2 v ( z − z ′ ) 2 . (46) \operatorname{KL}(P_z,P_{z'})=\frac{b(z')-b(z)-\mu(z)(z'-z)}{v}\le\frac{U_\mu}{2v}(z-z')^2. \tag*{(46)} KL ( P z , P z ′ ) = v b ( z ′ ) − b ( z ) − μ ( z ) ( z ′ − z ) ≤ 2 v U μ ( z − z ′ ) 2 . (46)
Fix any policy π \pi π . Write P ω \mathbb{P}_\omega P ω for the distribution of its complete action–observation history under θ ( ω ) \theta^{(\omega)} θ ( ω ) , and let ω ( j ) \omega^{(j)} ω ( j ) be obtained by reversing coordinate j j j of ω \omega ω . For every available action a u a_u a u ,
R a u T θ ( ω ) − R a u T θ ( ω ( j ) ) = 2 η ν p ω j ω j ′ . Ra_u^\mathsf{T}\theta^{(\omega)}-Ra_u^\mathsf{T}\theta^{(\omega^{(j)})}=\frac{2\eta\nu}{\sqrt{p}}\omega_j\omega'_j. R a u T θ ( ω ) − R a u T θ ( ω ( j ) ) = p 2 η ν ω j ω j ′ .
Thus, the absolute difference between the two natural parameters is always 2 η ν / p 2\eta\nu/\sqrt{p} 2 η ν / p , regardless of the selected action. By the divergence decomposition ([36 Lemma 15.1] ) and Equation (46) ,
KL ( P ω , P ω ( j ) ) = ∑ t = 1 T E ω [ KL ( P R a u t T θ ( ω ) , P R a u t T θ ( ω ( j ) ) ) ] ≤ T U μ 2 v ( 2 η ν p ) 2 = 2 T U μ η 2 ν 2 p v = 1 8 , \operatorname{KL}(\mathbb{P}_\omega,\mathbb{P}_{\omega^{(j)}})=\sum_{t=1}^{T}\mathbb{E}_\omega\left[\operatorname{KL}\left(P_{Ra_{u_t}^{\mathsf{T}}\theta^{(\omega)}},P_{Ra_{u_t}^{\mathsf{T}}\theta^{(\omega^{(j)})}}\right)\right]\le T\frac{U_\mu}{2v}\left(\frac{2\eta\nu}{\sqrt{p}}\right)^2=\frac{2TU_\mu\eta^2\nu^2}{pv}=\frac{1}{8}, KL ( P ω , P ω ( j ) ) = t = 1 ∑ T E ω [ KL ( P R a u t T θ ( ω ) , P R a u t T θ ( ω ( j ) ) ) ] ≤ T 2 v U μ ( p 2 η ν ) 2 = p v 2 T U μ η 2 ν 2 = 8 1 ,
where a u t a_{u_t} a u t denotes the selected action at round t t t . This decomposition compares the reward distributions at the same action conditional on a given history, and therefore remains valid for an adaptive policy. Pinsker’s inequality now gives
∥ P ω − P ω ( j ) ∥ T V ≤ 1 2 ⋅ 1 8 = 1 4 . \lVert\mathbb{P}_\omega-\mathbb{P}_{\omega^{(j)}}\rVert_{\mathrm{TV}}\le\sqrt{\frac{1}{2}\cdot\frac{1}{8}}=\frac{1}{4}. ∥ P ω − P ω ( j ) ∥ TV ≤ 2 1 ⋅ 8 1 = 4 1 .
We use this bound to show that the learner selects the wrong sign with a constant probability.
Fix a round t t t and a coordinate j j j , and consider a pair ω , ω ( j ) \omega,\omega^{(j)} ω , ω ( j ) with ω j = 1 \omega_j=1 ω j = 1 . An error in coordinate j j j occurs when u t , j = − 1 u_{t,j}=-1 u t , j = − 1 under ω \omega ω , or when u t , j = 1 u_{t,j}=1 u t , j = 1 under ω ( j ) \omega^{(j)} ω ( j ) . Consequently,
P ω ( u t , j ≠ ω j ) + P ω ( j ) ( u t , j ≠ ω j ( j ) ) = P ω ( u t , j = − 1 ) + P ω ( j ) ( u t , j = 1 ) = 1 + P ω ( u t , j = − 1 ) − P ω ( j ) ( u t , j = − 1 ) \begin{aligned}
\mathbb{P}_{\omega}(u_{t,j}\ne\omega_j)+\mathbb{P}_{\omega^{(j)}}(u_{t,j}\ne\omega_j^{(j)})=\mathbb{P}_{\omega}(u_{t,j}=-1)+\mathbb{P}_{\omega^{(j)}}(u_{t,j}=1) \\
&=1+\mathbb{P}_{\omega}(u_{t,j}=-1)-\mathbb{P}_{\omega^{(j)}}(u_{t,j}=-1)
\end{aligned} P ω ( u t , j = ω j ) + P ω ( j ) ( u t , j = ω j ( j ) ) = P ω ( u t , j = − 1 ) + P ω ( j ) ( u t , j = 1 ) = 1 + P ω ( u t , j = − 1 ) − P ω ( j ) ( u t , j = − 1 )
≥ 1 − ∥ P ω − P ω ( j ) ∥ T V ≥ 3 4 . \ge1-\lVert\mathbb{P}_{\omega}-\mathbb{P}_{\omega^{(j)}}\rVert_{\mathrm{TV}}\ge\frac{3}{4}. ≥ 1 − ∥ P ω − P ω ( j ) ∥ TV ≥ 4 3 .
The inequality follows because the difference in the probability of the same event under two distributions is bounded by their total variation distance. For each coordinate j j j , the 2 p 2^p 2 p sign vectors form 2 p − 1 2^{p-1} 2 p − 1 disjoint pairs of this type. Summing over these pairs and dividing by 2 p 2^p 2 p gives that, for every round t t t and every coordinate j j j ,
1 2 p ∑ ω ∈ { − 1 , 1 } p P ω ( u t , j ≠ ω j ) ≥ 2 p − 1 2 p 3 4 = 3 8 . (47) \frac{1}{2^p}\sum_{\omega\in\{-1,1\}^p}\mathbb{P}_{\omega}(u_{t,j}\ne\omega_j)\ge\frac{2^{p-1}}{2^p}\frac{3}{4}=\frac{3}{8}. \tag*{(47)} 2 p 1 ω ∈ { − 1 , 1 } p ∑ P ω ( u t , j = ω j ) ≥ 2 p 2 p − 1 4 3 = 8 3 . (47)
Finally, we relate these coordinate errors to regret. Since μ \mu μ is increasing, an optimal action maximizes u ⊤ ω u^\top\omega u ⊤ ω , which is achieved by u = ω u=\omega u = ω . Thus, a ω a_\omega a ω is optimal under θ ( ω ) \theta^{(\omega)} θ ( ω ) . For any selected action a u t a_{u_t} a u t ,
R ( a ω − a u t ) ⊤ θ ( ω ) = η ν p ∑ j = 1 p ( 1 − u t , j ω j ) = 2 η ν p ∑ j = 1 p 1 { u t , j ≠ ω j } . R(a_\omega-a_{u_t})^\top\theta^{(\omega)}=\frac{\eta\nu}{\sqrt{p}}\sum_{j=1}^{p}(1-u_{t,j}\omega_j)=\frac{2\eta\nu}{\sqrt{p}}\sum_{j=1}^{p}\mathbf{1}\{u_{t,j}\ne\omega_j\}. R ( a ω − a u t ) ⊤ θ ( ω ) = p η ν j = 1 ∑ p ( 1 − u t , j ω j ) = p 2 η ν j = 1 ∑ p 1 { u t , j = ω j } .
In particular, each incorrect coordinate contributes 2 η ν / p 2\eta\nu/\sqrt{p} 2 η ν / p to the difference in natural parameters. The slope lower bound in Equation (45) holds throughout the interval between these parameters. Integrating μ ′ \mu' μ ′ over this interval therefore gives
μ ( R a ω ⊤ θ ( ω ) ) − μ ( R a u t ⊤ θ ( ω ) ) ≥ U μ e R ( a ω − a u t ) ⊤ θ ( ω ) = 2 U μ η ν e p ∑ j = 1 p 1 { u t , j ≠ ω j } . \mu(Ra_\omega^\top\theta^{(\omega)})-\mu(Ra_{u_t}^\top\theta^{(\omega)})\ge\frac{U_\mu}{\sqrt{e}}R(a_\omega-a_{u_t})^\top\theta^{(\omega)}=\frac{2U_\mu\eta\nu}{\sqrt{ep}}\sum_{j=1}^{p}\mathbf{1}\{u_{t,j}\ne\omega_j\}. μ ( R a ω ⊤ θ ( ω ) ) − μ ( R a u t ⊤ θ ( ω ) ) ≥ e U μ R ( a ω − a u t ) ⊤ θ ( ω ) = e p 2 U μ η ν j = 1 ∑ p 1 { u t , j = ω j } .
Because A ( s ) = R I d A(s)=RI_d A ( s ) = R I d , the memory state does not affect rewards, and the optimal comparator selects a ω a_\omega a ω in every round. Summing the preceding inequality over T T T rounds, taking expectations, and averaging over the parameter instances yields
1 2 p ∑ ω ∈ { − 1 , 1 } p E ω [ Reg T ( π ) ] ≥ 2 U μ η ν e p ∑ t = 1 T ∑ j = 1 p 1 2 p ∑ ω ∈ { − 1 , 1 } p P ω ( u t , j ≠ ω j ) ≥ 2 U μ η ν e p 3 p T 8 = 3 p 16 e v U μ T . \begin{aligned}
\frac{1}{2^p}\sum_{\omega\in\{-1,1\}^p}\mathbb{E}_{\omega}[\operatorname{Reg}_T(\pi)]\ge\frac{2U_\mu\eta\nu}{\sqrt{ep}}\sum_{t=1}^{T}\sum_{j=1}^{p}\frac{1}{2^p}\sum_{\omega\in\{-1,1\}^p}\mathbb{P}_{\omega}(u_{t,j}\ne\omega_j) \\
&\ge\frac{2U_\mu\eta\nu}{\sqrt{ep}}\frac{3pT}{8}=\frac{3p}{16\sqrt{e}}\sqrt{vU_\mu T}.
\end{aligned} 2 p 1 ω ∈ { − 1 , 1 } p ∑ E ω [ Reg T ( π )] ≥ e p 2 U μ η ν t = 1 ∑ T j = 1 ∑ p 2 p 1 ω ∈ { − 1 , 1 } p ∑ P ω ( u t , j = ω j ) ≥ e p 2 U μ η ν 8 3 pT = 16 e 3 p v U μ T .
The second inequality follows from Equation (47) , and the last equality uses the definition of ν \nu ν . Since all the constructed parameters satisfy ∥ θ ( ω ) ∥ 2 ≤ S \lVert\theta^{(\omega)}\rVert_2\le S ∥ θ ( ω ) ∥ 2 ≤ S , the supremum over admissible parameters is at least this average. Substituting p = d − 1 p=d-1 p = d − 1 proves the lemma. Q.E.D.