Feel-good Thompson sampling (FGTS) augments the posterior of vanilla Thompson sampling with an exploration term that favors reward functions with high predicted optimal values. This modification achieves minimax-optimal regret up to logarithmic factors in linear contextual bandits, but existing analyses of its two standard variants establish regret guarantees in expectation. In this paper, we derive the first high-probability regret bounds for both cumulative and current-step FGTS in contextual bandits with general realizable function approximation. Our bounds depend on the corresponding decoupling coefficients and the prior mass near the true reward function. In the d-dimensional linear setting, both variants satisfy Regret(T)=O(dTlog(2T)+Tlog(1/δ)) with probability at least 1−δ, where T is the time horizon. This bound matches the dimension and horizon dependence of algorithms based on the upper confidence bounds, up to logarithmic factors. Relative to the expected-regret guarantees, the cost of controlling the regret with high probability is confined to additive terms with at most linear dependence on log(1/δ). The proof ideas are partially developed by GPT-6 Astra under the authors' guidance.
Introduction
Contextual bandits model sequential decision making in which a learner observes a context, selects an action, and receives feedback only for that action. Function approximation allows information from observed context–action pairs to inform decisions elsewhere, making learning possible even with large or infinite context and action spaces. Two widely studied approaches to exploration are algorithms based on upper confidence bounds (UCB) and Thompson sampling (TS). UCB-based algorithms choose actions optimistically using confidence sets, while TS samples a reward function and acts greedily according to that sample.
Despite its empirical success [6], vanilla TS can explore too slowly when the posterior assigns little mass to functions that recognize the value of an unobserved action. Feel-good Thompson sampling (FGTS) addresses this difficulty by adding an exploration term to the posterior that favors functions with high predicted optimal rewards [16]. This modification achieves O(dT) expected regret in d-dimensional linear contextual bandits, matching the minimax rate up to logarithmic factors. There are two standard forms of feel-good exploration: cumulative exploration rewards optimism across past contexts, whereas current-step exploration rewards optimism at the current context ([8, 13]). Both combine this preference with a likelihood term that measures agreement with past observations.
Existing regret guarantees for these FGTS variants are established in expectation. An expected-regret bound describes average performance over the learner’s randomization and the reward noise, but does not by itself rule out substantially larger regret on individual runs. A high-probability guarantee quantifies this risk through a prescribed failure probability δ. Applying Markov’s inequality directly to expected regret gives a bound proportional to 1/δ, which can be much larger than the logarithmic confidence penalties in UCB analyses. This motivates the following question:
Is it possible to establish high-probability regret upper bounds for feel-good Thompson sampling in contextual bandits with general function approximation?
The main challenge is that the confidence-set argument used for UCB-based algorithms does not directly transfer to FGTS. In UCB analyses, one constructs a confidence set containing the true reward function with high probability. Optimistic action selection then bounds each round’s regret by the uncertainty within that set, and the analysis controls the accumulated uncertainty ([1, 15]). FGTS instead samples from a posterior whose shape depends on the prior, the observation history, and the feel-good term. Even with linear rewards, the maximum over actions in this term generally destroys a Gaussian posterior form. For a general function class, characterizing the resulting distribution and its random normalizing constant is more difficult still. Moreover, a confidence set containing the truth does not ensure that a posterior draw belongs to that set or is optimistic. Existing high-probability analyses of linear TS exploit specific concentration and optimism properties of the sampling distribution ([4, 2]); establishing analogous properties for the FGTS posterior is not immediate.
Our approach uses a simple but effective application of Markov’s inequality to exponential quantities arising from the posterior. Specifically, if a suitably normalized random quantity U satisfies E[exp(U)]≤1, then
P(U>log(1/δ))≤δ.
The substantive step is to establish such exponential estimates for the losses that remain after decoupling, while accounting for the dependence of posterior samples on past observations. This yields logarithmic confidence penalties without requiring an explicit description of a confidence region for posterior draws. The prior mass near the true reward function controls the normalizing terms that enter these estimates.
The two exploration schemes require different exponential estimates. For cumulative exploration, decoupling first produces conditional posterior averages; a multiplicative bound on successive normalizers controls their sum through a telescoping argument. For current-step exploration, decoupling holds along each realized sequence, and we control an exponential loss evaluated at the sampled function. Here the numerator and denominator of the posterior share the same past reward noise, so their ratio must be handled jointly before taking expectations. Markov’s inequality then converts these estimates into high-probability regret bounds for both variants. § 5 explains the two exponential arguments and how they strengthen the corresponding expected-regret analyses.
We establish general bounds in terms of the corresponding decoupling coefficients and the prior mass in a neighborhood of the true reward function. In the linear setting, under suitable prior coverage and parameter tuning, both variants satisfy, with probability at least 1−δ,
Regret(T)=O(dTlog(2T)+Tlog(1/δ)).
Thus FGTS retains the dimension and horizon dependence of its expected-regret guarantees, up to logarithmic factors, with an additive confidence penalty that is at most linear in log(1/δ).
Related Work
Feel-Good Thompson sampling (FGTS). Zhang [16] introduced FGTS to address insufficient exploration by vanilla Thompson sampling in the frequentist setting. By favoring functions with high predicted optimal rewards, FGTS achieves O(dT) expected regret in linear contextual bandits. Its analysis introduces a decoupling coefficient that reduces the exploration problem to controlling squared prediction errors under independent draws of functions and actions. Fan and Gu [9] developed a unified FGTS framework for variants of linear bandits, including misspecified, nonstationary, and lifelong settings. The feel-good principle has also been extended to reinforcement learning: Dann et al. [8] proposed a model-free posterior sampling method with a current-episode optimism term and an online decoupling coefficient, while Agarwal and Zhang [3] developed model-based optimistic posterior sampling using likelihood-based model estimation. For contextual dueling bandits, Li et al. (2024) designed a feel-good term suited to pairwise feedback and established nearly minimax-optimal expected regret in the linear setting. More recently, Li and Gu [13] distinguished cumulative and current-step feel-good exploration and developed a variance-aware algorithm based on the latter, obtaining expected-regret bounds that adapt to heterogeneous noise levels under general function approximation.
The existing regret analyses of these two FGTS variants focus on expectation over the algorithm’s randomization and reward observations. Our work establishes high-probability guarantees for both variants through exponential estimates adapted to their posterior structures, retaining the dimension and horizon dependence of their expected-regret guarantees up to logarithmic factors.
High-probability guarantees for linear contextual bandits. Confidence-based exploration has a long history in linear contextual bandits [5, 7, 1]. Abbasi-Yadkori et al. [1] developed self-normalized concentration inequalities for least-squares estimation and used the resulting confidence ellipsoids to analyze OFUL. Its high-probability regret bound scales as O(dT) and accommodates changing, potentially infinite action sets. For a finite set of K actions per round, Chu et al. [7] established an O(dTlog3(KTlog(T)/δ)) high-probability bound for SupLinUCB. The dependence on the finite action count distinguishes this guarantee from action-count-independent linear bandit bounds. These analyses maintain a confidence event containing the true parameter and bound regret by accumulated confidence widths. Our linear FGTS guarantees match OFUL’s dimension and horizon dependence up to logarithmic factors, although the precise dependence on δ differs. High-probability guarantees also exist for linear TS with appropriately designed sampling distributions [4, 2]; these results do not directly characterize the posterior tilted by a feel-good term.
High-probability guarantees under general function approximation. For nonlinear reward classes, confidence-based methods require complexity measures that describe how observations constrain predictions at unvisited context–action pairs. Russo and Van Roy [15] introduced the eluder dimension and developed least-squares confidence sets whose accumulated widths can be controlled by this dimension and covering numbers. Their confidence-set containment and width bounds provide a route to high-probability guarantees for optimistic exploration beyond linear models. Foster et al. [10] developed regression-oracle implementations of elimination and optimistic exploration, with guarantees under additional distributional conditions. A complementary approach is SquareCB (Foster and Rakhlin [11]), which obtains high-probability regret bounds for realizable contextual bandits with finitely many actions by reducing the problem to online regression and explicitly randomizing action selection. SquareCB does not rely on UCB action selection or posterior sampling. Our results address the posterior-sampling approach under general function approximation: decoupling controls exploration complexity, prior coverage controls statistical complexity, and exponential estimates control the regret with high probability.
Preliminaries
Contextual Bandits
We consider the contextual bandits setting (Langford and Zhang [12]). Let X be the context set, A be the action set, and T≥1 be the total number of rounds. We write [T]={1,…,T}. In round t∈[T], the learner receives a context xt∈X and a feasible action set At⊆A. The learner then selects an action at∈At and receives the randomized reward
rt=f∗(xt,at)+ϵt
where f∗:X×A→[−1,1] is the ground truth reward function, and ϵt is the zero-mean noise. The goal is to minimize the regret
Regret(T)=t=1∑T[f∗(xt,at∗)−f∗(xt,at)]
where at∗∈argmaxa∈Atf∗(xt,a).
Subgaussian noise. Let F0 be the initial information and define
Gt=σ(Ft−1,xt,At,ft,at),Ft=σ(Gt,rt).
Here ft is the function sampled by the learner, as specified below. Thus Gt is the information available after action selection and before observing rt. Following previous works on feel-good Thompson sampling (FGTS), we use the following normalization of subgaussian noise.
Assumption 3.1. For any t∈[T] and λ∈R, the noise ϵt satisfies
logE[exp(λϵt)∣Gt]≤λ2/8almost surely.
Reward function class. The learner estimates the reward function using a class F⊆{f:X×A→[−1,1]}. We assume that the function class is realizable, i.e., f∗∈F. We consider the linear function class as an example, defined as Flin={fθ:θ∈Θ} where Θ⊂B(0,1), fθ(x,a)=⟨θ,ϕ(x,a)⟩. Here B(0,1)={v∈Rd:∥v∥2≤1}, d≥1, θ is the model parameter, and ϕ:X×A→B(0,1) is a feature mapping.
Feel-Good Thompson Sampling
In vanilla Thompson sampling, the agent draws samples of the estimated reward function ft∈F from the posterior distribution pt:
pt(f)∝p0(f)⋅exp(−ηs=1∑t−1(rs−f(xs,as))2).
where p0 is a fixed prior distribution, and η>0 is a tunable hyperparameter. After drawing ft, the learner chooses
at∈argmaxa∈Atft(xt,a).
We assume that the displayed maxima are attained and use fixed measurable tie-breaking rules. The posterior formulas describe the conditional law of ft given Ft−1,xt,At; densities are taken with respect to a common dominating measure. However, vanilla Thompson sampling can suffer suboptimal regret even for linear reward functions [16]. Feel-good Thompson sampling addresses this limitation by adding an exploration term to the exponent of the posterior density, of the form
λa∈Atmaxf(xt,a),
where λ>0 is a tunable hyperparameter.
The intuition is to favor plausible reward functions that predict a high achievable reward. The squared-loss term evaluates a function only on the actions that have been selected. Consequently, functions that agree on frequently selected actions but disagree on an unexplored action can remain indistinguishable from the observed rewards. If most posterior mass underestimates that unexplored action, vanilla Thompson sampling may select it too rarely to correct this pessimism. Feel-good exploration increases the relative weight of functions under which an action offers a higher reward, encouraging the learner to test these optimistic predictions [16]. When such a function is sampled, the greedy action rule directs the learner toward its predicted best action. Subsequent observations can then penalize inaccurate predictions through the squared-loss term. Thus the posterior balances agreement with the data against the prospect of a larger reward, with λ controlling the strength of the latter preference. This bias promotes exploration while retaining random sampling over reward functions; it does not require every sampled function to be optimistic.
Li and Gu [13] identified two types of feel-good exploration terms:
Type A: Cumulative feel-good exploration [16, 3], which is the sum of maxa∈Asf(xs,a) in all previous steps:
The two variants differ in where they encourage optimism. Type A rewards functions that predict high achievable rewards across past contexts, accumulating this preference as observations arrive. Type B evaluates the exploration bonus at the current context and feasible action set, so its optimistic bias responds directly to the decision at hand. Both variants use all past reward observations to assess fit, but they combine this evidence with different measures of the potential benefit of exploration. This difference in the placement of the feel-good term leads to the distinct decoupling and concentration arguments developed below.
Main Results
Decoupling Coefficient and Prior Coverage
The analyses of Type-A (cumulative) and Type-B (current-step) FGTS use the following decoupling coefficients to characterize the complexity of the function class.
Definition 4.1. The decoupling coefficient for FGTS with the cumulative feel-good exploration term is the smallest nonnegative number dc such that, for every γ>0, context x∈X, and joint distribution P over F×A, we have
The expectations on the right use independent draws from the two marginals of P.
Definition 4.2. Let Z=(z1,…,zT), where zt=(xt,at)∈X×A. The decoupling coefficient for FGTS with the current-step feel-good exploration term is dcT(F)=supZdc(F,Z), where dc(F,Z) is the smallest nonnegative number such that, for every 0<γ≤1 and every sequence f1,…,fT∈F, we have
This is the contextual-bandit form of the online decoupling inequality in Dann et al. [8]. We abbreviate dcT(F) as dcT.
Decoupling in the linear setting. For the linear class Flin in § 3.1, the two coefficients satisfy
dc≤d,dcT=O(dlog(2T)).
The first bound follows from the covariance argument underlying the linear decoupling bound of Fan and Gu [9]; Zhang [16]. To see this for the joint distributions in Definition 4.1, fix x and let Σ=Ea∼P[ϕ(x,a)ϕ(x,a)⊤]. Cauchy–Schwarz in the geometry of Σ, using its pseudoinverse if it is singular, gives
Here the dimension factor comes from Ea[ϕ(x,a)⊤Σ†ϕ(x,a)]=rank(Σ)≤d. The second bound follows from the elliptical-potential argument used for the online decoupling coefficient in Dann et al. [8]. In the present normalization, one can use the regularized design matrix Vt=T−1I+∑s<tϕ(zs)ϕ(zs)⊤: the accumulated clipped leverage scores min{1,ϕ(zt)⊤Vt−1ϕ(zt)} are O(dlog(2T)). Together with ∥θt−θ∗∥2≤2 and γ≤1, this yields the stated bound uniformly over the sequences in Definition 4.2. Thus both coefficients scale linearly with dimension, up to a logarithmic factor, without an explicit dependence on the number of actions.
Expectation versus sequential control.Definition 4.1 addresses the dependence between a sampled function and the action selected from it. Its left-hand side averages their coupled prediction error, while its right-hand side evaluates squared error under independent draws from the same marginals. This is a statement about expectations at a single context. In the regret analysis, it is applied conditionally on the history, so an additional concentration argument is needed to pass from conditional expected regret to realized regret. Definition 4.2, in contrast, holds for every realized sequence of functions and context–action pairs, without averaging over posterior samples. It compares the current prediction error of ft with the errors of that same function on all previously visited pairs. Intuitively, a function that fits the past can make a large new error only along directions that have not been sufficiently explored; the design matrix tracks how these directions are resolved over time.
These structures align with the two exploration terms. Type A accumulates optimism across rounds, and its posterior update supports a telescoping argument for conditional posterior averages. Type B favors optimism at the current context, while its likelihood tests the current sampled function against the entire observation history. Its decoupling inequality therefore controls a sequence of sampled functions directly. The logarithmic horizon dependence in the linear Type-B bound reflects this sequential accumulation of information; Type A instead pays a dimension-dependent cost for decoupling one joint distribution at a time.
Prior coverage. Additionally, for any h>0, let Fh be a neighborhood of f∗ defined as
We write p0−1(Fh)=1/p0(Fh) and use the quantity logp0−1(Fh) in the regret bounds, which characterizes the coverage of the neighborhood Fh by the prior distribution.
Prior coverage in the linear setting. This quantity also has a dimension-dependent bound under a suitable prior, as in the parametric prior-mass analyses of Zhang [16]; Dann et al. [8]. For a concrete choice, take Θ=B(0,1) and let p0 be induced by the uniform distribution on this ball. Since ∥ϕ(x,a)∥2≤1, we have ∥fθ−fθ∗∥∞≤∥θ−θ∗∥2. For 0<h≤1, the ball
B((1−h/2)θ∗,h/2)⊆B(0,1)∩B(θ∗,h)
therefore consists entirely of parameters whose functions belong to Fh. Comparing volumes gives
p0(Fh)≥(h/2)d,logp0−1(Fh)≤dlog(2/h).
In particular, at h=1/T we obtain logp0−1(F1/T)≤DT:=dlog(2T)=O(d). More generally, the same order holds whenever the parameter prior assigns at least (ch)d mass to B(θ∗,h)∩Θ, for a fixed c>0.
Cumulative Feel-Good Exploration
Theorem 4.3. Under Assumption 3.1, suppose that 0<dc<∞ and 0<p0(F1/T)<1. For δ∈(0,1/3), choose the hyperparameters of FGTS with the cumulative feel-good exploration term as
η=0.2,λ=5T⋅dclogp0−1(F1/T).
Then with probability at least 1−3δ, the regret satisfies
Implications for linear bandits. Consider the uniform-prior linear setting of § 4.1. The proof of Theorem 4.3 allows us to use the deterministic upper bounds d and DT=dlog(2T) for the decoupling coefficient and log inverse prior mass before optimizing λ. Taking η=0.2 and λ=DT/(5Td), and applying the proof with failure parameter δ/3, gives, for any δ∈(0,1), with probability at least 1−δ,
where O suppresses logarithmic factors in T and 1/δ. Using upper bounds for tuning avoids requiring a lower bound on logp0−1(F1/T). The leading term combines a dimension factor from decoupling with another from prior coverage. The result retains the dimension and horizon dependence of the expected-regret guarantee for linear FGTS in Zhang [16], while controlling the realized regret with only logarithmic dependence on the inverse failure probability.
Current-Step Feel-Good Exploration
Theorem 4.4. Under Assumption 3.1, suppose that dcT>0 and 0<p0(F1/T)<1. For δ∈(0,1), choose the hyperparameters of FGTS with the current-step feel-good exploration term as
η=0.5,λ=max{41,TdcT−1log(p0−1(F1/T))}.
Then with probability at least 1−δ the regret satisfies
Implications for linear bandits. For the same linear class and uniform prior, let dCT=Cdlog(2T) be the upper bound from § 4.1, where C is a sufficiently large universal constant, and let DT=dlog(2T). Using these bounds in the proof of Theorem 4.4, with η=0.5 and λ=max{1/4,TDT/dCT}, gives, with probability at least 1−δ,
Regret(T)=O(dTlog(2T)+Tlog(T/δ))=O(dT).
Thus current-step exploration also achieves the same dimension and horizon dependence as the expected-regret linear specialization of Dann et al. [8], now with a high-probability guarantee. Relative to Type A, the additional logarithmic factor in the decoupling coefficient affects only logarithmic factors in the regret. Although the Type-B decoupling step is deterministic, the posterior samples and reward observations remain random, so concentration is still needed to control the remaining loss terms. Both exploration schemes consequently attain O(dT) regret with high probability through different forms of decoupling.
Highlights of Proof
An expected-regret bound gives a tail bound through Markov’s inequality at the cost of a factor 1/δ. To obtain logarithmic dependence on 1/δ, we establish exponential bounds for the losses left by decoupling. The quantities requiring control differ between the two algorithms: Type A produces a random sum of conditional posterior averages, whereas Type B produces losses evaluated at the sampled functions. We write
The greedy action rule gives the regret identity f∗(xt,at∗)−f∗(xt,at)=ft(xt,at)−f∗(xt,at)−FGt(ft).
Type A: exponential control of conditional losses
Although Definition 4.1 is stated in expectation, it holds for every joint law of a function and an action. We can therefore apply it conditionally on Ft−1,xt,At. For γ>0, let
bt=E[Ef∼ptA[γLSt(f)−FGt(f)]Ft−1].
where f is drawn from the posterior independently of at under this conditioning. Combining the conditional decoupling inequality with Azuma–Hoeffding’s inequality gives, with probability at least 1−δ,
Regret(T)≤4γT⋅dc+t=1∑Tbt+32Tlog(1/δ).(1)
The sum ∑tbt is still random. The expected-regret analysis reviewed in Li and Gu [13] controls the loss by telescoping expected log normalizers. To obtain a tail bound for this sum, we instead prove a conditional multiplicative bound for the normalizer itself.
Let ZtA be the normalizing integral of the Type-A posterior after subtracting its exponent at f∗, as defined in (A.2). Lemma A.1 establishes the following estimate for 0<η≤0.2:
where the second inequality uses γλ≤η/4. For the first inequality, we average the current reward noise using Assumption 3.1, then apply the bounded-loss argument from the expected-regret analysis. This bounds the squared-loss exponential in terms of its mean; the bounded feel-good term contributes 4λ2. Retaining the conditioning on the history places exactly the random bt from (5.1) in the exponent.
The factor e−λbt cancels round t’s contribution to eλ∑s=1tbs. Since bt is Ft−1-measurable, multiplying the one-step estimate by ZtAexp(λ∑s=1tbs−4tλ2) and iterating from Z1A=1 gives
E[ZT+1Aexp(λt=1∑Tbt−4Tλ2)]≤1.
Markov’s inequality therefore yields, with probability at least 1−δ,
t=1∑Tbt≤λ−logZT+1A+log(1/δ)+4Tλ.
Lemma A.2 bounds −logZT+1A using the prior mass of Fh. Combining that estimate with the preceding Markov bound and (5.1), with h=1/T and γ=η/(4λ), gives Theorem 4.3.
Type B: controlling the noise in the posterior ratio
For Type B, Definition 4.2 gives the pathwise reduction
where 0<γ≤1. The expected-regret argument in Li and Gu [13] uses fixed-function exponential estimates and KL-regularized optimality to bound a loss averaged over the posterior and the history. Here we bound EeλQt(ft), keeping the sampled function inside the exponential. Since ft depends on past rewards, a fixed-function noise bound cannot be applied directly at ft.
Substituting the posterior density in (A.3) into EeλQt(ft) cancels the current feel-good factor and leaves integration over fixed functions under p0. The remaining numerator and denominator ZtB contain the same past noises. To use the prior mass near f∗, we bound their ratio before taking expectation. Fix h>0 with p0(Fh)>0, let p0h be the prior conditioned on Fh, and write fˉh(x,a)=Ef∼p0hf(x,a).
Restricting the normalizer to Fh and applying Jensen’s inequality gives a pathwise bound on $1/Z_t^B(LemmaA.3).Theexponentinthisboundcontainsthenoiseterm-2\eta\sum_{s<t}\epsilon_s(\bar{f}_h(x_s,a_s)f⋆(xs,as)). Combining it with the numerator changes the noise coefficient from f−f⋆ to f−fˉh. With zs=(xs,as), the resulting estimate is
Since p0h is supported on Fh, we have ∣fˉh(zs)−f⋆(zs)∣≤h. For fixed f, the new noise coefficient is Gs-measurable and, by this bound, satisfies (f(zs)−fˉh(zs))2≤2LSs(f)+2h2. By Assumption 3.1,
The negative squared-loss term therefore absorbs the noise contribution when γλ≤η−η2. Iterating this estimate and integrating over the prior gives, for 0<η≤0.5,
EeλQt(ft)≤p0(Fh)eλh+0.75(t−1)h2.
Markov’s inequality with failure probability δ/T and a union bound imply, simultaneously for t∈[T],
Qt(ft)≤h+λ0.75(t−1)h2+logp0−1(Fh)+log(T/δ).
with probability at least 1−δ. Summation in the regret inequality, with h=1/T and γ=1/(4λ), gives Theorem 4.4.
Conclusion
We established high-probability regret bounds for feel-good Thompson sampling in contextual bandits with general realizable function approximation. Our results cover both cumulative and current-step feel-good exploration, with bounds governed by the corresponding decoupling coefficient and the prior mass near the true reward function. In the linear setting, suitable prior coverage and parameter tuning yield O~(dT) regret with high probability for both variants, preserving the dimension and horizon dependence of their expected-regret guarantees while introducing only logarithmic dependence on the inverse failure probability.
The analyses distinguish the probabilistic structures of the two exploration schemes. For cumulative exploration, we control conditional posterior averages through an exponential estimate that telescopes across rounds. For current-step exploration, we combine a pathwise decoupling inequality with exponential control of losses at the sampled functions, accounting for their dependence on past reward noise. These arguments show how the structural complexity measures used in expected-regret analyses can also support high-probability guarantees. Extending the guarantees to reinforcement learning and the variance-dependent setting is a natural direction for future work.
Acknowledgement
The proof ideas are partially developed by GPT-6 Astra under the authors’ guidance under stronger assumptions. The authors simplified the arguments and re-organized the proof, verified the proof details, prepared the draft, and take full responsibility for its contents.
Proof of Main Results
We use LSt, FGt, and p0h from § 5, and the filtrations from § 3.1. We can then rewrite ptA and ptB with LSt and FGt. Since rs=f∗(xs,as)+ϵs, we have
Proof of Theorem 4.3. In order to use the decoupling coefficient which is related to the expectation with respect to the joint distribution, we firstly perform the following decomposition of the regret:
By Azuma-Hoeffding’s inequality, we have with probability at least 1−δ,
I1≤32Tlog(1/δ).
For the term I2, apply Definition 4.1 conditionally on Ft−1,xt,At and then average over the current context and action set. The auxiliary draw f~∼ptA is independent of at given this information. This gives
where the last equality first conditions on Ft−1,xt,At and then substitutes the posterior density in (A.3). A key challenge is that the past noises ϵ1,…,ϵt−1 appear in both the numerator and the denominator ZtB. To solve this problem, we use the following lemma that provides a lower bound of ZtB:
Lemma A.3. For any h>0 with p0(Fh)>0, the Type-B normalizer satisfies
Lemma A.3 converts ZtB, which is the expectation of the exponential, into the exponential of the expectation, thus enabling the joint analysis of the past noises ϵ1,…,ϵt−1 in the numerator and the denominator. We thus have
Then Et holds with probability at least 1−δ/T. Taking the union bound, we have the good event E:=⋂t∈[T]Et holds with probability at least 1−δ. Under the good event E, we have
The choice of λ ensures that 0<γ≤1 and γλ=η−η2. Since λ≥1/4, the preceding bound gives
Regret(T)≤dcTλ+3+λT[logp0−1(F1/T)+log(T/δ)].
To verify the final substitution, write D=logp0−1(F1/T) and r=TD/dcT within this proof. If r≥1/4, substitute λ=r. If r<1/4 and T≥2, Definition 4.2 gives dcT≤8T, since ft(zt)−f∗(zt)≤2. Consequently, the function
where the first inequality holds due to Assumption 3.1, and the second inequality holds because η≤0.2. To bound this exponential moment in terms of the mean loss and mean feel-good term, we use the Cauchy-Schwarz inequality:
where the second inequality holds because η≤0.2 and LSt(f)≤4, and the last inequality holds because 1+z≤ez. For the term related to FGt(f), by Hoeffding’s lemma, since FGt(f)∈[−2,2], we have
where the first inequality holds due to Assumption 3.1, the second inequality holds from (u+v)2≤2u2+2v2, and the last inequality holds because Ef∼p0h[f∗(xk,ak)−f(xk,ak)]≤h, η+η2≤0.75, and γλ≤η−η2. Iteratively using the argument above, we have
Eexp(s=1∑t−1ws)≤exp(0.75(t−1)h2).
Auxiliary Lemmas
Lemma C.1. (Donsker–Varadhan duality, see e.g., Proposition 7.16 in Zhang [17]). Let (X,F,P0) be a probability space and U(x) be a bounded measurable function. Then for any distribution P on (X,F), we have
Ex∼P[U(x)]+KL(P∥P0)≥−logEx∼P0exp(−U(x)),
and equality holds for the distribution with density exp(−U)/EP0exp(−U) with respect to P0.
Lemma C.2. Let {Ft} and {Gt} be filtrations such that Ft−1⊆Gt⊆Ft. Let ϵt be Ft-measurable and satisfy
logE[exp(λϵt)∣Gt]≤λ2/8for every λ∈R.
Let μt be Gt-measurable with ∣μt∣≤C almost surely, where C>0. For every M≥0, we have
P{t=1∑Tμtϵt≥M}≤exp(−C2T2M2).
Therefore, for any δ∈(0,1), with probability at least 1−δ, we have
t=1∑Tμtϵt≤C2Tlog(1/δ).
Proof of Lemma C.2. For M>0 and γ>0, Markov’s inequality gives
where the second inequality holds by the conditional moment bound given GT, the third inequality holds because ∣μt∣≤C almost surely, and the last inequality holds by recursively applying the inequalities. Taking γ=4M/(C2T) gives
P{t=1∑Tμtϵt≥M}≤exp(−C2T2M2).
For M=0, the asserted bound is 1.
References
[1]Abbasi-Yadkori, Y., Pál, D. and Szepesvári, C. (2011). Improved algorithms for linear
stochastic bandits. Advances in neural information processing systems 24.
[2]Abeille, M. and Lazaric, A. (2017). Linear thompson sampling revisited. In Artificial Intelligence
and Statistics. PMLR.DOI
[3]Agarwal, A. and Zhang, T. (2022). Model-based rl with optimistic posterior sampling: Structural
conditions and sample complexity. Advances in Neural Information Processing Systems 35 35284–
35297.
[4]Agrawal, S. and Goyal, N. (2013). Thompson sampling for contextual bandits with linear
payoffs. In International conference on machine learning. PMLR.arxiv.org/abs/1209.3352
[5]Auer, P. (2002). Using confidence bounds for exploitation-exploration trade-offs. Journal of
Machine Learning Research 3 397–422.DOI
[6]Chapelle, O. and Li, L. (2011). An empirical evaluation of thompson sampling. Advances in
neural information processing systems 24.
[7]Chu, W., Li, L., Reyzin, L. and Schapire, R. (2011). Contextual bandits with linear payoff
functions. In Proceedings of the fourteenth international conference on artificial intelligence and
statistics. JMLR Workshop and Conference Proceedings.
[8]Dann, C., Mohri, M., Zhang, T. and Zimmert, J. (2021). A provably efficient model-free
posterior sampling method for episodic reinforcement learning. Advances in Neural Information
Processing Systems 34 12040–12051.arxiv.org/abs/2208.10904
[9]Fan, Z. and Gu, Q. (2023). The power of feel-good thompson sampling: A unified framework for
linear bandits .
[10]Foster, D., Agarwal, A., Dudík, M., Luo, H. and Schapire, R. (2018). Practical contextual
bandits with regression oracles. In Proceedings of the 35th International Conference on Machine
Learning, vol. 80. PMLR.arxiv.org/abs/1803.01088
[11]Foster, D. and Rakhlin, A. (2020). Beyond UCB: Optimal and efficient contextual bandits with
regression oracles. In Proceedings of the 37th International Conference on Machine Learning, vol.
119. PMLR.arxiv.org/abs/2002.04926
[12]Langford, J. and Zhang, T. (2007). The epoch-greedy algorithm for multi-armed bandits with
side information. Advances in neural information processing systems 20.
[13]Li, X. and Gu, Q. (2025). Variance-aware feel-good thompson sampling for contextual bandits.
Advances in Neural Information Processing Systems 38 23081–23106.arxiv.org/abs/2511.02123
[15]Russo, D. and Van Roy, B. (2013). Eluder dimension and the sample complexity of optimistic
exploration. Advances in Neural Information Processing Systems 26.
[16]ZHANG, T. (2022). Feel-good thompson sampling for contextual bandits and reinforcement learning. SIAM Journal on Mathematics of Data Science 4 834–857.arxiv.org/abs/2110.00871
[17]ZHANG, T. (2023). Mathematical analysis of machine learning algorithms. Cambridge University Press.DOI