Data scarcity, robustness and extreme multi-label classification
Paper · 2019 · Rohit Babbar and Bernhard Schölkopf
Summary
A system that tags an encyclopedia page can get the obvious subjects right and still miss the specialized tags that make the page useful to find. Those tags are also the ones for which the system may have seen very few examples. Babbar and Schölkopf study this problem in extreme multi-label classification, where each item can have several correct labels drawn from a very large collection. A dataset can contain a great deal of text while offering scant evidence about most individual labels. The paper asks how to learn from that evidence in applications such as text classification.
The authors begin with a discrepancy between examples carrying the same rare label. On Amazon-670K, descriptions of books about vision share some vocabulary, but many of the words in a held-out description never appeared in the few training descriptions for that label. The authors treat this kind of variation as a robustness problem. They ask how well a linear classifier would handle the most unfavorable changes permitted under a specified feature budget. For their choice of budget, the resulting training problem uses an ℓ₁ penalty on the classifier weights. That penalty tends to set many weights to zero. The method, PRoXML, fits a separate classifier for every label, so training can be distributed across labels.
The experiments challenge the view that training each label separately under a surrogate for Hamming loss is ill suited to rare labels. On the large benchmarks, PRoXML does well on measures that give extra credit for retrieving rare labels near the top of the ranking. In the WikiLSHTC-325K comparison of propensity-scored precision and ranking quality at a cutoff of five, the paper reports approximate relative improvements of 60% over SLEEC and 25% over PFastreXML. Coverage measurements on WikiLSHTC-325K and Amazon-670K also show that PRoXML correctly retrieves a wider range of labels. The choice of metric matters. DiSMEC, another independent-label method, generally has the advantage on the ordinary precision and ranking measures that give each correct label the same weight.
Two further comparisons help explain the result. On EUR-Lex, the authors’ proximal-gradient solver reaches a lower training objective than the LibLinear coordinate-descent solver for roughly 90% of labels, even though both target the same objective. Across datasets, the authors find that labels co-occur in a more connected pattern on smaller benchmarks, where methods that learn shared label representations are competitive or stronger. The large benchmarks have much weaker connectivity in their observed co-occurrence graphs. That association offers a reason why independent classifiers can work well when evidence linking rare labels to one another is scarce.
Deep dive: Data scarcity, robustness and extreme multi-label classification
PRoXML uses sparse linear classifiers to recover rare labels in extreme multi-label classification, with gains on tail-sensitive benchmarks. · about 37 minutes to read
The problem and its context
A large collection can leave most labels short of examples
In an ordinary tagging task, the number of categories can be small enough for a reader to inspect the entire list. In extreme multi-label classification, even a document with several correct tags uses only a small part of the available inventory. A page about a specialized subject might have tags for a broad discipline and for a narrow topic within it. An item recommendation can be expressed similarly, with the items a user might want serving as labels and the recommendations drawn from a much larger catalog. The relevant predictions are those the system can put in the few positions a user will actually see.
Scale enters the problem in several places. WikiLSHTC-325K has 1,778,351 training items, 325,056 labels and 1,617,899 input features. The feature count describes the dimensions available to represent a document across the dataset. Each document occupies only a small fraction of those dimensions, since most possible words or features are absent. A fully dense treatment of examples and classifiers would therefore spend work on a large number of zeros. The paper treats the number of examples, the size of the input representation and the size of the label inventory as distinct challenges. Methods designed for conventional multi-label tasks can become impractical even if their statistical assumptions still make sense.
The training evidence is also distributed unevenly. In the paper’s discussion of Amazon-670K, only 100,000 out of approximately 670,000 labels have more than 5 positive training examples. The frequent labels occupy the head of the distribution. Labels with few positive examples form the tail, with an intermediate group sometimes called the torso. A large share of the available categories can thus account for a much smaller share of the examples. The paper illustrates the pattern by ranking labels by their training counts and displaying those counts on a logarithmic scale. This is the sense in which the authors relate label frequency to Zipf’s law.
A system can obtain many correct predictions by supplying the same frequent tags across a large collection. Whether that behavior serves the application depends on what the predictions are for. In the paper’s film recommendation example, popular titles are likely to be familiar already. A correctly recommended independent film can add something the user would have more trouble discovering. The same argument applies to specialized hashtags and categories. A measure that counts every correct prediction equally can tell how frequently a system gets its suggestions right while leaving open how much of the catalog the system can usefully retrieve.
Rare labels provide a narrow view of their vocabulary
A label and the words that help identify it play different roles. The label denotes a property of the item. The words are observations from particular items that have that property. For a common label, the union of features across many positive documents can represent a range of ways the property is expressed. For a rare label, the same union may include the vocabulary of only a few titles or descriptions. It can contain names and phrases that happen to be present in those items and omit equally relevant vocabulary that occurs elsewhere.
The authors examine two groups from Amazon-670K. One contains books on vision and related topics. Across the training descriptions and the held-out item, the term “vision” recurs, while the surrounding vocabulary changes with the subject matter and the people discussed. The other group contains action and adventure VHS releases. The training items describe particular serials, while the held-out description emphasizes stunts and suspense. The format and some dates recur, but much of the wording varies. In either group, a very narrow rule fitted to the positive examples can rely on terms that disappear when the next relevant item arrives.
The paper calls this a shift in feature composition between training and test examples. That phrasing matters because the examples could in principle be drawn from the same underlying population. Very few draws can give an incomplete empirical picture of that population. A new positive example can then look substantially different from the positives the classifier saw, without any change in the definition of the label or the way the items were collected. The authors use the mismatch to motivate a training rule that accounts for uncertainty in the feature values already observed.
How earlier approaches dealt with scale and rarity
Tree methods reduce the amount of work needed at prediction time by dividing either the space of examples or the space of labels. A prediction follows decisions through the tree, so it can avoid considering the entire collection in detail. That arrangement gives a speed advantage. It also makes early decisions consequential. If a route excludes a relevant part of the tree, decisions further down cannot recover it. The paper treats this as a tradeoff between prediction cost and the opportunity to consider the right label.
Label embedding methods start from a different assumption. They represent the output in fewer dimensions, using patterns shared across labels. If labels reliably occur together, an observation about one label can inform decisions about others. That can be valuable when positive examples for any individual label are limited. The paper cites the success of these methods on tasks with fewer labels and considers local embeddings designed to scale further. It also points to earlier evidence that a compact shared representation can be a poor fit for large category inventories with highly uneven label counts. On Flat versus Hierarchical Classification in Large-Scale Taxonomies
A separate line of work changes which predictions count most during training and evaluation. Propensity scoring uses a label-specific weight. In the formulation discussed here, a correct prediction for a rare label contributes more than a correct prediction for a frequent one. This gives rare outcomes a larger influence on the score even though there are few opportunities to predict them correctly. PFastreXML combines a tree system trained with a propensity-sensitive objective and an additional classifier that revisits its candidates. The authors use it as the closest point of comparison for a system whose goal is to improve tail-label retrieval.
Independent linear classifiers offer another way to divide the work. In one-vs-rest training, the examples carrying a given label are positive for that label and the other examples are negative. The process is repeated independently across labels. Hamming loss, which counts incorrect decisions label by label, supplies a natural objective for such a decomposition. Previous work cited by the authors had questioned its suitability for detecting rare labels. The concern is understandable because treating each decision as a separate error does little by itself to account for the scarcity of positive evidence. The authors ask whether that objection still holds when the independent classifiers are regularized to handle uncertainty in the features.
The paper also draws a connection with robustness research. Earlier studies showed that small changes to input features could substantially affect predictions, and described approximate ways of incorporating adverse changes into training. That work gives the authors a language for asking how sensitive a classifier is to its inputs. Their own motivation comes from ordinary variation among sparse examples of rare labels. Their restriction to linear scoring functions makes it possible to pursue a direct optimization argument. Intriguing Properties of Neural Networks and Explaining and Harnessing Adversarial Examples
The method, step by step
From an incomplete example to a conservative decision
PRoXML begins with a binary problem for each label. For the book label in the Amazon example, a positive item is one annotated with that label, whether or not it has other annotations. A negative item for that classifier can simultaneously be positive for another classifier. Each binary problem learns a vector of feature weights. A document receives a score by summing the contributions of its features, with each feature value multiplied by its learned weight.
A linear classifier can make heavy use of a word that happens to separate the few positives from the negatives in training. The difficulty appears when that word is missing from another positive or occurs in a negative context. The authors ask what happens to a candidate classifier when feature values can move within a budget in whichever direction gives it the largest loss. The budget specifies the strength of the changes being considered. Smaller budgets concentrate on changes near the observed inputs. Under a larger budget, the classifier must pay more attention to how large changes in its scores could become.
The central simplification is that PRoXML can account for the perturbations through the weights. The maximum effect of a specified kind of feature movement on a linear score is governed by a corresponding norm of the weights. The authors choose a budget that limits the largest coordinate change, which leads to a penalty on the sum of the absolute weights. The fitted classifier therefore has an incentive to keep that sum small. A proximal fitting step implements the penalty by shrinking the weights and setting sufficiently small ones exactly to zero.
How PRoXML fits and uses its classifiers
The steps in order.
The data and the label decisions
The training set pairs a feature vector with a binary annotation vector. The feature vector represents the input, and the annotation vector records every label assigned to it. The following notation keeps the document index separate from the label index.
T = ((x₁, y₁), …, (xₙ, yₙ), …, (xₙ₌ₙ, yₙ₌ₙ))
Here T denotes the set of paired observations and x and y denote the input and annotation respectively. In the paper’s notation, N is the total number of training examples, and an example at index i is the pair (xᵢ, yᵢ), with the last pair indexed by N. Each xᵢ has D real-valued coordinates, where D is the feature count. Each yᵢ has L binary coordinates, where L is the number of labels. The coordinate yᵢℓ is 1 when label ℓ is recorded for instance i and 0 otherwise.
For a single classifier, the authors convert these binary annotations to signs. In the formulas for one label, the label index is suppressed and sᵢ is understood to refer to that label. The sign allows one expression to measure whether the score is on the correct side, regardless of which class applies.
sᵢ⁽ℓ⁾ = +1 if yᵢℓ = 1, and −1 otherwise
Here sᵢ⁽ℓ⁾ is the training sign for label ℓ on example i, and yᵢℓ is the original binary annotation. The positive sign marks membership and the negative sign marks its absence in the training annotations. This representation allows one document to enter several positive training sets.
qℓ(x) = ⟨w⁽ℓ⁾, x⟩
Here qℓ(x) is the score for label ℓ on input x, w⁽ℓ⁾ is the learned weight vector for that label, and the angle brackets denote the inner product. The inner product adds the products of corresponding weight and feature coordinates. The matrix W collects all label weight vectors as columns, with D rows and L columns. A sign decision can turn each score into a binary prediction. For the ranking task, the scores are used to order labels so that the highest-scoring ones can be returned together.
Lᴴ(y, ŷ) = (1/L) ∑ₗ 𝟙[yₗ ≠ ŷₗ]
Here Lᴴ is Hamming loss, y is the true annotation vector and ŷ is a binary prediction vector. The sum runs over label indices l, and the indicator 𝟙 is 1 when the two coordinates differ and 0 when they agree. Division by the total label count L makes the loss the fraction of mismatched coordinates. A missed positive and an incorrectly added label both contribute a mismatch. Each term uses only the decision for its own label, which makes it possible to fit the columns of W separately when the surrogate loss and the penalty are also separable by label.
The robust objective and its equivalent penalty
The broad robust-learning objective considers what happens to a loss if the input moves within an allowed region. It evaluates that unfavorable case for each example before choosing the classifier parameters.
min_{W ∈ 𝒲} E_{(x,y) ∼ 𝒟} [sup_{δ ∈ 𝒰} ℒ(W; (x + δ, y))]
Here W is the parameter collection and 𝒲 is the allowed class of parameter collections. The input x and annotation y are drawn from the underlying distribution 𝒟. The perturbation δ ranges over the allowed set 𝒰, and ℒ is the loss on the resulting input and unchanged annotation. The supremum is the largest loss achievable, or approachable, within that set. The expectation E averages over examples. The minimization looks for parameters that make the average worst-case loss small. This order matters because the most unfavorable perturbation can be different for different inputs and different classifiers.
For the empirical problem, the paper uses a hinge surrogate for an incorrect binary prediction. The hinge compares the signed score with a target margin. A positive training example with a large positive score earns zero hinge loss. A negative example with a sufficiently negative score does as well. A prediction with the right sign can still incur loss if it lies close to the decision boundary. This allows the training objective to prefer predictions that can tolerate some movement towards the boundary before changing sign.
hᵢ(w) = max(1 − sᵢ⟨w, xᵢ⟩, 0)
Here hᵢ(w) is the hinge loss for example i, w is the weight vector for the label being fitted, xᵢ is the input, and sᵢ is its label sign. The product of the sign and the inner product is the signed margin. The constant 1 is the target margin, and the maximum with 0 prevents a margin above the target from contributing a negative loss. The hinge is a convex upper bound on the binary error counted for this label. It can be optimized with a linear scoring function while preserving the label-wise decomposition.
The robust binary objective lets the perturbations vary across training examples, while sharing a budget across them. The authors write the empirical changes with a minus sign. Switching from addition to subtraction leaves the relevant norm ball symmetric, so either convention describes the same directions of movement.
min_w sup_{δ₁, …, δ_N: ∑ᵢ ‖δᵢ‖ < λ} ∑ᵢ max(1 − sᵢ⟨w, xᵢ − δᵢ⟩, 0)
Here w is again the weight vector for the current label, N is the training count, and each δᵢ is a possible feature change for xᵢ. Both sums run over the training examples. The norm ‖·‖ measures the size of each change. Their combined norm must satisfy the bound set by λ. The supremum expresses the worst loss over all such allocations, including the limiting value for the strict bound. The inner maximum in each summand applies the hinge to the perturbed input. There is a single budget in this formulation for the whole binary training problem. It need not be spent in equal portions on each document.
The authors invoke a robust support-vector result that replaces this coupled perturbation problem with a penalty written in terms of the dual norm. The dual norm measures the greatest response of a linear score to a vector within the unit ball of the original norm.
‖w‖∗ = sup_{‖z‖ ≤ 1} ⟨z, w⟩
Here ‖w‖∗ is the dual norm of w, and z is a vector in the feature space. Its original norm ‖z‖ is bounded by 1. The supremum is the greatest inner product over those vectors. It describes how much a unit-sized change, in the geometry of the chosen norm, can move the linear score. Scaling the allowed change scales that bound on the score movement.
min_w [λ‖w‖∗ + ∑ᵢ hᵢ(w)]
Here λ is the weight of the dual-norm penalty, w is the candidate classifier, and hᵢ(w) is the ordinary, unperturbed hinge loss for example i. The sum covers the training set for the label. As the paper applies the cited equivalence, there is no need to construct or store perturbed documents to perform this fit. The effect of the perturbation set enters through the choice and strength of the penalty.
Why the penalty uses absolute weights
The relevant feature uncertainty is defined coordinate by coordinate. The infinity norm is the magnitude of the largest coordinate of a perturbation. Under this measure, allowing several coordinates to move within the same limit can leave the norm unchanged. This matters for sparse data because many feature changes can contribute to a score even when each individual change is small.
‖δᵢ‖∞ = max_{d = 1, …, D} |δᵢd|
Here ‖δᵢ‖∞ is the infinity norm of the perturbation for instance i, d indexes the feature coordinates through D, and δᵢd is the change in coordinate d. The absolute value measures magnitude without regard to direction. The maximum takes the largest coordinate magnitude. A feature with a negative classifier weight can influence the score as strongly as one with a positive weight of the same magnitude, since the perturbation can move either way.
‖w‖₁ = ∑_{d = 1, …, D} |w_d|
Here ‖w‖₁ is the ℓ₁ norm and w_d is the classifier’s weight for coordinate d. The sum adds the absolute values across the D features. This is the dual norm for infinity-norm perturbations. An allowed move can align its coordinate changes with the signs of the weights, so the score’s maximum response depends on their total absolute magnitude. An ℓ₂ bound gives a different geometry. Its dual is also ℓ₂, and the paper describes the resulting uncertainty as spherical.
Two desirable properties meet at this point in the argument. Under the robust formulation, the sum of absolute weights expresses sensitivity to the specified kind of feature movement. Under ordinary penalized fitting, it can shrink some weights exactly to zero. The first property supplies the authors’ statistical motivation. The second helps keep the trained classifiers small when stored together and makes sparse feature scoring practical. The argument does not require a rare label to have a unique identifying word. A classifier can keep several useful weights while paying a penalty proportional to their magnitudes.
The objective actually optimized
The direct hinge formulation has a kink at the target margin. The absolute-value penalty also has a kink at zero. PRoXML uses a squared hinge so that the loss part has a continuous gradient while retaining the absolute-value penalty. The paper presents the following pair of objectives and argues that their solutions can be matched by changing the regularization parameter.
min_w [λ‖w‖₁ + ∑ᵢ hᵢ(w)]
Here w is the classifier for the current label, λ is its regularization parameter, and ‖w‖₁ sums the magnitudes of the weights. The sum adds the hinge losses hᵢ(w) over the label’s training examples. This is the regularized hinge formulation obtained from the robust argument.
min_w [λ′‖w‖₁ + ∑ᵢ hᵢ(w)²]
Here λ′ denotes the regularization parameter for the squared-hinge version, and the superscript ² squares the hinge loss of each example before the losses are added. The symbols w, ‖w‖₁ and hᵢ(w) retain their earlier meanings. The prime distinguishes the two parameters because the paper allows the penalty strength to change when the loss changes. In its implementation discussion it uses λ for the regularization parameter of the squared-hinge fit.
The authors frame their equivalence argument in terms of efficient tradeoffs between the weight norm and the aggregate training loss. In a weighted-sum formulation, changing the weights changes which tradeoffs the optimizer can select. A Pareto-efficient choice is one for which there is no other choice that improves one objective while keeping the other at least as good. For convex objectives, weighted sums connect the solutions to the efficient boundary. The paper appeals to the monotonicity of squaring on non-negative values to argue that the change in loss preserves the relevant solutions. The scope of that argument matters because PRoXML squares each example’s loss before adding. The limitation of the proof is discussed below. The training objective used in the experiments is the squared-hinge expression.
The forward and backward steps
Computationally, the squared-hinge objective consists of a differentiable loss and a convex penalty with a simple proximal operation. Each label starts with a zero weight vector. The algorithm alternates between moving downhill on the loss and applying the operation associated with the penalty. Treating the parts separately allows it to use a gradient where one is available and an exact coordinate rule where it is more convenient.
H(w) = ∑ᵢ hᵢ(w)²
Here H is the smooth part of the training objective and hᵢ(w) is the hinge loss of example i under weights w. The sum runs over the training examples for one label. Away from the margin, a training example’s contribution is either zero or the square of its shortfall. At the margin, the derivative of the squared shortfall meets the derivative of the zero part, so the gradient can be used through that transition.
uₜ = wₜ − γₜ∇H(wₜ)
Here t indexes the iteration, wₜ is its current weight vector, and uₜ is the intermediate vector after the forward step. The gradient ∇H(wₜ) points in the direction of increasing squared-hinge loss. The update subtracts a multiple of it, with γₜ controlling the step size. This update accounts for the training loss. The intermediate vector will then be adjusted to account for regularization.
The step size is found by backtracking. The procedure starts with a larger trial step and reduces it until a quadratic expression bounds the smooth loss at the proposed weights. That lets the algorithm adapt to how sharply the loss changes where it is currently evaluating the classifier.
H(w) ≤ H(wₜ) + ⟨∇H(wₜ), w − wₜ⟩ + ‖w − wₜ‖₂²/(2γₜ)
Here w is the trial weight vector and wₜ is the current vector. H gives the smooth loss at each, and the inner product is the first-order change predicted by the gradient ∇H(wₜ). The final term is quadratic in the Euclidean distance between the two vectors, with ‖·‖₂ denoting that norm. The denominator contains the trial step size γₜ. A smaller step size gives the quadratic bound more curvature. An accepted step satisfies the condition the paper uses to run the forward–backward iteration.
In the backward step, the procedure balances the ℓ₁ penalty against the cost of moving away from uₜ. For clarity, the proximal scaling below is written consistently with the squared-hinge objective and forward step just described.
wₜ₊₁ = arg min_v [λ′γₜ‖v‖₁ + (1/2)‖v − uₜ‖₂²]
Here wₜ₊₁ is the next weight vector and v is a candidate for it. The expression arg min returns a candidate that minimizes the bracketed objective. The first term is the ℓ₁ penalty weighted by the product of λ′, the squared-hinge regularization parameter, and γₜ, the accepted step size. The second term penalizes squared Euclidean distance from the forward iterate uₜ, with the factor 1/2 setting its normalization. Both terms decompose into separate contributions from individual coordinates.
wₜ₊₁,ⱼ = sign(uₜ,ⱼ) max(|uₜ,ⱼ| − τₜ, 0)
Here j is the feature coordinate, wₜ₊₁,ⱼ is its next weight, and uₜ,ⱼ is its value after the forward step. The sign function restores the direction of uₜ,ⱼ after its absolute magnitude has been reduced. The threshold τₜ is the effective penalty in the proximal step, equal to λ′γₜ in the scaling above. The maximum with 0 makes the weight exactly zero when its magnitude is at or below the threshold. For a weight above that threshold, the step retains its sign and subtracts the threshold from its magnitude. This is soft thresholding.
The iteration returns a weight vector for a single label. The same procedure runs for the other labels with their own training signs. Because none of those optimization problems needs the current weights from another one, different labels can be assigned to different workers. Training produces the columns of a sparse weight matrix that can also be distributed for scoring new inputs. Ranking brings the labels back together at prediction time because the application uses the strongest scores across the collection.
Experiments and results
The benchmark regimes and the comparison systems
The authors use public datasets from the extreme classification repository. Mediamill and Bibtex have 101 and 159 labels respectively, and the paper characterizes them as having no tail-label behavior of the kind it studies. EUR-Lex is intermediate, with 15,539 training examples, 5,000 features and 3,993 labels. The large benchmarks are WikiLSHTC-325K, Wiki-500K and Amazon-670K. These differ in more than the names or subjects of their documents. They put different demands on the number of independent fits, the input dimensionality and the available positive examples.
Wiki-500K has 1,813,391 training examples, 2,381,304 features and 501,070 labels. Amazon-670K has 490,499 training examples, 135,909 features and 670,091 labels. Amazon-670K therefore has the largest label inventory among these benchmarks while offering fewer training examples than either of the two large Wikipedia datasets. Its reported average is 3.9 positive points per label. The corresponding averages for WikiLSHTC-325K and Wiki-500K are 17.4 and 24.7. Those averages measure positive training assignments per label. The distribution plots establish why an average alone gives a poor picture of the evidence for a particular rare label.
The label embedding comparisons are LEML and SLEEC. LEML learns a low-rank output representation. SLEEC learns local embeddings intended to capture relationships that vary across the data, using clustering to make its procedure feasible on large collections. Their inclusion tests whether sharing information in the label representation is more effective than fitting a separate weight vector for each label.
The tree comparisons are FastXML, Parabel and PFastreXML. FastXML partitions the feature space and uses ordinary normalized discounted cumulative gain during training. Parabel partitions labels into balanced groups and learns classifiers within the resulting tree structure. PFastreXML gives extra weight to rare labels in its tree stage, then uses a nearest-centroid classifier to rerank candidates. Their common feature is that a prediction is guided through a partition or shortlist. They differ in what is partitioned and in how the final scores are formed.
The linear baselines provide comparisons closer to the proposed objective. PD-Sparse combines elastic-net regularization and a multiclass hinge formulation, with computational techniques that exploit sparsity. DiSMEC trains independent label classifiers with ℓ₂ regularization and prunes small weights for storage. CCD-L1 is the LibLinear coordinate-descent implementation for the ℓ₁-penalized squared-hinge problem. The last comparison is especially direct because a difference in the result can arise through the optimization of the same stated objective.
PRoXML was implemented in C++ with OpenMP parallelization on 64-bit Linux. The regularization parameter was cross-validated on Mediamill, Bibtex and EUR-Lex. It was fixed to 0.1 for the larger datasets. The authors attribute that choice to the computational cost of searching over settings at extreme scale and describe similar fixed-setting practices in the earlier literature. They report reproducing the comparisons according to the baseline papers’ procedures. Their primary comparisons are on the held-out benchmark predictions.
How rare hits are counted
The main evaluation asks whether the few highest-scoring predictions are correct and gives more credit to rare labels. In the paper’s propensity scheme, a label’s propensity is close to 1 for frequent labels and much smaller for rare ones. A correct prediction receives the reciprocal of that propensity as a weight. An incorrect prediction contributes no gain from that label. The inverse weight changes the value of a correct hit, while the top-rank cutoff controls how many predicted positions enter the measure.
pℓ = 1/(1 + C exp(−A log(Nℓ + B)))
Here pℓ is the propensity for label ℓ and Nℓ is its count of positive training examples. A and B are parameters the paper associates with information about the data source in the earlier propensity method, and C is the multiplicative constant in the expression. The functions log and exp are the logarithm and exponential, respectively. The constant 1 in the numerator and denominator is part of the propensity definition. PRoXML does not need to estimate these propensities to fit its classifiers. The propensities matter when computing the tail-sensitive evaluation and when training the baseline that uses them directly.
PSP@k(ŷ, y) = (1/k) ∑_{r = 1, …, k} y_{ℓᵣ}/p_{ℓᵣ}
Here PSP@k is propensity-scored precision at cutoff k, ŷ is the vector of predicted label scores and y is the true binary annotation vector. The index r is a rank position and ℓᵣ is the label at that position in the descending order of ŷ. The term y_{ℓᵣ} is 1 if the label is correct and 0 otherwise, while p_{ℓᵣ} is its propensity. The normalization by k expresses the gain per available rank position. This precision variant assigns the same positional weight to a correct label anywhere inside the cutoff.
PSDCG@k(ŷ, y) = ∑_{r = 1, …, k} y_{ℓᵣ}/(p_{ℓᵣ} log(r + 1))
Here PSDCG@k is propensity-scored discounted cumulative gain. The predicted scores ŷ and true annotations y determine the labels ℓᵣ and their correctness at ranks r through cutoff k as before. The propensity p_{ℓᵣ} supplies the label weight. The logarithm of r plus 1 discounts later positions, giving an earlier correct prediction more influence. The addition of 1 keeps the logarithm in the denominator positive at the first rank.
PSnDCG@k(ŷ, y) = PSDCG@k(ŷ, y) / ∑_{r = 1, …, min(k, ‖y‖₀)} [1/log(r + 1)]
Here PSnDCG@k is propensity-scored normalized discounted cumulative gain and its numerator is the discounted gain just defined. The denominator adds rank discounts through the smaller of the cutoff k and the count ‖y‖₀ of true labels. The index r again denotes a rank position. The constants 1 specify the reciprocal logarithmic discount and its rank offset. This makes the positional normalization depend partly on how many correct labels are available on the example.
reported score = 100 × G({ŷ})/G({y})
Here G({ŷ}) is the mean gain on the test items using the predicted rankings and G({y}) is the corresponding gain using the true annotations as the reference. The braces denote the collection of test outputs or annotations. The gain is the negative of mean loss when the loss is written as the negative of the chosen precision or normalized discounted gain. The factor 100 is the reporting scale. The paper uses P@k and N@k for the normalized propensity-scored results in its main comparison. The appendix switches to conventional precision and normalized discounted gain, so a metric name there must be read together with the convention that every propensity is set to 1.
Label coverage asks a different question. It counts the fraction of distinct labels that are correctly predicted within the cutoff. Repeated correct predictions for the same label can help precision while adding no new label to the coverage count. Coverage is therefore informative when the application benefits from retrieving a broad range of relevant categories. It still requires a correct match. Merely varying the predictions across items provides no coverage credit for labels predicted incorrectly.
Accuracy, breadth and deployment costs
On WikiLSHTC-325K, the paper reports its clearest comparison with SLEEC and PFastreXML at the cutoff of five. In discussing propensity-scored P@5 and N@5 on the benchmark test set, the authors give approximate relative improvements of 60% over SLEEC and 25% over PFastreXML. The first comparison is with a system that shares information through local label embeddings. The second is with a system trained to favor the type of rare hit that the metrics reward. The result matters for the paper’s original question because PRoXML supplies separate margin-based training signals for the labels and uses no propensity weighting in that fit.
The authors report the same broad advantage over embedding methods in the extreme regime, including Wiki-500K and Amazon-670K, while the ordering is different on the small datasets. There, SLEEC and LEML can perform as well as or better than systems using a Hamming-loss surrogate. The figure that varies the PFastreXML score mixture also provides specific top-rank results for PRoXML. The reported propensity-scored precision at the first position is 44.3 on EUR-Lex, 32.4 on WikiLSHTC-325K and 30.3 on Amazon-670K. These are test-set scores under the paper’s weighted convention. They describe performance within each benchmark, whose label inventory and propensity distribution differ.
The coverage comparison reports C@1, C@3 and C@5 on WikiLSHTC-325K and Amazon-670K. PRoXML correctly predicts a greater fraction of the distinct labels than the methods included in that figure. This provides a check on the interpretation of the propensity-scored results. Strong weighted precision might arise from a relatively narrow collection of heavily weighted hits. Greater coverage shows that the predictions reach more of the known label inventory under this separate measure.
The appendix reports a different ordering when there is no inverse-propensity credit. DiSMEC typically outperforms PRoXML slightly under ordinary precision and normalized discounted gain, with EUR-Lex given as the exception to that tendency. PRoXML is described as broadly on par with Parabel under the ordinary metrics. The appendix contrasts that with an advantage of up to 25% over Parabel on the propensity-scored metrics. Together, these comparisons show that label frequency is central to interpreting which method performs better. The ordinary and propensity-scored results answer different questions about the same ranked predictions.
The authors also report storage and latency on WikiLSHTC-325K. PRoXML occupies 3 GB and the PFastreXML system occupies 30 GB, with the PFastreXML figure corresponding to 50 trees. PRoXML averages 2 ms per test instance on that dataset. The paper describes this prediction time as comparable to the tree methods and faster than SLEEC. The footprint comparison concerns the structures learned for prediction. The timing concerns evaluation of held-out instances after training.
Trained classifier size on WikiLSHTC-325K
PRoXML uses less storage than the PFastreXML tree ensemble.
The numbers
| System or setting | GB |
|---|---|
| PFastreXML | 30 |
| PRoXML (this paper) | 3 |
The paper emphasizes offline training and describes the independent fits as suitable for distributed computation. It mentions using a subset of negatives or initializing from DiSMEC weights as ways to speed convergence. The reported footprint and latency are empirical results, whereas these possible training changes are suggestions. The paper’s main comparison uses the forward–backward procedure starting from zero for each label.
What the ablations show
Two solvers targeting the same objective
The solver comparison changes the optimization procedure while retaining the ℓ₁-penalized squared-hinge objective. The paper applies LibLinear’s cyclic coordinate-descent implementation and its own proximal-gradient procedure to the binary label problems. Cyclic coordinate descent updates individual weights in turn. The proximal procedure takes a gradient step for the loss across the weight vector and then applies the penalty coordinate by coordinate. Both have the same stated task of reducing the loss and penalty together.
On EUR-Lex, the proximal procedure finishes with a lower objective for approximately 90% of the labels. The paper says discrepancies can be substantial, with the proximal objective as low as half the coordinate-descent value in some cases. A feasible weight vector with a smaller objective is enough to establish suboptimality of the coordinate-descent result in that run. This evidence comes from the training objective, independently of which classifier later ranks more held-out labels correctly. The paper also reports stronger test performance for the proximal solver. The two observations connect the training shortfall to a practical performance difference without requiring a claim that either result is the exact optimum.
The labels with comparatively large objective values in the scatter plot tend to be frequent. The authors suggest two contributors. A frequent label can include many different instances that are hard to separate from the negatives with a linear boundary, yielding a substantial squared-hinge term. Its classifier can also have many active weights, increasing the penalty. Since the objective is a sum, the raw values for two different labels need not have a common interpretation as an error rate. The controlled comparison is between the two values for the same label’s training problem.
The DiSMEC comparison changes more than the solver. DiSMEC also trains independent classifiers, but it uses ℓ₂ regularization and a pruning rule. PRoXML’s stronger propensity-sensitive results make the choice of regularization relevant even within the one-vs-rest family. The appendix’s ordinary-metric comparison shows where that advantage narrows or reverses. This is a comparison of full systems with related designs. It does not isolate how much of the difference comes from the norm, the optimization procedure or the treatment of sparse weights.
What the reranker contributes
PFastreXML gives the paper a controlled way to vary the relative influence of its components. Its tree stage, PFastXML, uses a propensity-sensitive training objective. Its Rocchio stage compares an item with label centroids for the top 1,000 candidates proposed by the trees. A centroid represents a label through a central point derived from its examples. The final ranking blends the two scores for shortlisted labels.
sℓ = α log P_F(yℓ = 1 | x) + (1 − α) log P_R(yℓ = 1 | x)
Here sℓ is the final score for label ℓ and α is the mixture weight. P_F is the PFastXML probability estimate and P_R is the Rocchio estimate for the shortlisted candidates. The event yℓ = 1 means the label applies, and the vertical bar indicates conditioning on the test input x. Each probability is on a logarithmic scale in the sum. The coefficients α and 1 − α distribute influence between the tree and centroid components. With α set to 1, the score comes from PFastXML. With α set to 0, only the Rocchio score is used to order the shortlisted labels. The standard PFastreXML setting in the paper is 0.8.
The authors vary α for EUR-Lex, WikiLSHTC-325K and Amazon-670K. In the reported sweep, PRoXML exceeds the PFastreXML combinations on propensity-scored precision at the cutoffs of three and five throughout the plotted range. This comparison tests whether a different balance between the two stages can close the observed gap on those measures. The figure’s caption gives separate top-rank values for PRoXML, but its across-mixture finding concerns the longer cutoffs.
The coverage analysis adds evidence about why the mixture matters. The Rocchio stage, applied to candidates supplied by the trees, correctly retrieves more distinct labels than the tree stage’s own ranking in the coverage comparison. That suggests the trees frequently put useful tail candidates within reach, while their order can benefit from the different signal supplied by the centroid classifier. The result depends on the candidate generator even at the all-Rocchio end of the sweep. The centroid classifier there is still choosing from the shortlist the trees have produced.
How label co-occurrence changes with scale
The authors use a weighted graph to examine when a shared label representation might have enough evidence to help. The vertices are labels. Two labels have a stronger connection when they appear together in more training annotations. Because the graph is built from the output vectors, it can be studied independently of the input vocabulary and the fitted classifiers.
aℓm = ∑ᵢ 𝟙[yᵢℓ = 1 ∧ yᵢm = 1]
Here aℓm is the adjacency weight between labels ℓ and m. The index i runs over the training examples, and yᵢℓ and yᵢm are the binary entries recording the two labels. The symbol ∧ means both conditions must hold. The indicator 𝟙 contributes 1 for a joint occurrence and 0 otherwise. Swapping the two labels leaves the count unchanged, so the adjacency matrix A(G) for graph G is symmetric.
dℓ = ∑_{m ∈ V(G)} aℓm
Here dℓ is the weighted degree of label ℓ, V(G) is the vertex set of the graph G, and the sum ranges over its label vertices m. The terms aℓm are the adjacency weights just defined. The degree matrix D(G) places these degree values on its diagonal. Here D(G) refers to the graph’s degree matrix, while D elsewhere is the input feature count.
Lℓm(G) = 1 − aℓℓ/dℓ if ℓ = m and dℓ ≠ 0
−aℓm/√(dℓdₘ) if ℓ and m are distinct adjacent labels
0 otherwise
Here Lℓm(G) is the entry in row ℓ and column m of the normalized graph Laplacian. The diagonal expression uses the self-entry aℓℓ, the degree dℓ and the constant 1. Off the diagonal, the entry for adjacent vertices is the negative adjacency weight divided by the square root of their degree product. Entries outside those cases are 0. The normalization puts co-occurrence weights in relation to how strongly each label connects to the graph as a whole.
λ₂(G) ≤ ν(G) ≤ η(G)
Here λ₂(G) is the second-smallest eigenvalue of the normalized Laplacian and is the quantity the paper uses as algebraic connectivity. The symbols ν(G) and η(G) denote vertex connectivity and edge connectivity, respectively. They describe the minimum removals of vertices or edges needed to disconnect the graph in the connectivity comparison cited by the authors. The inequalities are the basis for their use of λ₂(G) as a graph-wide indicator of how strongly the labels are connected.
The measured algebraic connectivity is 0.46 for Mediamill, 0.30 for Bibtex and 0.22 for EUR-Lex. For the three large benchmarks, the reported values are 0.002 for WikiLSHTC-325K, 0.001 for Wiki-500K and 0.0001 for Amazon-670K. These values describe graphs built from the training annotations. Their association with the results suggests that embeddings have more consistent relationships to exploit in the smaller benchmarks. In the extreme benchmarks, many tail labels furnish little direct evidence about which other labels tend to apply to the same item. Independent classifiers can still learn from the input features even where co-occurrence counts provide little support for sharing information.
The paper draws a second distinction between fitting independent margins and optimizing a top-rank measure directly. Its thought experiment uses a training item with fifteen positive labels and a precision objective looking only at the top five. Once those five positions are filled with correct predictions, there can be little incentive from that cutoff to improve scores for the remaining labels. Independent margin losses can continue to use each positive label as a training signal. The authors offer this as an explanation for why an objective can be suitable for evaluation while leaving some useful supervision unused when applied directly in training. The score-mixing sweep and the graph comparisons support related parts of the story, while this particular argument is conceptual.
Limitations
Limits the authors identify
The paper restricts its robustness argument to linear scores and a loss that decomposes across labels. The general expectation of a worst-case loss is much harder to optimize over an arbitrary function class. The restriction is what allows the authors to relate norm-bounded feature changes to regularized linear fitting and to distribute the fits. The authors discuss possible connections to robustness work in deep learning as future research. The experiments establish the behavior of their linear method on these benchmarks.
The authors also emphasize the weakness of the evidence available to learn label relationships at extreme scale. A low count of joint annotations can reflect scarcity even when labels are related in meaning. The graph uses co-occurrence in the observed training data. Semantic proximity could exist among labels whose joint appearances are too few to provide a strong observed connection. Accordingly, the paper’s explanation concerns relationships that learning procedures can exploit from those examples.
Hyper-parameter selection is constrained by cost on the large datasets. The reported experiments use a fixed regularization strength there, while the smaller datasets get cross-validation. The paper also distinguishes prediction latency from training cost. It argues that distributed, offline fitting is practical and suggests ways to get to a solution faster. Those suggestions do not provide measured training speedups. The case for efficiency rests on the independence of the fits and the reported storage and prediction measurements.
Finally, the benchmark results depend on the evaluation convention. The authors report the disadvantage relative to DiSMEC on the unweighted measures alongside the advantage on propensity-scored and coverage measures. An application that values broad discovery of rare labels has reason to consult the latter results. One assessed chiefly on ordinary precision can favor a different choice. The experiments give evidence for those measured outcomes under the specified ranking rules.
Limits visible in the design and mathematics
The vocabulary examples illustrate a plausible mechanism. They do not quantify how frequently the same pattern occurs across all rare labels, or how much observed train-to-test variation is needed before the robust fit has an advantage. The benchmark comparisons use existing train and test splits. They do not intervene on the amount of feature turnover for otherwise comparable labels. The authors’ explanation that sparse positives provide poor coverage is consistent with the examples and results, but the contribution of this mechanism has not been separately measured.
The permitted perturbations are defined in feature space. The infinity norm can describe changes spread across many coordinates, including changes that would be difficult to interpret as edits to a particular document. Its role is to impose a form of sensitivity control on a linear score. The robustness calculation supports that control for the specified uncertainty set. The results on natural benchmark inputs do not establish the same effect for every possible change in vocabulary, topic, annotation practice or data source.
There is a gap in the paper’s argument for exchanging hinge loss for squared hinge loss. Squaring a non-negative scalar is monotone, so it preserves the ordering of individual losses and would also preserve the ordering if applied to a single aggregate loss. The squared-hinge objective instead applies the square before aggregation. Two classifiers can distribute their margin shortfalls differently across examples. The one with the smaller total hinge loss may have a few concentrated shortfalls that receive a greater penalty after squaring. Hence, the monotonicity step alone does not establish identical efficient solution sets or an equivalent fit after retuning the penalty. The direct robustness derivation motivates the ordinary hinge objective. The benchmark experiments independently test the squared-hinge procedure that the authors actually run.
The solver evidence has a defined scope as well. A lower feasible objective certifies that the higher objective is suboptimal for that particular comparison. It does not give the distance from the true minimum, and the reported comparison does not isolate which implementation or stopping behavior produces the difference. The EUR-Lex result gives a reason to distinguish a training objective from the result delivered by a particular solver. It does not establish how a coordinate-descent implementation would behave under every configuration or computational budget.
Algebraic connectivity is a global measure. A graph with weak overall connections can still contain groups of labels that co-occur reliably. That matters especially when interpreting SLEEC, whose embeddings are local. The cross-dataset analysis also varies several properties together, including dataset size, training coverage per label and the breadth of the inventory. Connectivity is an explanatory statistic supported by the association the paper observes. A controlled test that changed co-occurrence while holding those other properties fixed would be needed to isolate its effect.
Propensity weighting and coverage offer complementary views of rare-label performance, with limits of their own. The propensity metric makes its priorities explicit through weights derived from label support and source-related parameters. A different weighting scheme could change how much particular predictions contribute to the ranking comparison. Coverage records whether distinct labels receive correct predictions, but an aggregate coverage gain can still leave many difficult labels unrecovered. Both measures treat benchmark annotations as the evidence of relevance. They cannot establish how useful an unrecorded suggestion would have been to a user.
What came after
The later papers that cite Babbar and Schölkopf connect to different parts of the scarcity problem. Their links to PRoXML are clearest at the level of research questions. The citation relationships alone give no basis for attributing its penalty, optimizer or evaluation procedure to any of them.
Feldman’s work approaches the long tail through memorization and uses influence estimation to investigate what is memorized. Babbar and Schölkopf begin with labels known to have little positive training support and ask how a classifier can remain effective despite differences between the observed examples and future ones. The later work’s emphasis is on the influence of training data and what is retained from it. The conceptual connection is that observations which matter little to an aggregate count can matter greatly to the behavior on underrepresented cases. The long tail can therefore be studied through the influence of examples as well as through the frequency and retrieval of labels. What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimation
The work on synthetic data concerns another response to limited evidence. PRoXML uses possible variations in the input to derive a regularizer and then fits the classifier using the available examples. Research on synthetic data instead deals with data that have been generated for use in a learning procedure. The broad connection is the problem of obtaining useful behavior beyond the variation visible in the observations already collected. The two approaches put their assumptions in different places. A robust objective expresses uncertainty through a set of permitted feature changes, while a synthetic-data approach must consider what variation the generated observations contain. The later work’s stated subject is synthetic-data practice and lessons, and its citation does not establish a direct transfer of PRoXML’s training rule. Best Practices and Lessons Learned on Synthetic Data
Anidjar and colleagues address scarcity in automatic speech recognition by augmenting Wav2Vec 2.0 for low-resource languages. This is a different unit of scarcity. In the classification paper, the limited resource is positive evidence for particular labels within a dataset that can be very large. In the speech work, resource limitations are associated with the language for which recognition is being improved. Augmentation is the intervention named in the later study, while the classification paper changes the objective used to fit existing data. The citation links work on scarce evidence across two settings, without establishing that the speech system uses the same feature uncertainty or ranking measures. Whisper Turns Stronger: Augmenting Wav2Vec 2.0 for Superior ASR in Low-Resource Languages
Cite
Cite as Rohit Babbar and Bernhard Schölkopf. 2019. Data scarcity, robustness and extreme multi-label classification. Machine Learning.
@inproceedings{babbar2019data,
title = {{Data scarcity, robustness and extreme multi-label classification}},
author = {Rohit Babbar and Bernhard Schölkopf},
booktitle = {Machine Learning},
year = {2019},
doi = {10.1007/s10994-019-05791-5},
url = {https://doi.org/10.1007/s10994-019-05791-5}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/babbar-2019-data-scarcity-robustness-extreme-multi/