Manuscript Offprint
arXiv:2611.07169Meta-Frieren: Beyond Single Level Online Learning
Abstract
We study a two-stage online optimization problem: at each round, a meta-learner first selects an agent-environment pair, then the chosen agent interacts with the environment, and receives a reward. We introduce Meta-Frieren, a general framework for maximizing cumulative reward in this setting. Our analysis yields a simple UCB-style criterion for meta-level selection and recovers prior guarantees as special cases while extending them to broader settings. We instantiate Meta-Frieren with GP-UCB under Bayesian and frequentist assumptions. We also derive, to our knowledge, the first high-probability regret bound for Feel-Good Thompson Sampling, specialize it to finite and parametric function classes, and integrate it into Meta-Frieren. Experiments support our theoretical results and demonstrate that Meta-Frieren can be successfully applied to hyperparameter optimization across multiple model classes.
Keywords: Online Learning, Hierarchical Decision-Making, Thompson Sampling
1 Introduction
In this paper, we consider an online learning problem in which a decision-maker allocates observations among several learning agents. At each round, the decision-maker, referred to as the meta-learner, selects one of agent-environment pairs. The selected agent observes a context, chooses an action, and receives a noisy reward. The agents may use different learning algorithms and operate on different context and action spaces. Our goal is to construct a selection rule with small cumulative regret relative to the agent-environment pair with the largest expected reward under its optimal policy.
One motivation for this problem comes from hyperparameter optimization. Suppose that several model classes are available, each equipped with an optimizer that searches over its hyperparameters. Given a budget of model evaluations, one has to decide how many evaluations to allocate to each optimizer. This decision is complicated by the fact that the performance of an optimizer depends on the evaluations it has already received. In particular, a small observed reward can be due either to a poor choice of model class or to insufficient exploration of its hyperparameters. An allocation based only on past rewards may therefore assign too few evaluations to a model class whose hyperparameters have not yet been sufficiently explored.
The contextual version of this problem has an additional feature: the meta-learner selects an agent-environment pair before observing its current context. Thus, it cannot choose a
©2026 Vahan Arsenyan and Arnak Dalalyan.
License: CC-BY 4.0, see https://creativecommons.org/licenses/by/4.0/. Attribution requirements are provided at http://jmlr.org/papers/v0/placeholder.html.
different pair for each observed context. The value used to compare pairs is consequently the expectation, over contexts, of the best reward achievable within each pair. Learning this value requires accounting for the errors made by the agent, as well as for the variability of the contexts and the reward noise.
We propose a method, called Meta-Frieren, that constructs an upper confidence bound for the value of each pair by adding to its empirical mean reward a bound on the agent's average regret and concentration terms for context variability and reward noise. The resulting meta-regret bound is expressed in terms of the regret guarantees available for the individual agents. These guarantees must hold with high probability, simultaneously over the numbers of visits to each agent-environment pair, since these numbers are determined by the meta-learner's previous decisions.
We first establish a general regret bound for this procedure. The bound accounts for both the selection of suboptimal pairs and the regret incurred by the agents within the selected pairs. It holds uniformly over time and allows several pairs to attain the optimal value. We then study two choices of agents for which the required local guarantees can be obtained.
The first choice is GP-UCB (Srinivas et al., 2010; Krause and Ong, 2011), which we study in two settings. In the Bayesian setting, the reward function of each pair is drawn from a zero-mean Gaussian process prior with covariance kernel . In the frequentist setting, is a deterministic function belonging to the reproducing kernel Hilbert space (RKHS) associated with . The kernels are assumed to be known in both settings. Our Bayesian result recovers the guarantee of CoCa-BO (Arsenyan et al., 2026), up to constant factors and after accounting for the difference between the regret definitions.
The second choice is Feel-Good Thompson Sampling (FGTS) (Zhang, 2022). Here, the available expected-regret guarantees do not provide the uniform high-probability control required by the meta-learner. We establish such a guarantee and give explicit bounds for well-specified finite and Lipschitz-parametric function classes under the boundedness and structural assumptions stated below. We also give tuning schemes that do not require advance knowledge of the horizon and retain the observations collected in previous rounds. In the linear case, the resulting regret bound is of order , where is the dimension and is the number of visits. These results allow us to use FGTS agents within Meta-Frieren and are also of interest for FGTS itself.
We illustrate the results through experiments with GP-UCB and FGTS agents. These include a comparison with CoCa-BO and an application to hyperparameter optimization over three model classes on the MAGIC dataset. In the latter experiment, we also compare with a greedy allocation rule to assess the effect of accounting for uncertainty and the agents' learning errors.
The rest of the paper is organized as follows. After discussing related work, we define the learning protocol and the regret in Section 3. The Meta-Frieren procedure and its general regret guarantee are presented in Section 4. Sections 5 and 6 contain the results for GP-UCB and FGTS, respectively. The experiments are reported in Section 7.
Notation We generally use capital letters for random variables and corresponding lowercase letters for their realizations. Bold letters denote vectors, and fraktur letters denote context and action spaces. We write for a deterministic parameter and for a sampled parameter. Reward functions , their values , and the gaps retain the same notation in the deterministic and Gaussian process settings, although they are random in the latter. All vectors are column vectors, and denotes transpose. We write for the identity matrix, with dimension determined by context, for the positive integers, and . For vectors, denotes the usual norm; for a function , we write . We use , , and for the indicator of an event . All logarithms are natural.
The regret analysis of GP-UCB originates in Srinivas et al. (2010), who relate its performance to the maximum information gain under Gaussian process prior and RKHS assumptions. Krause and Ong (2011) study the contextual setting, in which an action is chosen after a context has been observed. These results concern learning within a given environment. In our setting, they are used to control the regret of an agent on the rounds when its environment is selected; the allocation of rounds across environments requires a separate analysis. For the frequentist version, we use kernel concentration results of the type established by Durand et al. (2018).
Our results for posterior sampling build on the FGTS method of Zhang (2022). Its analysis uses decoupling to bound expected regret for finite and parametric function classes, including linearly embeddable models. In linear problems, the resulting rate is , compared with in the classical frequentist analysis of Thompson sampling by Abeille and Lazaric (2017). The distinction relevant to the present paper is between control in expectation and control with high probability. The number of observations allocated to an FGTS agent is random and depends on its previous rewards, so the meta-level argument requires a bound that holds simultaneously over all local visit counts. We establish such a bound for realized regret. In the linear specialization, it retains the dependence, up to logarithmic factors.
3 A Two-Stage Learning Problem
We consider a framework in which at each round, learning involves two connected decisions: the meta-learner selects an agent-environment pair, and the selected agent chooses how to act. The first decision uses the interaction history. Once selected, the agent observes a context from its environment and chooses an action. The resulting reward informs both the meta-learner's future selections and the agent's own decisions.
Formally, we consider candidate agent-environment pairs indexed by . Each pair has a context space , an action space , and a mean reward function . After observing a context and choosing an action , agent receives a reward equal to plus noise. The objective is to maximize mean reward by learning both which pair to select and how to act within each pair. Crucially, the pair is selected before its context is observed. We study two versions of this framework. In the first, the mean reward functions are drawn in advance from Gaussian process priors, independently of the exogenous randomness used to generate contexts and reward noise. In the second, the reward functions are deterministic.
The following examples illustrate these two levels of decision-making.
-
Delivery systems. A logistics company can deploy an autonomous drone, a van, or a ground robot. For each delivery, it first selects a vehicle. The selected vehicle then observes local conditions, such as weather, terrain, and traffic, and chooses a route or operational action. The reward combines delivery time, energy use, and reliability. Each vehicle learns how to operate, while the meta-learner learns which vehicle performs best overall.
-
Hierarchical hyperparameter optimization. A meta-learner first selects a model class. An optimizer dedicated to that class then chooses a hyperparameter configuration and receives its validation performance as a reward. The optimizer learns which configurations work well, while the meta-learner learns which model class is most promising. When no context is present, each context space can be a singleton. Our experiment on the MAGIC dataset in Section 7 follows this structure, with GBDT, SVM, and k-NN models and their respective hyperparameter spaces.
-
Power-generation technologies. An electricity producer compares several pilot plants before expanding deployment. At each round, it selects a plant to operate. The plant observes current demand, input costs, and equipment conditions, then chooses an operating strategy for a fixed period. Its reward reflects production, cost, and reliability. Each plant learns how to operate efficiently, while the meta-learner learns which technology is most effective overall.
We assume that the relevant functions are measurable and that the maxima below admit measurable selections. For each index , the optimal mean reward at context is
An optimal contextual policy for index is a measurable mapping that attains this maximum at every context:
Let denote the unknown distribution over from which environment generates contexts, and let . Assuming that is integrable under , almost surely in the Gaussian process setting, define the value of index by
Thus is the optimal mean reward averaged over contexts. Conditioning on makes this definition applicable to both versions of the framework: is random in the Gaussian process setting and deterministic otherwise.
Write . The random interaction history is , with realization . Here , , , and denote the selected index, observed context, chosen action, and reward at round , respectively. Starting from an empty history, the interaction proceeds over a horizon that is unknown in advance.
At each round :
-
The meta-learner selects an index based on .
-
Environment draws a fresh context from , and the selected agent observes its realization . Formally, .
-
The selected agent chooses an action based on , , and .
-
The environment reveals a reward , a realization of , satisfying
- The tuple is appended to the history to obtain .
The meta-learner's objective is to select indices attaining the optimal value , while the selected agents learn optimal contextual policies.
Regret definition Let denote the set of optimal indices. For each suboptimal index, define its gap by
and write . Let be the number of selections of index through round , with . We often refer to this quantity as the visit count of . For , define the th selection time of index by , with . Variables indexed by the th visit are defined only when . We use this notation to index random variables and their realizations at successive selections of index . In particular, , and .
The within-index regret after visits to index is
We define the total cumulative regret by
The first term measures the loss from selecting suboptimal indices. The second measures the loss from choosing suboptimal actions at the contexts encountered within each selected environment. Both terms are nonnegative, and precisely when every selected index is optimal and every chosen action is optimal for its observed context. This definition uses mean rewards rather than observed rewards, so it contains no direct reward noise term. It remains random through the contexts, the learner's decisions, and, in the Gaussian process setting, the reward functions.
Our definition differs from the regret considered by Arsenyan et al. (2026), which, in our notation, is
One can easily check that if is entirely determined by , we have
Thus, the two definitions of regret have the same index selection component. Their action selection components differ: evaluates the loss at the realized contexts and actions, whereas averages this loss conditionally on the reward functions and preceding history, including any randomness in action selection. For a fixed horizon , assuming integrability, the tower property yields . This equality does not imply a sample-path ordering between the two regrets. In Appendix D, we establish that our upper bounds also hold for up to multiplicative constants under the assumptions considered by Arsenyan et al. (2026).
Comparison with contextual index selection The order of decisions distinguishes our framework from settings in which contextual information is available before index selection. Here, the meta-learner selects an index using historical information; only then does the selected agent observe its context and choose an action. The appropriate oracle benchmark is therefore
By contrast, suppose that a jointly distributed collection of contexts , independent of and with marginals , were observed before index selection. An oracle could then adapt both its index and its action to the current contexts, attaining
The inequality can be strict when different indices are preferable under different context realizations. This alternative benchmark corresponds to a richer information structure and requires a joint context model, neither of which is assumed in our framework.
4 Proposed Method and Regret Guarantee
For each index , define the empirical mean reward after visits by
This quantity reflects both the quality of the environment and the agent's progress in learning how to act within it. After visiting each index once, a naive meta-learner might select at round the index with the largest empirical mean . However, an agent with a large optimal value may initially appear unpromising because it has not yet learned an effective policy. Selecting indices solely by their empirical rewards may therefore deprive promising agents of the visits needed to improve.
Meta-Frieren accounts for this learning effect by adding a within-index regret correction to the empirical mean, together with confidence radii for context variability and reward noise. The resulting upper confidence bound, denoted by , provides an optimistic estimate of after visits. The algorithm selects the index with the largest upper confidence bound, using a fixed deterministic tie-breaking rule. We set ; the bounds for used in the high-level description of the algorithm presented below are assumed to be finite. Thus every index is visited once before any index is revisited.
Meta-Frieren. Fix a confidence parameter and initialize for every . At each round :
- Select the agent corresponding to the index
-
The selected agent observes its context, chooses an action, and receives a reward according to the protocol in Section 3.
-
Update the selected agent, its visit count, and its empirical mean reward.
The confidence bounds constructed below make this procedure independent of the horizon. Its performance depends on both the choice of these bounds and the agents' action selection rules. We next state conditions on the agents' learning performance, context variability, and reward noise that guide the construction of and yield a general regret bound. Subsequent sections specialize this bound to concrete settings in which regret grows sublinearly with the horizon .
4.1 Concentration assumptions used in the regret upper bound
The definition of within-index regret gives the decomposition
Thus, estimating from observed rewards requires controlling three quantities: the agent's learning loss (ALL), fluctuations in the optimal contextual reward (OCR), and reward noise
- The name "Meta-Frieren" is a reference to the manga and anime Frieren: Beyond Journey's End. The prefix "meta" reflects the hierarchical structure: the meta-learner learns which agent to select, while each selected agent learns within its environment.
(RwN). The following assumptions provide these controls uniformly over visit counts. The bounds are required under the interaction protocol of Section 3, including adaptive selection of the agents.
Assumption (MF) For each , there exist deterministic functions , , and from to such that, for every , each of the following bounds holds with probability at least , simultaneously over all visit counts:
(ALL)
(OCR)
(RwN)
For an agent selected only finitely often, these inequalities are required at the visits actually made, that is, for . The functions , , and are assumed known to the meta-learner. If the horizon is known, it suffices to require simultaneous validity for visit counts up to .
These assumptions separate the meta-level analysis from the choice of learning algorithm within each pair. Within-index regret bounds are available for GP-UCB under suitable Gaussian process and RKHS assumptions (Srinivas et al., 2010; Krause and Ong, 2011; Iwazaki, 2025). In Section 6, we establish analogous guarantees for FGTS under deterministic reward functions and suitable assumptions on the candidate model class. Context concentration in the Gaussian process setting is considered in Arsenyan et al. (2026, Lemma 3). The noise condition holds, for example, under a uniform conditional sub-Gaussian bound or uniformly bounded martingale differences, with suitable anytime confidence radii.
4.2 The Meta-Frieren selection rule
We now use the bounds in Assumption (MF) to construct an upper confidence bound on each index's value , accounting for both the agent's learning loss and the variability in its observed rewards. Fix and define the abbreviations
Applying the three parts (ALL), (OCR) and (RwN) of Assumption (MF) with confidence parameter and taking a union bound over indices gives a common event of probability at least . On this event, the decomposition (4) and the nonnegativity of imply
This motivates the meta-level upper confidence bound
The correction accounts for the agent's learning loss, while accounts for context and reward fluctuations. In particular, on the high-probability event (5),
The upper bound in (7) shows how Meta-Frieren limits visits to suboptimal indices. Once , the index's upper confidence bound falls below the value of an optimal index. For the following result, set .
Theorem 1 Suppose that Assumption (MF) holds. For Meta-Frieren, the following statements hold with probability at least , simultaneously for all . For every ,
with if the set is empty. Moreover,
where the last maximum is over all whose sum of entries is less than or equal to .
Proof Apply each part of Assumption (MF) with confidence parameter , and let be the intersection of the resulting events over all . A union bound gives . On this event, simultaneously at all visits made,
and both (5) and (7) hold. We work on throughout the proof.
Fix and a suboptimal index . If the set in (8) is empty, then . Otherwise, write and suppose, for a contradiction, that . There is then a round at which and . By (7) and the definition of ,
For any optimal index , the lower confidence bound gives if . If , its upper confidence bound is infinite. In either case, selecting contradicts the maximization rule of Meta-Frieren. Therefore, .
The regret decomposition and the within-index bounds now imply
By construction, is nondecreasing in , including at zero since . For each suboptimal index, we may therefore replace by in the first two sums. For the last sum, the vector has nonnegative integer entries and satisfies . It is thus feasible for the maximum in (9), which proves that inequality.
The argument is pathwise on the same event for every , so both conclusions hold simultaneously for all horizons.
The theorem separates regret into the cost of selecting suboptimal indices, the learning losses incurred within those indices, and the learning losses incurred within optimal indices. If and , each suboptimal index is selected only finitely many times on a high-probability event. Subsequent regret is therefore driven by learning within the optimal indices.
The last term allows for multiple optimal indices. They have the same optimal context-averaged value, but their learning rates may differ. The maximum accounts for the worst allocation of visits among them. When the optimal index is unique, say , this term reduces to .
To briefly illustrate the usefulness of Theorem 1, suppose that the within-index regret bounds and concentration radii satisfy and , for some constants , uniformly over . Such bounds, possibly up to logarithmic factors, arise in many standard online learning settings, including those considered in the following sections. Under these conditions, Theorem 1 yields the regret bound
Thus, the additional task of learning which agent to select does not deteriorate the (sublinear in ) -dependence of the regret bound, although it introduces a dependence on the number of candidate agents.
To establish this bound, consider a suboptimal index . By the definition of , either , or
which is equivalent to . Consequently,
Taking into account this inequality and the fact that , for every , we get
Optimizing with respect to , we get that the regret due to selecting suboptimal indices satisfies
On the other hand, the total within-index learning loss is bounded, by the Cauchy-Schwarz inequality, as . Combining this inequality and (12) with the regret decomposition (10) proves (11).
5 Gaussian Process UCB Agents
We now specialize Meta-Frieren to agents that use Gaussian process upper confidence bounds (GP-UCB) introduced by Krause and Ong (2011). The analysis follows the structure of Assumption (MF): we specify a within-index regret bound and confidence radii for context variability and reward noise, then substitute them into the general meta-regret guarantee.
We consider two settings: Bayesian and frequentist. In the Bayesian setting, the reward functions are sampled from Gaussian process priors. In the frequentist setting, they are fixed functions belonging to a reproducing kernel Hilbert space. We also examine the non-contextual case, where sharper within-index bounds yield improved meta-regret guarantees.
For each , let be a known covariance kernel on , normalized so that for every . A central quantity in the regret analysis of Gaussian process-based sequential learning algorithms is the maximum information gain after observations (Srinivas et al., 2010; Vakili et al., 2021) defined by
where is the kernel Gram matrix. We set . Under a Gaussian process prior with independent Gaussian noise, the log-determinant expression is the mutual information between the function values at the evaluation points and their noisy observations. Thus measures the largest information gain obtainable from a fixed design of evaluations. In the frequentist setting, the same expression serves as a deterministic measure of kernel complexity.
Throughout this section, we use for a local confidence parameter and for the overall failure probability of Meta-Frieren. We write
5.1 Bayesian setting
We first consider the Bayesian setting, in which each reward function is drawn from a zero-mean Gaussian process with covariance kernel . To derive regret guarantees, we impose the following assumptions on the kernels, the context distributions, and the observation noise. In particular, we require sufficient regularity of the Gaussian process sample paths.
Assumption (BS) For every index , let and be nonempty, convex, compact sets, and write and .
-
Each is a Gaussian process on , with zero mean and a covariance kernel bounded by : for every .
-
The contexts are iid with distribution , and the noise variables are iid . All context and noise sequences are mutually independent, both within and across indices, and are jointly independent of the collection of Gaussian processes . At the -th visit to index , the reward is .
-
There exist constants and such that, for every and , with probability at least , the sample path is continuously differentiable and
Assumptions of this type are standard in Bayesian optimization. The main regularity requirements concern the boundedness of the covariance kernels and the control of the sample-path derivatives in (13). A sufficient condition for the latter is that the covariance kernels are four times continuously differentiable (Ghosal and Roy, 2006). Importantly, the sample-path regularity condition plays two roles in our analysis: it controls the discretization error in GP-UCB and the variability of the optimal reward across contexts.
At each visit, agent selects its action using the contextual GP-UCB rule. Let and denote, respectively, the posterior mean and standard deviation of , given the observations collected during the first visits to index . At its -th visit, after observing the context , agent selects
The exploration parameter is chosen as
where .
We now specify the within-index regret bound and the two concentration radii required by Assumption (MF). For every , and , set
and
We also set .
The noise radius follows from Gaussian concentration. The context radius combines the sample-path regularity condition (13) with concentration of the empirical averages of the optimal contextual rewards. Finally, the within-index regret bound follows from the analysis of GP-UCB (Srinivas et al., 2010; Krause and Ong, 2011). Together, these bounds verify the three requirements of Assumption (MF).
Fix and set . Each GP-UCB agent uses the exploration parameter , and Meta-Frieren uses the corresponding within-index regret bounds and concentration radii. As in Section 4, we suppress the confidence argument and write
To state the regret guarantee, define
where if every index is optimal. We also introduce
The quantities and control the information gain at suboptimal and optimal indices, respectively.
Theorem 2 Consider Meta-Frieren with the meta-level selection rule of Section 4, where each agent follows the contextual GP-UCB rule (14) with exploration parameter (15). Under Assumption (BS), for every , with probability at least , simultaneously for all , the cumulative regret defined in (1) satisfies
The first term accounts for learning within optimal indices, whereas the gap-dependent term controls the cost of selecting and learning at suboptimal indices. The remaining terms are finite-visit corrections.
To illustrate the order of magnitude of the bound, consider squared-exponential kernels with fixed hyperparameters. Writing , the standard information-gain estimate gives , see Srinivas et al. (2010, Theorem 5). Moreover, for fixed confidence level, and . Consequently, Theorem 2 implies
Here the notation suppresses polylogarithmic factors in , with constants depending on the fixed problem parameters and confidence level. In particular, the contribution of optimal indices grows at most as , up to logarithmic factors, while the gap-dependent contribution grows only polylogarithmically with the horizon.
5.2 Frequentist setting
We now turn to the frequentist setting, in which the reward functions are fixed rather than sampled from Gaussian process priors. More precisely, we assume that each belongs to the RKHS associated with , with known norm bound . We also relax the Gaussian noise assumption, requiring instead that
Thus, the observation noise is conditionally -sub-Gaussian.
Each agent continues to select its actions according to the GP-UCB rule (14), using the same kernel-based prediction formulas. In the present setting, however, these formulas are viewed as kernel-based estimators, rather than as the posterior mean and variance of a correctly specified Gaussian process model. The exploration parameter is chosen as
We next specify the three bounds required by Assumption (MF). By the reproducing property and the normalization of the kernel,
In particular, the optimal contextual rewards take values in , so their empirical averages satisfy a uniform concentration inequality based on Hoeffding's inequality. Combined with the concentration of the sub-Gaussian observation noise, this leads to
Moreover, Proposition 1 in Appendix A.2 provides the within-index regret bound
These choices establish the three requirements of Assumption (MF). Notice that, unlike in the Bayesian setting, no sample-path regularity assumption such as (13) is needed.
Fix and set . As in the Bayesian setting, let be the sum of the two concentration radii, and define , and by (18) and (19) using the present choices of , , and the radii, given by formulas (21), (24) and (23), respectively.
Theorem 3 Consider Meta-Frieren with the meta-level selection rule of Section 4, where each agent follows the GP-UCB rule (14) with the exploration parameter specified above. Under the frequentist assumptions of this subsection, for every , with probability at least , simultaneously for all , the cumulative regret defined in (1) satisfies
The proof is given in Appendix A.2. As in the Bayesian setting, the first term accounts for learning within optimal indices, while the gap-dependent term controls the contribution of suboptimal indices. The main difference is that the frequentist exploration parameter depends explicitly on the maximum information gain, which affects the resulting rates for particular kernels.
For squared-exponential kernels with fixed hyperparameters, as mentioned earlier, Srinivas et al. (2010, Theorem 5) shows that . Writing , we therefore have and , for fixed confidence level and problem parameters. Consequently, Theorem 3 yields
Thus, the frequentist and Bayesian settings lead to the same regret order up to polylogarithmic factors in . The frequentist bound has larger logarithmic factors because its exploration parameter depends on the maximum information gain.
6 Feel-Good Thompson Sampling
We now specialize Meta-Frieren to agents that use Feel-Good Thompson Sampling (FGTS) introduced in Zhang (2022). FGTS balances predictive accuracy and optimism: its sampling distribution favours candidate models that fit past observations while predicting large optimal rewards. To integrate these agents into Meta-Frieren, we establish high-probability bounds on their realized regret that hold uniformly over time.
We first specify the sampling rule and its assumptions. We then establish high-probability regret bounds for well-specified models with finite and continuous parameter spaces, and provide explicit tuning schemes that do not require knowledge of the horizon. These results yield the Meta-Frieren guarantees presented at the end of the section.
6.1 Model and sampling rule
For each , let be a parameter space, a prior probability measure on , and a family of candidate reward functions. All functions and kernels below are assumed measurable, and the maxima are assumed to admit measurable selections. Fix a measurable tie-breaking rule and define
Thus, is the optimal reward predicted by candidate at context .
At its th visit, agent observes , draws from the sampling distribution defined below, and plays . It then receives a noisy reward with conditional mean . The observed context, action, and reward are recorded in the interaction history and used to update the sampling distribution for subsequent visits to this agent-environment pair.
To specify the policy, it remains to define the distribution . To this end, we choose a fixed and a deterministic, positive, nonincreasing sequence , and define the “energy”
FGTS uses the Gibbs posterior
where we suppress the dependence on the interaction history. Each past observation retains the coefficient assigned to its visit. The squared-loss term favours candidates that predict past rewards accurately, while the feel-good term favours candidates with large predicted optimal rewards. The resulting Gibbs posterior need not coincide with a Bayesian posterior for the reward noise.
We analyse this sampling rule under the following assumptions on the noise, the candidate predictions, and the expected reward. We first assume that the reward noise is conditionally sub-Gaussian with variance proxy one.
Assumption (FGTS-N) Specifically, for every and ,
This condition implies that the noise has conditional mean zero. It accommodates adaptive action selection and does not require independence of the noise variables.
Assumption (FGTS-F) The true and candidate reward functions are deterministic and satisfy the following conditions for every .
- For every and ,
- There are an integer , measurable functions , and measurable functions such that
For each fixed , the functions are bounded.
Under the bounds required by the first condition above, the clipping of the feel-good term and the posterior support restrictions used in the analysis of Zhang (2022) are unnecessary. Bounded candidate predictions also ensure that the normalizing constant in (27) is finite and strictly positive at every finite visit. Boundedness of the candidate predictions can be enforced by restricting the parameter space to candidates taking values in [0,1], provided that the restricted family retains a representation of the true reward function. This restriction preserves the linear representation in the second condition. The prior is then chosen on the restricted parameter space.
The final assumption specifies the tuning conditions for the energy in (26).
Assumption (FGTS-P) For every ,
-
is deterministic, positive, and satisfies .
-
The sequence is deterministic, positive, and nonincreasing.
For the bounds below, define
6.2 High-probability regret bounds in well-specified discrete case
In this section, we assume that the true noiseless reward function belongs to the parametric class . We refer to this case as a well-specified model. We consider here the case of discrete parameter spaces and treat the continuous parameter spaces in the next section.
Theorem 4 Suppose that Assumptions (FGTS-F), (FGTS-N) and (FGTS-P) hold. Fix and . Suppose that is countable and that . With probability at least , the following bound holds simultaneously for all :
The proof is deferred to Section B.4. We can use this bound to choose the FGTS parameters. Suppose that, for every , the parameter space is finite and is uniform on . Assuming is known, choose
For this choice, . Substituting (30) into (29) and simplifying shows that, for each fixed , with probability at least , simultaneously for all ,
The factor in (31) results from the chosen horizon-independent tuning and the accumulation of past coefficients in our bound. If the horizon were known, we could instead choose
Then , eliminating the harmonic-number factor from the bound at . The concentration term still contains . We favour a simple bound here over optimized logarithmic factors. Replacing in (30) by improves the asymptotic factor in (31) to .
An alternative way to remove dependence on the horizon is the doubling trick: each agent runs successive epochs of lengths on its local clock, restarting FGTS with parameters tuned to the length of each epoch. Geometric restarts preserve square-root regret rates up to constant factors, apart from logarithmic terms already present in the bounds; see Lattimore and Szepesvári (2020, Exercise 6.6) and Besson and Kaufmann (2018). Starting from high-probability bounds, a guarantee valid simultaneously over all epochs can be obtained by allocating a summable sequence of failure probabilities across epochs. This approach allows one to reuse a fixed-horizon analysis and can yield smaller logarithmic factors than our simple tuning. However, restarting the posterior discards the information accumulated in previous epochs and may lead to repeated exploration. Our round-dependent tuning retains all past observations and provides a guarantee uniform over visit counts without restarting the algorithm.
The upper bound in (31) has leading dependence , apart from confidence- and horizon-dependent logarithmic factors. When contains actions, we may take . In this specialization, our bound matches, up to logarithmic factors, the minimax regret rate for general realizable contextual bandits with finite action and function classes; see Foster and Rakhlin (2020). This is a worst-case optimality statement over such classes, rather than an optimality statement for each individual class.
6.3 High-probability regret bounds in well-specified continuous case
We now consider continuous parameter spaces and candidate reward functions that depend Lipschitz-continuously on the parameter. For a uniform prior on the unit Euclidean ball, we obtain the following result proved in Section B.5.
Theorem 5 Suppose that Assumptions (FGTS-N), (FGTS-F), and (FGTS-P) hold. Fix and . Suppose that , and that is uniform on . Assume that and that
for some . Define for . With probability at least , simultaneously for all ,
For a tuning scheme analogous to the finite-class case, set
If every agent uses this tuning scheme, then, for each fixed , with probability at least , the following bound holds simultaneously for all :
Thus, for fixed confidence and model parameters, the regret bound grows as , as in the finite-class case. Here the parameter dimension and the Lipschitz constant determine the complexity term.
Consider a well-specified linear model with a known additive baseline:
The baseline and features are chosen so that all predictions lie in . For example, it suffices to take and . Since the baseline cancels in , the prediction errors admit a linear representation of dimension at most . We may therefore take , and our bound gives
where the notation suppresses logarithmic factors. This recovers the dimensional dependence established for FGTS by Zhang (2022). In comparison, classical frequentist analyses of linear Thompson sampling give bounds of order ; see Abeille and Lazaric (2017). The resulting dimension dependence improves by a factor over these classical Thompson sampling bounds. This comparison concerns frequentist guarantees for a fixed true parameter and should not be interpreted as a comparison with Bayesian regret, which averages over a prior on the true parameter. Our analysis retains the FGTS dimensional dependence while providing a high-probability guarantee that holds simultaneously over all visit counts, as required by Meta-Frieren.
For general linear bandits, the rate matches, up to logarithmic factors, the classical worst-case expected-regret lower bound of order in the nontrivial horizon regime; see Dani et al. (2008).
6.4 Regret under Meta-Frieren
We now combine the preceding anytime regret guarantees for FGTS with the general Meta-Frieren analysis. In both the finite and continuous well-specified settings, the agents use the horizon-independent tuning schemes introduced above and retain all their past observations.
We additionally assume that, at each visit to index , the new context has conditional distribution , given the history preceding its observation. Under Assumption (FGTS-N) and Assumption (FGTS-F), the reward noise is conditionally 1-sub-Gaussian and . Hence, the noise and context concentration requirements of Assumption (MF) hold with
Fix and set . Define
Then, for every , . We first consider finite parameter spaces. Building on the anytime bound (31), we define
and set .
Theorem 6 Suppose that Assumption (FGTS-N), Assumption (FGTS-F) and Assumption (FGTS-P) hold for every index, and that the finite-class FGTS agents use the tuning scheme (30), with confidence parameter . Assume that each is finite, its prior is uniform, and the model is well specified. Then, with probability at least , simultaneously for all , Meta-Frieren satisfies
We next consider the continuous parameter spaces of Theorem 5. Here the complexity of each class depends on its parameter dimension and the Lipschitz constant of its predictions. Define
and set .
Theorem 7 Suppose that Assumption (FGTS-N), Assumption (FGTS-F) and Assumption (FGTS-P) hold for every index. Assume also that, for each , the parameter space, prior, realizability, and Lipschitz conditions of Theorem 5 are satisfied. Each agent uses the horizon-independent tuning scheme specified after Theorem 5, with confidence parameter . Then, with probability at least , simultaneously for all , Meta-Frieren satisfies

(a) FGTS Experiment

(b) Frequentist GP-UCB

(c) Frequentist GP-UCB, misspecified
Figure 1: Top: frequency of selecting the corresponding index. Bottom: time-normalized regret .
The proofs are given in Appendix C. Both bounds have the same structure: the first term controls learning within optimal indices, while the gap-dependent term accounts for the cost of selecting and learning within suboptimal indices. The remaining terms reflect the initial exploration of the candidate indices.
For fixed confidence level and model parameters, the quantities , , and grow at most logarithmically in T. Consequently, both theorems give
Thus, as for GP-UCB agents, the meta-level selection task preserves the square-root dependence on the horizon, up to logarithmic factors.
7 Experiments
We evaluate Meta-Frieren under the GP-UCB and FGTS settings analysed in Section 5 and Section 6. In each experiment, we report the time-normalized regret at round , as well as the fraction of times each index has been selected up to round . All experiments are conducted for rounds using 64 distinct seed values. We report averages together with 1.96 standard-error bars.
Each experiment considers a two-index setting where is sampled independently and uniformly from the interval for every . The action variables are one-dimensional and take values in this interval for all indices.

(a) Bayesian GP-UCB
(b) SCM: CoCa-BO

(c) SCM: Meta-Frieren
Figure 2: The first column reports . The second and third columns report , where is the regret definition of CoCa-BO (2).
FGTS experiment We consider the following linearly embeddable reward functions:
where and are affine maps composed with a coordinate-wise sigmoid function, for all . The parameter space is defined by varying the affine parameters of over . In our experiment, we follow the specification of Theorem 5 with and . The parameters of the reward functions are chosen such that and .
As shown in Figure 1a, Meta-Frieren initially selects the suboptimal index more frequently. This behaviour is expected because gives the second index a larger exploration bonus in (34). After approximately 125 rounds, Meta-Frieren begins to favour the optimal index, and its selection frequency increases thereafter. At the same time, the time-normalized regret decreases, which is consistent with sublinear regret. The implementation details are provided in Appendix E.1.
GP-UCB experiments In this set of experiments, the index is assigned the reward function
with lengthscale . We set and , which yield and . We defer the implementation details for both configurations to Appendix E.2.
Frequentist configuration We use and in (23), (24) instead of a general bound , without invalidating our theory in Section 5.2. Our choices of and ensure that and have bounded RKHS norms under squared-exponential kernels with the corresponding lengthscales. More precisely, and , where is a squared-exponential kernel with lengthscale on the joint action-context domain (see Appendix E.3 for the calculation).
Figure 1b shows that Meta-Frieren rapidly concentrates its selections on the optimal index and exhibits sublinear regret. We additionally consider a setting with , thereby eliminating the additional exploration bonus associated with a larger RKHS norm bound. We use a Matérn-3/2 kernel whose hyperparameters are selected by maximizing the log marginal likelihood. As shown in Figure 1c, Meta-Frieren continues to identify the optimal index despite the misspecified kernel and estimated lengthscales.
Bayesian configuration We consider the same reward functions as in (36). The action and context dimensions and domain widths are set to and in (16), respectively, for every . We again use a Matérn-3/2 kernel and estimate its lengthscale by maximizing the log marginal likelihood. The results are presented in Figure 2a.
Comparison with CoCa-BO We compare Meta-Frieren with CoCa-BO using the Bayesian GP-UCB implementation of Arsenyan et al. (2026). The two methods differ only in their index selection rules: Meta-Frieren uses meta-UCB (6), whereas CoCa-BO uses the running average of the UCB scores evaluated at the previously selected points for each index. We consider the structural causal model (SCM) from the second configuration in Section 6 of Arsenyan et al. (2026), which consists of two indices sharing the same contextual variable , but having distinct action variables, denoted by and . In this configuration, the optimal index corresponds to . Further details are provided in Arsenyan et al. (2026).
The results for CoCa-BO and Meta-Frieren are shown in Figures 2b and 2c, respectively. In both figures, denotes the first index, whose agent selects based on the observed context , while denotes the second index. To ensure a direct comparison with Arsenyan et al. (2026), we report rather than . Comparing the two figures, Meta-Frieren identifies the optimal index and exhibits a regret profile similar to that of CoCa-BO, although its concentration on the optimal index is slightly slower.
Hyperparameter optimization experiment We conclude our experiments with a hierarchical hyperparameter optimization task in which, at each round, the algorithm selects a model class and optimizes its hyperparameters. We consider the task of discriminating gamma-ray signals from hadronic background using the MAGIC Gamma Telescope dataset (Bock, 2004). Each instance is represented by 10 numerical features describing the shape and orientation of the shower image. The dataset contains 19,020 instances, of which 12,332 correspond to gamma-ray signals and 6,688 to hadronic background. We randomly partition the data into training and validation sets and keep this split fixed across all evaluations, following Eggensperger et al. (2021).
We consider three model classes: gradient-boosted decision trees (GBDT) (Friedman, 2001) with histogram-binned splitting (Ke et al., 2017), a support vector machine (SVM) (Cortes
Table 1: Hyperparameter search spaces for the three model classes tuned on the MAGIC dataset. Closed intervals denote continuous ranges, while braces list discrete values.
| Model class | Hyperparameter | Range |
|---|---|---|
| GBDT | learning ratemax. number of leaf nodesmin. number of samples per leaf regularization | |
| SVM | penalty parameter kernel coefficient | |
| k-NN | number of neighbours neighbour weightingdistance metric |

(a) Bayesian GP-UCB

(b) FGTS

(c) Greedy method
Figure 3: Hierarchical hyperparameter optimization on the MAGIC dataset with the Bayesian GP-UCB configuration (a), the FGTS configuration (b), and the greedy baseline (c). Each panel shows the selection frequency of each model class (top) and the time-normalized regret (bottom) over the search spaces of Table 1.
and Vapnik, 1995) with a Gaussian kernel, and -nearest neighbours (-NN) (Dudani, 1976). The hyperparameter spaces considered for these models are given in Table 1. We describe the handling of integer and categorical hyperparameters in Appendix E.4.
- For the SVM, we follow the parameterization of the SVC class in scikit-learn, where is the penalty parameter and is the coefficient of the Gaussian kernel ; see https://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html.
For each model class, we optimize its hyperparameters for 3000 iterations using Bayesian GP-UCB and take the highest observed validation area under the curve (AUC) as . This procedure yields values of 0.94, 0.93, and 0.91 for GBDT, SVM, and k-NN, respectively. At each round , Meta-Frieren selects a model class and a corresponding hyperparameter configuration, trains the resulting model, and receives its validation AUC as the reward. We compare the Bayesian GP-UCB and FGTS configurations of Meta-Frieren with a greedy baseline. The baseline uses Bayesian GP-UCB to select hyperparameters within each model class, but selects the index solely according to its empirical mean reward, rather than the meta-UCB criterion in (6). Figure 3 reports the results.
Under the Bayesian GP-UCB configuration (Figure 3a), Meta-Frieren identifies GBDT as the optimal model class, and its selection frequency increases throughout the run. At the same time, the time-normalized regret decreases, which indicates that the within-index agent also locates well-performing hyperparameter configurations for GBDT. Under the FGTS configuration (Figure 3b), Meta-Frieren likewise selects GBDT increasingly often, although the selection frequency of SVM also grows. Since the selection frequency of GBDT grows at a faster rate than that of SVM, we expect GBDT to dominate the selections over a longer horizon. Finally, the greedy baseline (Figure 3c) performs worse than both configurations of Meta-Frieren. In 14 out of the 64 seeds, the empirical mean of the AUC values observed for SVM during the warm-up rounds exceeds that of GBDT, and the greedy rule subsequently remains stuck on SVM, so the selection frequency of GBDT cannot exceed 50/64. This failure illustrates the value of the exploration bonus in the meta-UCB criterion (6), which enables Meta-Frieren to recover from unfavourable initial observations instead of committing prematurely to a suboptimal model class.
Conclusion
We studied a two-stage online optimization problem in which a meta-learner repeatedly selects an agent-environment pair, after which the chosen agent observes a context, acts in its environment, and receives a reward. We introduced Meta-Frieren, a general framework for this class of problems, which requires from each agent only a high-probability bound on its within-index regret, together with concentration of the optimal contextual rewards and of the reward noise (Assumption (MF)). Under these conditions, Theorem 1 shows that the meta-UCB criterion (6) selects each suboptimal index at most times and yields a regret bound entirely by the within-index bounds and the concentration radii .
Since Meta-Frieren does not constrain how agents select their actions, it accommodates UCB-based methods as well as posterior sampling ones. We instantiated the framework with GP-UCB agents in both the Bayesian and frequentist settings (Section 5), recovering, in the Bayesian case, the guarantee of CoCa-BO (Arsenyan et al., 2026) up to constant factors, and with FGTS agents (Section 6). To enable the latter, we derived, to our knowledge, the first high-probability regret bound for FGTS (Proposition 2), together with theorems for realizable finite (Theorem 4) and parametric function classes (Theorem 5), the former being minimax-optimal up to logarithmic factors, and combined them with the meta-level analysis in Theorems 6 and 7. Our experiments support the theory, showing that Meta-Frieren concentrates its selections on the optimal index and exhibits sublinear regret in both the
GP-UCB and FGTS settings, remains effective under a misspecified kernel, and displays a regret profile comparable to that of CoCa-BO while applying to a broader class of agents.
Acknowledgements
This work was supported by Hi! PARIS and received government funding managed by the Agence Nationale de la Recherche under the France 2030 program, references (ANR-23-IACL-0005) and (ANR-23-PEIA-0004), as well as by ERC grant SAGMOS (grant agreement No. 101201229).
References
Marc Abeille and Alessandro Lazaric. Linear Thompson sampling revisited. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, volume 54 of Proceedings of Machine Learning Research, pages 176–184, 2017. URL https://proceedings.mlr.press/v54/abeille17a.html.
Vahan Arsenyan. banditry: an online learning framework with optimism-in-the-face-of-uncertainty and posterior-sampling agents, 2026. URL https://github.com/VahanArsenian/banditry.
Vahan Arsenyan, Antoine Grosnit, Haitham Bou-Ammar, and Arnak Dalalyan. Contextual Causal Bayesian Optimisation. The Fourteenth International Conference on Learning Representations, 2026.
Felix Berkenkamp, Angela P Schoellig, and Andreas Krause. No-regret bayesian optimization with unknown hyperparameters. Journal of Machine Learning Research, 20(50):1–24, 2019.
Lilian Besson and Emilie Kaufmann. What doubling tricks can and can't do for multi-armed bandits. arXiv preprint arXiv:1803.06971, 2018. URL https://arxiv.org/abs/1803.06971.
Julian Blank and Kalyanmoy Deb. pymoo: Multi-objective optimization in Python. IEEE Access, 8:89497–89509, 2020.
R. Bock. MAGIC Gamma Telescope. UCI Machine Learning Repository, 2004. DOI: https://doi.org/10.24432/C52C8B.
Corinna Cortes and Vladimir Vapnik. Support-vector networks. Machine learning, 20(3): 273–297, 1995.
Alexander Cowen-Rivers, Wenlong Lyu, Rasul Tutunov, Zhi Wang, Antoine Grosnit, Ryan-Rhys Griffiths, Alexandre Maravel, Jianye Hao, Jun Wang, Jan Peters, and Haitham Bou Ammar. HEBO: Pushing The Limits of Sample-Efficient Hyperparameter Optimisation. Journal of Artificial Intelligence Research, 74, 07 2022.
Varsha Dani, Thomas P. Hayes, and Sham M. Kakade. Stochastic linear optimization under bandit feedback. In Proceedings of the 21st Annual Conference on Learning Theory, 2008. URL https://colt2008.cs.helsinki.fi/papers/80-Dani.pdf.
Sahibsingh A Dudani. The distance-weighted k-nearest-neighbor rule. IEEE Transactions on Systems, Man, and Cybernetics, (4):325–327, 1976.
Audrey Durand, Odalric-Ambrym Maillard, and Joelle Pineau. Streaming kernel regression with provably adaptive mean, variance, and regularization. Journal of Machine Learning Research, 19(17):1–34, 2018. URL https://jmlr.org/papers/v19/17-404.html.
Katharina Eggensperger, Philipp Müller, Neeratoyoy Mallik, Matthias Feurer, René Sass, Aaron Klein, Noor Awad, Marius Lindauer, and Frank Hutter. Hpobench: A collection of reproducible multi-fidelity benchmark problems for hpo. arXiv preprint arXiv:2109.06716, 2021.
Dylan Foster and Alexander Rakhlin. Beyond ucb: Optimal and efficient contextual bandits with regression oracles. In International conference on machine learning, pages 3199–3210. PMLR, 2020.
Jerome H Friedman. Greedy function approximation: a gradient boosting machine. Annals of statistics, pages 1189–1232, 2001.
Subhashis Ghosal and Anindya Roy. Posterior Consistency of Gaussian Process Prior for Nonparametric Binary Regression. The Annals of Statistics, 34(5):2413–2429, 2006.
Steven R. Howard, Aaditya Ramdas, Jon McAuliffe, and Jasjeet Sekhon. Time-uniform Chernoff bounds via nonnegative supermartingales. Probability Surveys, 17:257–317, 2020. doi: 10.1214/18-PS321.
Shogo Iwazaki. Improved regret bounds for Gaussian process upper confidence bound in Bayesian optimization. Advances in Neural Information Processing Systems, 2025.
Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. Lightgbm: A highly efficient gradient boosting decision tree. Advances in neural information processing systems, 30, 2017.
Andreas Krause and Cheng Ong. Contextual Gaussian process bandit optimization. Advances in Neural Information Processing Systems, 24, 2011.
Tor Lattimore and Csaba Szepesvári. Bandit algorithms. Cambridge University Press, 2020.
Chunyuan Li, Changyou Chen, David Carlson, and Lawrence Carin. Preconditioned stochastic gradient Langevin dynamics for deep neural networks. In Proceedings of the 30th AAAI Conference on Artificial Intelligence, pages 1788–1794, 2016.
Haitham Seada and Kalyanmoy Deb. A unified evolutionary optimization procedure for single, multiple, and many objectives. IEEE Transactions on Evolutionary Computation, 20(3):358–369, 2016.
Niranjan Srinivas, Andreas Krause, Sham M Kakade, and Matthias Seeger. Gaussian process optimization in the bandit setting: No regret and experimental design. International Conference on Machine Learning, 2010.
Sattar Vakili, Kia Khezeli, and Victor Picheny. On information gain and regret bounds in Gaussian process bandits. In International Conference on Artificial Intelligence and Statistics, pages 82–90. PMLR, 2021.
Jean Ville. Étude critique de la notion de collectif. Gauthier-Villars, Paris, 1939.
Max Welling and Yee Whye Teh. Bayesian learning via stochastic gradient Langevin dynamics. In Proceedings of the 28th International Conference on Machine Learning, pages 681–688, 2011.
Tong Zhang. Feel-good Thompson sampling for contextual bandits and reinforcement learning. SIAM Journal on Mathematics of Data Science, 4(2):834–857, 2022.
Contents of the appendices
A Proofs of Bounds for Meta-Frieren with GP-UCB 28
A.1 Proof of Theorem 2 ..... 28
A.2 Proof of Theorem 3 ..... 30
B Regret bounds for Feel-Good Thompson Sampling 32
B.1 General assumptions and the decoupling coefficient ..... 32
B.2 A general high-probability bound ..... 34
B.3 High-probability regret bounds under misspecification ..... 38
B.4 Proof of Theorem 4 ..... 40
B.5 Proof of Theorem 5 ..... 40
C Proofs of the Meta-Frieren bounds with FGTS 41
C.1 Proof of Theorem 6 ..... 42
C.2 Proof of Theorem 7 ..... 42
D Regret Conversion 42
E Experimental details 43
E.1 FGTS implementation details ..... 43
E.2 GP-UCB implementation details ..... 44
E.3 RKHS norms of the reward functions ..... 45
E.4 Variable-type handling in the MAGIC experiment ..... 45
Appendix A. Proofs of Bounds for Meta-Frieren with GP-UCB
This section provides proofs of regret upper bounds for Bayesian GP-UCB (Section 5.1) and frequentist GP-UCB (Section 5.2).
A.1 Proof of Theorem 2
We begin by verifying that the three conditions of Assumption (MF) hold with the bounds specified in (16)–(17). Recall that, for each index i, the observations are numbered according to the successive visits to that index, rather than the global rounds of Meta-Frieren.
First, since the observation noises are independent and distributed as , Gaussian concentration yields
This establishes (RwN).
Second, the optimal contextual rewards are iid conditionally on . Under the sample-path regularity condition (13), Lemma 3 of (Arsenyan et al., 2026) provides the corresponding uniform concentration inequality, with radius . Thus, (OCR) holds simultaneously for all , with probability at least .
Third, by Theorem 1 of Krause and Ong (2011), the contextual GP-UCB rule (14), with exploration parameter (15), satisfies
This establishes (ALL).
Each of these three guarantees concerns the sequence of observations collected at a fixed index and holds uniformly over its local visit counts. They therefore remain valid when the indices are selected adaptively by Meta-Frieren. Finally, applying a union bound over the three guarantees and all indices, and recalling that , we obtain
On this event, the conditions of Theorem 1 are satisfied, and we can apply the general meta-regret bound.
Let then, with a slight abuse of notation, we have that
where we have used the fact that , , and are monotonically increasing with . Let , then using Young's inequality
Thus, and if , then
as . While for
Combining the last display with the upper bound on yields
when . Noting that , and hence gives
(37) for all . Finally, for the optimal indices
(38)
Combining (37) and (38), we get that the regret of Meta-Frieren is upper bounded by
A.2 Proof of Theorem 3
We first verify that the radii in (23) satisfy (RwN) and (OCR). The noise radius satisfies (RwN) by the sub-Gaussian noise condition (20). For the context radius, (22) gives . Since the contexts are iid Hoeffding's inequality bounds the probability that the deviation in (OCR) exceeds by for each fixed . A union bound over , using , then yields (OCR).
Proposition 1 Under the setting of Section 5.2, for every ,
with probability at least , simultaneously for every .
Proof Fix and . Applying Theorem 1 of Durand et al. (2018) with regularization parameter and noise sub-Gaussian parameter , and using , we obtain, with probability at least , simultaneously for all and ,
Here we have used the fact that, for , the uncertainty term in the cited theorem coincides with the GP posterior standard deviation, together with the monotonicity of in . On this event, the GP-UCB action selection rule and (39) give
where and . Let . Srinivas et al. (2010, Lemma 5.3) yields
Since , concavity of implies
Consequently, monotonicity of and Cauchy-Schwarz give
This completes the proof of the proposition.
We are now ready to conclude the proof of Theorem 3. We work on the high-probability event . From Theorem 1,
Consequently,
Applying the bound on the number of suboptimal-index visits to the within-index regret gives
where the first inequality separates the last visit, whose regret is at most 2b. For optimal indices, Cauchy-Schwarz and the definition of yield
Combining these estimates with (1) and applying Young's inequality gives
on the event .
Appendix B. Regret bounds for Feel-Good Thompson Sampling
This appendix proves the results in Section 6. We first establish a general regret bound that allows arbitrary reward bounds and noise variance proxies. We then derive the finite- and continuous-parameter results stated in the main text.
B.1 General assumptions and the decoupling coefficient
We first extend the assumptions of the main text to arbitrary reward bounds and noise variance proxies. This formulation makes the dependence of the regret bounds on these scales explicit. The main-body results follow by setting . When the scales are known, an equivalent normalization can be obtained by rescaling the rewards and candidate functions, together with the tuning parameters.
Assumption (FGTS-N') For every , there exists such that for all ,
Assumption (FGTS-F') The true and candidate reward functions are deterministic and satisfy the following conditions for every .
- There is a fixed such that, for every and ,
- There are an integer , measurable functions , and measurable functions such that
For each fixed , the functions are bounded.
The final assumption specifies the tuning conditions for the FGTS algorithm.
Assumption (FGTS-P') For every ,
-
is deterministic, positive, and satisfies .
-
The sequence is deterministic, positive, and nonincreasing.
We follow Zhang (2022) and introduce the decoupling coefficient that compares the prediction error of a candidate at its own greedy action with the prediction error of an independent candidate evaluated at that action. Define
For a measurable subset , let
We use the conventions and for . This quantity appears naturally in the analysis of the regret of FGTS. The goal of the second part of Assumption (FGTS-F'), as shown in the next lemma, is to provide a simple upper bound on the decoupling coefficient.
Lemma 1 If the second part of Assumption (FGTS-F') holds, then for every .
Proof To ease notation and without any loss of generality, we remove the dependence of all the quantities on and on . Thus, for instance, we write instead of . Introduce the vector-valued functions
Then . For a probability measure on , consider the matrix , which is finite because the functions are bounded. Let denote its Moore-Penrose inverse. If is a vector from a basis of , then , and hence for -almost every . Therefore, belongs to the range of and
almost surely. Using this identity and the Cauchy-Schwarz inequality, we obtain
The first expectation equals rank(). Indeed,
Moreover, the second expectation can be written as
Consequently,
Since and the context were arbitrary, this proves under the linear representation assumption. This completes the proof of the lemma.
B.2 A general high-probability bound
Another ingredient naturally appearing in the regret analysis is the log-partition function that, roughly speaking, measures how much prior mass is assigned to candidates that explain the observations. Define the excess loss relative to the true reward function by
Write and introduce
These quantities are used only in the analysis and need not be computed by the agent. Recall also that , so that .
Proposition 2 Suppose that Assumptions , and the first part of Assumption hold. Fix and . With probability at least , the following bound holds simultaneously for all :
The log-partition term relates regret to the prior mass assigned to accurate and sufficiently optimistic candidates. The remaining two terms arise from concentration: the first controls the posterior mixture uniformly over time, while the second converts conditional expected regret into realized regret.
Proof of Proposition 2 Since is fixed, we suppress this index throughout the proof. The argument has four steps. We first separate the conditional regret into feel-good and prediction error terms. We then relate the posterior mixture to the log-partition function, bound its conditional moment, and finally pass to realized regret.
Conditional information On the local clock of the fixed agent, write
The first -algebra contains the information available before sampling the action; the second also contains the selected action. The next contains the reward from visit , and the posterior is -measurable. We work on the local clock of the fixed agent under the stated conditional sampling and noise assumptions. The bound holds simultaneously over visit counts and can therefore be evaluated at the random count in the meta-level application.
We introduce the quantities
that allow us to decompose the cumulative regret as follows:
Step 1: decoupling the conditional regret For posterior integration, introduce with conditional law , using fresh randomness independent of given . Thus the two parameter draws are conditionally independent, and the auxiliary draw is also independent of the reward conditionally on . It is used only in the analysis. Define the feel-good and the Bellman errors:
Since , the per-visit regret satisfies
Set
Both quantities are -measurable, and . The actual and auxiliary parameter draws, and , have the same conditional law, so they give the same posterior mean of . This leads to
The expression in parentheses equals and is therefore nonnegative. Since for , we obtain
Applying (42) to yields . Therefore,
It remains to control the posterior mean feel-good term while retaining a negative squared-error term that offsets the second term on the right. This is done using the following decomposition. Write , and define
The moment bound in Step 3 establishes that almost surely. Also, pathwise because predictions are bounded and the observed reward is finite. We can now rewrite (44) in the following form:
Step 2: the posterior mixture and the partition function The goal of this step is to upper bound the sum over of the terms , the last terms appearing in decomposition (45). Set and . The terms subtracted from to form do not depend on , and hence cancel in the posterior normalization. Consequently,
Integrating the weight recursion gives
The second equality substitutes the posterior expression from (46). Taking logarithms and summing, we obtain the exact identity
To compare the mixture with its conditional mean, define and . Since and are -measurable,
Thus is a nonnegative martingale starting at one. Ville's inequality (Ville, 1939; Howard et al., 2020) gives an event of probability at least on which for every . Using (47), on this event we have
This is the only concentration step needed for the log-partition function itself. The upper bound (45) can be further bounded by
Step 3: controlling the conditional mixture The following lemma supplies the negative squared-error term needed in (45).
Lemma 2 Assume (40) and (41), with the index suppressed, and let satisfy . Then almost surely and
We postpone the proof of this lemma to the end of this section. Combining the lemma with (48) and completing the square gives
Indeed, for every ,
By definition, . Since , we have
This leads to
The square completion explains the role of decoupling: its linear prediction-error term is absorbed by the negative quadratic term supplied by the posterior mixture.
Step 4: passing to realized regret Since , the variables are martingale differences whose conditional ranges have length . The Azuma-Hoeffding inequality implies that for each fixed ,
A union bound and show that these deviations are bounded simultaneously for all with probability at least . Combining with (49), we get
with probability at least . This proves (43).
Proof of Lemma 2 For fixed , write . Expanding the squared-loss difference gives
Both and are -measurable. Applying the conditional sub-Gaussian bound at therefore yields
The tuning condition implies , so . Integrating over the auxiliary draw and then over the action, using conditional independence and the tower property, gives
Conditional Tonelli justifies interchanging the posterior integral and conditional expectation. The right-hand side is finite since both terms in its exponent are bounded. Strict positivity follows from positivity of the integrand defining .
Conditional Cauchy-Schwarz now gives
Conditionally on , the feel-good term lies in , an interval of length . Conditional Hoeffding's lemma implies
For the second term, bounded predictions imply . Since , we may use the endpoint chord of on . It gives
The second inequality uses . Taking conditional expectations and applying , we obtain
The logarithm is well-defined because . Substituting (51) and (52) into (50) proves the claim.
B.3 High-probability regret bounds under misspecification
Recall that , so that .
Proposition 3 Suppose that Assumptions (FGTS-N'), (FGTS-F') and (FGTS-P') hold. Fix , , and a deterministic sequence of probability measures on , with for every . Set
With probability at least , the following bound holds simultaneously for all :
The proof of this proposition consists in combining Proposition 2 and an upper bound on the log-partition function established below. Since the latter deals with a fixed agent , for simplicity of exposition, we remove indices from the notation.
Lemma 3 Fix a sequence of deterministic probability measures on , and set
Suppose Assumption and the first part of Assumption hold. Then, for every , with probability at least , simultaneously for all ,
Proof Recall that
where the last inequality follows from the Donsker-Varadhan variational formula. Expanding the squared-loss difference gives
Integrating this equality and using the notation and introduced in the statement of the lemma, we get
Furthermore, the noise assumption and the tower property give
Chernoff's bound implies
This implies that
and the claim of the lemma follows.
B.4 Proof of Theorem 4
Fix and suppress this index throughout the proof. The assumptions of the main text imply the general assumptions with . Moreover, the linear representation of the prediction errors gives .
Let , so that . For every , both terms in the excess loss vanish. Consequently,
Restricting the partition integral to therefore gives the pathwise bound
Applying Proposition 2, we obtain, with probability at least , simultaneously for all ,
Since and , we have . This proves the stated bound.
B.5 Proof of Theorem 5
Fix and suppress this index throughout the proof. Write , and choose such that . The assumptions of the theorem imply Assumptions (FGTS-N'), (FGTS-F'), and (FGTS-P') with .
For each , define
We will apply Proposition 3 to the deterministic sequence . We first verify that these measures are well-defined and bound their KL divergences.
Set . For every , the triangle inequality gives
Thus . Since is uniform on the unit ball, comparison of volumes yields . Consequently, is well-defined, , and
Next, the Lipschitz assumption and realizability imply
Since is supported on , the definitions of the approximation errors give
Substituting these inequalities and the KL bound into Proposition 3, with , shows that, with probability at least , simultaneously for all ,
Finally, and imply
Furthermore, and give
Combining these inequalities proves the theorem.
Appendix C. Proofs of the Meta-Frieren bounds with FGTS
We first verify Assumption (MF), then use one common calculation for the two regret envelopes.
Noise and context concentration Fix and . Iterating the conditional noise bound in (28) gives
The two-sided sub-Gaussian tail therefore implies
When , the noise vanishes almost surely and the bound is immediate. A union bound over proves (RwN) in Assumption (MF) with the radius in (32) and failure probability .
For contexts, the stated conditional sampling assumption gives conditional mean for , and this variable lies in . Conditional Hoeffding's lemma, followed by the same union bound, yields
Thus, (OCR) holds with the stated radius and failure probability . Independence of contexts across indices is not needed for this calculation. Finally, the tuned guarantees verify (ALL). Each envelope is deterministic and nondecreasing. Intersecting these three events over the indices gives the probability statement in the main text.
C.1 Proof of Theorem 6
Work on , and fix . For brevity, write , , and as in (8). Monotonicity of the logarithmic factors gives, for every ,
For a suboptimal index, let . If , then , so the defining criterion for holds at . If , the convention suffices. In either case,
The additive one accounts for the strict inequality and the integer visit count in (8). Consequently,
For optimal indices, any nonnegative integer allocation with satisfies
The last inequality is Cauchy-Schwarz. Substituting these three bounds into (9) proves (33).
C.2 Proof of Theorem 7
The continuous-class envelope satisfies (53) with and . The noise and context radii are unchanged. Applying (54) and the three subsequent bounds with these substitutions proves (35).
Appendix D. Regret Conversion
We define
The following proposition relates and .
Proposition 4 Fix . Then,
with probability at least , simultaneously for all .
Proof Let be the -algebra generated by and
Recall that and differ only in their action selection components (1), (3), so that
Since is -measurable, . We consider
where we have used the endpoint chord of on with convention. So
is a nonnegative supermartingale. Ville's inequality gives, with probability at least , simultaneously for all ,
Using , , and (56) yields (55).
In the frequentist setting of Section 5.2, it follows from (22) that . In the Bayesian setting of Section 5.1, it follows from (13) that
on the event . Hence, in both settings, we obtain an upper bound on which can be plugged into Proposition 4.
Appendix E. Experimental details
This section provides additional information on the experiments described in Section 7.
E.1 FGTS implementation details
Exact sampling of from the FGTS posterior (27) is intractable for the parametric class of Section 6.3. We therefore approximate each draw with stochastic gradient Langevin dynamics (SGLD) (Welling and Teh, 2011), targeting the potential
with as in (26). The squared-error term of is implemented as a Gaussian negative log-likelihood whose observation scale is appended to the chain as an additional coordinate, which amounts to sampling jointly with . The feel-good term requires the greedy value . For every distinct context in the minibatch, we approximate the maximization in (25) by the U-NSGA-III evolutionary optimizer (Seada and Deb, 2016). The reported runs use . In place of the uniform prior of Theorem 5, we use a nearly flat Gaussian prior with precision . Our implementation builds on the Banditry codebase (Arsenyan, 2026).
We run the preconditioned variant of SGLD (Li et al., 2016). Let denote an unbiased minibatch estimate of at iteration of the chain. The sampler maintains an exponential moving average of the squared gradients and the induced diagonal preconditioner,
and iterates
with , and . During burn-in, the step size follows the polynomial schedule of (Welling and Teh, 2011), with , , and ; after burn-in it is frozen at , where is the number of burn-in iterations, so that the chain keeps mixing.
E.2 GP-UCB implementation details
The within-index bound (17) involves the maximum information gain , which is known only up to constant factors for the kernels we use, namely the squared-exponential and Matérn kernels (Srinivas et al., 2010; Vakili et al., 2021). Our implementation therefore replaces it with the empirical counterpart
Lemma 5.4 of Krause and Ong (2011) bounds the regret of GP-UCB by the information gain of the observed points, and the maximum information gain enters their analysis only as an upper bound on this quantity. Hence, the bound (17) remains valid under this replacement in both the Bayesian and the frequentist configurations.
The issue of unspecified constants also arises for . In the frequentist configuration, we therefore set
This choice provides the same theoretical guarantees as the one in Section 5.2 (Berkenkamp et al., 2019). In the Bayesian configuration, we follow HEBO (Cowen-Rivers et al., 2022) and the Banditry codebase (Arsenyan, 2026) and set .
On each play, we maximize the acquisition function over , with the context fixed to its observed value, using the mixed-variable U-NSGA-III evolutionary optimizer (Seada and Deb, 2016; Blank and Deb, 2020), with a population of 100 evolved for 100 generations and initialized at the best previously observed action.
E.3 RKHS norms of the reward functions
Let denote the RKHS induced by the squared-exponential kernel
Writing , the reward function satisfies . Let denote the directional derivative along . Differentiating the kernel with respect to its second argument gives
Since , we may therefore write . Using the reproducing property for kernel derivatives,
Consequently, . For and , this yields and .
E.4 Variable-type handling in the MAGIC experiment
We consider three types of hyperparameters in the search spaces of Table 1, which are handled identically in the Bayesian GP-UCB and FGTS configurations. A continuous variable is optimized directly over its real-valued interval, with scale-sensitive quantities parameterized by their base-10 logarithm. An integer variable is represented as a real-valued coordinate in the reward model and rounded when decoded, whereas U-NSGA-III (Seada and Deb, 2016) treats it directly as an integer variable, ensuring that only integer values are proposed. A categorical variable with levels is represented by an integer code in . Within the reward model, this code is mapped through a learned embedding into following Arsenyan (2026); Cowen-Rivers et al. (2022), with the embedding parameters learned jointly with the remaining model parameters. U-NSGA-III instead treats the variable as a choice among the codes, without imposing an ordering or continuous relaxation on the categories.
For example, the distance metric of the -NN model is categorical, with levels . It is encoded by an element of and mapped to a learned two-dimensional vector within the reward model. The maximum number of leaf nodes for GBDT is an integer in . The reward model represents it as a real-valued coordinate, with the resulting proposal rounded before training. Finally, the GBDT learning rate is continuous and scale-sensitive, and is therefore optimized through its base-10 logarithm over .