Towards Practical Lipschitz Bandits
Tianyu Wang, Weicheng Ye, Dawei Geng, Cynthia Rudin

TL;DR
This paper introduces a flexible framework for Lipschitz bandit algorithms that adaptively partitions the space to optimize rewards efficiently, demonstrating state-of-the-art results in real-world tasks like hyperparameter tuning.
Contribution
We develop a novel adaptive partitioning framework for Lipschitz bandits, linking tree-based methods to Gaussian processes and proposing a hierarchical Bayesian model.
Findings
Achieves state-of-the-art performance in neural network hyperparameter tuning.
Effectively balances exploration and exploitation through adaptive space partitioning.
Demonstrates improved regret minimization in real-world applications.
Abstract
Stochastic Lipschitz bandit algorithms balance exploration and exploitation, and have been used for a variety of important task domains. In this paper, we present a framework for Lipschitz bandit methods that adaptively learns partitions of context- and arm-space. Due to this flexibility, the algorithm is able to efficiently optimize rewards and minimize regret, by focusing on the portions of the space that are most relevant. In our analysis, we link tree-based methods to Gaussian processes. In light of our analysis, we design a novel hierarchical Bayesian model for Lipschitz bandit problems. Our experiments show that our algorithms can achieve state-of-the-art performance in challenging real-world tasks such as neural network hyperparameter tuning.
| Layer | Hyperparameters | values |
| Conv1 | conv1-kernel-size | * |
| conv1-number-of-channels | 200 | |
| conv1-stride-size | (1,1) | |
| MaxPooling1 | pooling1-size | (3,3) |
| pooling1-stride | (1,1) | |
| Conv2 | conv2-kernel-size | * |
| conv2-number-of-channels | 200 | |
| conv2-stride-size | (1,1) | |
| MaxPooling2 | pooling2-size | (3,3) |
| pooling2-stride | (2,2) | |
| Conv3 | conv3-kernel-size | (3,3) |
| conv3-number-of-channels | 200 | |
| conv3-stride-size | (1,1) | |
| AvgPooling3 | pooling3-size | (3,3) |
| pooling3-stride | (1,1) | |
| Dense | batch-normalization | default |
| number-of-hidden-units | 512 | |
| dropout-rate | 0.5 |
| Layer | Hyperparameters | values |
| Conv1 | conv1-kernel-size | * |
| conv1-number-of-channels | 200 | |
| conv1-stride-size | (1,1) | |
| MaxPooling1 | pooling1-size | (3,3) |
| pooling1-stride | (1,1) | |
| Conv2 | conv2-kernel-size | * |
| conv2-number-of-channels | 200 | |
| conv2-stride-size | (1,1) | |
| MaxPooling2 | pooling2-size | (3,3) |
| pooling2-stride | (2,2) | |
| Conv3 | conv3-kernel-size | (3,3) |
| conv3-number-of-channels | 200 | |
| conv3-stride-size | (1,1) | |
| AvgPooling3 | pooling3-size | (3,3) |
| pooling3-stride | (1,1) | |
| Dense | batch-normalization | default |
| number-of-hidden-units | 512 | |
| dropout-rate | 0.5 |
| Hyperparameters | Range | |
| conv1-kernel-size | ||
| conv2-kernel-size | ||
| & | ||
| learning-rate | 1e-6 to 5 | |
| training-iteration |
| Layer | Hyperparameters | values |
| Conv1 | conv1-kernel-size | * |
| conv1-no.-of-channels | 200 | |
| conv1-stride-size | (1,1) | |
| MaxPooling1 | pooling1-size | * |
| pooling1-stride | (1,1) | |
| Conv2 | conv2-kernel-size | * |
| conv2-no.-of-channels | 200 | |
| conv2-stride-size | (1,1) | |
| MaxPooling2 | pooling2-size | * |
| pooling2-stride | (2,2) | |
| Conv3 | conv3-kernel-size | * |
| conv3-no.-of-channels | 200 | |
| conv3-stride-size | (1,1) | |
| AvgPooling3 | pooling3-size | * |
| pooling3-stride | (1,1) | |
| pooling3-padding | “same” | |
| Dense | batch-normalization | default |
| no.-of-hidden-units | 512 | |
| dropout-rate | 0.5 |
| Layer | Hyperparameters | values |
| Conv1 | conv1-kernel-size | * |
| conv1-no.-of-channels | 200 | |
| conv1-stride-size | (1,1) | |
| MaxPooling1 | pooling1-size | * |
| pooling1-stride | (1,1) | |
| Conv2 | conv2-kernel-size | * |
| conv2-no.-of-channels | 200 | |
| conv2-stride-size | (1,1) | |
| MaxPooling2 | pooling2-size | * |
| pooling2-stride | (2,2) | |
| Conv3 | conv3-kernel-size | * |
| conv3-no.-of-channels | 200 | |
| conv3-stride-size | (1,1) | |
| AvgPooling3 | pooling3-size | * |
| pooling3-stride | (1,1) | |
| pooling3-padding | “same” | |
| Dense | batch-normalization | default |
| no.-of-hidden-units | 512 | |
| dropout-rate | 0.5 |
| Hyperparameters | Range | |
| conv1-kernel-size | ||
| conv2-kernel-size | ||
| conv3-kernel-size | ||
| pooling1-size & pooling2-size | ||
| pooling3-size | ||
| & | ||
| learning-rate | 1e-6 to 5 | |
| learning-rate-redeuction | {1,2,3} | |
| training-iteration |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Towards Practical Lipschitz Bandits
Tianyu [email protected] Weicheng [email protected] Dawei [email protected] Cynthia [email protected]
Abstract
Stochastic Lipschitz bandit algorithms balance exploration and exploitation, and have been used for a variety of important task domains. In this paper, we present a framework for Lipschitz bandit methods that adaptively learns partitions of context- and arm-space. Due to this flexibility, the algorithm is able to efficiently optimize rewards and minimize regret, by focusing on the portions of the space that are most relevant. In our analysis, we link tree-based methods to Gaussian processes. In light of our analysis, we design a novel hierarchical Bayesian model for Lipschitz bandit problems. Our experiments show that our algorithms can achieve state-of-the-art performance in challenging real-world tasks such as neural network hyperparameter tuning.
1 Introduction
Stochastic Lipschitz bandit algorithms are methods that balance exploration-exploitation tradeoffs. Their usage arises in important real-world scenarios. For example, in medical trials, a doctor might deliver a sequence of treatment options with the goal of achieving the best total treatment effect, or with the goal of allocating the best treatment option as efficiently as possible, without conducting too many trials.
A stochastic bandit problem assumes that payoffs are noisy and are drawn from an unchanging distribution. The study of stochastic bandit problems started with the discrete arm setting, where the agent is faced with a finite set of choices. Classic works on this problem include Thompson sampling (Thompson, 1933; Agrawal and Goyal, 2012), Gittins index (Gittins, 1979), -greedy strategies (Sutton and Barto, 1998), and upper confidence bound (UCB) methods (Lai and Robbins, 1985; Auer et al., 2002). One recent line of work on stochastic bandit problems considers the case where the arm space is infinite. In this setting, the arms are usually assumed to be in a subset of the Euclidean space (or a more general metric space), and the expected payoff function is assumed to be a function of the arms. Some works along this line model the expected payoff as a linear function of the arms (Auer, 2002; Dani et al., 2008; Li et al., 2010; Abbasi-yadkori et al., 2011; Agrawal and Goyal, 2013); some algorithms model the expected payoff as Gaussian processes over the arms (Srinivas et al., 2010; Contal et al., 2014; de Freitas et al., 2012); some algorithms assume that the expected payoff is a Lipschitz function of the arms (Slivkins, 2014; Kleinberg et al., 2008; Bubeck et al., 2011; Magureanu et al., 2014); and some assume locally Hölder payoffs on the real line (Auer et al., 2007). When the arms are continuous and equipped with a metric, and the expected payoff is Lipschitz continuous in the arm space, we refer to the problem as a stochastic Lipschitz bandit problem. In addition, when the agent’s decisions are made with the aid of contextual information, we refer to the problem as a contextual stochastic Lipschitz bandit problem. Not many works Bubeck et al. (2011); Kleinberg et al. (2008); Magureanu et al. (2014) have considered the general Lipschitz bandit problem without making strong assumptions on the smoothness of rewards in context-arm space. In this paper, we focus our study on this general (contextual) stochastic Lipschitz bandit problem, and provide practical algorithms for use in data science applications.
Specifically, we propose a framework that converts a general decision tree algorithm into an algorithm for stochastic Lipschitz bandit problems. We use a novel analysis that links our algorithms to Gaussian processes; though the underlying rewards do not need to be generated by any Gaussian process. Based on this connection, we can use a novel hierarchical Bayesian model to design a new (UCB) index. This new index solves two main problems suffered by partition based bandit algorithms. Namely, (1) within each bin of the partition, all arms are treated the same; (2) disjoint bins do not use information from each other.
Empirically, we show that using adaptively learned partitions, Lipschitz bandit algorithms can be used for hard real-world problems such as hyperparameter tuning for neural networks.
**Relation to prior work: ** One general way of solving stochastic Lipschitz bandit problems is to finely discretize (partition) the arm space and treat the problem as a finite-arm problem. An Upper Confidence Bound (UCB) strategy can thus be used. Previous algorithms of this kind include the UniformMesh algorithm (Kleinberg et al., 2008), the HOO algorithm (Bubeck et al., 2011), and the (contextual) Zooming Bandit algorithm (Kleinberg et al., 2008; Slivkins, 2014). While all these algorithms employ different analysis techniques, we show that as long as a discretization of the arm space fulfills certain requirements (outlined in Theorem 1), these algorithms (or a possibly modified version) can be analyzed in a unified framework.
The practical problem with previous methods is that they require either a fine discretization of the full arm space or restrictive control of the partition formation (e.g., Zooming rule (Kleinberg et al., 2008)), leading to implementations that are not flexible. By fitting decision trees that are grown adaptively during the run of the algorithm, our partition can be learned from data. This advantage enables the algorithm to outperform leading methods for Lipschitz bandits (e.g. Bubeck et al. (2011); Kleinberg et al. (2008)) and for zeroth order optimization (e.g. (Martinez-Cantin, 2014; Li et al., 2016)) on hard real-world problems that can involve difficult arm space and reward landscape. As shown in the experiments, in neural network hyperparameter tuning, our methods can outperform the state-of-the-art benchmark packages that are tailored for hyperparameter selection.
In summary, our contributions are: 1) We develop a novel stochastic Lipschitz bandit framework, TreeUCB and its contextual counterpart Contextual TreeUCB. Our framework converts a general decision tree algorithm into a stochastic Lipschitz bandit algorithm. Algorithms arising from this framework empirically outperform benchmarks methods. 2) We develop a new analysis framework, which can be used to recover previous known bounds, and design a new principled acquisition function in bandits and zero-th order optimization.
2 Main results
2.1 The TreeUCB framework
Stochastic bandit algorithms, in an online fashion, explore the decision space while exploit seemingly good options. The performance of the algorithm is typically measured by regret. In this paper, we focus our study on the following setting. A payoff function is defined over an arm space that is a compact doubling metric space , the payoff function of interest is , and the actual observations are given by . In our setting, the noise distribution could vary with , as long as it is uniformly mean zero, almost surely bounded, and independent of for every . Our results easily generalize to sub-Gaussian noise (Shamir, 2011). In the analysis, we assume that the (expected) payoff function is Lipschitz in the sense that , for some Lipschitz constant . An agent is interacting with this environment in the following fashion. At each round , based on past observations , the agent makes a query at point and observes the (noisy) payoff , where is revealed only after the agent has made a decision . For an agent executing algorithm Alg, the regret incurred up to time is defined to be:
[TABLE]
where is the global maximizer of .
Any TreeUCB algorithm runs by maintaining a sequence of finite partitions of the arm space. Intuitively, at each step , TreeUCB treats the problem as a finite-arm bandit problem with respect to the partition bins at , and chooses an arm uniformly at random within the chosen bin. The partition bins become smaller and smaller as the algorithm runs. Thus, at any time , we maintain a partition of the input space. That is, are subsets of , are mutually disjoint and .
As an example, Figure 1 shows an partitioning of the input space, with the underlying reward function shown by color gradient. In an algorithm run, we collect data and estimate the reward with respect to the partition. Based on the estimate, we select a “box” to play next.
Each element in the partition is called a region and by convention . The regions could be leaves in a tree, or chosen in some other way.
Given any , if for any , there exists such that , we say that is a sequence of nested partitions. In words, at round , some regions (or no regions) of the partition are split into multiple regions to form the partition at round . We also say that the partition grows finer.
Based on the partition at time , we define an auxiliary function – the Region Selection function.
Definition 1** (Region Selection Function).**
Given partition , function is called a Region Selection Function with respect to if for any , is the region in containing .
As the name TreeUCB suggests, our framework follows an Upper Confidence Bound (UCB) strategy. In order to define our Upper Confidence Bound, we require several definitions.
Definition 2**.**
*Let be the partition of at time () and let be the Region Selection Function associated with . Let be the observations received up to time (). We define
the count function , such that*
[TABLE]
* the corrected average function , such that*
[TABLE]
* the corrected count function, such that*
[TABLE]
When , we shorten the notation from to , to , and to .
In words, is the number of points among that are in the same region as arm , with regions as elements in . We also denote by the diameter of , and .
At time , based on the partition and observations, our bandit algorithm uses, for
[TABLE]
for some and as the Upper Confidence Bound of arm ; and we play an arm with the highest value (with ties broken uniformly at random).
Remark 1**.**
As we will discuss in Section 2.3.2, the upper confidence index for our decision can take different forms other than (3).
Here depends on the almost sure bound on the reward, and depends on the Lipschitz constant of the expected reward, which are both problem intrinsics.
Since is a piece-wise constant function in the arm-space and is constant within each region, playing an arm with the highest with random tie-breaking is equivalent to selecting the best region (under UCB) and randomly selecting an arm within the region. After deciding which arm to play, we update the partition into a finer one if eligible. This strategy, TreeUCB, is summarized in Algorithm 1. We also provide a provable guarantee for TreeUCB algorithms in Theorem 1.
Theorem 1**.**
*Suppose that the payoff function defined on a compact domain satisfies for all and is Lipschitz. Let be the partition at time in Algorithm 1. If the tree fitting rule satisfies
(1) is a sequence of nested partitions (or the partition grows finer);
(2) for some ;
(3) for all , where*
[TABLE]
*is the diameter of region ;
(4) given all realized observations , the partitions are deterministic; then the regret for Algorithm 1 satisfies*
[TABLE]
with probability 1.
The above assumptions are all mild and reasonable. For item 1, we can use incremental tree learning (Utgoff, 1989) to enforce nested partitions. For item 2, we may put a cap (that may depend on ) on the depth of the tree to constrain it. For item 3, we may put a cap (that may depend on ) on tree leaf diameters to ensure it. For item 4, any non-random tree learning rule meets this criteria, since in this case, the randomness only comes from the data (and/or number of data points observed).
We now discuss the proof of Theorem 1. Throughout the rest of the paper, we use to omit constants and poly-log terms unless otherwise noted. To prove Theorem 1, we first use Claims 1 and 2 to bound the single step regret, we then use Lemma 1 and Assumptions (1) – (3) to bound the total regret.
To start with, we first present the following two claims, which may also be carefully extracted from previous works (e.g. Bubeck et al., 2011).
Claim 1**.**
For an arbitrary arm , and time , with probability at least , we have,
[TABLE]
for a constant that depends only on the a.s. bound of the reward.
Claim 2**.**
At any , with probability at least , the single step regret satisfies:
[TABLE]
for a constant , that depends only on the a.s. bound of the reward.
In Section 2.2, we prove general versions of Claims 1 and 2.
As the tree (partition) grows finer, the term is not necessarily increasing with (for an arbitrary fixed ). Therefore part of the difficulty is in bounding . Next, we introduce a new set of inequalities, which we call “point scattering” inequalities in Lemma 1 to bound this term.
Lemma 1** (Point Scattering Inequalities).**
For an arbitrary sequence of points in a space , and any sequence of nested partitions of the same space , we have, for any ,
[TABLE]
where and are the count and corrected count function as in Definition 2, and is the cardinality of the finite partition .
As defined in Definition 2, is the number of points that are in the same bin (in partition ) as . Also, is the “corrected” version of : .
Remark 2**.**
We shall notice that (6) allows us to somewhat “look one step ahead of time”, since it uses the values - the corrected counts without including . This is because is computed using points up to time . The equation (7) is different from (6) in the sense that are essentially the counts including . While, with proper modification, both (6) and (7) can be used to derive Theorem 1, we shall not ignore the difference between (6) and (7).
2.1.1 Proof of (6)
We use a novel constructive trick to derive (6). This trick and the usefulness of the result (Remarks 2 and 3 and Section 2.3) mark our major technical contribution. The trick is to consider the incidence matrix of which points are within the same partition bin, and use this matrix as if it were a covariance matrix for a Gaussian process. Then, we use knowledge about Gaussian processes to bound the sum of the inverse of the number of points in each bin over time.
For each , we construct a hypothetical noisy degenerate Gaussian process. We are not assuming our payoffs are drawn from these Gaussian processes. We only use these Gaussian processes as a proof tool. To construct these noisy degenerate Gaussian processes, we define the kernel functions ,
[TABLE]
where is the region selection function defined with respect to . The kernel is positive semi-definite as shown in Proposition 1.
Proposition 1**.**
The kernel defined in (9) is positive semi-definite for any .
Proof.
For any in where the kernel is defined, the Gram matrix can be written into block diagonal form where diagonal blocks are all-one matrices and off-diagonal blocks are all zeros with proper permutations of rows and columns. Thus without loss of generality, for any vector , where the first summation is taken over all diagonal blocks and is the total number of diagonal blocks in the Gram matrix. ∎
Now, at any time , let us consider the model where is drawn from a Gaussian process and . Suppose that the arms and hypothetical payoffs are observed from this Gaussian process. The posterior variance for this Gaussian process after the observations at is
[TABLE]
where , and is the identity matrix. In other words, is the posterior variance using points up to time with the kernel defined by the partition at time . After some matrix manipulation, we know that
[TABLE]
where . By the Sherman-Morrison formula, . Thus the posterior variance is
[TABLE]
Following the arguments in (Srinivas et al., 2010), we derive the following results. For any , and an arbitrary sequence , we consider fixing this sequence and query the constructed Gaussian processes at these points. Since is fixed, the entropy . Since, by definition of a Gaussian process, follows a multivariate Gaussian distribution,
[TABLE]
where . We can then compute by
[TABLE]
where (12) comes from recursively expanding . By (11) and (12),
[TABLE]
For the block diagonal matrix of size , let denote the size of block and () be the total number of diagonal blocks up to a time (). Then we have
[TABLE]
where is all-1 vector of proper length. In the above, (1) the equality on the first line uses the determinant of block-diagonal matrix equals to the product of determinant of diagonal blocks, 2) the equality on the last line is due to the matrix determinant lemma, and 3) the inequality on the last line is due to the AM-GM inequality and that .
Next, since and is increasing with (on ),
[TABLE]
Therefore, from (13) and (14),
[TABLE]
since arguments after (11) hold for all .
Since the function is increasing for non-negative , for . Since for all ,
[TABLE]
for . Since the partitions are nested, we have that for , , and thus . Suppose we query at points in the Gaussian process . Then,
[TABLE]
where (17) uses (10), the second last inequality uses (16), and the last inequality uses (15). Finally, we optimize over . Since minimizes , we have
[TABLE]
The above argument proves (6).
Remark 3**.**
One important insight of our analysis is that this allows us to link the Hoeffding-type concentration term to the posterior variance of the constructed Gaussian processes. This connection is directly shown in (10). As we will discuss in Section 2.3.2, we can use this connection to improve the entire learning process via “softening”.
Next, we sketch the proofs of (7) and (8).
Proof of (7). Consider the partition at time . We label the regions of the partitions by . Let be the time when the -th point in the -th region in being selected. Let be the number of points in region . Since the partitions are nested, we have for all . We have, for ,
[TABLE]
where (18) uses and (19) uses AM-GM inequality and that .
**Proof of (8). ** The idea is similar to that of (7). For ,
[TABLE]
where (20) is due to the Hölder’s inequality and that .
Proof of Theorem 1
Now we are ready to prove Theorem 1. We can split the sum of regrets by
[TABLE]
Also, by Claim 2, with probability at least , (5) holds simultaneously for all (). Thus for , the event
[TABLE]
occurs with probability at most . Since , we know . By the Borel-Cantelli lemma, we know . In other words, with probability 1, occurs finitely many times. Thus, with probability 1, there exists a constant , such that the event (negation of ) occurs for all . Also, from the Cauchy-Schwarz inequality (used below in the second line) and (6) (used below in the last line), we know that
[TABLE]
where the last equality is from the assumption that for some . This means
[TABLE]
In addition, by the assumption that , we know . The above two limits give us
[TABLE]
Combining all the facts above, we have with probability 1.
Adaptive partitioning: TUCB shall be implemented using regression trees or incremental regression trees. This naturally leverages the practical advantages of regression trees. Leaves in a regression tree form a partition of the space. Also, a regression tree is designed to fit an underlying function. This leads to an adaptive partitioning where the underlying function values within each region should be relatively similar to each other. We defer the discussion on the implementation we use in our experiments to Section 3. Please refer to (Breiman et al., 1984) for more details about regression tree fitting.
2.2 The Contextual TreeUCB algorithm
In this section, we present an extension of Algorithm 1 for the contextual stochastic bandit problem. The contextual stochastic bandit problem is an extension to the stochastic bandit problem. In this problem, at each time, context information is revealed, and the agent chooses an arm based on past experience as well as the contextual information. Formally, the expected payoff function is defined over the product of the context space and the arm space and takes values from . Similar to the previous discussions, compactness of the product space and Lipschitzness of the payoff function are assumed. In addition, a mean zero, almost surely bounded noise that is independent of the expected reward function is added to the observed rewards. At each time , a contextual vector is revealed and the agent plays an arm . The performance of the agent following algorithm Alg is measured by the cumulative contextual regret
[TABLE]
where is the maximal value of given contextual information . A simple extension of Algorithm 1 can solve the contextual version problem. In particular, in the contextual case, we partition the joint space instead of the arm space . As an analog to (2) and (1), we define the corrected count and the corrected average over the joint space with respect to the partition of the joint space , and observations in the joint space . The guarantee of Algorithm 2 is in Theorem 2.
Theorem 2**.**
Suppose that the payoff function defined on a compact doubling metric space satisfies for all and is Lipschitz. If the tree growing rule satisfies requirements 1-4 listed in Theorem 1, then with probability 1.
Theorem 2 follows from Theorem 1. Since the point scattering inequality holds for any sequence of (context-)arms, we can replace regret with contextual regret and alter Claims 1 and 2 accordingly to prove Theorem 2.
In particular, Claims 1 and 2 extend to the contextual setting, as stated and proved below.
Claim 3**.**
For any context , arm , and time , with probability at most , we have:
[TABLE]
for a constant .
Proof.
First of all, when , this is trivially true by Lipschitzness. Now let us consider the case when . Let us use to denote the random variables of arms selected up to time , to denote the random context up to time and to denote random variables of rewards received up to time . Then the random variables is a martingale sequence. This is easy to verify since the noise is mean zero and independent. In addition, since there is no randomness in the partition formation (given a sequence of observations), for a fixed , we have the times () is measureable with respect to . Therefore, the sequence is a skipped martingale. Since skipped martingale is also a martingale, we apply the Azuma-Hoeffding inequality (with sub-Gaussian tails) (Shamir, 2011). For simplicity, we write
[TABLE]
Combining this with Lipschitzness, we get there is a constant (depends on the a.s. bound of the reward, as a result of Hoeffding inequality), such that
[TABLE]
where (27) uses both the Lipschitzness and the Azuma-Hoeffding’s inequality. ∎
Claim 4**.**
At any , with probability at least , the single step contextual regret satisfies:
[TABLE]
for a constant . Here is the optimal arm for the context .
Proof.
By Claim 3, with probability at least , the following ((28) and (29)) hold simultaneously,
[TABLE]
[TABLE]
This is true since we first take a one-sided version of Hoeffding-type tail bound in (24), and then take a union bound over the two points and . This first halves the probability bound and then doubles it. Then we take the complementary event to get (28) and (29) simultaneously hold with probability at least . We then take another union bound over time , as discussed in the main text. Note that throughout the proof, we do not need to take union bounds over all arms or all regions in the partition.
Equation 28 holds by algorithm definition. Otherwise we will not select at time . Combine (28) and (29), and we get
[TABLE]
∎
2.3 Use Cases of Point Scattering Inequalities
2.3.1 Recover Previous Bounds
In this section, we give examples of using the point scattering inequalities to derive regret bounds for other algorithms. For our purpose of illustrating the point scattering inequalities, the discussed algorithms are simplified. We also assume that the reward and the sub-Gaussianity are properly scaled so that the parameter before the Hoeffding-type concentration term is .
The UCB1 algorithm The classic UCB1 algorithm (Auer et al., 2002) assumes a finite set of arms, each having a different reward distribution. Following our notation, at time , the UCB1 algorithm plays
[TABLE]
Indeed, this equation can be interpreted as (4) under the discrete 0-1 metric: two points are distance zero if they coincide and distance 1 otherwise. Then from the point scattering inequality (6), we get for UCB1
[TABLE]
where is number of arms in the problem. This matches the gap-independent (independent of the reward gap between an arm and the optimal arm) bound derived using traditional methods in UCB1 algorithm (Auer et al., 2002; Bubeck and Cesa-Bianchi, 2012). In this analysis, we apply the point scattering inequality with the partition being the set of arms at all .
**Finite Time Bound for Lipschitz Bandits and Lipschitz RL. ** As shown in Claim 2, the single step regret is bounded by a Hoeffding-type concentration and the diameter of selected region (due to Lipschitzness). Since the point scattering inequalities provide a bound of the overall summation of the Hoeffding terms, we can design and analyze many partition-based Lipschitz algorithms using point scattering inequalities We can do this since the partitioning is up to our choice. Examples include the UniformMesh algorithm discussed by (Kleinberg et al., 2008), and parition-based Lipschitz reinforcement learning algorithm recently studied (e.g. Ni et al., 2019).
2.3.2 Hierarchical Bayesian Method for Lipschitz Bandits
Existing Lipschitz bandit algorithms (e.g., Kleinberg et al., 2008) partition the arm space into disjoint bins. Based on this partition, arms in two different bin do not give information about each other, and all arms within the same bins are viewed as the same. This implicit assumption, however, is obviously untrue. On the other hand, imposing a strong prior on the reward function would break the Lipschitzness assumption. To simultaneously address the above two difficulties, we link the learned tree (or partition) to a Bayesian model in light of our analysis of (6). This new viewpoint allows us to “soften” the entire model using a hierarchical Bayesian method.
Formally, at each time , we consider the following hierarchical Bayesian problem with respect to the learned partition . Note that this hierarchical Bayesian model is updated whenever we update the partition. This is roughly the same as make a finite partition and treat each bin as an arm, and do not impose extra structures on the reward function. Let be the learnt partition such that each bin is a rectangle. Then the kernel function is defined as
[TABLE]
where are regions in , and is defined as follows. For a partition , define
[TABLE]
where (resp. ) are the -th entry of (resp. ), and are parameters that controls how smooth are the smoothed tree metrics. Given a learned partition , where , we construct the following hierarchical Bayesian model
[TABLE]
This hierarchical model has several advantages: (1) It respect Lipschitzness. As we collect more observations, the partition can grow arbitrarily fine, and the approximation can be arbitrarily close to an extract indicator function. Because of this, the no prior smoothness assumption on the true (unknown) reward function is needed. (2) It treats arms within the same bin differently, and can use information across bins.
Going back to bandit learning process, we can replace the mean and/or confidence intervals of UCB index with the posteriors of this hierarchical bayesian model. As we discussed in Remark 3, a key insight of our analysis is the link between the Hoeffding-type concentration interval to the posterior variance of the Gaussian processes, which allows us to do this principled substitute. In Section 3.1, we empirically study this hierarchical Bayesian model.
3 Empirical Study
Since the TreeUCB algorithm imposes only mild constraints on tree formation, we use greedy decision tree splitting to fit the reward function, using the following splitting rule: we find the split that maximizes the reduction in the Mean Absolute Error (MAE), and we stop growing the tree once the maximal possible reduction is below 0.001.
3.1 Gaussian Processes with Learned Kernel
In this section, we compare several baselines, including piecewise constant estimates (within each bin), a Gaussian process regression with box kernel (left subfigure in Figure 2) and Gaussian process regression with softened box kernel (right subfigure in Figure 2). The splitting procedure is the same for all methods, so the partitions are the same for the methods. Our results, shown in Figure 3, demonstrates a transition from the hardness of the piecewise constant estimate to the softness of the Gaussian process regression with the softened kernel. This justifies the “softening” discussed in Section 2.3.2. The Gaussian process kernel parameters for , namely in Eq. (33), were set to respectively.
3.2 Application to Neural Network Tuning
One application of stochastic bandit algorithms is zeroth order optimization. In this section, we apply TUCB to tuning neural networks. In this setting, we treat the hyperparameter configurations (e.g., learning rate, network architecture) as the arms of the bandit, and use validation accuracy as reward. The task is to select a hyperparameter configuration and train the network to observe the validation accuracies, and find the best hyperparameter configuration rapidly. This experiment shows that TUCB can compete with the state-of-the-art tuning methods on such hard real-world tasks.
The architecture and the hyperparameter space for the simple Multi-Layer Perceptron (MLP) for the MNIST dataset are: in the feed-forward direction, there are the input layer, the fully connected hidden layer with dropout ensemble, and then the output layer. The hyperparameter search space is five dimensional, including number of hidden neurons (range ), learning rate (), dropout rate (), batch size (), and number of iterations ().
The details of the CNN setting for SVHN and CIFAR-10 can be found in Tables 1 and 2. The results are found in Figure 4, indicating that TUCB outperforms existing state-of-the-art software packages for tuning neural network methods.
4 Conclusion
We propose the TreeUCB and the Contextual TreeUCB frameworks that use decision trees (regression trees) to flexibly partition the arm space and the context-arm space as an Upper Confidence Bound strategy is played across the partition regions. We also provide regret analysis via the point scattering inequalities. We provide implementations using decision trees that learn the partition. TUCB is competitive with the state-of-the-art hyperparameter optimization methods in hard tasks like neural-net tuning, and could save substantial computing resources. This suggests that, in addition to random search and Bayesian optimization methods, more bandit algorithms should be considered as benchmarks for difficult real-world problems such as neural network tuning.
Acknowledgement
The authors are grateful to Aaron J Fisher and Tiancheng Liu for insightful discussions. The authors thank anonymous reviewers for valuable feedback. The project is partially supported by the Alfred P. Sloan Foundation through the Duke Energy Data Analytics fellowship.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1)
- 2Abbasi-yadkori et al . (2011) Yasin Abbasi-yadkori, Dávid Pál, and Csaba Szepesvári. 2011. Improved Algorithms for Linear Stochastic Bandits. In Advances in Neural Information Processing Systems 24 . Curran Associates, Inc., 2312–2320.
- 3Agrawal and Goyal (2012) Shipra Agrawal and Navin Goyal. 2012. Analysis of Thompson Sampling for the Multi-armed Bandit Problem (Proceedings of Machine Learning Research, Vol. 23) . JMLR Workshop and Conference Proceedings, Edinburgh, Scotland, 39.1–39.26.
- 4Agrawal and Goyal (2013) Shipra Agrawal and Navin Goyal. 2013. Thompson Sampling for Contextual Bandits with Linear Payoffs (Proceedings of Machine Learning Research, Vol. 28) . PMLR, Atlanta, Georgia, USA, 127–135.
- 5Auer (2002) Peter Auer. 2002. Using confidence bounds for exploitation-exploration trade-offs. Journal of Machine Learning Research 3, Nov (2002), 397–422.
- 6Auer et al . (2002) Peter Auer, Nicolo Cesa-Bianchi, and Paul Fischer. 2002. Finite-time analysis of the multiarmed bandit problem. Machine learning 47, 2-3 (2002), 235–256.
- 7Auer et al . (2007) Peter Auer, Ronald Ortner, and Csaba Szepesvári. 2007. Improved rates for the stochastic continuum-armed bandit problem. In International Conference on Computational Learning Theory . Springer.
- 8Breiman et al . (1984) Leo Breiman, Jerome Friedman, Charles J Stone, and Richard A Olshen. 1984. Classification and regression trees . CRC press.
