Manuscript Offprint
arXiv:2610.21908The Tilted Sampling Problem: Optimism, Posterior Sampling, and Logarithmic Regret
Abstract
Many modern learning systems are used not to select a single best action, but to sample diverse high-quality outputs. Examples include entropy-regularized reinforcement learning, RLHF, and reward-guided generative modeling. Motivated by these settings, we study tilted sampling: an online learning problem in which the goal is to sample from the Gibbs distribution induced by an unknown reward function. We define sampling regret as the temperature-normalized cumulative KL divergence between the learner's distribution and the Gibbs target, corresponding to the suboptimality gap in entropy-regularized reward maximization. Our framework generalizes recent sampling-based and KL-regularized formulations in bandits and reinforcement learning. Our main contribution is a general regret framework that captures the different uncertainty structure of tilted sampling and classical regret minimization. While standard regret scales as due to first-order uncertainty, sampling regret is governed by squared confidence widths, yielding logarithmic-in-T regret in standard settings at fixed temperature. We develop sampling analogues of UCB and Thompson sampling (UCS and TS ) and provide unified regret decompositions that explain and extend recent logarithmic guarantees, including the first Bayesian sampling-regret decomposition based on new bounds for posterior-random Gibbs distributions. Our results show that learning to sample from a soft-optimal distribution is statistically distinct from learning to identify a hard optimum.

(a) Bound vs. horizon T.
(b) Bound vs. inverse temperature.
Figure 1: Schematic sampling-regret upper bound illustrating the complementary linear- and squared-width bounds for UCS and TS in Theorems 3 and 4. (a) For fixed and , the square-root branch is active when , and the logarithmic branch when . The large-horizon crossover satisfies , with as ; beyond it the bound follows . (b) For each the bound is linear in up to the kink and saturates at beyond it.
1 INTRODUCTION
Classical bandit and reinforcement learning problems are formulated around optimization: the goal is to identify and repeatedly select actions with maximal reward [28, 3, 51]. Given an unknown reward function , performance is measured by regret relative to a maximizer . This formulation is appropriate when the desired behavior is a single best decision.
Many modern learning systems, however, are not used in this way. Large language models generate text by sampling [37], diffusion models generate images by sampling [22], and stochastic policies in reinforcement learning sample actions [20]. In these settings, the output of the system is inherently distributional. The goal is often not to collapse onto one maximizer, but to bias a base distribution toward high-reward outputs while preserving diversity, entropy, or proximity to a reference model.
This structure appears explicitly in RLHF and preference-based fine-tuning, where the idealized KL-regularized policy has the form
It also appears in entropy-regularized reinforcement learning and maximum-entropy control [67, 19], as well as reward-guided generative modeling [15]. Abstractly, these settings lead to the Gibbs distribution
where is a base measure on the available action set and is an inverse-temperature parameter.
This paper studies the online learning problem induced by this target. The learner interacts with the environment and aims to sample from the unknown Gibbs distribution rather than identify a single optimal action. We call this problem tilted sampling.
Our work builds directly on the multi-armed sampling framework of Pedramfar and Ravanbakhsh [39], which introduced the finite-armed analogue of this problem and showed that sampling can require substantially less explicit exploration than optimization. We generalize this framework beyond finite arms to general action spaces, time-varying feasible sets, function classes, and Bayesian posterior sampling.
Sampling regret. We measure performance via the cumulative KL divergence between the learner's sampling distribution and the Gibbs target:
This objective coincides with the suboptimality gap of entropy-regularized reward maximization [67, 19].
A different uncertainty structure. The main conceptual message is that learning to sample is statistically distinct from learning to optimize. Classical regret is driven by first-order uncertainty and scales as in standard models [3]. In contrast, sampling regret can be controlled by second-order uncertainty through squared confidence widths. This leads to logarithmic-in-T regret in many settings at fixed temperature. Such logarithmic guarantees have been established in KL-regularized bandits [66] and greedy RLHF analyses [58]. Our contribution is a unified framework of confidence-width decompositions that explains and extends these results across sampling algorithms and function classes.
Bayesian regret. Beyond frequentist algorithms, we also introduce Bayesian sampling regret. This leads to TS , a Thompson-style sampling algorithm. Unlike classical Thompson sampling [47], this requires controlling KL divergence between random Gibbs distributions. Its analysis requires new KL-divergence bounds for posterior-random Gibbs distributions and provides the first Bayesian regret decomposition for sampling objectives.
Algorithms and contributions. Our framework develops the tilted-sampling counterpart of the confidence-width approach to learning to optimize under bandit feedback [46].
We provide the first general regret framework for learning soft-optimal (Gibbs) distributions under bandit feedback, unifying optimistic and greedy analyses and establishing a Bayesian sampling-regret decomposition.
Our contributions are:
- A general framework for tilted sampling beyond the finite-armed setting to time-varying action sets, function classes, and the Bayesian setting.
• We introduce Sampling With Confidence (SWC) framework, Upper Confidence Sampling (UCS), and Thompson Sampling for Sampling (TS ).
• We show that the UCS and SWC regret decompositions generalize, simplify, and unify prior logarithmic-regret analyses for optimistic and greedy sampling methods through model-independent confidence-width bounds.
• We give a novel Bayesian sampling-regret decomposition for TS , based on new KL-divergence bounds for posterior-sampled Gibbs distributions.
- Our regret decompositions extend to both directions of KL, providing a unified analysis of forward and reverse KL-divergences. In particular, the UCS and TS analyses yield simultaneous control of both quantities with identical bounds under the same confidence event and no exponential dependence on .
• We show that second-order uncertainty control yields logarithmic-in-time sampling regret in standard models for fixed temperature.
• We provide a black-box transfer of confidence-set and width-process analyses from UCB and Thompson sampling to tilted sampling under direct noisy reward feedback, yielding guarantees for the corresponding UCS and TS procedures.
selects an action , and receives , where is unknown, and . We assume for all and . In the Bayesian setting, we assume that is drawn from a prior distribution over the parameter space.
Let denote the optimal action. Throughout, all argmax operations are assumed to use a fixed measurable tie-breaking rule. The regret and Bayesian regret are
where the expectation in BayesRegret(T) is taken over the prior on as well as the randomness of the algorithm and observations.
Confidence sets. Let be confidence sets constructed from the revealed information. Intuitively, collects functions that are statistically plausible given the observed data and the sequence of available action sets. In many models, these arise from concentration inequalities or posterior credible regions (e.g., least-squares ellipsoids in linear models).
At each time step , we define upper and lower confidence bounds only over the realized action set . More precisely, for , let , , and .
Confidence sets play a central role in both algorithm design and analysis. For UCB, the upper envelope induces optimism, encouraging exploration of actions with high uncertainty. For TS, while the algorithm itself does not explicitly use , these sets provide a convenient analytical tool to control regret. In particular, the width quantifies the uncertainty about the reward of action , and bounding the cumulative width along the trajectory will be the key step in our regret analysis.
Algorithms. We consider two canonical approaches to balancing exploration and exploitation. The Upper Confidence Bound (UCB) algorithm selects actions optimistically according to the confidence sets:
This strategy favors actions with high upper confidence bounds, thereby directing exploration toward actions whose rewards are uncertain. The Thompson Sampling (TS) algorithm instead randomizes according to the posterior distribution. At each round, it samples and selects
UCB explores via optimism, while TS explores via randomized models sampled from the current posterior.
Regret Decomposition Although these algorithms are operationally different—one deterministic and optimistic, the other randomized and Bayesian—their regret can be analyzed through a common lens. In particular, both admit bounds in terms of the confidence widths , which capture the uncertainty encountered along the realized sequence of actions. The following result is classical. [46] We include it here for completeness.
Theorem 1. Let denote the event , with the confidence sets and history generated by the algorithm under consideration. For UCB with fixed unknown , let and denote expectation and probability over observation noise and environmental or algorithmic randomness. Then
For Thompson sampling with , let and denote expectation and probability under the joint law of the prior draw, observations, environment, and posterior-sampling algorithm. Then
See Appendix B for the proof.
3 TILTED SAMPLING
We now introduce a distributional analogue of bandit optimization: the learner aims to match the Gibbs distribution induced by the unknown reward function. Measuring regret by KL divergence leads to bounds in terms of squared confidence widths. When these widths accumulate logarithmically, the resulting sampling-regret guarantees are logarithmic in T for fixed temperature.
3.1 Sampling Objective
Because the available action set may vary with time, the relevant Gibbs distribution is defined on the currently revealed set rather than on the ambient action space . Fix , and let be a base probability measure on . For each round , let denote the conditional measure
whenever . For any measurable function , define the Gibbs distribution on
where . Equivalently, is the Gibbs tilt of the conditioned base measure .
The target distribution which we wish to learn is , which concentrates mass on high-reward actions while preserving exploration through temperature .
Remark 1. To ensure that is well defined, it suffices that each be measurable and satisfy almost surely. We assume throughout that these and any additional regularity conditions needed to define the Gibbs measures hold. If is finite or countable and has full support, these conditions are automatic.
3.2 Interaction Model
At each round , the learner selects a function based on the history and the revealed action set , and samples
This contrasts with the standard bandit setting, where a single action is selected deterministically or via TS. Here, the learner controls a full distribution over actions.
Note that, while the goal is to match the target distribution induced by , the learner may choose to act based on some . However, as we will see in Upper Confidence Sampling (UCS) algorithm below, even if is not in , it is beneficial for it to be close to functions in the confidence set so that the action may provide more valuable information.
3.3 Sampling Regret
We measure performance via the divergence between the induced sampling distribution and the target distribution. We define the (cumulative) sampling regret
| Bandit Optimization | Tilted Sampling |
|---|---|
| Non-smooth | Smooth (KL) |
| First-order | Second-order |
| UCB / TS | UCS / TS |
Table 1: Optimization vs. sampling. KL geometry smooths the objective, converting first-order uncertainty into second-order regret.
as
and the Bayesian sampling regret as
where the expectation is taken over and all randomness in the learner and observations. These notions of regret capture how well the learner approximates the optimal sampling distribution, rather than how well it identifies optimal actions.
Table 1 summarizes the key structural difference between bandit optimization and tilted sampling.
Regularized-value interpretation. Sampling regret is the suboptimality gap of KL-regularized reward maximization. For a distribution on with finite , define
The Gibbs distribution maximizes this objective, and its density gives the exact identity
With and , this identity expresses each term in sampling regret as the learner's regularized-value gap. The factor gives this gap the units and scale of reward regret, linking distribution matching to the zero-temperature optimization limit.
Bandit optimization as a limit of tilted sampling. The Gibbs sampling operator interpolates between diffuse sampling and hard maximization. Under mild regularity conditions, as , the measure concentrates on the maximizers of over . Thus UCS and TS recover UCB and Thompson sampling in the zero-temperature limit. A precise statement is given in Appendix C.
Alternative sampling regrets. The reverse-KL regret above is our primary notion of sampling regret because it has an exact entropy-regularized value interpretation and recovers classical regret in the zero-temperature limit. Following the multi-armed sampling literature [39], it is also natural to consider two other discrepancies between the learner's sampling distribution and the target Gibbs distribution.
First, one may define the total-variation sampling regret
Unlike reverse-KL regret, total-variation regret does not coincide with entropy-regularized value suboptimality and does not recover the usual notion of regret as .
Second, one may consider the forward-KL sampling regret
Forward KL is a natural complementary measure: while reverse KL penalizes the learner for placing mass where the target places little mass, forward KL penalizes the learner for failing to cover regions where the target places mass.
Our main results focus on reverse-KL regret because of its variational interpretation. Nevertheless, our decompositions also control these alternative regret notions. In particular, SWC and UCS obtain matching reverse- and forward-KL bounds from Lemma 4, while TS obtains them through the same Bayesian KL-divergence argument. Total-variation regret can be related to KL regret via Pinsker's inequality, . Specifically, we see that
Because of the symmetry, the same bound also holds if we replace SRegret with FKL-SRegret. Thus, if either of the KL regrets is logarithmic, then the total variation regret is . In the following, we analyze reverse-KL and forward-KL sampling regrets.
3.4 Algorithms
As before, we define confidence sets . We consider two natural analogues of UCB and TS. In Upper Confidence Sampling (UCS), we choose . In other words, we sample according to the upper confidence function .
On the other hand, in Thompson Sampling for Sampling , we sample and select . Thus, we have .
Note that if we replace with , then these algorithms reduce to classical UCB and TS. More precisely, under mild regularity assumptions, concentrates on the maximizers of as ; when the maximizer is unique, this convergence is to the corresponding Dirac measure. Therefore, UCS and TS can be viewed as smooth generalizations of UCB and Thompson sampling, with the Gibbs operator interpolating between sampling and maximization.
We say an algorithm follows the Sampling With Confidence (SWC) framework, if we have
for all . Note that this does not require to belong to or even . Rather, it controls the range of possible values of with the uncertainty induced by the confidence sets. Clearly UCS follows the SWC framework, since it chooses .
3.5 Sampling Regret Decomposition
The regret decompositions connect KL divergence between Gibbs distributions to uncertainty in their reward functions. Global Gibbs inequalities control the discrepancy between and through function differences evaluated at sampled actions. Confidence bounds then control these differences by , yielding linear- and squared-width decompositions. SWC, UCS, and TS use this common structure in different ways.
Throughout this section, the SWC and UCS bounds use a fixed unknown , with and taken over observation noise and environmental or algorithmic randomness. The TS bounds use the joint Bayesian law with , including the prior draw and posterior-sampling randomness. Confidence events and width processes are evaluated under the corresponding algorithm's law.
Theorem 2 (Sampling Regret for SWC framework). Let denote the event . If the agent follows SWC framework, we have
Moreover, the same bound holds with replaced by .
The idea of the proof is to use Lemma 4 to bound with the squared gap between and . See Appendix F for the detailed proof.
From prediction error to sampling regret. The squared-width structure begins with prediction error. For an SWC procedure with , the confidence event gives
This bound has unit constant and weights reward errors according to the learner's sampling distribution, giving little weight to errors in rarely sampled regions. The global Gibbs/KL inequalities in Lemmas 4 and 6 convert such prediction-error control into bounds on the discrepancy from the target distribution. They extend the local quadratic geometry of KL to finite-time guarantees throughout learning. Accumulating the squared widths determines the time dependence, while the conversion to KL determines the temperature dependence. For generic SWC, this conversion gives the exponential factor in Theorem 2. Optimism and posterior averaging lead to the sharper bounds below.
Optimism and exploration. Greedy sampling based on a reward estimate is an SWC procedure whenever the estimate lies within the confidence envelope. At finite , Gibbs sampling can explore beyond the current estimated maximizers. As increases, this exploration diminishes as the distribution concentrates on those maximizers. In the hard-maximization limit, a greedy rule can repeatedly select an apparently superior, well-estimated action while overlooking an underestimated alternative. Optimism directs exploration toward uncertain actions to avoid this failure. For UCS, it also removes the exponential factor from the squared-width bound and provides a temperature-independent linear-width bound.
Theorem 3 (Sampling Regret of UCS). Let denote the event . For UCS, we have
Moreover, both inequalities remain valid with replaced by .
See Appendix G for the proof.
Theorem 4 (Bayesian Sampling Regret of TS²). Let denote the event . For TS², we have
Moreover, both inequalities remain valid with BSRegret(T) replaced by .
Posterior exchangeability gives TS its two-sided KL guarantee: conditional on the history and action set, the true parameter and posterior draw are i.i.d., and restricting to the confidence event preserves this symmetry. Swapping them equates the expected directed-KL terms; Lemma 6 yields the squared-width bound, while Lemma 5 gives the linear-width bound. For UCS, pointwise optimism controls both KL directions with identical exponential-free bounds; generic SWC incurs the factor . See Appendices G, F, and H for details.
Role of and geometric regimes. UCS and TS admit temperature-independent linear-width bounds and temperature-dependent squared-width bounds. Write in Theorem 5; up to logarithmic factors, the resulting guarantee is , so the squared-width bound is smaller when . Figure 1 illustrates the schematic case , with crossover . Thus, at fixed , the logarithmic branch is eventually smaller as grows; at fixed , sufficiently large favors the square-root branch. The crossover depends on statistical complexity and reward normalization.
By contrast, writing , generic SWC's reverse- and forward-KL bounds are sublinear when , assuming sublinear confidence-failure terms. No temperature-independent sublinear guarantee holds uniformly over SWC, which includes greedy procedures whose hard-maximization limits can incur linear regret. This contrast highlights the additional guarantees of UCS and TS .
4 A BLACK-BOX TRANSFER OF CONFIDENCE-WIDTH ANALYSES TO SAMPLING REGRET
Theorems 3 and 4 separate the analysis of tilted sampling into two components: a Gibbs/KL decomposition and a statistical bound on the accumulated confidence widths. This separation provides a black-box transfer principle for analyses in the UCB and Thompson-sampling framework of Russo and Van Roy [46]. Replacing maximization with Gibbs sampling gives UCS and TS ; supplying bounds on their width processes gives sampling-regret guarantees for every fixed . Linear-width bounds give temperature-independent guarantees, and squared-width bounds give the complementary temperature-dependent guarantees.
The underlying model has direct noisy reward feedback and no unknown transition dynamics. The statisti-cal inputs are confidence sets valid under the sampling procedure and bounds on the widths along its action sequence. These inputs can come from standard confidence-set and Eluder-dimension arguments or from other model-specific constructions. Each construction can be combined with the same Gibbs/KL decomposition.
Self-normalized concentration and Eluder-dimension arguments used in bandit optimization often control squared widths as well as linear widths. The following subsections develop this route using the framework of Russo and Van Roy [46, 45]: we construct confidence sets, bound their squared-width process, and combine these bounds with the sampling-regret decompositions.
4.1 Confidence Sets
We now discuss a general construction of confidence sets based on least-squares estimation. The key point is that this construction, together with standard concentration results and Eluder-dimension arguments, is classical and independent of the sampling objective itself.
Assume throughout that the observation noise is conditionally -sub-Gaussian. Define the cumulative squared loss , and let denote a least-squares estimator. For a function , define the empirical norm . Following [46], we consider confidence sets of the form
where the increasing sequence is chosen so that the confidence sets contain uniformly over time with high probability. In the setting considered in [46], noise is assumed to be sub-Gaussian and depends on the sub-Gaussian noise parameter, the confidence level, and the metric entropy of . More precisely, if denotes the Kolmogorov dimension of , then Propositions 6 and 7 of [46] show that, for a fixed horizon , one may choose an increasing sequence such that and the confidence event satisfies . In particular, for standard finite-dimensional parametric classes, one may choose , where is the effective dimension of the model class. If is finite, one may choose, for every , we have , which follows directly from the finite-class confidence bound in [46].
4.2 Eluder Dimension and the Squared Width Process
We now introduce the complexity measure controlling the squared width process. We begin by recalling the standard notion of Eluder dimension introduced in [46].
Definition 1. Let be a class of functions and let . An action is said to be -dependent on if for all , implies that . Otherwise, is -independent. The -eluder dimension is the length of the longest sequence such that each is -independent of .
Eluder dimension controls how long uncertainty can persist along a trajectory of actions. To quantify accumulated squared uncertainty, we use a squared-ratio variant of the eluder coefficient in Zhang [64, Definition 17.17]. The historical discussion in Section 17.6 of that book traces the eluder-coefficient concept to Dann et al. [12], where it is called a decoupling coefficient. The definition below uses an untruncated sum of squared ratios, whereas Zhao et al. [66, Definition 3.3] clips each squared term at one.
Definition 2. Let be a class of functions , and fix . Given a history of actions , define the local uncertainty at action by
Note that the function depends on , , , and the sequence of actions . When there is no ambiguity, we use to denote . The squared eluder coefficient is the smallest number such that, for every action sequence and every sequence of function pairs with ,
The importance of this quantity comes from the following elementary observation. Once confidence sets are defined through empirical least-squares constraints, the definition itself immediately yields bounds for both the width process and the squared width process. See Appendix I for the proof of the following proposition.
Proposition 1. For every and every , we have . Thus
Thus the same second-order quantity simultaneously controls both the sampling regret bounds of Section 3
| Problem | Prior special case | |||
|---|---|---|---|---|
| -armed bandit | SWC-RKL/FKL [39] | |||
| Finite class | UCS-RKL [66]Greedy-RKL-pref. [58] | |||
| Linear bandit (d-dim.) | — | |||
| Sparse linear (s-sparse) | — | |||
| GLM (d-dim.) | — |
Table 2: Complexity instantiations for Theorem 5. Here , and rates suppress logarithmic factors in and problem-dependent constants. Substituting the fourth column into Theorem 5 gives two-sided UCS, TS, and SWC regret bounds. The final column records the limited prior special cases: Pedramfar and Ravanbakhsh [39] treat finite-armed SWC for both KL directions, with bounded noise assumed for forward KL; Zhao et al. [66] establish the finite-class result only for UCS and reverse KL; and Wu et al. [58] analyze greedy sampling under preference feedback, with reverse-KL-equivalent regret in the Bradley–Terry specialization. Our SWC result instead uses direct reward feedback. For finite , cardinality controls , while remains a separate, model-dependent exploration complexity. The sparse-linear row uses the generic ambient-dimensional bound on ; sharper rates require additional structure. The generalized-linear row assumes the usual quantitative regularity conditions on the link function.
and the classical width process appearing in RL regret analyses. The next result shows that the squared Eluder coefficient remains closely connected to the classical Eluder dimension.
Proposition 2. Assume that for some constants and a non-negative function , we have , for all . Then
4.3 General Regret Guarantees
We now combine the regret decompositions of Section 3 with the confidence-set and Eluder-type analysis developed above. Specifically, using Theorems 2, 3, 4, Proposition 1 and the discussion in Subsection 4.1, we immediately obtain the following theorem.
Theorem 5. For UCS and SWC, use expected sampling regret with fixed unknown ; for , use Bayesian sampling regret with . Expectations and confidence-event probabilities follow the corresponding algorithm's law, as in Section 3.5. If confidence sets are chosen as discussed in Subsection 4.1 with , then reverse- and forward-KL regret of UCS and are bounded by
where . Moreover, for any algorithm that follows SWC framework with respect to such a choice of confidence sets, both reverse- and forward-KL regrets are bounded by
In particular, the choice recovers the corresponding bounds in terms of Kolmogorov dimension.
Theorem 5 instantiates the sampling-regret decompositions with confidence-radius and squared-width bounds. This gives a common route from model-specific complexity bounds to guarantees for UCS, TS, and SWC. The squared-width UCS bound recovers the optimistic decomposition of Zhao et al. [66] in their bandit setting when paired with their confidence sets and width bound. Finite-armed SWC procedures connect to the sampling framework of Pedramfar and Ravanbakhsh [39]. The greedy analysis of Wu et al. [58] uses pairwise preference feedback; adapting its proof strategy to direct reward feedback gives the corresponding SWC-type reverse-KL guarantee. Table 2 lists model-specific instantiations, and Appendix A details these connections.
5 LIMITATIONS AND FUTURE DIRECTIONS
The logarithmic-in- guarantees hold at fixed . UCS and TS also admit temperature-independent linear-width bounds, while generic SWC incurs the factor for both KL directions. A matching lower bound for the joint dependence on , , and function-class complexity remains open. The analysis assumes bounded rewards, direct noisy reward feedback, and exact Gibbs sampling. Accounting for approximate-sampling error and computational cost, together with empirical evaluation, are natural directions for future work.
Acknowledgements
This research is in part supported by CIFAR AI Chairs and the NSERC Discovery program.
REFERENCES
[1] Akhound-Sadegh, T., Rector-Brooks, J., Bose, A. J., Mittal, S., Lemos, P., Liu, C.-H., Sendera, M., Ravanbakhsh, S., Gidel, G., Bengio, Y., Malkin, N., and Tong, A. (2024). Iterated denoising energy matching for sampling from Boltzmann densities. In International Conference on Machine Learning.
[2] Andrieu, C. and Thoms, J. (2008). A tutorial on adaptive MCMC. Statistics and Computing, 18:343–373.
[3] Auer, P., Cesa-Bianchi, N., and Fischer, P. (2002). Finite-time Analysis of the Multiarmed Bandit Problem. Machine Learning, 47(2):235–256.
[4] Azar, M. G., Guo, Z. D., Piot, B., Munos, R., Rowland, M., Valko, M., and Calandriello, D. (2024). A General Theoretical Paradigm to Understand Learning from Human Preferences. In Proceedings of The 27th International Conference on Artificial Intelligence and Statistics, pages 4447–4455. PMLR.
[5] Bakry, D., Gentil, I., and Ledoux, M. (2014). Analysis and Geometry of Markov Diffusion Operators. Springer.
[6] Bengio, E., Jain, M., Korablyov, M., Precup, D., and Bengio, Y. (2021). Flow network based generative models for non-iterative diverse candidate generation. In Advances in Neural Information Processing Systems.
[7] Bengio, Y., Lahlou, S., Deleu, T., Hu, E. J., Tiwari, M., and Bengio, E. (2023). GFlowNet foundations. Journal of Machine Learning Research, 24.
[8] Berner, J., Richter, L., and Ullrich, K. (2024). An optimal control perspective on diffusion-based generative modeling. Transactions on Machine Learning Research.
[9] Black, K., Janner, M., Du, Y., Kostrikov, I., and Levine, S. (2024). Training diffusion models with reinforcement learning. In International Conference on Learning Representations.
[10] Cen, S., Cheng, C., Chen, Y., Wei, Y., and Chi, Y. (2022). Fast global convergence of natural policy gradient methods with entropy regularization. Operations Research, 70(4):2563–2578.
[11] Christiano, P. F., Leike, J., Brown, T., Martic, M., Legg, S., and Amodei, D. (2017). Deep Reinforcement Learning from Human Preferences. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc.
[12] Dann, C., Mohri, M., Zhang, T., and Zimmert, J. (2021). A provably efficient model-free posterior sampling method for episodic reinforcement learning. In Advances in Neural Information Processing Systems, volume 34, pages 12040–12051.
[13] Del Moral, P., Doucet, A., and Jasra, A. (2006). Sequential Monte Carlo samplers. Journal of the Royal Statistical Society: Series B, 68(3):411–436.
[14] Dembo, A. and Zeitouni, O. (2009). Large Deviations Techniques and Applications. Springer Berlin Heidelberg.
[15] Dhariwal, P. and Nichol, A. (2021). Diffusion Models Beat GANs on Image Synthesis. In Advances in Neural Information Processing Systems, volume 34, pages 8780–8794. Curran Associates, Inc.
[16] Dudík, M., Hofmann, K., Schapire, R. E., Slivkins, A., and Zoghi, M. (2015). Contextual Dueling Bandits. In Proceedings of The 28th Conference on Learning Theory, pages 563–587. PMLR.
[17] Ellis, R. S. (2006). Entropy, Large Deviations, and Statistical Mechanics. Springer Berlin Heidelberg.
[18] Fan, Y., Watkins, O., Du, Y., Liu, H., Ryu, M., Boutilier, C., Abbeel, P., Ghavamzadeh, M., Lee, K., and Lee, K. (2023). DPOK: Reinforcement learning for fine-tuning text-to-image diffusion models. Advances in Neural Information Processing Systems.
[19] Haarnoja, T., Tang, H., Abbeel, P., and Levine, S. (2017). Reinforcement Learning with Deep Energy-Based Policies. In Proceedings of the 34th International Conference on Machine Learning, pages 1352–1361. PMLR.
[20] Haarnoja, T., Zhou, A., Abbeel, P., and Levine, S. (2018). Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor. In Proceedings of the 35th International Conference on Machine Learning, pages 1861–1870. PMLR.
[21] Hastings, W. K. (1970). Monte Carlo sampling methods using Markov chains and their applications. Biometrika, 57(1):97–109.
[22] Ho, J., Jain, A., and Abbeel, P. (2020). Denoising Diffusion Probabilistic Models. In Advances in Neural Information Processing Systems, volume 33, pages 6840–6851. Curran Associates, Inc.
[23] Jain, M., Bengio, E., Hernández-García, A., Rector-Brooks, J., Dossou, B. F. P., Ekbote, C., Fu, J., Zhang, T., Kilgour, M., Zhang, D., Simine, L., Das, P., and Bengio, Y. (2022). Biological sequence design with GFlowNets. In International Conference on Machine Learning.
[24] Kappen, H. J. (2005). Path integrals and symmetry breaking for optimal control theory. Jour-nal of statistical mechanics: theory and experiment, 2005(11):P11011–P11011.
[25] Kim, M., Choi, S., Yun, T., Bengio, E., Feng, L., Rector-Brooks, J., Ahn, S., Park, J., Malkin, N., and Bengio, Y. (2025). Adaptive teachers for amortized samplers. In International Conference on Learning Representations.
[26] Kim, M., Yun, T., Bengio, E., Zhang, D., Bengio, Y., Ahn, S., and Park, J. (2024). Local search GFlowNets. In International Conference on Learning Representations.
[27] Lahlou, S., Deleu, T., Lemos, P., Zhang, D., Volokhova, A., Hernández-García, A., Ezzine, L. N., Bengio, Y., and Malkin, N. (2023). A theory of continuous generative flow networks. In International Conference on Machine Learning.
[28] Lai, T. and Robbins, H. (1985). Asymptotically efficient adaptive allocation rules. Advances in Applied Mathematics, 6(1):4–22.
[29] Levine, S. (2018). Reinforcement Learning and Control as Probabilistic Inference: Tutorial and Review. arXiv:1805.00909 [cs].
[30] Madan, K., Rector-Brooks, J., Korablyov, M., Bengio, E., Jain, M., Nica, A., Bosc, T., Bengio, Y., and Malkin, N. (2023). Learning GFlowNets from partial episodes for improved convergence and stability. In International Conference on Machine Learning.
[31] Malkin, N., Jain, M., Bengio, E., Sun, C., and Bengio, Y. (2022). Trajectory balance: Improved credit assignment in GFlowNets. In Advances in Neural Information Processing Systems.
[32] Metropolis, N., Rosenbluth, A. W., Rosenbluth, M. N., Teller, A. H., and Teller, E. (1953). Equation of state calculations by fast computing machines. The Journal of Chemical Physics, 21(6):1087–1092.
[33] Midgley, L. I., Stimper, V., Simm, G. N. C., Schölkopf, B., and Hernández-Lobato, J. M. (2023). Flow annealed importance sampling bootstrap. In International Conference on Learning Representations.
[34] Neal, R. M. (2011). MCMC using Hamiltonian dynamics. In Handbook of Markov Chain Monte Carlo. Chapman & Hall/CRC.
[35] Neu, G., Jonsson, A., and Gómez, V. (2017). A unified view of entropy-regularized Markov decision processes. arXiv:1705.07798 [cs].
[36] Noé, F., Olsson, S., Köhler, J., and Wu, H. (2019). Boltzmann generators: Sampling equilibrium states of many-body systems with deep learning. Science, 365(6457).
[37] Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C., Mishkin, P., Zhang, C., Agarwal, S., Slama, K., Ray, A., et al. (2022). Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730–27744.
[38] Pan, L., Zhang, D., Courville, A., Huang, L., and Bengio, Y. (2023). Generative augmented flow networks. In International Conference on Learning Representations.
[39] Pedramfar, M. and Ravanbakhsh, S. (2025). Multi-Armed Sampling Problem and the End of Exploration. arXiv:2507.10797 [cs].
[40] Rafailov, R., Sharma, A., Mitchell, E., Manning, C. D., Ermon, S., and Finn, C. (2023). Direct Preference Optimization: Your Language Model is Secretly a Reward Model. Advances in Neural Information Processing Systems, 36:53728–53741.
[41] Rawlik, K., Toussaint, M., and Vijayakumar, S. (2012). On stochastic optimal control and reinforcement learning by approximate inference. In Proceedings of Robotics: Science and Systems VIII.
[42] Rector-Brooks, J., Madan, K., Jain, M., Korablyov, M., Liu, C.-H., Chandar, S., Malkin, N., and Bengio, Y. (2023). Thompson sampling for improved exploration in GFlowNets. In ICML 2023 Workshop on Structured Probabilistic Inference & Generative Modeling.
[43] Roberts, G. O. and Rosenthal, J. S. (2009). Examples of adaptive MCMC. Journal of Computational and Graphical Statistics, 18(2):349–367.
[44] Roberts, G. O. and Tweedie, R. L. (1996). Exponential convergence of Langevin distributions and their discrete approximations. Bernoulli, 2(4):341–363.
[45] Russo, D. and Van Roy, B. (2013). Eluder Dimension and the Sample Complexity of Optimistic Exploration. In Advances in Neural Information Processing Systems, volume 26. Curran Associates, Inc.
[46] Russo, D. and Van Roy, B. (2014). Learning to Optimize Via Posterior Sampling. Technical Report arXiv:1301.2609, arXiv. arXiv:1301.2609 [cs] type: article.
[47] Russo, D. J., Van Roy, B., Kazerouni, A., Osband, I., and Wen, Z. (2018). A tutorial on thompson sampling. Foundations and Trends in Machine Learning, 11(1):1–96.
[48] Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. (2017). Proximal Policy Optimization Algorithms. arXiv:1707.06347 [cs].
[49] Sendera, M., Kim, M., Mittal, S., Lemos, P., Scimeca, L., Rector-Brooks, J., Adam, A., Bengio, Y., and Malkin, N. (2024). Improved off-policy training of diffusion samplers. In Advances in Neural Information Processing Systems.
[50] Shen, M. W., Bengio, E., Hajiramezanali, E., Loukas, A., Cho, K., and Biancalani, T. (2023). Towards understanding and improving GFlowNet training. In International Conference on Machine Learning.
[51] Sutton, R. S. and Barto, A. G. (2018). Reinforcement Learning: An Introduction. MIT Press. Google-Books-ID: uWV0DwAAQBAJ.
[52] Theodorou, E., Buchli, J., and Schaal, S. (2010). A generalized path integral control approach to reinforcement learning. The Journal of Machine Learning Research, 11:3137–3181.
[53] Todorov, E. (2006). Linearly-solvable Markov decision problems. In Advances in Neural Information Processing Systems, volume 19. MIT Press.
[54] Vargas, F., Grathwohl, W., and Doucet, A. (2023). Denoising diffusion samplers. In International Conference on Learning Representations.
[55] Vargas, F., Padhy, S., Blessing, D., and Nüsken, N. (2024). Transport meets variational inference: Controlled Monte Carlo diffusions. In International Conference on Learning Representations.
[56] Vempala, S. and Wibisono, A. (2019). Rapid convergence of the unadjusted Langevin algorithm: Isoperimetry suffices. In Advances in Neural Information Processing Systems.
[57] Wang, C., Jiang, Y., Yang, C., Liu, H., and Chen, Y. (2024). Beyond Reverse KL: Generalizing Direct Preference Optimization with Diverse Divergence Constraints. International Conference on Learning Representations, 2024:10450–10480.
[58] Wu, D., Shi, C., Yang, J., and Shen, C. (2025). Greedy Sampling Is Provably Efficient for RLHF. arXiv:2510.24700 [cs] version: 1.
[59] Xiong, W., Dong, H., Ye, C., Wang, Z., Zhong, H., Ji, H., Jiang, N., and Zhang, T. (2024). Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-constraint. In Proceedings of the 41st International Conference on Machine Learning, pages 54715–54754. PMLR.
[60] Yuan, H., Yuan, Z., Tan, C., Wang, W., Huang, S., and Huang, F. (2023). RRHF: Rank Responses to Align Language Models with Human Feedback. Advances in Neural Information Processing Systems, 36:10935–10950.
[61] Yue, Y., Broder, J., Kleinberg, R., and Joachims, T. (2012). The K-armed dueling bandits problem. Journal of Computer and System Sciences, 78(5):1538–1556.
[62] Zhang, D., Chen, R. T. Q., Liu, C.-H., Courville, A., and Bengio, Y. (2024). Diffusion generative flow samplers: Improving learning signals through partial trajectory optimization. In International Conference on Learning Representations.
[63] Zhang, Q. and Chen, Y. (2022). Path integral sampler: A stochastic control approach for sampling. In International Conference on Learning Representations.
[64] Zhang, T. (2023). Mathematical Analysis of Machine Learning Algorithms. Cambridge University Press.
[65] Zhao, H., Ye, C., Gu, Q., and Zhang, T. (2025a). Sharp Analysis for KL-Regularized Contextual Bandits and RLHF. Advances in Neural Information Processing Systems, 38:107964–108002.
[66] Zhao, H., Ye, C., Xiong, W., Gu, Q., and Zhang, T. (2025b). Logarithmic Regret for Online KL-Regularized Reinforcement Learning. In Proceedings of the 42nd International Conference on Machine Learning, pages 77864–77884. PMLR.
[67] Ziebart, B. D., Maas, A., Bagnell, J. A., and Dey, A. K. (2008). Maximum entropy inverse reinforcement learning. In Proceedings of the 23rd AAAI Conference on Artificial Intelligence, pages 1433–1438.
[68] Zoghi, M., Whiteson, S., Munos, R., and Rijke, M. (2014). Relative Upper Confidence Bound for the K-Armed Dueling Bandit Problem. In Proceedings of the 31st International Conference on Machine Learning, pages 10–18. PMLR.
A RELATED WORKS
Our work builds on the multi-armed sampling framework of [39], extending it beyond the finite-armed setting to general action spaces and learning models.
Entropy-regularized reinforcement learning and maximum-entropy control. Entropy-regularized reinforcement learning provides a principled framework for trading off reward maximization with stochasticity, robustness, and exploration. Early formulations appear in maximum entropy inverse reinforcement learning [67], where optimal policies take a Gibbs-Boltzmann form. Closely related ideas arise in linearly-solvable Markov decision processes and KL control [53], as well as path-integral control formulations [24, 52], which derive stochastic optimal policies through exponential transformations of value functions.
These viewpoints were later unified under the framework of reinforcement learning as probabilistic inference [29], building on earlier connections between stochastic control and approximate inference [41]. This connection also underlies mirror-descent and policy optimization methods with entropy regularization [35, 48]. It has further been shown that such entropy-regularized formulations can lead to strong optimization guarantees, including fast convergence of natural policy gradient methods under suitable conditions [10]. Building on this foundation, a sequence of modern deep RL algorithms explicitly optimize entropy-regularized objectives, including soft Q-learning [19] and Soft Actor-Critic [20], which solve problems of the form
In all these formulations, the optimal policy is given by a Gibbs distribution, establishing a direct link between entropy-regularized control and Boltzmann sampling.
Despite the central role of Gibbs policies in this literature, most prior work assumes that the reward or value function is known (or can be optimized via function approximation) and focuses on computing or approximating the optimal policy. In contrast, tilted sampling studies the statistical problem of learning the Gibbs-optimal distribution from bandit feedback when the reward function is initially unknown. This shift—from solving a regularized control problem to learning a distributional target—leads to a different regret notion and a distinct uncertainty structure governed by second-order effects.
RLHF, preference-based learning, and fine-tuning. Reinforcement learning from human feedback (RLHF) and preference-based learning provide a practical instantiation of KL-regularized objectives for aligning generative models. Early work introduced learning from pairwise preferences using reward models and reinforcement learning [11], while large-scale systems such as InstructGPT combine preference modeling with KL-constrained policy optimization [37], typically implemented using proximal policy optimization [48]. These approaches optimize KL-regularized RL objectives leading to Gibbs-form solutions.
More recent methods such as direct preference optimization (DPO) [40] and ranking-based approaches [60] optimize similar objectives without explicit reinforcement learning. Variants and extensions further explore alternative regularization schemes and divergences, including formulations beyond reverse KL [4, 57].
These objectives implicitly define a target sampling distribution, but the statistical problem of learning this distribution under feedback has received comparatively little attention, with only recent work beginning to study RLHF from an online learning perspective [66].
Theoretical RLHF and preference-based online learning. A growing body of work studies preference-based learning and RLHF from a theoretical perspective. Early work on dueling bandits and preference learning analyzes regret under pairwise feedback [61, 68, 16]. More recent work considers RLHF-style settings with KL-regularized objectives and online feedback, establishing regret guarantees for optimistic and greedy methods [59, 65, 66, 58]. These works highlight that KL-regularized objectives can admit improved regret behavior compared to classical bandits.
Our work is complementary to this line of research. Rather than focusing on specific feedback models or algorithmic variants, we study the general problem of learning to sample from Gibbs distributions under bandit feedback. This perspective isolates the role of the sampling objective itself, leading to a unified regret framework governed by second-order uncertainty.
Connections to MCMC and adaptive sampling. Sampling from a Gibbs or Boltzmann distribution has long been studied in computational statistics, primarily through Markov Chain Monte Carlo (MCMC) — including Metropolis–Hastings, Langevin, and Hamiltonian Monte Carlo [32, 21, 34, 44]. Adaptive MCMC [2, 43] and Sequential Monte Carlo samplers [13] extend these schemes by tuning proposal distributions or particle systems from past samples. In all of these settings, however, the target density — equivalently, the reward — is assumed known and queryable pointwise; the difficulty is purely computational, and the associated complexity measures are mixing-time quantities such as spectral gaps and log-Sobolev constants [5, 56]. Tilted sampling instead targets the statistical problem of approximating a Gibbs distribution whose generating reward is unknown and accessed only through noisy bandit feedback, with regret controlled by a cumulative confidence-width process rather than a mixing time.
GFlowNets and amortized samplers. GFlowNets [6, 7] learn an amortized policy that generates compositional objects with probability proportional to a given reward , with a growing line of work on training objectives — flow matching, detailed, trajectory, and sub-trajectory balance [31, 30] — and continuous, energy-based, or diffusion variants [27, 62, 49]. Because GFlowNets are trained off-policy, exploration is itself an active subject: tempered or augmented forward policies and prioritized replay [38, 50], local-search refinement of trajectories [26], adaptive teacher proposals [25], Thompson-sampling-style heuristics for GFlowNet rollouts [42], and GFlowNet-driven active learning with epistemic uncertainty estimates [23]. These works treat exploration empirically and almost always assume that R is queryable; analyses focus on training-loss consistency rather than regret under bandit feedback. Tilted sampling complements this literature by providing a regret-theoretic counterpart: UCS and TS realize optimism and posterior-sampling exploration directly in the Gibbs-sampling regime, and our confidence-width decompositions quantify the sampling regret of these exploration strategies across general reward-function classes.
Neural samplers for unnormalized targets. A recent body of work develops neural samplers for unnormalized densities, including diffusion-based samplers such as Path Integral Samplers [63], Denoising Diffusion Samplers [54], and iterated denoising-energy matching [1]; controlled-diffusion and stochastic-optimal control approaches [55, 8]; and normalizing-flow Boltzmann generators [36]. Mode coverage is a central practical concern in this literature, and explicit exploration mechanisms have been proposed to address it: Flow-Annealed Importance Sampling Bootstrap [33] couples a flow proposal with annealed importance sampling to escape mode collapse, and diffusion-based samplers such as iDEM [1] rely on replay buffers and score-based exploration noise to cover multimodal targets. As with GFlowNets, however, these methods assume access to the unnormalized target during training; closer to bandit feedback are RL-based fine-tuning methods for diffusion and language models such as DDPO [9] and DPOK [18], which optimize a learned reward via policy gradients but without regret guarantees. Our framework is complementary: it formalizes the online-learning problem underlying these procedures and shows that, under bandit feedback and a KL-regularized objective, the regret for matching a Gibbs target admits a second-order upper bound in the confidence widths, with smoothly interpolating between distribution matching and hard optimization.
B PROOF OF THEOREM 1
Proof. Regret decomposition for UCB: Fix . Add and subtract :
because . On the event , we have
SO
If the confidence condition fails, the regret is at most C. Summing over t and taking expectations of the failure indicator yields the result.
Regret decomposition for TS: For each , define
Condition on . Since and , the random variables and have the same conditional distribution given . Therefore, because is a measurable function of and is a measurable function of , we have the conditional identity
Using this, we obtain
Summing over and taking expectations yields
Let . On , the second term is nonpositive since
and the first term satisfies
On , each of and is at most . Therefore,
□
C BANDIT OPTIMIZATION AS A LIMIT OF TILTED SAMPLING
The following result is classical and may be seen as an application of Varadhan's lemma. (See, e.g., [14, 17]) Here we include a proof for completeness.
Lemma 1. Assume is a metric space with a Borel probability measure . Let be bounded and continuous and define
Then the following are true.
(i) If is nonempty and , then
Moreover, any weak limit of , as , has zero measure on .
(ii) If , then the measures converge setwise (and hence weakly) as to the probability measure given by
In particular, and .
Note that if is a singleton, then the only probability measure such that is the Dirac measure at .
Remark 2 (Zero-measure maximizers). If , then setwise convergence in part (ii) cannot hold, since each is absolutely continuous with respect to and hence assigns zero mass to for every , whereas any weak limit is supported on by part (i). Thus one can only expect weak convergence, and even this may fail to be unique without further assumptions.
In general, concentrates on as , but the limiting distribution (if it exists) depends on the local behavior of and near . For example, if , has a continuous density, , and consists of finitely many nondegenerate maximizers, then Laplace's method yields weak convergence to a discrete measure supported on with weights determined by second-order asymptotics of and at the maximizers. More generally, analogous descriptions hold when is a smooth manifold under suitable nondegeneracy conditions. These phenomena are classical and can be understood via Laplace asymptotics or, more abstractly, through the Laplace principle in large deviations theory; see, e.g., [14, 17].
Proof. We first prove an auxiliary claim. For , define
If , then we have
Proof of the claim.
Define the function . Then for all , we have , and the factor cancels in the ratio defining , yielding
On , we have , hence and so for all , . Therefore,
On the other hand, we have
and over the set , we have . Hence for all and all , we have , so
Therefore
Combining the bounds on numerator and denominator, we obtain
Proof of (i). The function is continuous, the set is open. Since , by definition we have for any open sets that intersects . In particular, we have . Hence we may use the above claim to see that
for all .
First we prove the claim regarding the expectation. Let , which is finite since is bounded. For every , we have
Since , it follows that
Letting and using gives
Now suppose is any sequence with , and suppose converges weakly to some probability measure on . Since the set is open, by the Portmanteau theorem we have
Thus
That is, any weak limit of is supported on .
Proof of (ii). Similar to before, we write and factor out to see that
Define
On we have , so and . Thus
For and define
Then and . On , we have , so
and hence
On , we have , hence , so
As , the sets form a decreasing sequence with . Since is finite, continuity from above implies that as . Therefore
Thus
Now fix any measurable . We have
On , , so the first integral is . On we have , and by the same argument as above, the second integral tends to as . Hence
Combining this with , we obtain
This is convergence for each measurable , i.e. setwise convergence. In particular, it implies weak convergence of the measures to as . Using Portmanteau theorem, we have
口
D FREQUENTIST BOUNDS ON KL-DIVERGENCE
Lemma 2. Let be a measure space and let be a random variable.
(i) If is non-negative, then
(ii) If for some , then
Proof. (i): The claim follows from the fact that and therefore
(ii): For , Taylor's theorem with the Lagrange remainder gives
For some between and . Hence, for all , we have and
On the other hand, for all , we have and
Hence the point-wise bound holds for all . Applying this with for and taking expectations yields
Since logarithm is increasing and for all , we obtain
which completes the proof.
口
Remark 3. The constant 1/2 is optimal among bounds of the form valid for all , since
Lemma 3. Let be a probability space and let be a measurable function.
(i) If is nonnegative, then
(ii) If for some , then
Proof. (i): If , the claim is immediate. Otherwise, since , we have
Moreover, Jensen's inequality gives
Combining these inequalities proves the first claim.
(ii): We first prove the claim when is bounded. Define
and let be the probability measure with density
Write for expectation under . Boundedness of justifies differentiation under the expectation, giving
Since , Taylor's theorem with integral remainder, expanded about and evaluated at , gives
and hence
Therefore, the expression in the second claim equals
Thus
Next we claim that
To see this, fix and let have the distribution of under . Write
If , then implies
If , the Cauchy–Schwarz inequality gives
Moreover, by Jensen's inequality, and
Thus , which again gives and proves the claim.
Differentiating the second moment under now gives
Set . Since and , the integrating factor satisfies
Thus , and therefore
Consequently, using Equation 1, we have
which proves the second claim when is bounded.
For a general measurable , the left-hand side is finite because and are bounded, and . If , the claim is therefore immediate. Otherwise, let . Each is bounded and satisfies , so the bounded case gives
Since , the functions and are uniformly bounded, while . Dominated convergence therefore gives
Since the limiting denominator is positive, passing to the limit proves the second claim in general.
Lemma 4. Let be a probability space, be measurable and let and be the corresponding Gibbs distributions with parameter .
(i) If , then
(ii) If there is such that , then
(iii) If there is such that , then
Proof. Let . We have
Therefore
For the opposite direction, similarly,
Therefore,
Using the density of with respect to , we also have
Substituting this identity yields
Now (i) and (ii) follow directly from Equations 2 and 3 and Lemmas 2 and 3. For (iii), the assumption gives
Together with the two log-density-ratio identities above, this implies
Taking the corresponding expectations proves (iii).
E BAYESIAN BOUNDS ON KL-DIVERGENCE
Lemma 5. Let be a measure space and let be a class of real valued bounded measurable functions over and assume is a probability measure over . Then
where .
Proof. We have
Since and are both sampled according to the same distribution, namely , we have
Therefore
where the inequality follows from the fact that .
Lemma 6. Let be a measure space and let be a class of real valued bounded measurable functions over . Define the function . Then, for any , we have
where and . Moreover, if is a probability measure over , then we have
Proof. Fix and define
Then, as we saw in the proof of Lemma 4, we have
We compute
Hence
Using the inequality
we obtain
Since , this becomes
Let
Define
Then is convex, , , and
Thus
Define
Since is convex in and ,
A direct computation gives
and similarly for . Hence
Using
we obtain
Therefore
Substituting ,
Now take expectation over independent . Since is fixed by and both functions have the same law,
Both width terms therefore reduce to the same expectation under the mixture obtained by drawing and then sampling from . Exchangeability also gives
Thus
and dividing by 2 yields the stated bound under the Gibbs mixture, with coefficient .
F PROOF OF THEOREM 2
Proof. Let . Since and , we have . Thus Lemma 4(iii) bounds either directed instantaneous KL regret by 2C.
On , we have and . Therefore and we may use Lemma 4(ii) to see that
Taking expectation and summing over completes the proof.
G PROOF OF THEOREM 3
Proof. Let . On , optimism and the confidence bounds give on . Applying Lemma 4 with and , part (i) yields the linear-width bound. The nonnegative gap allows in part (ii), so and the squared-width bound follows. Thus, on ,
Since , on either directed KL regret is at most 2C by Lemma 4(iii). Taking expectations over all randomness and summing over completes the proof.
H PROOF OF THEOREM 4
Proof. Fix . Let denote the posterior . Then, since samples from the posterior, conditioned on the distribution of is also . Let denote conditioned on . Since and are conditionally i.i.d. given , is also the conditional law of given . Let and denote the events and , respectively, and define . Given , the parameters remain independent with common law : each confidence restriction conditions one of the two independent draws. We work on histories with ; when this conditional probability is zero, the good-event contribution vanishes. Therefore, using Lemma 5, we have
Applying the posterior-averaged part of Lemma 6 to the function law induced by gives the squared-width bound. The Gibbs mixture in the lemma samples and then , which is the action law of TS conditional on . Hence
Exchanging and leaves the expected KL on the left unchanged. The forward-KL bound therefore has the same constants, confidence event , and width expectations.
Since is sampled from the posterior and has the same conditional law given , we have
Therefore,
Taking expectations yields
since and hence .
The following argument applies to either KL direction; we display the reverse direction. On , the per-round regret is bounded by the conditional expectation above. Since and take values in , on either directed instantaneous KL regret is at most 2C by Lemma 4(iii). Therefore,
Similarly,
Taking expectations over all randomness and summing over completes the proof.
I BOUNDING WIDTH PROCESS WITH SQUARED ELUDER COEFFICIENT
Proof of Proposition 1. The geometry of these confidence sets directly constrains pairwise disagreements. Indeed, for any ,
and therefore
Hence,
Taking the supremum over on the left-hand side and over on the right-hand side yields
as claimed. To prove the second claim, we note that is increasing and, for every realized action sequence , the definition directly implies that
Hence, by Cauchy–Schwarz inequality,
J ELUDER DIMENSION VS. SQUARED ELUDER COEFFICIENT
Lemma 7. Assume . Fix , , and define
for . Then, for and , we have
Proof. Fix an arbitrary action sequence and arbitrary function pairs with . Define
We need to bound
First consider rounds with small current disagreement:
For these rounds,
Therefore,
It remains to control the rounds with . For , define
The sets cover all remaining rounds.
Fix . We further decompose according to the size of the past disagreement. Define the low-denominator set
For , define
We first control . Let be its elements. For every ,
while
Thus is an -eluder-independent sequence, and hence
Moreover, for ,
Therefore,
Since , we have and hence
Therefore is empty unless
which implies that
Hence, using and , we see that
Thus, for each k, no more than
values of can occur.
We now bound the size of using only the ordinary eluder dimension. Let
be the elements of .
For each , since , we have
Also, since ,
We claim that the sequence can be partitioned into at most
subsequences, each of which is -eluder independent.
To see this, assign the points greedily to blocks. Suppose we are assigning . For each block B, let
If every block satisfied , then summing over all blocks would give
contradicting the bound above. Hence there exists a block B with
Assign to such a block.
Now consider any one block. When a point is assigned to this block, we have
while
Therefore, each point in the block is -independent of its predecessors in that block. Thus the length of each block is at most
Since there are at most blocks,
For ,
and
Hence
Therefore,
The sets and , partition . Combining the low-denominator bound with the sum over the dyadic levels gives
Finally, summing over and adding the contribution of yields
Since the action sequence and function-pair sequence were arbitrary, the same bound holds for . Since , we have , and therefore
Moreover, if , then , so the corresponding low-denominator term vanishes entirely.
Corollary 1. Suppose that for every ,
for some constants and some non-negative function . Then, for all and , the following bounds hold.
(i) If , then
(ii) If , then
Proof. By Lemma 7, for any , with
we have
First suppose and choose . Then , so the first term becomes
Next, since
the assumed Eluder-dimension growth gives
We have . Therefore, for ,
Hence
The geometric sum satisfies
Since
we have
and therefore
Combining these inequalities,
Since , we also have
Substituting this into Lemma 7 proves the bound.
Now suppose and choose . We have
As before,
Therefore,
Again using gives
Substituting this into Lemma 7 gives
This proves the claim.
K EXTENDED COMPARISON AND ALGORITHMS
| Bandit Optimization | Tilted Sampling | |
|---|---|---|
| Target | ||
| Learner's choice | action | distribution |
| Performance metric | ||
| Geometry | non-smooth (hard arg max) | smooth (KL / Fisher) |
| Uncertainty order | first-order | second-order |
| Width process | ||
| Typical scaling | ||
| Optimistic algo. | UCB | UCS |
| Bayesian algo. | TS | |
| Limit as | — | recovers UCB and TS |
Table 3: Optimization vs. sampling. KL geometry smooths the objective, converting first-order uncertainty in classical bandit optimization into second-order regret in tilted sampling. The Gibbs operator interpolates between the two regimes: as the sampling targets concentrate on maximizers and tilted sampling recovers bandit optimization under the regularity conditions discussed in Appendix C.
Algorithm 1: Upper Confidence Sampling (UCS)
Input : horizon ; inverse temperature ; base measure ; confidence-set rule .
Initialize history
for do Observe available action set Form conditioned base measure Construct confidence set Compute upper envelope for Sample action Observe reward Update history end
Algorithm 2: Thompson Sampling for Sampling (TS)
Input : horizon ; inverse temperature ; base measure ; prior on .
Initialize history
for do Observe available action set Form conditioned base measure Sample parameter from posterior Set Sample action Observe reward Update history end