Importance Weighted Active Learning
Paper · 2008 · Alina Beygelzimer, Sanjoy Dasgupta and John Langford
Summary
When examples are easy to collect and expensive to label, a learner can save work by asking for selected labels. That choice changes the training data. A learner that often asks about difficult cases will see a labeled sample in which those cases count for more than they do in the original stream. Importance Weighted Active Learning addresses this problem by giving each incoming example a probability of being labeled and recording that probability when it makes a request. If the label is obtained, the example receives a weight equal to the reciprocal of its request probability. Averaged over the random decisions, this correction recovers the loss that the learner would have measured by labeling the full stream.
The paper separates the correction from the decision about where to spend labels. For a finite hypothesis class and a fixed positive minimum request probability, the authors bound the error in the corrected loss estimates and show that training can approach the best predictor available in the class, even when that predictor makes mistakes. Their loss-weighting rule has a sharper guarantee. It keeps predictors whose estimated losses are close to the best observed loss, then asks for a label in proportion to how much those predictors’ losses could differ on the new example. If every candidate would incur the same loss for each possible label, that label adds nothing to their comparison. A generalized disagreement coefficient describes how frequently substantial differences persist among near-optimal predictors. Under favorable conditions the label bound has a term that grows roughly with the square root of the passive sample size, up to logarithmic factors. The paper also strengthens an earlier lower bound, showing why a term tied to the best achievable error can be unavoidable.
The experiments put the scheme into practice in two ways. A linear classifier trained with logistic loss on MNIST digits 3 and 5 achieved similar test error and test logistic loss to a learner with every label, while requesting less than 1/3 of the training labels. A second implementation used a committee of decision trees trained on bootstrap samples to set request probabilities. On the same digit task it used 65.6% of the labels and performed comparably to passive learning. The tree procedure also reduced label use on standard binary and multiclass benchmarks. On adult it requested 40.0% of the training labels, and on spambase it requested 44.2% with the standard initial batch. The authors report comparable predictive accuracy to passive learning across the benchmarks.
Keeping the request probabilities also gives the collected labels a use beyond fitting the final classifier. A later analysis can account for how the sample was selected when estimating a predictor’s loss. The authors point to the possibility of evaluating alternative active-learning choices with data collected under an earlier policy. The experiments establish the savings from withholding labels on already labeled benchmarks. The theoretical results explain when that kind of selective collection can support reliable learning.
Deep dive: Importance Weighted Active Learning
Importance Weighted Active Learning shows how to train classifiers with fewer labels by correcting for which examples the learner chooses to label. · about 39 minutes to read
The problem and its context
A training set changes when the learner chooses its labels
In the passive form of supervised machine learning, the learner receives labels for the examples it is given. In the streaming form of active learning studied here, the learner sees each input before it can see its label. It must decide, at that point, whether to pay for the label. The stream continues in either case. This separates two resources that passive learning usually spends together. The learner can inspect many inputs while paying to discover the outputs of only some of them.
The distinction matters because an input can be easy to obtain and still require someone to establish its label. The basic question is how much predictive performance the learner can get from a given amount of that work. The paper studies this question at a fixed number of inputs seen. A passive learner uses all their labels. An active learner can try to reach a comparable test loss with a smaller number of requests. Its savings concern labeling, while both learners can draw on the same underlying supply of inputs.
The choice of labels feeds back into learning. If a learner consults its current predictors to decide where to ask questions, then the labels it sees depend partly on what previous questions revealed. The labeled sample can overrepresent the parts of the input space where the current predictors disagree. That can be a good use of the budget, since examples from those parts may distinguish plausible candidates. But an ordinary average over the resulting labels gives extra influence to examples that were more likely to be selected. The same policy that makes the labels informative can therefore change what the training procedure is optimizing.
This is especially consequential when the learner works with an imperfect family of predictors. A hypothesis class is the set of prediction rules the learner can choose from. Even the best member of that class may make errors on the underlying distribution. A learner whose early choices make one part of the distribution persistently hard to observe can favor a predictor that does well on the selected labels and poorly on the distribution as a whole. The paper uses statistical consistency as a basic standard for avoiding that outcome. As the supply of examples grows, the learner should approach the lowest expected loss available within its class. An optimal predictor in this sense can still have positive loss.
What earlier guarantees covered
The authors begin with settings where active learning was already known to save labels. One is learning a threshold on a line. Another is learning linear separators when the unlabeled examples have a spherically uniform distribution. In special cases such as these, the required number of active labels can grow only logarithmically in the passive sample requirement. The results establish that selecting labels can pay off dramatically under the right geometry. The question for this paper is how to retain a convergence guarantee when the data and the hypothesis class admit no perfect separator.
The paper describes early methods that can fail that test. Some base their decisions on which classifiers remain compatible with labels observed so far. This can work well when there is a classifier that perfectly matches the labels. When every candidate has some error, an algorithm can prematurely rule out a good predictor or stop gathering labels relevant to it. In the authors’ account, access to an unlimited labeling budget by itself does not repair such a decision rule. A policy still has to use that budget in a way that preserves the evidence required to distinguish the best predictor.
A line of agnostic active-learning research addressed the problem by keeping a set of hypotheses that were still plausible in light of the observed labels. Here agnostic means that the analysis allows the best attainable predictor to be imperfect. Generalization bounds determine how far a candidate can trail the empirical leader before it is safe to discard it. The remaining hypotheses then identify inputs worth querying. For classification error, the simplest form of this idea is to ask about an input if plausible classifiers predict different classes there. If their predictions agree, the answer would affect their error counts equally.
The earlier methods provided convergence and label-complexity guarantees, including improvements on passive learning in favorable cases. The paper identifies several barriers to applying them. Their query rules were tailored to 0–1 loss, which records whether the predicted class is right or wrong. A practitioner may want to train with a loss that also responds to the strength of a prediction, or with a convex objective that is easier to optimize. The earlier algorithms also used generalization bounds internally. A loose bound can keep weak candidates alive for too long, creating more disagreement and hence more requests. Finally, some procedures require enumerating the hypotheses or a finite approximation of them. That requirement can make the query calculation impractical even if fitting a single predictor is manageable.
What weighting could contribute
The paper also discusses earlier work that used importance weights to correct for selective sampling. The insight is that an observed example can stand in for part of the data lost through selection, provided the learner knows how likely it was to observe that example. An example often accepted by the query policy requires little correction. An example accepted with a low probability receives more weight on the occasions when it is accepted.
The earlier analyses cited by the authors established consistency in restricted settings. In the work on linear predictors that the paper discusses in detail, the analysis covered cases where the class fit the data perfectly or the sampling strategy was nonadaptive. A nonadaptive strategy can choose examples unevenly, but its current decision does not depend on the sequence of earlier queries. The paper’s setting allows a policy to react to the labels it has already seen. It also asks for finite bounds, because a learner that eventually converges can still be too expensive at the sample sizes where labeling decisions matter.
Weighting introduces its own problem. If a label is rarely requested, the correction makes an obtained label count heavily. The loss estimate can then fluctuate even though it has the right expectation. A lower bound on request probabilities is one way to limit those fluctuations, but it also commits the learner to querying a share of inputs regardless of their value. The technical challenge is to let the probability fall where a label is unhelpful while controlling the accuracy of the comparisons that drive training.
The authors distinguish their setting from experimental design as they describe it. In that literature, the experimenter can construct query points to improve an estimator under assumptions about how responses depend on the predictors. Here the inputs arrive from a stream, and the learner chooses which of those arrivals to label. The interest is in performance on the stream’s underlying distribution. That is also the reason a query probability is attached to an arrival. It describes a selection decision over the data the learner was offered.
The paper brings together two useful parts of the preceding work. The plausible set gives a reason to ask about some inputs more often than others. Importance weighting gives the learner a way to incorporate the answers while preserving the original loss objective. With a graded loss, the size of a disagreement can matter as much as the fact that disagreement exists. The authors use that size to set the query probability and to bound how much a queried point can change the comparison between surviving predictors.
The method, step by step
From an incoming example to a weighted observation
The importance-weighted active learning scheme, or IWAL, separates the sampling rule from the bookkeeping needed to learn from its choices. At each round, the sampling rule can use the new input, previously inspected inputs, and labels revealed in earlier rounds. It returns a probability before the current label is known. A random draw with that probability determines whether to request the label. If the request is made, the learner retains the example and its weight. Training uses the resulting weighted observations, and the history can inform later sampling decisions.
How IWAL processes a stream of examples
The steps in order.
The probability and the realized decision play different roles. The probability describes how frequently the learner would ask if it could repeat its current decision under the same conditions. The decision records what happened on this arrival. An input that gets skipped contributes no observed loss. An input that gets labeled contributes its loss multiplied by the reciprocal of the request probability. Over repetitions of that decision, a large contribution made infrequently can have the same mean as a smaller contribution recorded every time.
This calculation is conditional on what the decision rule knew. Earlier labels can change which hypothesis currently looks strongest and therefore which part of the stream receives attention. As long as the learner makes its current draw with the stated probability before using the hidden label, the reciprocal still corrects for that draw. The fact that the policy changes over time is compatible with the correction.
What the loss estimates measure
The paper writes X for the input space, Y for the label space, and Z for the space of predictions. The hypothesis class H contains functions h that take an input x from X and produce a prediction h(x) in Z. In binary classification the true label can be written as −1 or +1. A predictor can produce a real-valued score, so the prediction space can have many possible values even when the label space has only two. The loss function ℓ takes the prediction and the true label and assigns a cost.
L(h) = E₍ₓ,ᵧ₎∼D[ℓ(h(x), y)]
Here L(h) is the population loss of hypothesis h, D is the distribution of input–label pairs (x, y), and E denotes expectation over a pair drawn from D. The symbol ℓ is the loss function, and h(x) is the prediction it scores against label y.
With 0–1 loss, the cost is 1 for a wrong class prediction and 0 otherwise. The paper also considers hinge, logistic, squared, and absolute loss as examples of costs that can depend on the value of a score. In the binary setting they can be expressed as functions of the signed score yz, where z is the predicted score and y is the true label. A larger positive signed score represents stronger agreement with the label. The paper assumes losses are normalized to the interval from 0 to 1 for the general analysis, and a bounded prediction range lets it work with bounded versions of losses such as logistic loss.
ℓ(z, y) = ln(1 + e⁻ʸᶻ)
Here ℓ is the logistic loss before any normalization, z is the real-valued prediction, and y is the true binary label. The symbol ln is the natural logarithm and e is its base. The exponent is the negative of the signed score yz. The loss changes when the predictor changes its confidence, including when the predicted class stays the same.
For IWAL, the population loss is estimated over the number of arrivals. The denominator remains the length of the observed stream even though only a subset of arrivals contribute observed terms.
Lₜ(h) = (1/T) ∑ₜ₌₁ᵀ (Qₜ/pₜ) ℓ(h(xₜ), yₜ)
On the left, Lₜ(h) denotes the estimate at horizon T for hypothesis h. In the sum, t indexes the arrivals from 1 through T. The pair (xₜ, yₜ) is the input and its underlying label at round t, pₜ is the probability of querying it, and Qₜ is the query indicator. The indicator equals 1 if the label is acquired and 0 if it is skipped. The symbol ℓ again denotes loss. Skipped observations add nothing to the computed sum, so their labels need never be looked up. At positive probabilities the expression Qₜ/pₜ combines the decision and the weight.
At a positive pₜ, the conditional expected value of Qₜ is pₜ. After dividing by pₜ, the conditional mean of the weighted contribution is the loss on the arriving example. Averaging over arrivals then gives the population loss in expectation. Dividing by the number of labels acquired would change the estimator. That count depends on where the learner decided to ask, whereas the number of arrivals counts all the opportunities that the weighting is intended to represent.
The guarantee from a positive minimum probability
Unbiasedness concerns an average over possible samples and query decisions. A particular training run needs a stronger guarantee. An estimate that takes very large values on rare occasions can have the correct mean but still provide unreliable guidance. IWAL’s general safety result addresses that problem by assuming that the request probability pₜ never goes below a fixed positive pₘᵢₙ.
Pr[maxₕ∈H |Lₜ(h) − L(h)| > (√2/pₘᵢₙ) √((ln |H| + ln(2/δ))/T)] < δ
Here Pr denotes probability, H is a finite hypothesis class, h ranges over its members, and |H| is the number of members. Lₜ(h) denotes the estimate at horizon T, L(h) is the population loss, and T is the number of arrivals. The minimum query probability is pₘᵢₙ, δ is the allowed failure probability, and ln is the natural logarithm. The maximum asks that the same bound hold for all candidates at once.
To see the role of the floor, consider the contribution to the estimate at an individual round after subtracting its population mean. Conditional on the past, this centered contribution has expected value zero. It is bounded in magnitude because the loss is bounded and the importance weight can be at most the reciprocal of pₘᵢₙ. The centered contributions can be added into a martingale, a process whose next increment has conditional mean zero given its past. This handles the dependence created by the changing query policy. The authors use Azuma’s inequality to bound the deviation for a fixed candidate and then combine the failure probabilities over the finite class.
A uniform estimate supports training because the winning empirical predictor is itself chosen from the data. If the empirical losses of all candidates approach their true losses, then minimizing empirical loss brings the selected predictor’s population loss close to the best in the class. The paper compares this bound to the passive supervised bound and gives a worst-case label-complexity factor of 2/pₘᵢₙ². It is a comparison of guarantees. The actual number of labels used on a particular stream depends on the sampling rule and can be smaller.
The floor is a way to make validity mostly independent of the quality of the query heuristic. It also makes the learning policy spend labels in parts of the stream where there may be little to learn. The authors’ next result shows how to control the quantity needed to choose a good predictor even when some sampling probabilities are very small or zero.
Using loss differences to decide where to ask
Loss-weighting starts with all hypotheses eligible and progressively limits the query decision to the candidates that remain plausible. At the end of a round, the learner finds the best weighted empirical loss among the current candidates. It retains any member whose estimate falls within a statistical tolerance of that minimum. The revised set is then used to calculate the next request probability.
Hₜ₊₁ = {h ∈ Hₜ : Lₜ(h) ≤ Lₜ* + Δₜ}
Here Hₜ is the effective hypothesis class at round t and Hₜ₊₁ is the class retained after incorporating the round’s information. The variable h is a candidate predictor, Lₜ(h) is its weighted empirical loss through round t, and Lₜ* is the smallest such loss over Hₜ. The tolerance is Δₜ.
Δₜ = √((8/t) ln(2t(t + 1)|H|²/δ))
Here t is the number of rounds completed, |H| is the size of the original finite hypothesis class, and δ is the probability allowance used for the simultaneous guarantee. The symbol ln is the natural logarithm. The tolerance accounts for comparisons between pairs of candidates and for keeping the guarantee over successive rounds.
To decide about an immediate input, the learner has to reason about a label it has yet to see. For each possible label, it works out the largest difference between the losses of two surviving hypotheses. The larger of the resulting spreads becomes the query probability.
pₜ = max₍f,g∈Hₜ₎ maxᵧ∈Y [ℓ(f(xₜ), y) − ℓ(g(xₜ), y)]
Here pₜ is the request probability for current input xₜ, t is the round, and Hₜ is the set of candidates available before the query. The functions f and g are an ordered pair of candidates from that set. The variable y ranges over possible labels in Y, and ℓ gives the loss for a candidate’s prediction and that label. Taking both orderings of a pair makes the largest signed difference equal to the largest absolute difference. Normalizing losses keeps the spread within the probability range.
Under 0–1 loss, two candidates that predict different classes can differ by a full unit of loss. Loss-weighting then requests the label with certainty. If the candidates predict the same class, their losses coincide for either answer and the label can be skipped. Logistic loss admits intermediate cases. Two predictors can favor the same class while incurring different losses, and the rule can make a request with a probability that reflects the size of that difference. Conversely, a high loss shared by every candidate offers no reason to query if the decision at hand is which of those candidates to retain.
This criterion protects the loss differences that matter for selection. Even if an individual weighted loss can be large, multiplying a candidate pair’s loss difference by the reciprocal probability has limited effect. The probability was chosen to be at least as large as that absolute difference for every possible label. When the spread is zero, each such difference is already zero, so no query is needed to estimate it. The argument for this rule concerns comparisons within the surviving set. The general claim of an unbiased absolute loss estimate uses positive probability wherever a loss contribution must be recovered.
Why the best candidate survives
The proof tracks how far a weighted empirical difference can deviate from the corresponding population difference. It deals with pairs of candidates that survived to the comparison. Since the candidate sets are nested, a pair still present in the current set was also available when earlier request probabilities were computed. Thus the loss spread used to set each of those probabilities covered that pair.
|Lₜ(f) − Lₜ(g) − L(f) + L(g)| ≤ Δₜ
Here f and g are surviving candidates, Lₜ is the empirical loss estimate through the current horizon T, and L is the population loss. The threshold Δₜ denotes the tolerance at that horizon. The absolute value measures the discrepancy between the empirical and population differences.
The proof centers each weighted difference by subtracting its population value. The resulting increments have conditional mean zero during the comparison, and the paper bounds their magnitude by 2. This yields a deviation bound for a pair. The proof allocates failure probability across pairs and across times to obtain the simultaneous guarantee. That last step matters because the algorithm applies the same elimination logic repeatedly, and the set used later depends on which candidates survived earlier rounds.
Suppose h* is a population-loss minimizer in H and is still present. The observed leader might appear better than h* because of sampling variation. On the event controlled by the pairwise bound, the size of that apparent lead can be at most the tolerance. This follows because the leader has no true advantage over h*. The elimination rule therefore retains h*. Initially every member of H is available, so the same argument applies inductively over rounds.
The same bound limits the possible true loss of any surviving candidate. At the preceding elimination, the candidate’s estimated loss was close to the empirical minimum. Its estimated gap from h* can therefore be at most the tolerance. Allowing another tolerance for deviation between estimated and true gaps gives the prediction guarantee.
L(hₜ) − L(h*) ≤ 2Δₜ₋₁
Here hₜ denotes the predictor returned at horizon T, h* is a minimizer of the population loss over H, and L is that population loss. The tolerance Δₜ₋₁ is taken from the preceding round. The left side is excess loss relative to the best candidate available in the original class.
This guarantee describes predictive loss as a function of inputs processed. Label complexity adds a further question. Even if the predictor improves at a useful rate as the stream gets longer, the label savings depend on how often the query rule sees a large spread. The paper introduces a way to characterize that property of the learning problem.
From a smaller candidate set to fewer requests
Two candidates can have similar average losses while differing substantially on particular inputs. One might do better where the other does worse. Even if each remaining candidate differs from the optimum on relatively few inputs, different candidates can disagree on different parts of the stream. IWAL examines the most informative pair at each arriving input. A bound that holds for a single pair on average is therefore only part of what is needed. The analysis also has to account for how the differences of many plausible candidates are distributed across inputs.
The first tool is slope asymmetry. For a pair of predictions, changing the hidden label can change how strongly the loss distinguishes the pair. The query probability reflects the label that would produce the strongest distinction. The true loss, by contrast, reflects whichever label occurs under the distribution. Slope asymmetry controls how far apart those two views of a prediction difference can be.
Kℓ = sup₍z,z′∈Z₎ [maxᵧ∈Y |ℓ(z, y) − ℓ(z′, y)| / minᵧ∈Y |ℓ(z, y) − ℓ(z′, y)|]
Here Kℓ is the slope asymmetry of loss ℓ, z and z′ are values in the prediction space Z, and y ranges over labels in Y. The numerator takes the largest absolute loss difference for the prediction pair, and the denominator takes the smallest. The supremum, written sup, is the least upper bound across prediction pairs. A pair that ties for one label and has a positive loss difference for another can make the ratio unbounded.
The paper gives slope asymmetry 1 for 0–1 loss and infinite slope asymmetry for hinge loss. The flat part of the hinge loss allows two distinct scores to receive the same cost for one label while receiving different costs for the other. For a differentiable loss applied to the signed score, the paper obtains a sufficient condition in terms of its slope. The magnitude of the derivative must have both a positive lower bound and a finite upper bound over the prediction interval.
C₀|z − z′| ≤ |ℓφ(z, y) − ℓφ(z′, y)| ≤ C₁|z − z′|
Here C₀ and C₁ are respectively the lower and upper bounds on the magnitude of the derivative of φ, the scalar function of signed score. The notation ℓφ(z, y) denotes φ(yz), with prediction z and binary label y, and z′ is the second prediction. Absolute values measure the size of the score and loss differences. The mean value theorem gives the bounds, so the paper bounds the asymmetry by C₁/C₀ when C₀ is positive. For logistic loss with scores in [−B, B], it gives the bound 1 + eᴮ, where B is the score limit and e is the base of the natural logarithm.
The second tool is a distance between predictors based on their losses. It measures how much the two predictors can differ on an individual input when the label is allowed to take whichever value makes their difference greatest, and then averages this quantity across inputs.
ρ(f, g) = Eₓ∼D[maxᵧ∈Y |ℓ(f(x), y) − ℓ(g(x), y)|]
Here ρ is the loss-based distance between hypotheses f and g. The expectation Eₓ∼D uses the distribution of inputs x under D, with labels left out of the draw. The inner maximum is over labels y in Y. The expressions f(x) and g(x) are the two predictions and ℓ is their loss against the same possible label.
The distance lets the paper describe a neighborhood of the optimum. If two hypotheses have small absolute losses, then their loss difference under the true label is also small on average. Bounded slope asymmetry extends that control to the largest difference over possible labels. The result links the population-loss guarantee, which IWAL gets by eliminating candidates, to the kind of difference that determines whether the learner will request a label.
ρ(h, h*) ≤ Kℓ(L(h) + L*)
Here h is a candidate, h* is a population-loss minimizer, and ρ is the loss-based distance. Kℓ is the slope asymmetry, L(h) is the candidate’s population loss, and L* is the population loss of h*. The appearance of both losses allows for differences among predictors even when their excess loss is small.
Write B(h*, r) for the set of hypotheses whose distance from h* is at most radius r. The disagreement coefficient measures how much loss variation can be assembled across the entire neighborhood, taking the largest difference separately on each input. It generalizes the coefficient used in prior work on classification error.
Eₓ∼D[supₕ∈B(h*,r) supᵧ∈Y |ℓ(h(x), y) − ℓ(h*(x), y)|] ≤ θr
Here the coefficient is the infimum of θ for which the inequality holds for every radius r. The expectation uses inputs x from D, B(h*, r) is the neighborhood of the population optimum h*, h ranges over that neighborhood, and y ranges over labels in Y. The function ℓ gives loss. The two suprema allow the largest difference to come from a different hypothesis and possible label on each input.
The order of these operations is important. Averaging for each candidate first can show that every candidate is individually close to h*. Taking the largest difference first asks how often the next input will appear useful to any candidate in the neighborhood. The coefficient connects these quantities. If a small change in the neighborhood radius controls the expected worst gap tightly, eliminating inferior candidates can reduce the query rate. If a neighborhood includes candidates whose local differences cover many different inputs, the coefficient can be large.
The paper illustrates a bounded coefficient for linear predictors when inputs are uniform on the surface of a unit sphere. With a bounded weight vector and a loss satisfying the derivative condition, it bounds the coefficient by the following quantity.
θ ≤ (2C₁/C₀)√d
Here θ is the disagreement coefficient, C₁ and C₀ are the upper and positive lower bounds on the derivative magnitude of the signed-score loss, and d is the dimension of the linear predictor’s input space. The argument uses the spherical distribution to connect the average absolute difference of linear scores to the distance between their weight vectors. It then bounds how large a difference any vector in that neighborhood can make on an input.
What the upper and lower bounds say
The generalization result puts the surviving candidates within a small excess-loss allowance of h*. The distance bound puts them inside a ball about h*. Then the disagreement coefficient bounds the expected largest loss difference from h* on the next input. A difference between two candidates is at most the sum of their differences from h*, so the same calculation controls the expected query probability. The paper sums these per-round bounds to describe label use over the stream.
4θKℓ(L*T + O(√(T ln(|H|T/δ))))
This is the paper’s upper bound on the expected number of label requests under its stated high-probability guarantee. Here θ is the disagreement coefficient, Kℓ is the slope asymmetry, L* is the best population loss, and L*T denotes that loss multiplied by T, the number of rounds. The notation O bounds the order of the second term up to constants. The cardinality |H| is the size of the original hypothesis class, ln is the natural logarithm, and δ is the failure probability parameter. The expectation treats requests as random. The claim distinguishes expected label use under the sampling procedure from the realized number on a particular run.
The term involving L* grows in proportion to the number of arrivals for a fixed positive best loss. The square-root term reflects the tightening tolerance as the stream advances, with a logarithmic factor for the comparisons. A small slope asymmetry and a small disagreement coefficient make the bound more informative. In favorable settings, the square-root term describes how the label requirement can grow much more slowly than the number of arrivals. The paper also compares this general-loss result with an earlier bound specific to 0–1 loss, in which the sublinear remainder has only polylogarithmic dependence on stream length.
The lower bound addresses a different question. It asks whether any active learner can guarantee low classification error on every distribution, even with an effective way of choosing which labels to request. The authors construct a distribution whose best error within H is η. The learner aims to get within ε of that error. The construction uses a class of VC dimension d. This dimension counts how many points can be shattered, meaning the class can realize every binary labeling of those points.
Ω(dη²/ε²)
Here Ω denotes a lower bound up to a constant, d is the VC dimension, η is the best achievable classification error, and ε is the allowed excess error. The theorem uses 2ε ≤ η ≤ 1/4 and 1 < d < ∞, and it applies to a learner seeking success with probability at least 1/2 on the constructed problem. The earlier bound discussed by the paper had dependence η²/ε² without the factor d.
The constructed distribution assigns most of its mass to an input with a fixed label. The remaining shattered points carry labels with weak biases. Each of those inputs has its own hidden direction of bias, which tells the optimal classifier which label to predict there. Shattering ensures that H contains a classifier that expresses all the necessary choices. Obtaining a label from one such input provides noisy evidence about its particular bias. A learner with too few requests can concentrate many on some inputs, but it then has too little evidence about too many of the others.
β = 2(η + 2ε)
Here β is the total mass assigned to the points with weak label biases, η is the optimal error in the constructed problem, and ε is the target excess error. The remaining mass goes to the point with a fixed label. The points with weak biases share their total mass equally.
Pr(y = 1 | xᵢ) = 1/2 + γbᵢ
Here Pr is conditional probability, y = 1 is the positive label, xᵢ is one of the points with a weak bias, and bᵢ is its hidden sign, either +1 or −1. The bias magnitude is γ, given in the paper by 2ε/β. The preferred class is the sign bᵢ. The construction calibrates the error of the classifier using those preferred classes to η. A learner that guesses too many of the signs incorrectly incurs excess error.
The proof uses a comparison between binomial and normal tails to control how reliably a learner can recover a weak sign from relatively few observations. The paper’s query argument is about a budget spread across several uncertain locations. Spending enough to learn the sign reliably at a few locations leaves the other signs difficult to recover. At the passive error precision discussed in the paper, the lower bound yields the term ηT, with T the passive sample size. This explains why increasing the amount of unlabeled data alone cannot always turn costly classification error into a negligible label requirement.
Two ways to carry out the query rule
For linear predictors with a convex loss that decreases with the signed score, the exact loss-weighting procedure can be expressed through convex optimization. A predictor is represented by a weight vector u and gives the score u · x on input x. The original set restricts the squared length of u to a bound B. Each elimination step adds a constraint that a weighted empirical loss lie below the observed minimum plus the tolerance at that round. With non-negative weights and convex loss, the feasible region defined by these constraints is convex.
Finding the empirical leader is a weighted convex minimization over the feasible set. To calculate the request probability for a new x, the learner needs the extreme scores the feasible predictors can assign to x. A loss that decreases with signed score attains its extremes at those score endpoints for each candidate label. This makes it possible to compute the loss spread by optimizing linear scores over the convex region and evaluating the loss at the resulting endpoints.
A(x) = minᵤ∈Hₜ u · x
Here A(x) is the smallest achievable linear score on the current input x, u is a feasible weight vector representing a candidate in Hₜ, t is the stage at which the query rule is evaluated, and · denotes the dot product. Applying the same optimization to −x gives the negative of the largest score on x.
The experimental implementation simplified both optimizations. It found the empirical minimum over the original class instead of the restricted class. For the extrema used in choosing query probabilities, it kept the most recent empirical constraint rather than enforcing the full sequence. The authors explain that these choices can make the learner conservative about asking for labels. A wider feasible range can make the spread of scores larger. The paper appeals to the general safety result for consistency, while the sharper loss-weighting analysis is developed for the nested elimination rule.
The bootstrap implementation uses a small group of predictors as a practical approximation to the surviving hypothesis set. It trains them on bootstrap resamples of an initially labeled batch. A bootstrap resample is made by drawing examples from that batch with replacement. The resulting predictors can give different answers on a new input because they were fitted to different resamples. IWAL uses the loss spread across those predictors to set a query probability, while retaining a fixed minimum probability to protect coverage.
p(x) = pₘᵢₙ + (1 − pₘᵢₙ) max₍y∈Y, hᵢ,hⱼ∈H₎ [ℓ(hᵢ(x), y) − ℓ(hⱼ(x), y)]
Here p(x) is the request probability at input x, pₘᵢₙ is its positive floor, and H in this implementation denotes the bootstrap committee. The symbols hᵢ and hⱼ are committee members, y ranges over candidate labels in Y, and ℓ scores a prediction against a candidate label. The formula returns the floor when the loss spread vanishes and gives greater query probability to examples with larger spreads.
In the reported experiments, the committee was fitted to the initial batch and held fixed while later labels were collected. After collection, the authors fitted the final predictor to the obtained training data. They used Costing to convert the weighted sample into an unweighted classification problem by rejection sampling, then used the J48 decision tree learner. The bootstrap trees therefore determine the collection probabilities, while the final tree is trained from the data gathered under those probabilities.
Experiments and results
Linear prediction on handwritten digits
The linear experiment used MNIST handwritten digits and restricted the task to telling 3 from 5. For every digit, the authors selected 1,000 examples to train on and a separate 1,000 to test on. Principal component analysis, or PCA, reduced the input dimension from 784 to 25. This gave the bounded linear predictor a lower-dimensional representation on which to fit and compare its scores. The training objective was logistic loss, and the implementation used log-barrier methods for its convex optimization subroutines.
The comparison paired active learning with passive supervised training. The passive classifier used all labels for the inputs it had seen. The active classifier inspected the stream and accumulated a weighted subset of labels. The experiment followed both how well the classifiers predicted on the held-out data and how many requests the active learner made as the number of training inputs seen increased. Following those quantities together is important because a small total label count is useful only when the test performance remains competitive.
The authors evaluated test classification error and test logistic loss. Classification error depends on which class the learner predicts. Logistic loss also changes with the strength of the score, so similar error can coexist with different loss. The paper reports very similar performance by both measures between the active and passive classifiers. The active learner requested less than 1/3 of the available training labels. The figure follows test logistic loss as the number of training inputs seen grows from 0 to 2000 and shows the corresponding accumulation of requests in a separate panel.
The experiment tried a tolerance proportional to the square root of dimension divided by sample count and a more optimistic tolerance that omits the dimension term. The paper gives them explicitly as follows.
Δₜ = √(d/t)
Here Δₜ is the empirical tolerance used by the first experimental setting, d is the dimension of the input representation, and t is the number of inputs processed at the relevant round.
Δₜ = 1/√t
Here Δₜ is the tolerance in the more optimistic experimental setting and t is again the number of inputs processed. The authors report similar test performance to the passive learner under either setting. They give the label use in aggregate terms, so the reported fraction describes the strength of the savings without specifying a separate final request total for each tolerance.
Bootstrap trees on the same digit task
The second MNIST experiment used the same digit distinction and split, reported as 2000 training examples and 2000 test examples. It used 10 decision trees fitted to bootstrap resamples of the initial 1/10th of the training set, with pₘᵢₙ = 0.1. All labels in that initial batch were obtained. The test-error curve starts at 200 inputs, the size of that batch, and continues to 2000. The initial labels count toward the active learner’s budget, since the committee could be trained only after those labels had been revealed.
After that initial collection, the trees set the request probabilities for incoming examples. Selectively obtained examples were assigned importance weights. Costing produced the unweighted training sample for the final J48 tree. The test comparison reports performance for a learner trained on the collected sample and for passive learning. The bootstrap IWAL procedure requested 65.6% of the training labels and performed comparably to the passive learner.
The linear and tree experiments both use the withheld answers to simulate an available labeling service. In each case the algorithm can see a training label only when the procedure calls for it, although the dataset already contains those labels. This makes passive and active training comparable on the same input task and the same held-out data. The two experiments also differ in the predictor, objective, and route to a query probability, so their respective label fractions describe separate implementations.
Bootstrap trees on additional benchmarks
The paper extended the bootstrap experiment to standard benchmark datasets, using an initial labeled batch of 10% in its main setup. The dataset sizes and the reported fractions of training labels requested varied across the tasks. The authors give the aggregate comparison in terms of preserved predictive accuracy relative to passive learning. The request fractions provide the numerical comparison of label use.
On adult, a binary task with roughly 4000 training examples and 2000 test examples, the method requested 40.0% of the training labels. On spambase, a binary task with 3221 training examples and 1380 test examples, it requested 44.2% under the standard initialization. The paper also reports a spambase run with a smaller initial batch, which raised the overall fraction requested.
Training labels requested on spambase by bootstrap initialization size
Starting the committee with the smaller labeled batch increased the overall share of training labels requested.
The numbers
| System or setting | training labels requested % |
|---|---|
| IWAL bootstrap with initial 5% | 53.5 |
| IWAL bootstrap with initial 10% (this paper) | 44.2 |
On pima, the binary task used 538 training examples and 230 test examples, and the method requested 67.6% of the training labels. On yeast, also reported as binary, the authors used approximately 1000 training examples and 500 test examples and requested 82.2% of the training labels. The share of labels saved thus varied considerably even among tasks with the same broad classification setup.
The letter task had 25 classes, 14,000 training examples, and 6000 test examples. The bootstrap procedure requested 75.0% of the training labels. This experiment shows that the practical committee rule can be applied to a multiclass classification loss. The main analysis of slope asymmetry and label complexity uses binary labels, so the multiclass run provides experimental evidence for the implementation on that task.
The benchmarks use a common comparison in which passive training can see every training label while bootstrap IWAL decides which ones to acquire after the initial batch. The paper’s numerical benchmark results specify label fractions and dataset sizes. Its conclusion about accuracy is comparative, and the figures present test error over the course of training. The evidence supports label savings at broadly similar observed performance across the reported tasks. It gives a range of savings across datasets and one direct comparison of initial committee sizes.
What the ablations show
How sensitive are the runs to the initial choices?
The experimental analyses vary the tolerance in the linear implementation and the initial batch size in the bootstrap implementation. They address different potential sources of unnecessary queries. The tolerance controls how much room the loss-weighting procedure gives alternative predictors after seeing the current training data. The initial batch controls what information the tree committee has when it begins making selective requests.
On MNIST, both linear tolerance choices preserved similar test performance relative to passive training. A generous tolerance can make more predictors eligible and thus keep loss spreads larger. An optimistic tolerance may give a narrower range, but can also exclude predictors on the basis of noisier evidence. The experiment shows that the observed performance comparison survived the choice between the two tolerances on this task. The reported label fraction and qualitative performance result leave the per-setting differences in query efficiency and predictive loss unresolved.
Spambase provides a more direct comparison on label use. Reducing the initial batch from 10% to 5% increased total requests from 44.2% to 53.5% of the training set. Starting with a smaller batch spends fewer labels before selection begins, so the result shows why initial cost and total cost need to be assessed together. In this implementation, the committee continues to use the predictors trained at the outset. One interpretation is that a committee built from fewer labels supplies a less selective query rule. The paper reports the change in total requests, and the mechanism behind that change remains an interpretation instead of a separate measurement.
The active–passive comparisons answer a broader performance question. On the reported streams, the combination of selective requests, correction for selection, and final fitting could reach comparable test performance with fewer acquired labels. The comparisons apply to the complete training procedures. The experiments do not isolate a numerical contribution from each component, such as what the same queries would have achieved with unweighted training or what Costing alone contributed to final tree accuracy.
When a label has no value for the comparison
A constructed example complements the experiments by giving a setting in which the saving can be explained exactly. The paper considers linear predictors and squared loss on a distribution supported at the origin and at another point. All the predictors assign the same score at the origin. They consequently receive the same loss there, regardless of their differences at the other point. The origin can take up much of the stream without helping the learner select among candidates.
The other point has probability mass β. Loss-weighting spends its requests on arrivals that can contribute to a predictor comparison. The paper concludes that the active learner needs an expected β fraction of the passive label count for the same loss in this example. The argument is about the redundancy of the labels at the origin. Every such label changes each candidate’s loss in the same way, so observing more of them gives no additional evidence about which candidate is better.
Squared loss has infinite slope asymmetry in the setting discussed by the paper. The example therefore shows that the sufficient conditions used for the main label bound leave room for other sources of savings. If an input can be recognized as uninformative for every candidate and possible label, the learner can exploit that fact directly. Bounded slope asymmetry is useful when the proof has to relate possible loss differences systematically to average population loss. The constructed example can be analyzed from the loss values at its particular support points.
The lower-bound construction supplies a complementary analysis. It gives the learner an obvious place to save labels, the point with a fixed response, while reserving genuine uncertainty at the other points. The learner can avoid repeatedly paying for the easy part of the distribution. It still has to learn enough weak preferences to predict well on the rest. Together, these constructions separate avoidable requests from the labeling that remains necessary to achieve a target error.
Limitations
Limits stated by the authors
The guarantees have different scopes. The general safety theorem is stated for a finite hypothesis class, bounded loss, and a positive request floor. The authors say that the martingale argument can be extended to VC spaces, while giving the displayed finite-class bound in terms of the logarithm of the class size. The floor protects against highly variable weights, and the fallback factor grows as the floor falls. The theorem supplies a way to control the worst case under those assumptions. It leaves the design of an efficient query rule as a separate problem.
The sharper query bound concerns the loss-weighting rule and depends on both the loss and the learning problem. The paper gives its main upper bound using bounded slope asymmetry and a bounded generalized disagreement coefficient. Hinge loss lies outside that finite-asymmetry condition, even though the convex query computation can accommodate it. Conversely, the paper can analyze savings in special examples with an infinite asymmetry. The distinction is between being able to run the procedure, being able to obtain predictions under a safety guarantee, and having a useful quantitative bound on the number of labels.
The best achievable loss also matters. The upper bound has a term that scales with that loss and with stream length. The lower bound shows that a contribution of this kind can be unavoidable for classification error under the conditions of the construction. Its claim concerns the existence of a hard distribution for a hypothesis class. The bound explains a limit on uniform guarantees over distributions and leaves open how much a given task can save.
The authors note that the simpler convex implementation can choose conservatively large request probabilities. Maintaining just the latest empirical constraint reduces the work of computing score extrema. The candidate region used in the experiment can therefore differ from the nested region used in the proof. Similarly, the tree committee is an approximation to the set of plausible hypotheses. Its positive floor supports the general weighting logic. The sharper query analysis uses the exact loss spread over the evolving feasible class, so the bootstrap label savings are documented empirically.
Limits visible in the setup
The experiments measure label requests in a setting where answers already exist. Each request stands for the cost of obtaining a label, and the procedure knows which answer to reveal. The comparisons consequently apply to label counts and test performance in the reported splits. A live collection would introduce other quantities to measure, including the effort associated with each request and the reliability of the labels supplied. Those quantities are outside the experiment.
Computational cost is also a distinct resource. The linear implementation solves optimization problems to decide whether a label is worth asking for. Its tractability argument identifies the convex structure for bounded linear predictors and a suitable loss. The empirical plots trace test performance and request counts, so the gain measured there is in labeling. The bootstrap implementation reduces the cost of updating the policy by fitting its committee once. That choice ties later selectivity to the quality of the initial sample, as the spambase comparison illustrates.
The benchmark evidence is strongest at the level the paper reports it. Overall label fractions are given for specific train and test splits, and active and passive predictive performance is described as similar. The written benchmark descriptions provide no per-dataset uncertainty estimates for that comparison. The experiment can show that the observed curves were comparable in the tested conditions. Its precision is insufficient for claims about how stable small accuracy differences would be across repeated batches or new splits.
The disagreement coefficient is a property of a hypothesis class and an input distribution around an optimal predictor. A favorable bound for inputs uniformly distributed on a sphere gives a concrete example of how the analysis works. The practical experiments use named benchmarks and do not report estimates of that coefficient for them. The evidence therefore supports two distinct conclusions. The theory identifies conditions under which label savings can be bounded, while the experiments show savings for the implemented policies on the reported data.
Finally, the meaning of reuse depends on what the query policy allowed the learner to observe. A known positive request probability lets an acquired label represent comparable arrivals that were skipped. An individual collected dataset can still contain many more examples from one part of the stream than another. The weights correct the estimate in expectation, and low probabilities can leave that estimate variable. A policy that assigns probability zero to an input can safely skip it for a comparison when the candidates’ losses agree there. Evaluating a different predictor’s absolute loss may require evidence from those same inputs. The paper closes by proposing off-policy evaluation as a possible benefit of retaining selection probabilities. Its empirical comparisons are of predictors trained from the active and passive samples.
What came after
Active Learning Literature Survey cites IWAL in a survey of the field. A survey puts the method in the context of the problem it was designed to solve. The distinction that matters for IWAL is between identifying useful examples and accounting for their selection when learning from them. Work on active learning can compare methods along both dimensions. For this paper, selective labeling determines where the budget goes, and the weight determines how evidence from that part of the stream enters the estimate of loss.
Theory-Grounded Measurement of U.S. Social Stereotypes cites the paper in a study of stereotype measurement. The connection is to the interpretation of measurements based on selected observations. IWAL gives an explicit example of how a selection rule can change what an observed average represents and how recording the rule can support a correction. In a measurement study, the analogous question is which population the observations are intended to represent. The citing work’s stated subject establishes that context for the citation. It gives no basis for attributing IWAL’s particular estimator or guarantees to the stereotype measurements.
Topic-Guided Sampling for Data-Efficient Multi-Domain Stance Detection also cites IWAL. Its title identifies a sampling method guided by topic and a goal of using data efficiently across domains. This makes contact with the part of IWAL devoted to deciding which observations are worth acquiring. IWAL bases that decision on loss differences among candidate predictors and keeps track of query probabilities. Topic-guided sampling identifies topic as the basis for selection in the later work. The citation establishes the relationship to earlier research on selective data acquisition. The title alone supports no claim about whether the later procedure uses reciprocal weights or the same query guarantees.
The three citations place IWAL in a survey of active learning, in work concerned with measurement, and in a study of data-efficient sampling for a classification task. They illustrate the reach of the question the paper makes precise. Once a procedure decides which examples to observe, the selection rule affects both the labeling budget and the conclusions that can be drawn from the acquired labels. IWAL contributes a concrete way to connect those decisions by designing the request probability and its statistical correction together.
Cite
Cite as Alina Beygelzimer, Sanjoy Dasgupta and John Langford. 2008. Importance Weighted Active Learning. arXiv:0812.4952.
@misc{beygelzimer2008importance,
title = {{Importance Weighted Active Learning}},
author = {Alina Beygelzimer, Sanjoy Dasgupta and John Langford},
year = {2008},
doi = {10.48550/arxiv.0812.4952},
eprint = {0812.4952},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.0812.4952}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/beygelzimer-2008-importance-weighted-active-learning/
References
- N. Abe and H. Mamitsuka. Query learning strategies using boosting and bagging. In Proceedings of the International Conference on Machine Learning, pages 1–9, 1998. OpenAlex ↗ · Scholar ↗
- K. Azuma. Weighted sums of certain dependent random variables. Tohoku Mathematical J., 68:0 357–367, 1967. OpenAlex ↗ · Scholar ↗
- F. Bach. Active learning for misspecified generalized linear models. In Advances in Neural Information Processing Systems 19. MIT Press, Cambridge, MA, 2007. OpenAlex ↗ · Scholar ↗
- M.-F. Balcan, A. Beygelzimer, and J. Langford. Agnostic active learning. In William W. Cohen and Andrew Moore, editors, Proceedings of the International Conference on Machine Learning, volume 148, pages 65–72, 2006. OpenAlex ↗ · Scholar ↗
- S. Boyd and L Vandenberghe. Convex Optimization. Cambridge University Press, 2004. OpenAlex ↗ · Scholar ↗
- D. Cohn, L. Atlas, and R. Ladner. Improving generalization with active learning. Machine Learning, 150 (2):0 201–221, 1994. OpenAlex ↗ · Scholar ↗
- S. Dasgupta and D. Hsu. Hierarchical sampling for active learning. In Proceedings of the 25th International Conference on Machine learning, pages 208–215, 2008. OpenAlex ↗ · Scholar ↗
- S. Dasgupta, A. Tauman Kalai, and C. Monteleoni. Analysis of perceptron-based active learning. In Proc. of the Annual Conference on Learning Theory, pages 249–263, 2005. OpenAlex ↗ · Scholar ↗
- S. Dasgupta, D. Hsu, and C. Monteleoni. A general agnostic active learning algorithm. In Advances in Neural Information Processing Systems, volume 20, pages 353–360. 2008. OpenAlex ↗ · Scholar ↗
- L. Devroye, L. Gyorfi, and G. Lugosi. A Probabilistic Theory of Pattern Recognition. Springer, 1996. OpenAlex ↗ · Scholar ↗
- S. Hanneke. A bound on the label complexity of agnostic active learning. In Proceedings of the 24th International Conference on Machine Learning, pages 353–360, 2007. OpenAlex ↗ · Scholar ↗
- M. Kääriäinen. Active learning in the non-realizable case. In Proceedings of 17th International Conference on Algorithmic Learning Theory, pages 63–77, 2006. OpenAlex ↗ · Scholar ↗
- J. Langford. Practical prediction theory for classification. J. of Machine Learning Research, 6:0 273–306, 2005. OpenAlex ↗ · Scholar ↗
- F. Pukelsheim. Optimal Design of Experiments, volume 50 of Classics in Applied Mathematics. Society for Industrial and Applied Mathematics, 2006. OpenAlex ↗ · Scholar ↗
- E. Slud. Distribution inequalities for the binomial law. Annals of Probability, 5:0 404–412, 1977. OpenAlex ↗ · Scholar ↗
- M. Sugiyama. Active learning for misspecified models. In Advances in Neural Information Processing Systems, volume 18, pages 1305–1312. MIT Press, Cambridge, MA, 2006. OpenAlex ↗ · Scholar ↗
- B. Zadrozny, J. Langford, and N. Abe. Cost-sensitive learning by cost-proportionate example weighting. In Proceedings of the Third IEEE International Conference on Data Mining, pages 435–442, 2003. OpenAlex ↗ · Scholar ↗