Active Learning for Cost-Sensitive Classification

Akshay Krishnamurthy, Alekh Agarwal, Tzu-Kuo Huang, Hal Daume, John Langford

Introduction

The field of active learning studies how to efficiently elicit relevant information so learning algorithms can make good decisions. Almost all active learning algorithms are designed for binary classification problems, leading to the natural question: How can active learning address more complex prediction problems? Multiclass and importance-weighted classification require only minor modifications but we know of no active learning algorithms that enjoy theoretical guarantees for more complex problems.

In this setup, we develop a new active learning algorithm for CSMC called Cost Overlapped Active Learning (COAL). COAL assumes access to a set of regression functions, and, when processing an example xx, it uses the functions with good past performance to compute the range of possible costs that each label might take. Naturally, COAL only queries labels with large cost range, akin to uncertainty-based approaches in active regression , but furthermore, it only queries labels that could possibly have the smallest cost, avoiding the uncertain, but surely suboptimal labels. The key algorithmic innovation is an efficient way to compute the cost range realized by good regressors. This computation, and COAL as a whole, only requires that the regression functions admit efficient squared loss optimization, in contrast with prior algorithms that require 0/1 loss optimization .

Among our results, we prove that when processing nn (unlabeled) examples with KK classes and a regression class with pseudo-dimension dd (See Definition 1),

The algorithm needs to solve O(Kn5)\mathcal{O}(Kn^{5}) regression problems over the function class (Corollary 2). Thus COAL runs in polynomial time for convex regression sets.

We also derive generalization and label complexity bounds under a milder Tsybakov-type noise condition (Assumption 4). Existing lower bounds from binary classification suggest that our results are optimal in their dependence on nn, although these lower bounds do not directly apply to our setting. We also discuss some intuitive examples highlighting the benefits of using COAL.

CSMC provides a more expressive language for success and failure than multiclass classification, which allows learning algorithms to make the trade-offs necessary for good performance and broadens potential applications. For example, CSMC can naturally express partial failure in hierarchical classification . Experimentally, we show that COAL substantially outperforms the passive learning baseline with orders of magnitude savings in the labeling effort on a number of hierarchical classification datasets (see Figure 1 for comparison between passive learning and COAL on Reuters text categorization).

CSMC also forms the basis of learning to avoid cascading failures in joint prediction tasks like structured prediction and reinforcement learning . As our second application, we consider learning to search algorithms for joint or structured prediction, which operate by a reduction to CSMC. In this reduction, evaluating the cost of a class often involves a computationally expensive “roll-out,” so using an active learning algorithm inside such a passive joint prediction method can lead to significant computational savings. We show that using COAL within the Aggravate algorithm reduces the number of roll-outs by a factor of 14\frac{1}{4} to 34\frac{3}{4} on several joint prediction tasks.

Our code is publicly available as part of the Vowpal Wabbit machine learning library.http://hunch.net/~vw

Related Work

Active learning is a thriving research area with many theoretical and empirical studies. We recommend the survey of Settles for an overview of more empirical research. We focus here on theoretical results.

Our work falls into the framework of disagreement-based active learning, which studies general hypothesis spaces typically in an agnostic setup (see Hanneke for an excellent survey). Existing results study binary classification, while our work generalizes to CSMC, assuming that we can accurately predict costs using regression functions from our class. One difference that is natural for CSMC is that our query rule checks the range of predicted costs for a label.

The other main difference is that we use a square loss oracle to search the version space. In contrast, prior work either explicitly enumerates the version space or uses a 0/1 loss classification oracle for the search . In most instantiations, the oracle solves an NP-hard problem and so does not directly lead to an efficient algorithm, although practical implementations using heuristics are still quite effective. Our approach instead uses a squared-loss regression oracle, which can be implemented efficiently via convex optimization and leads to a polynomial time algorithm.

In addition to disagreement-based approaches, much research has focused on plug-in rules for active learning in binary classification, where one estimates the class-conditional regression function . Apart from Hanneke and Yang , these works make smoothness assumptions and have a nonparametric flavor. Instead, Hanneke and Yang assume a calibrated surrogate loss and abstract realizable function class, which is more similar to our setting. While the details vary, our work and these prior results employ the same algorithmic recipe of maintaining an implicit version space and querying in a suitably-defined disagreement region. Our work has two notable differences: (1) our algorithm operates in an oracle computational model, only accessing the function class through square loss minimization problems, (2) our results apply to general CSMC, which exhibit significant differences from binary classification. See Subsection 6.1 for further discussion.

Focusing on linear representations, Balcan et al. , Balcan and Long study active learning with distributional assumptions, while the selective sampling framework from the online learning community considers adversarial assumptions . These methods use query strategies that are specialized to linear representations and do not naturally generalize to other hypothesis classes.

Supervised learning oracles that solve NP-hard optimization problems in the worst case have been used in other problems including contextual bandits and structured prediction . Thus we hope that our work can inspire new algorithms for these settings as well.

Lastly, we mention that square loss regression has been used to estimate costs for passive CSMC , but, to our knowledge, using a square loss oracle for active CSMC is new.

Active learning for CSMC was introduced recently in Krishnamurthy et al. with an algorithm that also uses cost ranges to decide where to query. They compute cost ranges by using the regression oracle to perform a binary search for the maximum and minimum costs, but this computation results in a sub-optimal label complexity bound. We resolve this sub-optimality with a novel cost range computation that is inspired by the multiplicative weights technique for solving linear programs. This algorithmic improvement also requires a significantly more sophisticated statistical analysis for which we derive a novel uniform Freedman-type inequality for classes with bounded pseudo-dimension. This result may be of independent interest.

Krishnamurthy et al. also introduce an online approximation for additional scalability and use this algorithm for their experiments. Our empirical results use this same online approximation and are slightly more comprehensive. Finally, we also derive generalization and label complexity bounds for our algorithm in a setting inspired by Tsybakov’s low noise condition .

Comparison with Foster et al. [18].

In a follow-up to the present paper, Foster et al. build on our work with a regression-based approach for contextual bandit learning, a problem that bears some similarities to active learning for CSMC. The results are incomparable due to the differences in setting, but it is worth discussing their techniques. As in our paper, Foster et al. maintain an implicit version space and compute maximum and minimum costs for each label, which they use to make predictions. They resolve the sub-optimality in Krishnamurthy et al. with epoching, which enables a simpler cost range computation than our multiplicative weights approach. However, epoching incurs an additional log⁡(n)\log(n) factor in the label complexity, and under low-noise conditions where the overall bound is O(polylog(n))\mathcal{O}(\textrm{polylog}(n)), this yields a polynomially worse guarantee than ours.

Problem Setting and Notation

Let G≜{g:X↦}\mathcal{G}\triangleq\{g:\mathcal{X}\mapsto\} denote a set of base regressors and let F≜GK\mathcal{F}\triangleq\mathcal{G}^{K} denote a set of vector regressors where the ythy^{\textrm{th}} coordinate of f∈Ff\in\mathcal{F} is written as f(⋅;y)f(\cdot;y). The set of classifiers under consideration is H≜{hf∣f∈F}\mathcal{H}\triangleq\{h_{f}\mid f\in\mathcal{F}\} where each ff defines a classifier hf:X↦Yh_{f}:\mathcal{X}\mapsto\mathcal{Y} by

When using a set of regression functions for a classification task, it is natural to assume that the expected costs under D\mathcal{D} can be predicted by some function in the set. This motivates the following realizability assumption.

While f⋆f^{\star} is always well defined, note that the cost itself may be noisy. In comparison with our assumption, the existence of a zero-cost classifier in H\mathcal{H} (which is often assumed in active learning) is stronger, while the existence of hf⋆h_{f^{\star}} in H\mathcal{H} is weaker but has not been leveraged in active learning.

We also require assumptions on the complexity of the class G\mathcal{G} for our statistical analysis. To this end, we assume that G\mathcal{G} is a compact convex subset of L∞(X)L_{\infty}(\mathcal{X}) with finite pseudo-dimension, which is a natural extension of VC-dimension for real-valued predictors.

As an example, linear functions in some basis representation, e.g., g(x)=∑i=1dwiϕi(x)g(x)=\sum_{i=1}^{d}w_{i}\phi_{i}(x), where weights wiw_{i} are bounded in some norm, have pseudodimension dd. In fact, our result can be stated entirely in terms of covering numbers, and we translate to pseudo-dimension using the fact that such classes have “parametric" covering numbers of the form (1/ε)d(1/\varepsilon)^{d}. Thus, our results extend to classes with “nonparametric" growth rates as well (e.g., Holder-smooth functions), although we focus on the parametric case for simplicity. Note that this is a significant departure from Krishnamurthy et al. , which assumed that G\mathcal{G} was finite.

Since we assume that G\mathcal{G} is a compact convex set it is amenable to standard convex optimization techniques, so this imposes no additional restriction. However, in the special case of linear functions, this optimization is just least squares and can be computed in closed form. Note that this is fundamentally different from prior works that use a 0/1-loss minimization oracle , which involves an NP-hard optimization in most cases of interest.

Our assumption that G\mathcal{G} is convex is only for computational tractability, as it is crucial in the efficient implementation of our query strategy, but is not required for our generalization and label complexity bounds. Unfortunately recent guarantees for learning with non-convex classes do not immediately yield efficient active learning strategies. Note also that Krishnamurthy et al. obtain an efficient algorithm without convexity, but this yields a suboptimal label complexity guarantee.

Given a set of examples and queried costs, we often restrict attention to regression functions that predict these costs well and assess the uncertainty in their predictions given a new example xx. For a subset of regressors G⊂GG\subset\mathcal{G}, we measure uncertainty over possible cost values for xx with

To measure the labeling effort, we track the number of examples for which even a single cost is queried as well as the total number of queries. This bookkeeping captures settings where the editorial effort for inspecting an example is high but each cost requires minimal further effort, as well as those where each cost requires substantial effort. Formally, we define Qi(y)∈{0,1}Q_{i}(y)\in\{0,1\} to be the indicator that the algorithm queries label yy on the ithi^{\textrm{th}} example and measure

Cost Overlapped Active Learning

The pseudocode for our algorithm, Cost Overlapped Active Learning (COAL), is given in Algorithm 1. Given an example xx, COAL queries the costs of some of the labels yy for xx. These costs are chosen by (1) computing a set of good regression functions based on the past data (i.e., the version space), (2) computing the range of predictions achievable by these functions for each yy, and (3) querying each yy that could be the best label and has substantial uncertainty. We now detail each step.

To compute an approximate version space we first find the regression function that minimizes the empirical risk for each label yy, which at round ii is:

COAL then computes the maximum and minimum costs predicted by the version space Gi(y)\mathcal{G}_{i}(y) on the new example xx. Since the true expected cost is f⋆(x;y)f^{\star}(x;y) and, as we will see, f⋆(⋅;y)∈Gi(y)f^{\star}(\cdot;y)\in\mathcal{G}_{i}(y), these quantities serve as a confidence bound for this value. The computation is done by the MaxCost and MinCost subroutines which produce approximations to c+(x,Gi(y))c_{+}(x,\mathcal{G}_{i}(y)) and c−(x,Gi(y))c_{-}(x,\mathcal{G}_{i}(y)) respectively (See (3)).

Finally, using the predicted costs, COAL issues (possibly zero) queries. The algorithm queries any non-dominated label that has a large cost range, where a label is non-dominated if its estimated minimum cost is smaller than the smallest maximum cost (among all other labels) and the cost range is the difference between the label’s estimated maximum and minimum costs.

Intuitively, COAL queries the cost of every label which cannot be ruled out as having the smallest cost on xx, but only if there is sufficient ambiguity about the actual value of the cost. The idea is that labels with little disagreement do not provide much information for further reducing the version space, since by construction all regressors would suffer similar square loss. Moreover, only the labels that could be the best need to be queried at all, since the cost-sensitive performance of a hypothesis hfh_{f} depends only on the label that it predicts. Hence, labels that are dominated or have small cost range need not be queried.

Similar query strategies have been used in prior works on binary and multiclass classification , but specialized to linear representations. The key advantage of the linear case is that the set Gi(y)\mathcal{G}_{i}(y) (formally, a different set with similar properties) along with the maximum and minimum costs have closed form expressions, so that the algorithms are easily implemented. However, with a general set G\mathcal{G} and a regression oracle, computing these confidence intervals is less straightforward. We use the MaxCost and MinCost subroutines, and discuss this aspect of our algorithm next.

In this section, we describe the MaxCost subroutine which uses the regression oracle to approximate the maximum cost on label yy realized by Gi(y)\mathcal{G}_{i}(y), as defined in (3). The minimum cost computation requires only minor modifications that we discuss at the end of the section.

Given this observation, our strategy will be to find an approximate solution to the problem (7) and it is not difficult to see that this also yields an approximate value for the maximum predicted cost on xx for the label yy.

In Algorithm 2, we show how to efficiently solve this program using the regression oracle. We begin by exploiting the convexity of the set G\mathcal{G}, meaning that we can further rewrite the optimization problem (7) as

The above rewriting is effectively cosmetic as G=Δ(G)\mathcal{G}=\Delta(\mathcal{G}) by the definition of convexity, but the upshot is that our rewriting results in both the objective and constraints being linear in the optimization variable PP. Thus, we effectively wish to solve a linear program in PP, with our computational tool being a regression oracle over the set G\mathcal{G}. To do this, we create a series of feasibility problems, where we repeatedly guess the optimal objective value for the problem (8) and then check whether there is indeed a distribution PP which satisfies all the constraints and gives the posited objective value. That is, we check

If we find such a solution, we increase our guess, and otherwise we reduce the guess and proceed until we localize the optimal value to a small enough interval.

It remains to specify how to solve the feasibility problem (9). Noting that this is a linear feasibility problem, we jointly invoke the Multiplicative Weights (MW) algorithm and the regression oracle in order to either find an approximately feasible solution or certify the problem as infeasible. MW is an iterative algorithm that maintains weights μ\mu over the constraints. At each iteration it (1) collapses the constraints into one, by taking a linear combination weighted by μ\mu, (2) checks feasibility of the simpler problem with a single constraint, and (3) if the simpler problem is feasible, it updates the weights using the slack of the proposed solution. Details of steps (1) and (3) are described in Algorithm 2.

For step (2), the simpler problem that we must solve takes the form

This program can be solved by a single call to the regression oracle, since all terms on the left-hand-side involve square losses while the right hand side is a constant. Thus we can efficiently implement the MW algorithm using the regression oracle. Finally, recalling that the above description is for a fixed value of objective cc, and recalling that the maximum can be approximated by a binary search over cc leads to an oracle-based algorithm for computing the maximum cost. For this procedure, we have the following computational guarantee.

Algorithm 2 returns an estimate c+^(x;y)\widehat{c_{+}}(x;y) such that c+(x;y)≤c+^(x;y)≤c+(x;y)+\textsctolc_{+}(x;y)\leq\widehat{c_{+}}(x;y)\leq c_{+}(x;y)+\textsc{tol} and runs in polynomial time with O(max⁡{1,i2/νn2}log⁡(i)log⁡(1/\textsctol)/\textsctol4)\mathcal{O}(\max\{1,i^{2}/\nu_{n}^{2}\}\log(i)\log(1/\textsc{tol})/\textsc{tol}^{4}) calls to the regression oracle.

Thus COAL can be implemented in polynomial time for any set G\mathcal{G} that admits efficient square loss optimization. Compared to Krishnamurthy et al. which required O(n2)\mathcal{O}(n^{2}) oracle calls, the guarantee here is, at face value, worse, since the algorithm is slower. However, the algorithm enforces a much stronger constraint on the version space which leads to a much better statistical analysis, as we will discuss next. Nevertheless, these algorithms that use batch square loss optimization in an iterative or sequential fashion are too computational demanding to scale to larger problems. Our implementation alleviates this with an alternative heuristic approximation based on a sensitivity analysis of the oracle, which we detail in Section 7.

Generalization Analysis

In this section, we derive generalization guarantees for COAL. We study three settings: one with minimal assumptions and two low-noise settings.

Our first low-noise assumption is related to the Massart noise condition , which in binary classification posits that the Bayes optimal predictor is bounded away from 1/21/2 for all xx. Our condition generalizes this to CSMC and posits that the expected cost of the best label is separated from the expected cost of all other labels.

A distribution D\mathcal{D} supported over (x,c)(x,c) pairs satisfies the Massart noise condition with parameter τ>0\tau>0, if for all xx (with D(x)>0\mathcal{D}(x)>0),

where y⋆(x)≜argminyf⋆(x;y)y^{\star}(x)\triangleq\mathop{\textrm{argmin}}_{y}f^{\star}(x;y) is the true best label for xx.

The Massart noise condition describes favorable prediction problems that lead to sharper generalization and label complexity bounds for COAL. We also study a milder noise assumption, inspired by the Tsybakov condition , again generalized to CSMC. See also Agarwal .

A distribution D\mathcal{D} supported over (x,c)(x,c) pairs satisfies the Tsbyakov noise condition with parameters (τ0,α,β)(\tau_{0},\alpha,\beta) if for all 0≤τ≤τ00\leq\tau\leq\tau_{0},

where y⋆(x)≜argminyf⋆(x;y)y^{\star}(x)\triangleq\mathop{\textrm{argmin}}_{y}f^{\star}(x;y).

Observe that the Massart noise condition in Assumption 3 is a limiting case of the Tsybakov condition, with τ=τ0\tau=\tau_{0} and α→∞\alpha\rightarrow\infty. The Tsybakov condition states that it is polynomially unlikely for the cost of the best label to be close to the cost of the other labels. This condition has been used in previous work on cost-sensitive active learning and is also related to the condition studied by Castro and Nowak with the translation that α=1κ−1\alpha=\frac{1}{\kappa-1}, where κ∈\kappa\in is their noise level.

Our generalization bound is stated in terms of the noise level in the problem so that they can be readily adapted to the favorable assumptions. We define the noise level using the following quantity, given any ζ>0\zeta>0.

PζP_{\zeta} describes the probability that the expected cost of the best label is close to the expected cost of the second best label. When PζP_{\zeta} is small for large ζ\zeta the labels are well-separated so learning is easier. For instance, under a Massart condition Pζ=0P_{\zeta}=0 for all ζ≤τ\zeta\leq\tau.

We now state our generalization guarantee.

For any δ<1/e\delta<1/e, for all i∈[n]i\in[n], with probability at least 1−δ1-\delta, we have

where νn\nu_{n}, fif_{i} are defined in Algorithm 1, and hfih_{f_{i}} is defined in (1).

Under Assumption 3, for any δ<1/e\delta<1/e, with probability at least 1−δ1-\delta, for all i∈[n]i\in[n], we have

Under Assumption 4, for any δ<1/e\delta<1/e, with probability at least 1−δ1-\delta, for all 32Kνnβτ0α+2≤i≤n\frac{32K\nu_{n}}{\beta\tau_{0}^{\alpha+2}}\leq i\leq n, we have

Label Complexity Analysis

Without distributional assumptions, the label complexity of COAL can be O(n)\mathcal{O}(n), just as in the binary classification case, since there may always be confusing labels that force querying. In line with prior work, we introduce two disagreement coefficients that characterize favorable distributional properties. We first define a set of good classifiers, the cost-sensitive regret ball:

We also recall our earlier notation γ(x,y,F)\gamma(x,y,F) (see (3) and the subsequent discussion) for a subset F⊆FF\subseteq\mathcal{F} which indicates the range of expected costs for (x,y)(x,y) as predicted by the regressors corresponding to the classifiers in FF. We now define the disagreement coefficients.

Then the disagreement coefficients are defined as:

Intuitively, the conditions in both coefficients correspond to the checks on the domination and cost range of a label in Lines 12 and 14 of Algorithm 1. Specifically, when x∈DIS(r,y)x\in\textrm{DIS}(r,y), there is confusion about whether yy is the optimal label or not, and hence yy is not dominated. The condition on γ(x,y,Fcsr(r))\gamma(x,y,\mathcal{F}_{\textrm{csr}}(r)) additionally captures the fact that a small cost range provides little information, even when yy is non-dominated. Collectively, the coefficients capture the probability of an example xx where the good classifiers disagree on xx in both predicted costs and labels. Importantly, the notion of good classifiers is via the algorithm-independent set Fcsr(r)\mathcal{F}_{\textrm{csr}}(r), and is only a property of F\mathcal{F} and the data distribution.

The definitions are a natural adaptation from binary classification , where a similar disagreement region to DIS(r,y)\textrm{DIS}(r,y) is used. Our definition asks for confusion about the optimality of a specific label yy, which provides more detailed information about the cost-structure than simply asking for any confusion among the good classifiers. The 1/r1/r scaling is in agreement with previous related definitions , and we also scale by the cost range parameter ψ\psi, so that the favorable settings for active learning can be concisely expressed as having θ1,θ2\theta_{1},\theta_{2} bounded, as opposed to a complex function of ψ\psi.

The next three results bound the labeling effort (4), in the high noise and low noise cases respectively. The low noise assumptions enable significantly sharper bounds. Before stating the bounds, we recall that L1L_{1} corresponds to the number of examples where at least one cost is queried, while L2L_{2} is the total number of costs queried across all examples.

With probability at least 1−δ1-\delta, the label complexity of the algorithm over nn examples is at most

Assume the Massart noise condition holds. With probability at least 1−δ1-\delta the label complexity of the algorithm over nn examples is at most

Assume the Tsybakov noise condition holds. With probability at least 1−δ1-\delta the label complexity of the algorithm over nn examples is at most

On the other hand, in both low noise cases the label complexity scales sublinearly with nn. With bounded disagreement coefficients, this improves over the standard passive learning analysis where all labels are queried on nn examples to achieve the generalization guarantees in Theorem 3, Corollary 4, and Corollary 5 respectively. In particular, under the Massart condition, both L1L_{1} and L2L_{2} bounds scale with θlog⁡(n)\theta\log(n) for the respective disagreement coefficients, which is an exponential improvement over the passive learning analysis. Under the milder Tsybakov condition, the bounds scale with θαα+1n2α+2\theta^{\frac{\alpha}{\alpha+1}}n^{\frac{2}{\alpha+2}}, which improves polynomially over passive learning. These label complexity bounds agree with analogous results from binary classification in their dependence on nn.

Note that θ2≤Kθ1\theta_{2}\leq K\theta_{1} always and it can be much smaller, as demonstrated through an example in the next section. In such cases, only a few labels are ever queried and the L2L_{2} bound in the high noise case reflects this additional savings over passive learning. Unfortunately, in low noise conditions, we do not benefit when θ2≪Kθ1\theta_{2}\ll K\theta_{1}. This can be resolved by letting ψi\psi_{i} in the algorithm depend on the noise level τ\tau, but we prefer to use the more robust choice ψi=1/i\psi_{i}=1/\sqrt{i} which still allows COAL to partially adapt to low noise and achieve low label complexity.

The main improvement over Krishnamurthy et al. is demonstrated in the label complexity bounds under low noise assumptions. For example, under Massart noise, our bound has the optimal log⁡(n)/τ2\log(n)/\tau^{2} rate, while the bound in Krishnamurthy et al. is exponentially worse, scaling with nβ/τ2n^{\beta}/\tau^{2} for β∈(0,1)\beta\in(0,1). This improvement comes from explicitly enforcing monotonicity of the version space, so that once a regressor is eliminated it can never force COAL to query again. Algorithmically, computing the maximum and minimum costs with the monotonicity constraint is much more challenging and requires the new subroutine using MW.

In this subsection we show that in many cases we can obtain guarantees in terms of Hanneke’s disagreement coefficient , which has been used extensively in active learning for binary classification. We also show that, for multiclass classification, the label complexity scales with the error of the optimal classifier h⋆h^{\star}, a refinement on Theorem 6. The guarantees require no modifications to the algorithm and enable a precise comparison with prior results. Unfortunately, they do not apply to the general CSMC setting, so they have not been incorporated into our main theorems.

This coefficient is known to be O(1)O(1) in many cases, for example when the hypothesis class consists of linear separators and the marginal distribution is uniform over the unit sphere [19, Chapter 7]. In comparison with Definition 2, the two differences are that θ1,θ2\theta_{1},\theta_{2} include the cost-range condition and involve the cost-sensitive regret ball Fcsr(r)\mathcal{F}_{\textrm{csr}}(r) rather than F~(r)\widetilde{\mathcal{F}}(r). As F~(r)⊂Fcsr(r)\widetilde{\mathcal{F}}(r)\subset\mathcal{F}_{\textrm{csr}}(r), we expect that θ1\theta_{1} and θ2\theta_{2} are typically larger than θ0\theta_{0}, so bounds in terms of θ0\theta_{0} are more desirable. We now show that such guarantees are possible in many cases.

For general CSMC, low noise conditions admit the following:

Under Massart noise, with probability at least 1−δ1-\delta the label complexity of the algorithm over nn examples is at most L1=O(log⁡(n)νnτ2θ0+log⁡(1/δ))L_{1}=\mathcal{O}\left(\frac{\log(n)\nu_{n}}{\tau^{2}}\theta_{0}+\log(1/\delta)\right). Under Tsybakov noise, the label complexity is at most L1=O(θ0n2α+2(log⁡(n)νn)αα+2+log⁡(1/δ))L_{1}=\mathcal{O}\left(\theta_{0}n^{\frac{2}{\alpha+2}}\left(\log(n)\nu_{n}\right)^{\frac{\alpha}{\alpha+2}}+\log(1/\delta)\right). In both cases we have L2=O(KL1)L_{2}=O(KL_{1}).

That is, for any low noise CSMC problem, COAL obtains a label complexity bound in terms of Hanneke’s disagreement coefficient θ0\theta_{0} directly. Note that this adaptivity requires no change to the algorithm. Proposition 1 enables a precise comparison with disagreement-based active learning for binary classification. In particular, this bound matches the guarantee for CAL [19, Theorem 5.4] with the caveat that our measure of statistical complexity is the pseudodimension of the F\mathcal{F} instead of the VC-dimension of the hypothesis class. As a consequence, under low noise assumptions, COAL has favorable label complexity in all examples where θ0\theta_{0} is small.

The high noise case.

For multiclass classification, with probability at least 1−δ1-\delta, the label complexity of the algorithm over nn examples is at most

This result exploits two properties of the multiclass cost structure. First we can relate Fcsr(r)\mathcal{F}_{\textrm{csr}}(r) to the disagreement ball F~(r)\widetilde{\mathcal{F}}(r), which lets us introduce Hanneke’s disagreement coefficient θ0\theta_{0}. Second, we can bound PζP_{\zeta} in Theorem 3 in terms of error(hf⋆)\textrm{error}(h_{f^{\star}}). Together the bound is comparable to prior results for active learning in binary classification , with a slight generalization to the multiclass setting. Unfortunately, both of these refinements do not apply for general CSMC.

Summary.

In important special cases, COAL achieves label complexity bounds directly comparable with results for active learning in binary classification, scaling with θ0\theta_{0} and error(hf⋆)\textrm{error}(h_{f^{\star}}). In such cases, whenever θ0\theta_{0} is bounded — for which many examples are known — COAL has favorable label complexity. However, in general CSMC without low-noise assumptions, we are not able to obtain a bound in terms of these quantities, and we believe a bound involving θ0\theta_{0} does not hold for COAL. We leave understanding natural settings where θ1\theta_{1} and θ2\theta_{2} are small, or obtaining sharper guarantees as intriguing future directions.

2 Three Examples

We now describe three examples to give more intuition for COAL and our label complexity bounds. Even in the low noise case, our label complexity analysis does not demonstrate all of the potential benefits of our query rule. In this section we give three examples to further demonstrate these advantages.

Our first example shows the benefits of using the domination criterion in querying, in addition to the cost range condition. Consider a problem under Assumption 3, where the optimal cost is predicted perfectly, the second best cost is τ\tau worse and all the other costs are substantially worse, but with variability in the predictions. Since all classifiers predict the correct label, we get θ1=θ2=0\theta_{1}=\theta_{2}=0, so our label complexity bound is O(1)\mathcal{O}(1). Intuitively, since every regressor is certain of the optimal label and its cost, we actually make zero queries. On the other hand, all of the suboptimal labels have large cost ranges, so querying based solely on a cost range criteria, as would happen with an active regression algorithm , leads to a large label complexity.

A related example demonstrates the improvement in our query rule over more naïve approaches where we query either no label or all labels, which is the natural generalization of query rules from multiclass classification . In the above example, if the best and second best labels are confused occasionally θ1\theta_{1} may be large, but we expect θ2≪Kθ1\theta_{2}\ll K\theta_{1} since no other label can be confused with the best. Thus, the L2L_{2} bound in Theorem 6 is a factor of KK smaller than with a naïve query rule since COAL only queries the best and second best labels. Unfortunately, without setting ψi\psi_{i} as a function of the noise parameters, the bounds in the low noise cases do not reflect this behavior.

Let X≜{x1,…,xM}\mathcal{X}\triangleq\{x_{1},\ldots,x_{M}\}, Y≜{0,1}\mathcal{Y}\triangleq\{0,1\}, and consider functions F≜{f⋆,f1,…,fM}\mathcal{F}\triangleq\{f^{\star},f_{1},\ldots,f_{M}\}. We have f⋆(x)≜(1/4,1/2),∀x∈Xf^{\star}(x)\triangleq(1/4,1/2),\forall x\in\mathcal{X} and fi(xi)≜(1/4,0)f_{i}(x_{i})\triangleq(1/4,0) and fi(xj)≜(1/4,1)f_{i}(x_{j})\triangleq(1/4,1) for i≠ji\neq j. The marginal distribution is uniform and the true expected costs are given by f⋆f^{\star} so that the problem satisfies the Massart noise condition with τ=1/4\tau=1/4. The key to the construction is that fif_{i}s have high square loss on labels that they do not predict.

Experiments

We now turn to an empirical evaluation of COAL. For further computational efficiency, we implemented an approximate version of COAL using: 1) a relaxed version space Gi(y)←{g∈G∣R^i(g;y)≤R^i(gi,y;y)+Δi}\mathcal{G}_{i}(y)\leftarrow\{g\in\mathcal{G}\mid\widehat{R}_{i}(g;y)\leq\widehat{R}_{i}(g_{i,y};y)+\Delta_{i}\}, which does not enforce monotonicity, and 2) online optimization, based on online linear least-squares regression. The algorithm processes the data in one pass, and the idea is to (1) replace gi,yg_{i,y}, the ERM, with an approximation gi,yog_{i,y}^{o} obtained by online updates, and (2) compute the minimum and maximum costs via a sensitivity analysis of the online update. We describe this algorithm in detail in Subsection 7.1. Then, we present our experimental results, first for simulated active learning (Subsection 7.2) and then for learning to search for joint prediction (Subsection 7.3).

Consider the maximum and minimum costs for a fixed example xx and label yy at round ii, all of which may be suppressed. We ignore all the constraints on the empirical square losses for the past rounds. First, define R^(g,w,c;y)≜R^(g;y)+w(g(x)−c)2\widehat{R}(g,w,c;y)\triangleq\widehat{R}(g;y)+w(g(x)-c)^{2}, which is the risk functional augmented with a fake example with weight ww and cost cc. Also define

and recall that gi,yg_{i,y} is the ERM given in Algorithm 1. The functional R^(g,w,c;y)\widehat{R}(g,w,c;y) has a monotonicity property that we exploit here, proved in Appendix C.

As a result, an alternative to MinCost and MaxCost is to find

and return g‾w‾(x)\underline{g}_{\underline{w}}(x) and g‾w‾(x)\overline{g}_{\overline{w}}(x) as the minimum and maximum costs. We use two steps of approximation here. Using the definition of g‾w\overline{g}_{w} and g‾w\underline{g}_{w} as the minimizers of R^(g,w,1;y)\widehat{R}(g,w,1;y) and R^(g,w,0;y)\widehat{R}(g,w,0;y) respectively, we have

We use this upper bound in place of R^(gw)−R^(gi,y)\widehat{R}(g_{w})-\widehat{R}(g_{i,y}) in (12) and (13). Second, we replace gi,yg_{i,y}, g‾w\underline{g}_{w}, and g‾w\overline{g}_{w} with approximations obtained by online updates. More specifically, we replace gi,yg_{i,y} with gi,yog_{i,y}^{o}, the current regressor produced by all online linear least squares updates so far, and approximate the others by

where s(x,y,gi,yo)≥0s(x,y,g_{i,y}^{o})\geq 0 is a sensitivity value that approximates the change in prediction on xx resulting from an online update to gi,yog_{i,y}^{o} with features xx and label yy. The computation of this sensitivity value is governed by the actual online update where we compute the derivative of the change in the prediction as a function of the importance weight ww for a hypothetical example with cost or cost 11 and the same features. This is possible for essentially all online update rules on importance weighted examples, and it corresponds to taking the limit as w→0w\rightarrow 0 of the change in prediction due to an update, divided by ww. Since we are using linear representations, this requires only O(s)\mathcal{O}(s) time per example, where ss is the average number of non-zero features. With these two steps, we obtain approximate minimum and maximum costs using

The online update guarantees that gi,yo(x)∈g_{i,y}^{o}(x)\in. Since the minimum cost is lower bounded by 0, we have w‾o∈(0,gi,yo(x)s(x,0,gi,yo)]\underline{w}^{o}\in\left(0,\frac{g_{i,y}^{o}(x)}{s(x,0,g_{i,y}^{o})}\right]. Finally, because the objective w(gi,yo(x))2−w(gi,yo(x)−w⋅s(x,0,gi,yo))2w(g_{i,y}^{o}(x))^{2}-w(g_{i,y}^{o}(x)-w\cdot s(x,0,g_{i,y}^{o}))^{2} is increasing in ww within this range (which can be seen by inspecting the derivative), we can find w‾o\underline{w}^{o} with binary search. Using the same techniques, we also obtain an approximate maximum cost.

2 Simulated Active Learning

We performed simulated active learning experiments with three datasets. ImageNet 20 and 40 are sub-trees of the ImageNet hierarchy covering the 20 and 40 most frequent classes, where each example has a single zero-cost label, and the cost for an incorrect label is the tree-distance to the correct one. The feature vectors are the top layer of the Inception neural network . The third, RCV1-v2 , is a multilabel text-categorization dataset, which has 103 labels, organized as a tree with a similar tree-distance cost structure as the ImageNet data. Some dataset statistics are in Table 1.

We compare our online version of COAL to passive online learning. We use the cost-sensitive one-against-all (csoaa) implementation in Vowpal Wabbithttp://hunch.net/~vw, which performs online linear regression for each label separately. There are two tuning parameters in our implementation. First, instead of Δi\Delta_{i}, we set the radius of the version space to Δi′=κνi−1i−1\Delta_{i}^{\prime}=\frac{\kappa\nu_{i-1}}{i-1} (i.e. the log⁡(n)\log(n) term in the definition of νn\nu_{n} is replaced with log⁡(i)\log(i)) and instead tune the constant κ\kappa. This alternate “mellowness" parameter controls how aggressive the query strategy is. The second parameter is the learning rate used by online linear regressionWe use the default online learning algorithm in Vowpal Wabbit, which is a scale-free importance weight invariant form of AdaGrad ..

where qmax⁡q_{\max} is the minimum qq such that 2(q−1)⋅102^{(q-1)}\cdot 10 is larger than the size of the training data. This performance measure is the area under the curve of test performance against number of queries in log⁡2\log_{2} scale. A large value means the test performance quickly improves with the number of queries. The best learning rate for mellowness melmel is then chosen as

The best learning rates for different datasets and mellowness settings are in Table 2.

In the top row of Figure 2, we plot, for each dataset and mellowness, the number of queries against the median test cost along with bars extending from the 15th15^{\textrm{th}} to 85th85^{\textrm{th}} quantile. Overall, COAL achieves a better trade-off between performance and queries. With proper mellowness parameter, active learning achieves similar test cost as passive learning with a factor of 8 to 32 fewer queries. On ImageNet 40 and RCV1-v2 (reproduced in Figure 1), active learning achieves better test cost with a factor of 16 fewer queries. On RCV1-v2, COAL queries like passive up to around 256k256k queries, since the data is very sparse, and linear regression has the property that the cost range is maximal when an example has a new unseen feature. Once COAL sees all features a few times, it queries much more efficiently than passive. These plots correspond to the label complexity L2L_{2}.

In the bottom row, we plot the test error as a function of the number of examples for which at least one query was requested, for each dataset and mellowness, which experimentally corresponds to the L1L_{1} label complexity. In comparison to the top row, the improvements offered by active learning are slightly less dramatic here. This suggests that our algorithm queries just a few labels for each example, but does end up issuing at least one query on most of the examples. Nevertheless, one can still achieve test cost competitive with passive learning using a factor of 2-16 less labeling effort, as measured by L1L_{1}.

We also compare COAL with two active learning baselines. Both algorithms differ from COAL only in their query rule. AllOrNone queries either all labels or no labels using both domination and cost-range conditions and is an adaptation of existing multiclass active learners . NoDom just uses the cost-range condition, inspired by active regression . The results for ImageNet 40 and RCV1-v2 are displayed in Figure 3, where we use the AUC strategy to choose the learning rate. We choose the mellowness by visual inspection for the baselines and use 0.010.01 for COAL We use 0.010.01 for AllOrNone and 10−310^{-3} for NoDom.. On ImageNet 40, the ablations provide minimal improvement over passive learning, while on RCV1-v2, AllOrNone does provide marginal improvement. However, on both datasets, COAL substantially outperforms both baselines and passive learning.

While not always the best, we recommend a mellowness setting of 0.010.01 as it achieves reasonable performance on all three datasets. This is also confirmed by the learning-to-search experiments, which we discuss next.

3 Learning to Search

We also experiment with COAL as the base leaner in learning-to-search , which reduces joint prediction problems to CSMC. A joint prediction example defines a search space, where a sequence of decisions are made to generate the structured label. We focus here on sequence labeling tasks, where the input is a sentence and the output is a sequence of labels, specifically, parts of speech or named entities.

Learning-to-search solves such problems by generating the output one label at a time, conditioning on all past decisions. Since mistakes may lead to compounding errors, it is natural to represent the decision space as a CSMC problem, where the classes are the “actions” available (e.g., possible labels for a word) and the costs reflect the long term loss of each choice. Intuitively, we should be able to avoid expensive computation of long term loss on decisions like “is ‘the’ a determiner?” once we are quite sure of the answer. Similar ideas motivate adaptive sampling for structured prediction .

We specifically use Aggravate , which runs a learned policy to produce a backbone sequence of labels. For each position in the input, it then considers all possible deviation actions and executes an oracle for the rest of the sequence. The loss on this complete output is used as the cost for the deviating action. Run in this way, Aggravate requires len×Klen\times K roll-outs when the input sentence has lenlen words and each word can take one of KK possible labels.

Since each roll-out takes O(len)\mathcal{O}(len) time, this can be computationally prohibitive, so we use active learning to reduce the number of roll-outs. We use COAL and a passive learning baseline inside Aggravate on three joint prediction datasets (statistics are in Table 1). As above, we use several mellowness values and the same AUC criteria to select the best learning rate (see Table 2). The results are in Figure 4, and again our recommended mellowness is 0.010.01.

Overall, active learning reduces the number of roll-outs required, but the improvements vary on the three datasets. On the Wikipedia data, COAL performs a factor of 4 fewer rollouts to achieve similar performance to passive learning and achieves substantially better test performance. A similar, but less dramatic, behavior arises on the NER task. On the other hand, COAL offers minimal improvement over passive learning on the POS-tagging task. This agrees with our theory and prior empirical results , which show that active learning may not always improve upon passive learning.

Proofs

In this section we provide proofs for the main results, the oracle-complexity guarantee and the generalization and label complexity bounds. We start with some supporting results, including a new uniform freedman-type inequality that may be of independent interest. The proof of this inequality, and the proofs for several other supporting lemmata are deferred to the appendices.

For both the computational and statistical analysis of COAL, we require concentration of the square loss functional R^j(⋅;y)\widehat{R}_{j}(\cdot;y), uniformly over the class G\mathcal{G}. To describe the result, we introduce the central random variable in the analysis:

The Multiplicative Weights Algorithm.

We also use the standard analysis of multiplicative weights for solving linear feasibility problems. We state the result here and, for completeness, provide a proof in Appendix B. See also Arora et al. , Plotkin et al. for more details.

Here η\eta is a parameter of the algorithm. The intuition is that if vtv_{t} satisfies the ithi^{\textrm{th}} constraint, then we down-weight the constraint, and conversely, we up-weight every constraint that is violated. Running the algorithm with appropriate choice of η\eta and for enough iterations is guaranteed to approximately solve the feasibility problem.

Consider running the MW algorithm with parameter η=log⁡(m)/T\eta=\sqrt{\log(m)/T} for TT iterations on a linear feasibility problem where oracle responses satisfy ⟨ai,v⟩−bi∈[−ρi,ρi]\langle a_{i},v\rangle-b_{i}\in[-\rho_{i},\rho_{i}]. If the oracle fails to find a feasible point in some iteration, then the linear program is infeasible. Otherwise the point vˉ≜1T∑t=1Tvt\bar{v}\triangleq\frac{1}{T}\sum_{t=1}^{T}v_{t} satisfies ⟨ai,vˉ⟩≤bi+2ρilog⁡(m)/T\langle a_{i},\bar{v}\rangle\leq b_{i}+2\rho_{i}\sqrt{\log(m)/T} for all i∈[m]i\in[m].

Other Lemmata.

Our first lemma evaluates the conditional expectation and variance of MjM_{j}, defined in (15), which we will use heavily in the proofs. Proofs of the results stated here are deferred to Appendix C.

We have for all (g,y)∈G×Y(g,y)\in\mathcal{G}\times\mathcal{Y},

The next lemma relates the cost-sensitive error to the random variables MjM_{j}. Define

which is the version space of vector regressors at round ii. Additionally, recall that PζP_{\zeta} captures the noise level in the problem, defined in (10) and that ψi=1/i\psi_{i}=1/\sqrt{i} is defined in the algorithm pseudocode.

For all i>0i>0, if f⋆∈Fif^{\star}\in\mathcal{F}_{i}, then for all f∈Fif\in\mathcal{F}_{i}

Note that the lemma requires that both f⋆f^{\star} and ff belong to the version space Fi\mathcal{F}_{i}.

For the label complexity analysis, we will need to understand the cost-sensitive performance of all f∈Fif\in\mathcal{F}_{i}, which requires a different generalization bound. Since the proof is similar to that of Theorem 3, we defer the argument to appendix.

Assuming the bounds in Theorem 9 hold, then for all ii, Fi⊂Fcsr(ri)\mathcal{F}_{i}\subset\mathcal{F}_{\textrm{csr}}(r_{i}) where ri≜min⁡ζ>0{ζPζ+44KΔiζ}.r_{i}\triangleq\min_{\zeta>0}\left\{\zeta P_{\zeta}+\frac{44K\Delta_{i}}{\zeta}\right\}.

The final lemma relates the query rule of COAL to a hypothetical query strategy driven by Fcsr(ri)\mathcal{F}_{\textrm{csr}}(r_{i}), which we will subsequently bound by the disagreement coefficients. Let us fix the round ii and introduce the shorthand γ^(xi,y)=c^+(xi,y)−c^−(xi,y)\widehat{\gamma}(x_{i},y)=\widehat{c}_{+}(x_{i},y)-\widehat{c}_{-}(x_{i},y), where c^+(xi,y)\widehat{c}_{+}(x_{i},y) and c^−(xi,y)\widehat{c}_{-}(x_{i},y) are the approximate maximum and minimum costs computed in Algorithm 1 on the ithi^{\textrm{th}} example, which we now call xix_{i}. Moreover, let YiY_{i} be the set of non-dominated labels at round ii of the algorithm, which in the pseudocode we call Y′Y^{\prime}. Formally, Yi={y∣c^−(xi,y)≤min⁡y′c^+(xi,y′)}Y_{i}=\{y\mid\widehat{c}_{-}(x_{i},y)\leq\min_{y^{\prime}}\widehat{c}_{+}(x_{i},y^{\prime})\}. Finally recall that for a set of vector regressors F⊂FF\subset\mathcal{F}, we use γ(x,y,F)\gamma(x,y,F) to denote the cost range for label yy on example xx witnessed by the regressors in FF.

Suppose that the conclusion of Lemma 4 holds. Then for any example xix_{i} and any label yy at round ii, we have

2 Proof of Theorem 1

The proof is based on expressing the optimization problem (7) as a linear optimization in the space of distributions over G\mathcal{G}. Then, we use binary search to re-formulate this as a series of feasibility problems and apply Theorem 10 to each of these.

Recall that the problem of finding the maximum cost for an (x,y)(x,y) pair is equivalent to solving the program (7) in terms of the optimal gg. For the problem (7), we further notice that since G\mathcal{G} is a convex set, we can instead write the minimization over gg as a minimization over P∈Δ(G)P\in\Delta(\mathcal{G}) without changing the optimum, leading to the modified problem (8).

Thus we have a linear program in variable PP, and Algorithm 2 turns this into a feasibility problem by guessing the optimal objective value and refining the guess using binary search. For each induced feasibility problem, we use MW to certify feasibility. Let c∈c\in be some guessed upper bound on the objective, and let us first turn to the MW component of the algorithm. The program in consideration is

This is a linear feasibility problem in the infinite dimensional variable PP, with i+1i+1 constraints. Given a particular set of weights μ\mu over the constraints, it is clear that we can use the regression oracle over gg to compute

At this point, we would like to invoke the MW algorithm, and specifically Theorem 10, in order to find a feasible solution to (18) or to certify infeasibility. Invoking the theorem requires the ρj\rho_{j} parameters which specify how badly gμg_{\mu} might violate the jthj^{\textrm{th}} constraint. For us, ρj≜κ\rho_{j}\triangleq\kappa suffices since R^j(g;y)−R^j(gj,y;y)∈\hat{R}_{j}(g;y)-\hat{R}_{j}(g_{j,y};y)\in (since gj,yg_{j,y} is the ERM) and Δj≤κ\Delta_{j}\leq\kappa. Since κ≥2\kappa\geq 2 this also suffices for the cost constraint.

If at any iteration, MW detects infeasibility, then our guessed value cc for the objective is too small since no function satisfies both (g(xi)−1)2≤c(g(x_{i})-1)^{2}\leq c and the empirical risk constraints in (18) simultaneously. In this case, in Line 10 of Algorithm 2, our binary search procedure increases our guess for cc. On the other hand, if we apply MW for TT iterations and find a feasible point in every round, then, while we do not have a point that is feasible for the original constraints in (18), we will have a distribution PTP_{T} such that

We will set TT toward the end of the proof.

Let Pˉ\bar{P} be the approximately feasible point found when running MW with the final value of chc_{h}. By Jensen’s inequality and convexity of G\mathcal{G}, there exists a single regressor that is also approximately feasible, which we denote gˉ\bar{g}. Observe that g⋆g^{\star} satisfies all constraints with strict inequality, since by (20) we know that R^j(g⋆;y)−R^j(gj,y;y)≤Δj/κ<Δj\widehat{R}_{j}(g^{\star};y)-\widehat{R}_{j}(g_{j,y};y)\leq\Delta_{j}/\kappa<\Delta_{j}. We create a strictly feasible point gζg_{\zeta} by mixing gˉ\bar{g} with g⋆g^{\star} with proportion 1−ζ1-\zeta and ζ\zeta for

which will be in $whenwesetwhen we setT.Combininginequalities,wegetthatforany. Combining inequalities, we get that for anyj\in[i]$

and hence this mixture regressor gζg_{\zeta} is exactly feasible. Here we use that κ≥2\kappa\geq 2 and that Δi\Delta_{i} is monotonically decreasing. With the pessimistic choice g⋆(xi)=0g^{\star}(x_{i})=0, the objective value for gζg_{\zeta} is at most

3 Proof of the Generalization Bound

Recall the central random variable Mj(g;y)M_{j}(g;y), defined in (15), which is the excess square loss for function gg on label yy for the jthj^{\textrm{th}} example, if we issued a query. The idea behind the proof is to first apply Theorem 9 to argue that all the random variables Mj(g;y)M_{j}(g;y) concentrate uniformly over the function class G\mathcal{G}. Next for a vector regressor ff, we relate the cost-sensitive risk to the excess square loss via Lemma 3. Finally, using the fact that gi,yg_{i,y} minimizes the empirical square loss at round ii, this implies a cost-sensitive risk bound for the vector regressor fi=(gi,y)f_{i}=(g_{i,y}) at round ii.

First, condition on the high probability event in Theorem 9, which ensures that the empirical square losses concentrate. We first prove that f⋆∈Fif^{\star}\in\mathcal{F}_{i} for all i∈[n]i\in[n]. At round ii, by (17), for each yy and for any gg we have

Since this bound applies to all g∈Gg\in\mathcal{G} it proves that f⋆∈Fi+1f^{\star}\in\mathcal{F}_{i+1} for all ii, using the definition of Δi\Delta_{i} and κ\kappa. Trivially, we know that f⋆∈F1f^{\star}\in\mathcal{F}_{1}. Together with the fact that the losses are in $andthedefinitionofand the definition of\Delta_{i}$, the above analysis yields

This implies that f⋆(⋅;y)f^{\star}(\cdot;y) strictly satisfies the inequalities defining the version space, which we used in the MW proof.

We next prove that fi+1∈Fjf_{i+1}\in\mathcal{F}_{j} for all j∈[i]j\in[i]. Fix some label yy and to simplify notation, we drop dependence on yy. If gi+1∉Gt+1g_{i+1}\notin\mathcal{G}_{t+1} for some t∈{0,…,i}t\in\{0,\ldots,i\} then, first observe that we must have tt large enough so that νn/t≤1\nu_{n}/t\leq 1. In particular, since Δt+1=κmin⁡{1,νn/t}\Delta_{t+1}=\kappa\min\{1,\nu_{n}/t\} and we always have R^t+1(gi+1;y)≤R^t+1(gt+1;y)+1\hat{R}_{t+1}(g_{i+1};y)\leq\hat{R}_{t+1}(g_{t+1};y)+1 due to boundedness, we do not evict any functions until νn/t≤1\nu_{n}/t\leq 1. For t≥νnt\geq\nu_{n}, we get

The inequality uses the radius of the version space and the fact that by assumption gi+1∉Gt+1g_{i+1}\notin\mathcal{G}_{t+1}, so the excess empirical risk is at least Δt+1=κνn/t\Delta_{t+1}=\kappa\nu_{n}/t since we are considering large tt. We also use (20) on the second term. Moreover, we know that since gi+1g_{i+1} is the empirical square loss minimizer for label yy after round ii, we have ∑j=1iMj(gi+1;y)≤0\sum_{j=1}^{i}M_{j}(g_{i+1};y)\leq 0. These two facts together establish that

However, by Theorem 9 on this intermediary sum, we know that

using the definition of κ\kappa. This is a contradiction, so we must have that gi+1∈Gjg_{i+1}\in\mathcal{G}_{j} for all j∈{1,…,i}j\in\{1,\ldots,i\}. The same argument applies for all yy and hence we can apply Lemma 3 on all rounds to obtain

We study the four terms separately. The first one is straightforward and contributes ζPζ\zeta P_{\zeta} to the instantaneous cost sensitive regret. Using our definition of ψj=1/j\psi_{j}=1/\sqrt{j} the second term can be bounded as

The inequality above, ∑i=1n1i≤2n\sum_{i=1}^{n}\frac{1}{\sqrt{i}}\leq 2\sqrt{n}, is well known. For the third term, using our definition of ψj\psi_{j} gives

Finally, the fourth term can be bounded using (17), which reveals

Since for each yy, ∑j=1iMj(fi+1;y)≤0\sum_{j=1}^{i}M_{j}(f_{i+1};y)\leq 0 for the empirical square loss minimizer (which is what we are considering now), we get

And hence, we obtain the generalization bound

Under the Massart noise condition, set ζ=τ\zeta=\tau so that Pζ=0P_{\zeta}=0 and we immediately get the result.

Proof of Corollary 5.

Set ζ=min⁡{τ0,(32Kνniβ)1α+2}\zeta=\min\left\{\tau_{0},\left(\frac{32K\nu_{n}}{i\beta}\right)^{\frac{1}{\alpha+2}}\right\}, so that for ii sufficiently large the second term is selected and we obtain the bound.

4 Proof of the Label Complexity bounds

The proof for the label complexity bounds is based on first relating the version space Fi\mathcal{F}_{i} at round ii to the cost-sensitive regret ball Fcsr\mathcal{F}_{\textrm{csr}} with radius rir_{i}. In particular, the containment Fi⊂Fcsr(ri)\mathcal{F}_{i}\subset\mathcal{F}_{\textrm{csr}}(r_{i}) in Lemma 4 implies that our query strategy is more aggressive than the query strategy induced by Fcsr(ri)\mathcal{F}_{\textrm{csr}}(r_{i}), except for a small error introduced when computing the maximum and minimum costs. This error is accounted for by Lemma 5. Since the probability that Fcsr\mathcal{F}_{\textrm{csr}} will issue a query is intimately related to the disagreement coefficient, this argument leads to the label complexity bounds for our algorithm.

For the former indicator, observe that y∈Yiy\in Y_{i} implies that there exists a vector regressor f∈Fi⊂Fcsr(ri)f\in\mathcal{F}_{i}\subset\mathcal{F}_{\textrm{csr}}(r_{i}) such that hf(xi)=yh_{f}(x_{i})=y. This follows since the domination condition means that there exists g∈Gi(y)g\in\mathcal{G}_{i}(y) such that g(xi)≤min⁡y′max⁡g′∈Gi(y′)g′(xi)g(x_{i})\leq\min_{y^{\prime}}\max_{g^{\prime}\in\mathcal{G}_{i}(y^{\prime})}g^{\prime}(x_{i}). Since we are using a factored representation, we can take ff to use gg on the ythy^{\textrm{th}} coordinate and use the maximizers for all the other coordinates. Similarly, there exists another regressor f′∈Fif^{\prime}\in\mathcal{F}_{i} such that hf′(xi)≠yh_{f^{\prime}}(x_{i})\neq y. Thus this indicator can be bounded by the disagreement coefficient

We will now apply Freedman’s inequality on the sequence {∑yQi(y)}i=1n\{\sum_{y}Q_{i}(y)\}_{i=1}^{n}, which is a martingale with range KK. Moreover, due to non-negativity, the conditional variance is at most KK times the conditional mean, and in such cases, Freedman’s inequality reveals that with probability at least 1−δ1-\delta

For us, Freedman’s inequality implies that with probability at least 1−δ/21-\delta/2

The last step here uses the definition of the disagreement coefficient θ2\theta_{2}. To wrap up the proof we just need to upper bound the sequence, using our choices of ψi=1/i\psi_{i}=1/\sqrt{i}, ri=244KΔir_{i}=2\sqrt{44K\Delta_{i}}, and Δi=κmin⁡{1,νni−1}\Delta_{i}=\kappa\min\{1,\frac{\nu_{n}}{i-1}\}. With simple calculations this is easily seen to be at most

Similarly for L1L_{1} we can derive the bound

and then apply Freedman’s inequality to obtain that with probability at least 1−δ/21-\delta/2

Proof of Theorem 7.

Using the same notations as in the bound for the high noise case we first express the L2L_{2} label complexity as

We need to do two things with the first part of the query indicator, so we have duplicated it here. For the second, we will use the derivation above to relate the query rule to the disagreement region. For the first, by Lemma 5, for y≠yi⋆y\neq y_{i}^{\star}, we can derive the bound

where for shorthand we have defined Di(y)≜1{τ/4≤γ(xi,y,Fcsr(ri))∧xi∈DIS(ri,y)}D_{i}(y)\triangleq{\bf 1}\{\tau/4\leq\gamma(x_{i},y,\mathcal{F}_{\textrm{csr}}(r_{i}))\wedge x_{i}\in\textrm{DIS}(r_{i},y)\}. The derivation for the first term is straightforward. We obtain the disagreement region for yi⋆y_{i}^{\star} since the fact that we query yy (i.e. Qi(y)Q_{i}(y)) implies there is ff such that hf(xi)=yh_{f}(x_{i})=y, so this function witnesses disagreement to yi⋆y_{i}^{\star}.

For the earlier rounds, we simply upper bound the label complexity by KK. Since the range of this random variable is at most 3K3K, using Freedman’s inequality just as in the high noise case, we get that with probability at least 1−δ/21-\delta/2

The first line here is the application of Freedman’s inequality. In the second, we evaluate the expectation, which we can relate to the disagreement coefficients θ1,θ2\theta_{1},\theta_{2}. Moreover, we use the setting ψi=1/i\psi_{i}=1/\sqrt{i} to evaluate the first term. As a technicality, we remove the index i=1i=1 from the second summation, since we are already accounting for queries on the first round in the first term. The last step is to evaluate the series, for which we use the definition of ri=min⁡ζ>0{ζPζ+44KΔi/ζ}r_{i}=\min_{\zeta>0}\left\{\zeta P_{\zeta}+44K\Delta_{i}/\zeta\right\} and set ζ=τ\zeta=\tau, the Massart noise level. This gives ri=44KΔi/τr_{i}=44K\Delta_{i}/\tau. In total, we get

As θ2≤Kθ1\theta_{2}\leq K\theta_{1} always, we drop θ2\theta_{2} from the above expression to obtain the stated bound.

For L1L_{1} we use a very similar argument. First, by Lemmas 4 and 5

Moreover, one of the two classifiers can be f⋆f^{\star}, and so, when τ≥ψi\tau\geq\psi_{i}, we can deduce

Combining this argument, we bound the L1L_{1} label complexity as

Applying Freedman’s inequality just as before gives

Proof of Theorem 8.

For the Tsybakov case, the same argument as in the Massart case gives that with probability at least 1−δ/21-\delta/2

The main difference here is the term scaling with nταn\tau^{\alpha} which arises since we do not have the deterministic bound f⋆(xi,y)−f⋆(xi,yi⋆)≥τf^{\star}(x_{i},y)-f^{\star}(x_{i},y_{i}^{\star})\geq\tau as we used in the Massart case, but rather this happens except with probability βτα\beta\tau^{\alpha} (provided τ≤τ0\tau\leq\tau_{0}). Now we must optimize ζ\zeta in the definition of rir_{i} and then τ\tau.

For ζ\zeta the optimal setting is (44KΔi/β)1α+2(44K\Delta_{i}/\beta)^{\frac{1}{\alpha+2}} which gives ri≤2β1α+2(44KΔi)α+1α+2r_{i}\leq 2\beta^{\frac{1}{\alpha+2}}(44K\Delta_{i})^{\frac{\alpha+1}{\alpha+2}}. Since we want to set ζ≤τ0\zeta\leq\tau_{0}, this requires i≥1+44Kκνnβτ0α+2i\geq 1+\frac{44K\kappa\nu_{n}}{\beta\tau_{0}^{\alpha+2}}. For these early rounds we will simply pay KK in the label complexity, but this will be dominated by other higher order terms. For the later rounds, we get

This bound uses the integral approximation ∑i=2n(i−1)−α+1α+2≤1+∫1n−1x−α+1α+2dx≤(α+2)n1α+2\sum_{i=2}^{n}(i-1)^{-\frac{\alpha+1}{\alpha+2}}\leq 1+\int_{1}^{n-1}x^{-\frac{\alpha+1}{\alpha+2}}dx\leq(\alpha+2)n^{\frac{1}{\alpha+2}}. At this point, the terms involving τ\tau in our bound are

We set τ=(8(α+2)(Kθ1+θ2))1α+1(44Kκνn)1α+2(βn)−1α+2\tau=(8(\alpha+2)(K\theta_{1}+\theta_{2}))^{\frac{1}{\alpha+1}}\left(44K\kappa\nu_{n}\right)^{\frac{1}{\alpha+2}}(\beta n)^{\frac{-1}{\alpha+2}} by optimizing the second two terms which gives a final bound of

This follows since the 1/τ21/\tau^{2} term agrees in the nn dependence and is lower order in other parameters, while the unaccounted for querying in the early rounds is independent of nn. The bound of course requires that τ≤τ0\tau\leq\tau_{0}, which again requires nn large enough. Note we are treating α\alpha and β\beta as constants and we drop θ2\theta_{2} from the final statement.

The L1L_{1} bound requires only slightly different calculations. Following the derivation for the Massart case, we get

not counting the lower order term for the querying in the early rounds. Here we set τ=(8(α+2)θ1)1α+1(44Kκνn)1α+2(βn)−1α+2\tau=(8(\alpha+2)\theta_{1})^{\frac{1}{\alpha+1}}\left(44K\kappa\nu_{n}\right)^{\frac{1}{\alpha+2}}(\beta n)^{\frac{-1}{\alpha+2}} to obtain

Proof of Proposition 1: Massart Case.

Observe that with Massart noise, we have Fcsr(r)⊂F~(r/τ)\mathcal{F}_{\textrm{csr}}(r)\subset\widetilde{\mathcal{F}}(r/\tau), which implies that

Thus we may replace θ1\theta_{1} with θ0\theta_{0} in the proof of the L1L_{1} label complexity bound above.

Proof of Proposition 1: Tsybakov Case.

We use this fact to prove that Fcsr(r)⊂F~(2r/τ)\mathcal{F}_{\textrm{csr}}(r)\subset\widetilde{\mathcal{F}}(2r/\tau) for τ\tau sufficiently small. This can be seen from above by noting that if f∈Fcsr(r)f\in\mathcal{F}_{\textrm{csr}}(r) then the right hand side is rτ+βτα\frac{r}{\tau}+\beta\tau^{\alpha}, and if τ≤(r/β)11+α\tau\leq(r/\beta)^{\frac{1}{1+\alpha}} the containment holds. Therefore, we have

Thus, provided τ≤(rn/β)1α+1\tau\leq(r_{n}/\beta)^{\frac{1}{\alpha+1}}, we can replace θ1\theta_{1} with θ0\theta_{0} in the above argument. This gives

As above, we have taken ri=2β1α+2(44KΔi)α+1α+2r_{i}=2\beta^{\frac{1}{\alpha+2}}(44K\Delta_{i})^{\frac{\alpha+1}{\alpha+2}} and approximated the sum by an integral. Since Δn=κνn/(n−1)\Delta_{n}=\kappa\nu_{n}/(n-1), we can set τ=2α+1α+2(44Kκνn)1α+2(βn)−1α+2\tau=2^{\frac{\alpha+1}{\alpha+2}}(44K\kappa\nu_{n})^{\frac{1}{\alpha+2}}(\beta n)^{-\frac{1}{\alpha+2}}. This is a similar choice to what we used in the proof of Theorem 8 except that we are not incorporating θ0\theta_{0} into the choice of τ\tau, and it yields a final bound of O(θ0n2α+2νnαα+2+log⁡(1/δ))\mathcal{O}\left(\theta_{0}n^{\frac{2}{\alpha+2}}\nu_{n}^{\frac{\alpha}{\alpha+2}}+\log(1/\delta)\right).

Proof of Proposition 2.

First we relate θ1\theta_{1} to θ0\theta_{0} in the multiclass case. For f∈Fcsr(r)f\in\mathcal{F}_{\textrm{csr}}(r), we have

Applying this argument in the L1L_{1} derivation above, we obtain

We now bound rir_{i} via Lemma 4. In multiclass classification, the fact that c=1−eyc={\bf 1}-e_{y} for some yy implies that f⋆(x,y)f^{\star}(x,y) is one minus the probability that the true label is yy. Thus f⋆(x,y)∈f^{\star}(x,y)\in, ∑yf⋆(x,y)=K−1\sum_{y}f^{\star}(x,y)=K-1, and for any xx we always have

Hence, we may bound PζP_{\zeta}, for ζ≤1/2\zeta\leq 1/2, as follows

Now apply Lemma 4 with ζ=min⁡{1/2,44KΔi/error(hf⋆)}\zeta=\min\{1/2,\sqrt{44K\Delta_{i}/\textrm{error}(h_{f^{\star}})}\}, and we obtain

Using the definition of Δi\Delta_{i} the final L1L_{1} label complexity bound is

Discussion

This paper presents a new active learning algorithm for cost-sensitive multiclass classification. The algorithm enjoys strong theoretical guarantees on running time, generalization error, and label complexity. The main algorithmic innovation is a new way to compute the maximum and minimum costs predicted by a regression function in the version space. We also design an online algorithm inspired by our theoretical analysis that outperforms passive baselines both in CSMC and structured prediction.

On a technical level, our algorithm uses a square loss oracle to search the version space and drive the query strategy. This contrasts with many recent results using argmax or 0/1-loss minimization oracles for information acquisition problems like contextual bandits . As these involve NP-hard optimizations in general, an intriguing question is whether we can use a square loss oracle for other information acquisition problems. We hope to answer this question in future work.

Acknowledgements

Part of this research was completed while TKH was at Microsoft Research and AK was at University of Massachusetts, Amherst. AK thanks Chicheng Zhang for insightful conversations. AK is supported in part by NSF Award IIS-1763618.

Appendix A Proof of Theorem 9

Fixing ii and yy, and working toward (16) we seek to bound

The bound on the other tail is similar. In this section, we sometimes treat the query rule as a function which maps an xx to a query decision. We use the notation Qj:X→{0,1}\textbf{Q}_{j}:\mathcal{X}\rightarrow\{0,1\} to denote the query function used after seeing the first j−1j-1 examples. Thus, our query indicator QjQ_{j} is simply the instantiation Qj(xj)\textbf{Q}_{j}(x_{j}). In this section, we work with an individual label yy and omit the explicit dependence in all our arguments and notation. For notational convenience, we use zj=(xj,cj,Qj)z_{j}=(x_{j},c_{j},Q_{j}) and with g⋆(⋅)=f⋆(⋅;y)g^{\star}(\cdot)=f^{\star}(\cdot;y), we define

Note that ξj\xi_{j} is a centered random variable, independent of everything else. We now introduce some standard concepts from martingale theory for the proof of Theorem 9.

For a dependent sequence z1,…,ziz_{1},\ldots,z_{i} we use z1′,…,zi′z_{1}^{\prime},\ldots,z_{i}^{\prime} to denote a tangent sequence, where zj′∣z1:j−1=dzj∣z1:j−1z_{j}^{\prime}|z_{1:j-1}\overset{d}{=}z_{j}|z_{1:j-1}, and, conditioned on z1,…,ziz_{1},\ldots,z_{i}, the random variables z1′,…,zi′z_{1}^{\prime},\ldots,z_{i}^{\prime} are independent.

A tree process Q\mathcal{Q} is a binary tree of depth ii where each node is decorated with a value from {0,1}\{0,1\}. For a Rademacher sequence ϵ∈{−1,1}i\epsilon\in\{-1,1\}^{i} we use Qi(ϵ)\mathcal{Q}_{i}(\epsilon) to denote the value at the node reached when applying the actions ϵ1,…,ϵi−1\epsilon_{1},\ldots,\epsilon_{i-1} from the root, where +1+1 denotes left and −1-1 denotes right.

The proof follows a fairly standard recipe for proving uniform convergence bounds, but has many steps that all require minor modifications from standard arguments. We compartmentalize each step in various lemmata:

In Lemma 8, we perform symmetrization and introduce Rademacher random variables and the associated tree process.

In Lemma 9 we control the symmetrized process for finite G\mathcal{G}.

In Lemma 10, we use the covering number to discretize G\mathcal{G}.

We now state and prove the intermediate results.

Let Z=(z1,…,zi)Z=(z_{1},\ldots,z_{i}) be the sequence of (x,c,Q)(x,c,Q) triples and let Z′=(z1′,…,zi′)Z^{\prime}=(z_{1}^{\prime},\ldots,z_{i}^{\prime}) be a tangent sequence. Then for β0≥β1>0\beta_{0}\geq\beta_{1}>0 if τ≥4(1+β1)2(β0−β1)\tau\geq\frac{4(1+\beta_{1})^{2}}{(\beta_{0}-\beta_{1})}, then

We derive the first inequality, beginning with the right hand side and working toward a lower bound. The main idea is to condition on ZZ and just work with the randomness in Z′Z^{\prime}. To this end, let g^\hat{g} achieve the supremum on the left hand side, and define the events

Since we have defined g^\hat{g} to achieve the supremum, we know that

Since we are working conditional on ZZ, we can leverage the independence of Z′Z^{\prime} (recall Definition 4) to bound the variance term.

where the last step uses the requirement on τ\tau. This establishes the first inequality.

For the second inequality the steps are nearly identical. Let g^\hat{g} achieve the supremum on the left hand side and define

Using the same argument, we can lower bound the right hand side by

Applying Chebyshev’s inequality yields the same expression as for the other tail. ∎

Using the same notation as in Lemma 7, we have

the same bound holds on the lower tail with (1−β1)(1-\beta_{1}) replacing (1+β1)(1+\beta_{1}).

For this proof, we think of QjQ_{j} as a binary variable that is dependent on z1,…,zj−1z_{1},\ldots,z_{j-1} and xjx_{j}. Similarly Qj′Q_{j}^{\prime} depends on z1,…,zj−1z_{1},\ldots,z_{j-1} and xj′x_{j}^{\prime}. Using this notation, and decomposing the square loss, we get

Here we have introduce the short forms T1,j,T2,jT_{1,j},T_{2,j} and the primed version just to condense the derivations. Overall we must bound

Observe that in the final term T1,i,T1,i′T_{1,i},T_{1,i}^{\prime} are random variables with identical conditional distribution, since there are no further dependencies and (xi,ξi,Qi)(x_{i},\xi_{i},Q_{i}) are identically distributed to (xi′,ξi′,Qi′)(x_{i}^{\prime},\xi_{i}^{\prime},Q_{i}^{\prime}). As such, we can symmetrize the ithi^{\textrm{th}} term by introducing the Rademacher random variable ϵi∈{−1,+1}\epsilon_{i}\in\{-1,+1\} to obtain

Here in the final expression the outer expectation is just over the variables xj,xj′,ξj,ξj′x_{j},x_{j}^{\prime},\xi_{j},\xi_{j}^{\prime} and the bracket notation denotes interleaved supremum and expectation. Expanding the definitions of T1,i,T2,iT_{1,i},T_{2,i}, we currently have

Next we use the standard trick of splitting the supremum over gg into a supremum over two functions g,g′g,g^{\prime}, where g′g^{\prime} optimizes the primed terms. This provides an upper bound, but moreover if we replace τ\tau with τ/2\tau/2 we can split the indicator into two and this becomes

The tree process Q\mathcal{Q} arises here because the interleaved supremum and expectation is equivalent to choosing a binary tree decorated with values from {0,1}\{0,1\} and then navigating the tree using the Rademacher random variables ϵ\epsilon. The bound for the other tail is proved in the same way, except (1+β1)(1+\beta_{1}) is replaced by (1−β1)(1-\beta_{1}). ∎

The next lemma is more standard, and follows from the union bound and the bound on the Rademacher moment generating function.

For any x1:i,ξ1:i,Qx_{1:i},\xi_{1:i},\mathcal{Q}, and for finite G\mathcal{G}, we have

The same bound applies for the lower tail.

Applying the union bound and the Chernoff trick, we get that for any λ>0\lambda>0 the LHS is bounded by

Let us examine the ithi^{\textrm{th}} term conditional on ϵ1:i−1\epsilon_{1:i-1}. Conditionally on ϵ1:i−1\epsilon_{1:i-1}, Qi(ϵ)\mathcal{Q}_{i}(\epsilon) is no longer random, so we can apply the MGF bound for Rademacher random variables to get

Observe first that if vv is the covering element for gg, then we are guaranteed that

since g,v,g⋆∈g,v,g^{\star}\in. Thus, adding and subtracting the corresponding terms for vv, and applying these bounds, we get a residual term of iα(2(1+β1)+2+2β1)=4iα(1+β1)i\alpha(2(1+\beta_{1})+2+2\beta_{1})=4i\alpha(1+\beta_{1}). ∎

Now let V(X)V(X) be the cover for G\mathcal{G} at scale α=τ32i(9/8)=τ36i\alpha=\frac{\tau}{32i(9/8)}=\frac{\tau}{36i}, which makes τ/4−4i(1+β1)α=τ8\tau/4-4i(1+\beta_{1})\alpha=\frac{\tau}{8}. Thus we get the bound

This entire derivation requires that τ≥4(9/8)2(1/8)2=324\tau\geq\frac{4(9/8)^{2}}{(1/8)^{2}}=324.

The lower tail bound is similar. By Lemmas 7 and 8, with β0=1/4\beta_{0}=1/4 and β1=1/8\beta_{1}=1/8,

This is the intermediate term we had for the upper tail, so we obtain the same bound.

To wrap up the proof, apply Haussler’s Lemma 6, to bound the covering number

Finally take a union bound over all pairs of starting and ending indices i<i′i<i^{\prime}, all labels yy, and both tails to get that the total failure probability is at most

The result now follows from standard approximations. Specifically we use the fact that we anyway require τ≥324\tau\geq 324 to upper bound that 1/τd1/\tau^{d} term, use (i′−i)d≤nd(i^{\prime}-i)^{d}\leq n^{d} and set the whole expression to be at most δ\delta.

Appendix B Multiplicative Weights

For completeness we prove Theorem 10 here. For this section only let q(t)∝p(t)q^{(t)}\propto p^{(t)} be the distribution used by the algorithm at round tt. If the program is feasible, then there exists a point that is also feasible against every distribution qq. By contraposition, if on iteration tt, the oracle reports infeasibility against q(t)q^{(t)}, then the original program must be infeasible.

Now suppose the oracle always finds vtv_{t} that is feasible against q(t)q^{(t)}. This implies

Thus, taking taking logarithms and re-arranging we get

Now with our choice of η=log⁡(m)/T\eta=\sqrt{\log(m)/T} we get the desired bound. If η≥1/2\eta\geq 1/2 then the result is trivial by the boundedness guarantee on the oracle.

Appendix C Proofs of Lemmata

Rearranging shows that (w′−w)(g′(x)−c)2≤(w′−w)(g(x)−c)2(w^{\prime}-w)(g^{\prime}(x)-c)^{2}\leq(w^{\prime}-w)(g(x)-c)^{2}. Since w′≥ww^{\prime}\geq w, we have (g′(x)−c)2≤(g(x)−c)2(g^{\prime}(x)-c)^{2}\leq(g(x)-c)^{2}, which is the second claim. For the first, the definition of gg gives

Rearranging this inequality gives, R^(g′)−R^(g)≥w((g(x)−c)2−(g′(x)−c)2)≥0\widehat{R}(g^{\prime})-\widehat{R}(g)\geq w((g(x)-c)^{2}-(g^{\prime}(x)-c)^{2})\geq 0, which yields the result. ∎

We take expectation of MjM_{j} over the cost conditioned on a fixed example xj=xx_{j}=x and a fixed query outcome Qj(y)Q_{j}(y):

Fix some f∈Fif\in\mathcal{F}_{i}, and let y^=hf(x)\hat{y}=h_{f}(x) and y⋆=hf⋆(x)y^{\star}=h_{f^{\star}}(x) for shorthand, but note that both depend on xx. Define

Observe that for fixed ζ\zeta, Sζ(x)\mathds1(y^≠y⋆)≤Sζ′(x)S_{\zeta}(x)\mathds{1}\left(\hat{y}\neq y^{\star}\right)\leq S_{\zeta}^{\prime}(x) for all xx. We can also majorize the complementary indicator to obtain the inequality

We begin with the definition of realizability, which gives

The first term here is exactly the ζPζ\zeta P_{\zeta} term in the bound. We now focus on the second term, which depends on our query rule. For this we must consider three cases.

Case 1. If both y^\hat{y} and y⋆y^{\star} are not queried, then it must be the case that both have small cost ranges. This follows since f∈Fif\in\mathcal{F}_{i} and hf(x)=y^h_{f}(x)=\hat{y} so y⋆y^{\star} does not dominate y^\hat{y}. Moreover, since the cost ranges are small on both y^\hat{y} and y⋆y^{\star} and since we know that f⋆f^{\star} is well separated under event SζC(x)S_{\zeta}^{C}(x), the relationship between ζ\zeta and ψi\psi_{i} governs whether we make a mistake or not. Specifically, we get that SζC(x)\mathds1(y^≠y⋆)\mathds1(no query)≤\mathds1(ζ≤2ψi)S_{\zeta}^{C}(x)\mathds{1}\left(\hat{y}\neq y^{\star}\right)\mathds{1}\left(\textrm{no query}\right)\leq\mathds{1}\left(\zeta\leq 2\psi_{i}\right) at round ii. In other words, if we do not query and the separation is big but we make a mistake, then it must mean that the cost range threshold ψi\psi_{i} is also big.

Using this argument, we can bound the second term as,

Case 2. If both y^\hat{y} and y⋆y^{\star} are queried, we can relate the second term to the square loss,

Passing from the second to third line here is justified by the fact that f⋆(x,y^)≥f⋆(x,y⋆)f^{\star}(x,\hat{y})\geq f^{\star}(x,y^{\star}) and f(x,y^)≤f(x,y⋆)f(x,\hat{y})\leq f(x,y^{\star}) so we added two non-negative quantities together. The last step uses Lemma 2. While not written, we also use the event \mathds1(y^≠y⋆)\mathds{1}\left(\hat{y}\neq y^{\star}\right) to save a factor of 22.

Case 3. The last case is if one label is queried and the other is not. Both cases here are analogous, so we do the derivation for when y(x)y(x) is queried but y⋆(x)y^{\star}(x) is not. Since in this case, y⋆(x)y^{\star}(x) is not dominated (hf(x)h_{f}(x) is never dominated provided f∈Fif\in\mathcal{F}_{i}), we know that the cost range for y⋆(x)y^{\star}(x) must be small. Using this fact, and essentially the same argument as in case 2, we get

We also obtain this term for the other case where y⋆y^{\star} is queried but y^\hat{y} is not.

To summarize, adding up the contributions from these cases (which is an over-estimate since at most one case can occur and all are non-negative), we get

This bound holds for any ζ\zeta, so it holds for the minimum. ∎

The proof here is an easier version of the generalization bound proof for fif_{i}. First, condition on the high probability event in Theorem 9, under which we already showed that f⋆∈Fif^{\star}\in\mathcal{F}_{i} for all i∈[n]i\in[n]. Now fix some f∈Fif\in\mathcal{F}_{i}. Since by the monotonicity property defining the sets Gi\mathcal{G}_{i}, we must have f∈Fjf\in\mathcal{F}_{j} for all 1≤j≤i1\leq j\leq i, we can immediately apply Lemma 3 on all rounds to bound the cost sensitive regret by

As in the generalization bound, the first term contributes ζPζ\zeta P_{\zeta}, the second is at most 12ζ\frac{12}{\zeta} and the third is at most 4/ζ(1+log⁡(i−1))4/\zeta(1+\log(i-1)). The fourth term is slightly different. We still apply (17) to obtain

We use this bound for each label. Putting terms together, the cost sensitive regret is

This proves containment, since this upper bounds the cost sensitive regret of every f∈Fif\in\mathcal{F}_{i}. ∎

The first claim is straightforward, since Fi⊂Fcsr(ri)\mathcal{F}_{i}\subset\mathcal{F}_{\textrm{csr}}(r_{i}) and since we set the tolerance parameter in the calls to MaxCost and MinCost to ψi/4\psi_{i}/4. Specifically,

For the second claim, suppose y≠yi⋆y\neq y_{i}^{\star}. Then

This argument uses the tolerance setting ψi/4\psi_{i}/4, Lemma 4 to translate between the version space and the cost-sensitive regret ball, and finally the fact that f⋆∈Fcsr(ri)f^{\star}\in\mathcal{F}_{\textrm{csr}}(r_{i}) since it has zero cost-sensitive regret. This latter fact lets us lower (upper) bound the minimum (maximum) cost by f⋆f^{\star} prediction minus (plus) the cost range.

References