Elamur Research

Support Vector Machines Under Adversarial Label Noise

Paper · 2011 · Battista Biggio, Blaine A. Nelson and Pavel Laskov

Summary

A classifier can make mistakes on clean data because it learned from examples with the wrong labels. The problem is especially serious when the mistakes in the training set are deliberate. A small number of unreliable labels can matter more than their share of the data suggests if they cause a classifier to move its decision boundary. Biggio, Nelson, and Laskov investigate this problem for support vector machines, or SVMs. They keep the training examples themselves intact and change only their class assignments. They ask how much this can hurt the classifier and whether a simple change to its training procedure can limit the damage.

An SVM fits a boundary by balancing a wide margin against the cost of underserving individual training examples. In the form used by the authors, the fitting procedure works with a matrix of similarities between examples. The labels determine whether each pair enters the objective with a positive or negative sign. A mislabeled example can reverse many of those signs. The authors derive a correction by assuming that each label can flip independently with the same probability. They keep the diagonal of the matrix, where each example is compared with itself, and reduce the influence of the remaining entries. The corrected fitting problem is still a convex quadratic program and can use the same kind of solver as the standard SVM.

The experiments separate changes to the training labels from errors on clean test data. On artificial data, the correction partly restores a decision boundary displaced by deliberately chosen flips. It also makes the fitted coefficients less concentrated, which gives some support to the authors’ explanation of why the boundary can become more stable. In a separate artificial experiment with randomly chosen label flips, the correction improves test accuracy at all the tested settings of the SVM’s usual penalty parameter. The comparisons on seven benchmark datasets are more mixed. Deliberately chosen flips generally degrade the standard SVM with fewer changes than random flips do. The correction often helps when the penalty for violating the training margin is high. With a low penalty, improvement is less consistent, and some settings worsen performance.

The amount of correction matters. An assumed flip probability of µ = 0.5, used in the experiments as shorthand for a value just below that point, sometimes gives the strongest protection. It can also leave the classifier starting from a low accuracy even when the training labels are clean. The paper therefore offers a way to adjust an SVM’s sensitivity to training labels while preserving its usual optimization structure. The evidence supports that adjustment as an empirical defense under the conditions tested. Choosing how much correction to apply before the real extent of contamination is known remains an open problem.

Deep dive: Support Vector Machines Under Adversarial Label Noise

How support vector machines respond to corrupted training labels, and how a kernel correction can make their decisions more stable. · about 35 minutes to read

The problem and its context

When clean examples carry unreliable labels

Supervised machine learning uses examples with known answers to learn a rule for assigning answers to new examples. In binary classification, those answers identify the two classes. A training example conveys information through both its measured features and its label. A learner can receive an accurate feature vector paired with an inaccurate answer. If the training procedure takes the answer at face value, it may find a rule that accommodates the incorrect label at the expense of decisions elsewhere.

The usual account of generalization in the paper starts with a common distribution for training and future examples. The learner sees a sample from an unknown distribution and is evaluated on other examples drawn from that distribution. Security applications give the authors a reason to ask what happens when that relationship changes. Spam filtering and intrusion detection use learned rules in settings where the data can be deliberately manipulated. A rule that generalizes well when the data source is stable can behave differently once someone can influence what the learner sees.

The paper distinguishes manipulation during testing from manipulation during training. In the first setting, the learned rule already exists, and the inputs presented for classification can change in ways that leave their true class intact. Work discussed by the authors considered ways to learn rules that respect known invariances, such as when certain features may be absent or corrupted. Training-time manipulation affects the construction of the rule itself. A change made before fitting can continue to influence predictions on examples that were never modified.

There are also two different parts of a training example that can change. Feature noise moves the example in the space where the classifier measures similarities. Label noise leaves that location intact and changes the class the learner is told to associate with it. In the paper’s binary setting, a flip assigns the example to the other class. The clean test labels and test features remain available for evaluation. This isolates a specific question. Can a learner trained on unreliable assignments still recover a useful distinction between the underlying classes?

The distinction between random and deliberately selected errors matters for that question. When errors are spread without reference to the classifier, their impact depends on which examples happen to receive an incorrect label. Deliberate selection introduces a dependence between the corruption and the learning problem. Counting changed labels gives a common measure of how much of the set was altered, but it says little on its own about how much the fitted rule will change. The paper studies both settings because a defense that looks adequate under ordinary label noise may face a different challenge when errors are concentrated where they matter.

Why the margin matters

A linear SVM divides feature space with a flat boundary called a hyperplane. Its margin describes the separation it tries to maintain between that boundary and nearby examples from the opposing classes. In a separable problem, the hard-margin construction calls for a boundary that classifies the training examples correctly and maximizes the margin. Real datasets can contain overlapping classes, unusual observations, or bad labels. The soft-margin formulation introduced in Support-Vector Networks allows examples to violate their margin constraints and charges a penalty for the violations.

This penalty already gives the SVM a way to tolerate discrepancies in its training set. A small enough penalty allows the learner to leave troublesome examples inside the margin or on the wrong side of the boundary when accommodating them would cost too much elsewhere. The same flexibility raises a question about the paper’s correction. If a standard soft-margin SVM already has some tolerance for doubtful examples, how much does a separate correction add? And under what circumstances does that correction begin to weaken useful information in the labels?

The SVM also gives unusual leverage to some examples through its fitted coefficients. Many examples can have zero coefficient and contribute nothing directly to the solution. The remaining examples carry the weights that determine the position and orientation of the boundary. This sparsity makes the margin construction intelligible. An example that is already far enough inside its own decision region need exert no direct influence. It also makes the identity of the influential examples consequential. When some labels change, the set of examples that support the boundary can change with them.

Changing a label does more than add an isolated disagreement between a prediction and an answer. The mislabeled example participates in comparisons with other training examples. In the SVM’s optimization problem, those comparisons carry the sign of the pair’s labels. The geometry measured by the kernel stays the same, yet the way the objective uses that geometry can change. This is the opening the authors use for their correction.

What earlier robustness work addressed

The paper describes several approaches to learning under feature uncertainty. Bi and Zhang, and Xu and colleagues, studied settings in which a noisy feature vector could differ from its true value within a region of bounded size. A learner can use that description of the possible perturbations when fitting a boundary. The paper highlights an observation by Xu and colleagues that connects a particular SVM regularization term with spherical uncertainty around examples. It treats this connection as a precedent for deriving a change to the training objective from an explicit account of the noise.

Other work considered features disappearing at test time. The approach of Globerson and Roweis sought protection against unfavorable feature deletion. It retained a convex quadratic optimization problem, but the paper describes that problem as computationally more demanding than ordinary SVM training. For Biggio and colleagues, the appeal of a kernel correction is that it works inside the standard form of the optimization. This makes the type of optimization problem a central part of the design.

The paper also discusses earlier methods closer to its concern with mislabeled examples. Stempfel and Ralaivola used a modified loss to account for possible label flips. Their formulation led to a non-convex objective, for which they supplied an approximate gradient-based solution. Work by Xu and colleagues on outliers also changed the loss and used a convex relaxation to handle a non-convex problem. These examples show that the training loss is a natural place to intervene. They also explain why the authors explore a different point of intervention, the matrix inside the SVM dual.

A second line of background comes from robust statistics. The paper describes the influence function as a way to study how a statistical estimator responds to changes in the distribution it sees. Christmann and Steinwart examined margin-based learners under small perturbations and obtained conditions under which influence could be bounded. This gives the authors a vocabulary for thinking about how much an individual example can matter. Their own study asks an empirical question about a particular modification to SVM training, using the fitted coefficients and classification results as evidence.

The method, step by step

From a score to a classification

The authors start with labeled examples and an ordinary binary SVM. Each example has a vector of features, such as the coordinates of a point in the artificial experiments. Its label records which of the two classes it belongs to. During prediction the SVM first produces a real-valued score. The sign of that score gives the predicted class.

f(x; w, b) = sign(wᵀx + b) ∈ {−1, +1}

Here x is the feature vector being classified, w is the vector perpendicular to the boundary, and b is the intercept that shifts the boundary. The superscript ᵀ denotes transpose, so wᵀx is the inner product of the two vectors. The function f is the classifier. The symbol ∈ means that its answer is one of the listed class labels, −1 and +1. The sign function returns +1 for a score at or above zero and −1 for a score below zero.

The boundary itself is where the underlying score crosses zero. Multiplying a training example’s score by its observed label gives a signed score. This is positive when the score points toward the labeled class and negative when it points towards the opposite class. The SVM uses that signed score to express a margin requirement. An example can be correctly classified and still fall short of the margin. In that case, it contributes a penalty even though the sign of the prediction is right.

The soft-margin optimization in the paper has the following form.

minimize over w, b, ξ    ½ wᵀw + C ∑ᵢ ξᵢ
subject to              yᵢ(wᵀxᵢ + b) ≥ 1 − ξᵢ,   ξᵢ ≥ 0

The index i runs across the n training examples. The symbols xᵢ and yᵢ denote the features and assigned label of example i. The vector ξ contains the slack variables ξᵢ. Each slack variable measures the shortfall allowed in the margin requirement for its example and must be non-negative, as indicated by ≥ 0. The sum ∑ᵢ adds slack across the training set. The objective charges for both the squared length wᵀw, with prefactor ½, and the total slack, with weight C. The value 1 sets the scale of the signed margin requirement. The parameters w and b have the same meaning as in the prediction rule.

Reducing the length of w widens the margin in the scaling used by these constraints. A larger C makes violations expensive, so the learner will generally try harder to fit the assignments it has received. A smaller C permits more slack in exchange for a wider margin. Label corruption creates a reason for allowing slack. A training example may violate its assigned margin precisely because the fitted rule agrees with its underlying class.

Why the pairwise matrix enters the fit

The same training problem can be expressed in terms of one coefficient per training example. These coefficients are the Lagrange multipliers for the margin constraints. Their role is especially clear in the expression for the fitted normal vector.

w = ∑ᵢ αᵢyᵢxᵢ

Here w is the fitted normal vector in the linear case. The sum ∑ᵢ runs over the training examples. The coefficient αᵢ is the multiplier for the margin constraint of example i, yᵢ supplies its class sign, and xᵢ supplies its direction in feature space. A coefficient of zero removes the corresponding term from this expansion.

The paper describes three familiar roles for these coefficients. An example comfortably beyond its assigned margin can have a zero coefficient. An example with a coefficient strictly between zero and the bound has its signed score at the margin. At the upper bound, an example can use the full penalty available to it. Reading a coefficient as a diagnosis of a mislabeled example would go beyond this interpretation. A difficult but correctly labeled observation can matter just as much to the fit. The coefficient says how the optimization uses an example given the data and labels it received.

The intercept is normally recovered from the examples that meet the margin equality and have coefficients in the interior of the allowed interval. With the paper’s decision score written as wᵀx + b, that equality gives the following relation.

b = yᵢ − wᵀxᵢ

In this expression i denotes an example with an interior coefficient, yᵢ is its class label, wᵀxᵢ is its inner product with the fitted normal, and b is the intercept. The paper discusses averaging the intercept over such examples for numerical stability. The subtraction here follows directly from its stated score convention and margin constraint.

The training optimization in terms of the coefficients is called the dual. A central benefit of the dual is that the examples enter through pairwise inner products. A kernel can supply those inner products even when the feature representation implicit in the kernel differs from the original vector representation.

Kᵢⱼ = K(xᵢ, xⱼ) = φ(xᵢ)ᵀφ(xⱼ)

The quantity Kᵢⱼ is the entry in row i and column j of the kernel matrix. The function K assigns a kernel value to the feature vectors xᵢ and xⱼ. The map φ represents an example in the feature space associated with the kernel. The transpose and multiplication in φ(xᵢ)ᵀφ(xⱼ) form an inner product in that space. For the linear kernel, the original vectors supply the inner product directly. The paper also considers a radial basis function kernel, abbreviated RBF, in its benchmark experiments.

Using an implicit feature representation is the kernel trick. The solver can work with relationships between pairs without explicitly constructing the feature vectors in the mapped space. The ordinary SVM dual combines the kernel matrix with a matrix of label products.

Q = K ◦ yyᵀ

Here Q is the matrix that appears in the quadratic part of the objective, K is the kernel matrix, and y is the column vector containing the training labels. The outer product yyᵀ has entry yᵢyⱼ for the pair at row i and column j. The symbol ◦ denotes entry-by-entry multiplication of matrices. An agreeing label pair supplies a positive sign. An opposing pair supplies a negative sign.

minimize over α    ½ αᵀQα − 𝟙ₙᵀα
subject to         0 ≤ αᵢ ≤ C,   ∑ᵢ αᵢyᵢ = 0

The vector α contains all the fitted coefficients, and Q is the label-weighted kernel matrix. The vector 𝟙ₙ contains n ones, so 𝟙ₙᵀα sums the coefficients. The multiplier ½ applies to the quadratic form αᵀQα. Each αᵢ lies between zero and C. The equality involving ∑ᵢ αᵢyᵢ requires the signed sum of the coefficients to vanish. Thus labels enter the ordinary dual in both the quadratic term and the equality constraint. The correction in the paper concerns the quadratic term and retains the standard constraint using the supplied labels.

This distinction matters when reading the proposed procedure. The authors ask how to reduce the influence of unreliable pairwise signs. They can make that change without introducing a new set of latent class assignments for the optimizer to choose. The solver still fits the usual vector of coefficients inside the same bounds. The method acts on what the objective asks those coefficients to balance.

Average the label-dependent signs

The noise assumption is simple enough to work through directly. Each training label can be flipped, and all examples have the same assumed probability of a flip. The events are independent. To express the arithmetic, the paper attaches an indicator to each label.

yᵢ′ = yᵢ(1 − 2εᵢ)

The symbol yᵢ denotes the starting label of example i, and yᵢ′ is its label after the hypothetical random change. The indicator εᵢ takes the value 1 when the label is flipped and 0 when it is retained. The factor 1 − 2εᵢ is therefore the sign change applied to the label.

σ² = µ(1 − µ)

The symbol µ denotes the common probability that the flip indicator is 1. It is also the mean of that indicator. The variance is σ². The term 1 − µ is the probability of retaining the starting label. The variance describes the uncertainty of the binary flip indicator under the assumption used in the derivation.

Applying the hypothetical signs to the label-weighted kernel gives the entry before averaging.

Qᵢⱼ = yᵢyⱼK(xᵢ, xⱼ)(1 − 2εᵢ)(1 − 2εⱼ)

Here Qᵢⱼ is the random quadratic-matrix entry for the pair of training examples indexed by i and j. Their starting labels are yᵢ and yⱼ, their features are xᵢ and xⱼ, and their kernel value is K(xᵢ, xⱼ). The indicators εᵢ and εⱼ govern the hypothetical change to each label. The two factors involving the indicators multiply the original pair sign.

There is a difference between comparing distinct examples and comparing an example with itself. For distinct examples, a single flip reverses the pair’s sign. If both labels flip, the product returns to its original sign. Independence lets the authors average the two random factors separately in this case. On the diagonal, the same factor appears twice. Its square is always positive, regardless of the label’s assigned class. The diagonal is consequently unaffected by this form of uncertainty.

Eε[Qᵢⱼ] = ⎧ yᵢyⱼK(xᵢ, xⱼ)(1 − 4σ²)    if i ≠ j
           ⎩ yᵢyⱼK(xᵢ, xⱼ)              if i = j

The operator Eε averages over the hypothetical label changes represented by the flip indicators. The indices i and j, label product yᵢyⱼ, and kernel value K(xᵢ, xⱼ) refer to the same pair as above. The symbol ≠ marks distinct indices, and = marks the comparison of an example with itself. The factor 1 − 4σ² attenuates entries for distinct examples. The diagonal keeps its original value, which equals the kernel’s self-similarity because the square of a binary class sign is positive.

In practical terms the geometric similarity stays at the center of the approach. The correction reduces the weight of pairwise relationships whose signed interpretation depends on two possibly unreliable class assignments. The SVM continues to use class labels in its fit. Their pairwise role becomes weaker as the assumed uncertainty increases towards the point where a hypothetical flip and a retention are equally likely.

Training and prediction with the label-noise correction

The steps in order.

Training and prediction with the label-noise correctionStep 1: Start with features and supplied binary labels1. Start with features and supplied binary labelsStep 2: Form the label-weighted kernel matrix2. Form the label-weighted kernel matrixStep 3: Set an assumed probability of label flips3. Set an assumed probability of label flipsStep 4: Attenuate entries joining distinct training examples4. Attenuate entries joining distinct training examplesStep 5: Solve the standard constrained quadratic program5. Solve the standard constrained quadratic programStep 6: Adjust the fitted decision score for prediction6. Adjust the fitted decision score for prediction

The authors name their method the label-noise-robust SVM, abbreviated LN-robust SVM. The name applies to the classifier fitted after this correction. An experiment may supply genuinely corrupted labels, but the probability used inside the correction is an assumption made by the learner. The actual fraction of labels changed in an experiment and the assumed probability µ are separate quantities. Varying them separately lets the paper examine what happens when a fixed degree of correction faces different levels of actual contamination.

Solve the corrected dual

The paper puts the attenuation factors into their own matrix. This makes it easy to see the relationship between the corrected fit and ordinary SVM training.

Mᵢⱼ = ⎧ 1        if i = j
       ⎩ 1 − S    if i ≠ j

The symbol Mᵢⱼ is the entry of the correction matrix M at indices i and j. The scalar S is the paper’s shorthand for 4σ², where σ² is the variance of the flip indicator. The value 1 preserves an entry on the diagonal. The factor 1 − S multiplies an entry that joins distinct examples.

M = (1 − S)𝟙ₙ×ₙ + SIₙ×ₙ

Here M is the same correction matrix, and n is the number of training examples. The matrix 𝟙ₙ×ₙ has n rows and n columns, with every entry equal to one. The identity matrix Iₙ×ₙ has ones on the diagonal and zeros elsewhere. The coefficient 1 − S therefore gives all entries their shared contribution, while S restores the diagonal to its original scale.

minimize over α    ½ αᵀ(Q ◦ M)α − 𝟙ₙᵀα
subject to         0 ≤ αᵢ ≤ C,   ∑ᵢ αᵢyᵢ = 0

The symbols α, αᵢ, C, yᵢ, and 𝟙ₙ have their ordinary dual meanings. The matrix Q in this expression is formed from the supplied labels and kernel values before correction. The entrywise product Q ◦ M is the corrected matrix. The signed sum of coefficients and the individual bounds are the original SVM constraints. The quadratic prefactor ½ and the linear term that subtracts the sum of the coefficients are also retained.

For any realization of the hypothetical flips, the label-signed kernel matrix is positive semidefinite. Its quadratic form can be read as the squared length of a weighted combination of feature vectors, with the signs absorbed into the weights. Averaging such matrices preserves nonnegativity of their quadratic forms. The corrected matrix is therefore positive semidefinite as well. This is why the method retains a convex quadratic objective even though it changes the balance of evidence inside that objective.

Convexity is a property of the corrected fitting problem. Its significance is that the solver is still working on the same class of optimization problem. The noise derivation explains where the new matrix comes from. The paper treats fitting with the expected matrix as a heuristic. It does not derive a solution that is optimal over all possible true label assignments, and interchanging averaging and optimization would require a separate argument.

Adjust the prediction

The paper also accounts for the hypothetical flips when recovering the decision rule. It describes taking the usual expressions for the normal and intercept and applying the average sign factor.

(w, b) = (1 − 2µ)(w̃, b̃)

The pair (w̃, b̃) denotes the normal vector and intercept obtained from the usual reconstruction expressions using the fitted coefficients, before the final sign scaling. The pair (w, b) gives the corresponding scaled quantities for prediction. The assumed flip probability is µ. The factor 1 − 2µ is the mean sign multiplier for an individual label.

The correction to the quadratic matrix depends on the variance of the flip indicator, so complementary values of µ give the same multiplier matrix and fitted coefficients. Prediction also uses the mean sign, which differs in sign on opposite sides of µ = 0.5. Below that point the final factor is positive and leaves the sign of a non-zero reconstructed score intact. Above it the factor is negative, which exchanges the class assignments on the two sides of the boundary. At µ = 1, the paper interprets this as assuming every label should be reversed. At µ = 0, the correction disappears and the prediction is the ordinary one.

At exactly µ = 0.5, the mean sign factor is zero. The reconstructed normal then vanishes under the prescribed scaling and the rule has no meaningful separating boundary. Throughout the experiments, the authors use µ = 0.5 as a label for a setting just below that value. They give 0.001 as an example of a small positive offset. This convention lets them study strong attenuation while keeping the prediction rule away from the degenerate endpoint.

Experiments and results

What the comparisons measure

The standard SVM is the baseline in the artificial and benchmark comparisons. The authors compare it with versions of the same learner that use different strengths of the correction. They vary the amount of label corruption in training and evaluate classification on clean data. In the experiments that report accuracy curves, the vertical measure is the share of clean test examples assigned the correct class. The horizontal comparison concerns the share of training labels that were changed. A curve that stays higher as corruption grows indicates that the learner retains more of its predictive ability under the tested conditions.

Random and deliberately chosen flips give two different kinds of stress test. The random comparison uses a fixed budget and gives the choice of examples no dependence on a fitted classifier. The deliberate comparison uses a heuristic to find a damaging set of changes within its budget. It is evidence about a more demanding contamination condition than uniform selection. The benchmark error is measured on clean test examples, separately from the process that constructs the corrupted training sets.

The paper reports a visual example of boundary movement, a larger artificial experiment with accuracy curves, and comparisons across benchmark datasets. They answer related questions at different levels. The visual example shows what a change in the boundary and in the fitted coefficients looks like. The larger simulation tests predictive accuracy across corruption levels in a controlled data-generating setting. The benchmark experiments then ask whether the benefits persist across datasets with different sample sizes and feature counts.

A boundary that can be seen moving

The first artificial experiment uses 100 examples in a two-dimensional feature space. The authors sample each class from a normal distribution, with the class sign determining the position of its mean along the first coordinate. The distributions share a diagonal covariance structure. A linear SVM on the clean training set supplies the reference boundary. In this setting, an entire fitted hyperplane can be drawn as a line, so the orientation and position of the solution are visible.

The authors change 10 training labels in the deliberately corrupted condition. The standard SVM fitted after those changes has a substantially different boundary. Several of the changed labels belong to points away from the clean boundary. The paper contrasts that fit with the solutions obtained using µ = 0.1 and the near-endpoint setting denoted by µ = 0.5. It describes the corrected boundaries as compensating partly for the displacement seen in the ordinary contaminated fit.

The same figure shows the coefficients alongside the scores assigned to training examples. It marks the examples that support each boundary and reports a mean and variance for the coefficients in the panels. The authors describe a reduction in coefficient variance for the corrected learner compared with the standard one. The concentration is lower still as the assumed flip probability approaches 0.5. This comparison is about the fitted solution. It gives a visual account of what changed within the classifier, alongside the change in the boundary that originally motivated the correction.

The label count in this experiment describes the intervention. It is separate from the accuracy measurements in the larger artificial and benchmark experiments. The two-dimensional example shows that the displacement can occur and that the correction can partly counter it in a particular configuration. The broader comparisons are needed to see whether this behavior translates into better predictions across more than one fit.

Random label errors in a higher-dimensional problem

The second artificial experiment uses 300 features and 400 training examples. The classes are again normally distributed. Their means differ along the first feature, and the other coordinates have zero entries in their mean vectors. The authors identify a Bayes rule for their generating distributions. Its separating direction uses the first feature, with intercept b = 0. Knowing the underlying rule gives the experiment a concrete reference, even though the learners receive only the sampled training set and its assigned labels.

The authors explain that they use a higher number of features relative to examples here to make the effect of random label errors easier to discern. They introduce random changes into the training labels, with the fraction varied up to 40%. Accuracy is measured on a separate set of 1, 000 clean test examples. The plotted results average 5 repetitions. The SVM uses a linear kernel, and the paper repeats the comparison at training-penalty settings C = 0.1, 1, 10, and 100.

The following chart records the correction settings used in the artificial-data accuracy comparison. Its values are the assumed flip probabilities on the learner’s side. The actual fraction of training labels changed varies along the experiment’s accuracy curves.

Assumed flip probability by learner on artificial normal data

The strongest correction gave the clearest advantage in the random-noise comparison.

Assumed flip probability by learner on artificial normal dataStandard linear SVM: 0Standard linear SVM0Corrected linear SVM with mild attenuation: 0.05Corrected linear SVM with mildattenuation0.05Corrected linear SVM with intermediate attenuation: 0.1Corrected linear SVM with intermediateattenuation0.1Corrected linear SVM near maximum attenuation (this paper): 0.5Corrected linear SVM near maximumattenuation (this paper)0.5
The numbers
System or settingAssumed flip probability µ
Standard linear SVM0
Corrected linear SVM with mild attenuation0.05
Corrected linear SVM with intermediate attenuation0.1
Corrected linear SVM near maximum attenuation (this paper)0.5

The final chart entry uses the paper’s near-endpoint convention. Here a higher value indicates stronger attenuation over the settings shown. The star marks the setting singled out by the authors for its performance in this artificial experiment. The accuracy curves are shown graphically in the paper without tabulated point values, so the chart uses the exact reported settings. It should be read alongside the accuracy findings, which are qualitative at the level of individual curve comparisons.

Across all the tested values of C, the authors report that the corrected linear SVM improves on the standard learner under random corruption. They particularly emphasize the setting denoted by µ = 0.5. The benefit in this simulation also survives the clean-training comparison. The authors observe no loss of classification accuracy there from applying the correction. This observation matters because it shows that a defense can act as helpful regularization even when the particular training set contains no flipped labels.

The clean result belongs to the experiment with this controlled distribution. Only the first coordinate separates the class means, and the test set is drawn without corrupted labels. A learner that places too much weight on individual training configurations can suffer when the sample gives a misleading impression of the other coordinates. The experiment is consistent with the correction reducing that sensitivity. The paper also gives examples on real datasets where stronger correction comes with a cost on clean training data.

Benchmark data and parameter selection

The benchmark study uses 7 binary classification datasets from the LibSVM and UCI repositories. The downloaded feature values are already scaled to the interval [−1, +1]. Breast-cancer has 683 samples and 10 features. Australian has 690 samples and 14 features. Diabetes contains 768 samples described by 8 features. Fourclass contains 862 samples with 2 features.

The remaining datasets extend the range of sample counts and feature counts. Heart has 270 samples and 13 features. Ionosphere has 351 samples and 34 features. Sonar has 208 samples and 60 features. These differences matter when interpreting a broad claim about the correction. The result on a dataset with a low-dimensional representation and many examples is one observation about the learner, while the result on a set with many features and fewer observations gives another.

For each dataset, the authors make 5 random splits. Each split assigns 60% of the data to training and 40% to testing. The reported performance averages the 5 trials. The label changes are applied to the training portion. The accuracy measure uses the original labels of the testing portion. Because the splits are repeated, the reported trends carry some information about behavior across different training samples from the same dataset.

The comparison examines linear and RBF kernels. For either kernel the choices of C are 0.1, 1, 10, and 100. For each fixed C with the RBF kernel, the authors select the kernel parameter γ using 5-fold cross-validation on training data. The candidate values in that search are 0.01, 0.1, 1, 10, and 100. In this setup γ specifies the RBF kernel’s similarity scale, distinct from the penalty C and the assumed flip probability µ.

At a given setting of the kernel and C, the comparisons put the standard SVM alongside corrected versions with µ = 0.05, 0.1, and the value denoted by 0.5. This keeps the usual training penalty fixed when assessing what the correction contributes. For the deliberate-contamination comparisons, the authors generate the reported training-label changes using the standard SVM as a reference. They report that using corrected fits as the reference led to broadly similar results in their checks. The paper shows the linear-kernel performance curves and describes the behavior of the RBF runs as similar.

Where the gains appeared

The deliberate-contamination comparisons usually show declining accuracy at smaller fractions of flipped labels than the random-contamination comparisons. This is the paper’s clearest evidence that a count of bad labels is an incomplete description of the stress placed on a learner. The standard SVM already shows some resilience when the corrupted labels are chosen randomly. That gives the correction less room to improve performance in some of the random-flip comparisons. The gains are generally easier to see under deliberately chosen label changes.

At C = 0.1 and C = 1, the correction frequently offers little gain over the ordinary fit. Some low-penalty comparisons favor the standard SVM. The paper points to Diabetes under deliberate contamination as an illustration of a setting where the corrected learner can be less resilient. This qualifies the artificial random-noise result. A consistent gain across the tested penalty settings in that simulation does not extend to every dataset or every contamination pattern.

The results are more favorable at higher values of C, where ordinary fitting gives greater weight to satisfying the assigned training labels. The authors point to Australian and Breast-cancer among the datasets with clear improvements in this regime. Fourclass, Heart, and Ionosphere also illustrate the reported pattern. The authors’ interpretation is that a high penalty can push the standard learner toward the behavior of a hard-margin SVM, which makes the fit particularly sensitive to incorrect assignments. The correction can reduce that sensitivity while leaving the user’s selected penalty in place.

The strongest correction also depends on the accuracy available before contamination. When the near-0.5 fit starts close to the other learners at 0% training-label flips, it can hold up especially well as corruption increases. When it starts from a much poorer clean-training fit, stronger resistance to subsequent changes may have little practical value because its test accuracy is already low. The paper therefore evaluates robustness through both the starting accuracy and the behavior as more labels are changed.

What the ablations show

The correction changes the distribution of influence

The paper’s most direct analysis of the mechanism rewrites the corrected dual. This comparison holds the standard constraints fixed and expresses the change in the objective as a familiar SVM term plus an additional term. For attenuation short of the degenerate endpoint, the paper gives the following equivalent formulation.

minimize over α    ½ αᵀQα − 𝟙ₙᵀα
                   + [S/(1 − S)] [½ αᵀ(Q ◦ Iₙ×ₙ)α − 𝟙ₙᵀα]
subject to         0 ≤ αᵢ ≤ C,   ∑ᵢ αᵢyᵢ = 0

The vector α and its entries αᵢ are the dual coefficients. The matrix Q is the ordinary label-weighted kernel matrix, and 𝟙ₙ contains n ones. The symbol ◦ denotes entrywise multiplication. Applying it with the identity Iₙ×ₙ keeps the diagonal of Q and sets the other entries to zero. The scalar S determines the attenuation in the corrected matrix, and S/(1 − S) is the weight of the additional objective term after rescaling. The bound C, labels yᵢ, and zero signed sum retain their usual meanings.

The diagonal enters this additional term because the pairwise correction treats self-comparisons as fully reliable under label flips. As µ approaches 0.5 from below, the term receives increasing weight relative to the ordinary objective. The original corrected objective remains meaningful as a fitting problem at the endpoint. The rescaled expression has a vanishing denominator there, and the prediction scaling becomes degenerate as described above.

The additional term depends on the coefficient vector and self-similarities. Label signs cancel on the diagonal, although the full solution remains subject to a constraint that contains them. Written as a sum over training examples, the term has a separate quadratic contribution from each coefficient.

½ ∑ᵢ αᵢ²K(xᵢ, xᵢ) − ∑ᵢ αᵢ

The sums extend over training indices i. The quantity αᵢ² is the square of the assigned coefficient, and K(xᵢ, xᵢ) is the self-similarity of its feature vector. The factor ½ scales the quadratic part. The second sum subtracts the total of the coefficients.

The quadratic part makes large individual coefficients costly, with the magnitude of that cost depending on the corresponding self-similarity. The linear part rewards retaining coefficient mass. Together they offer a reason for the solution to spread its weights across more examples. The paper describes this tendency as equalization. The term differs from a direct penalty on the variance of the coefficients. Its quadratic contributions can have different weights, and it does not center the coefficients by subtracting their empirical mean. The equality constraint and the remaining pairwise terms can also affect how much equalization occurs.

The visual experiment is a check on this explanation. The authors vary the correction strength and inspect the result at the level of the fitted coefficients. The reported decline in variance is in the direction suggested by the added term. A greater number of points can then contribute to the fitted hyperplane, each carrying a smaller part of the total weight. A change to one point has a better chance of being absorbed by the rest of the fit when the solution depends on a broader collection of examples. The figures make this interpretation plausible for the illustrated case. They do not establish a general bound connecting coefficient variance to test accuracy.

The ordinary penalty changes what the correction adds

The comparisons across C help explain why the method can look effective in one setting and unnecessary in another. With a low penalty, the baseline already has permission to tolerate substantial violations of its margin criteria. The correction changes the weight put on signed pairwise evidence, but the ordinary learner may already be coping well with untrustworthy labels through its slack variables. Depending on the geometry of the data, attenuating that evidence can give up information the learner was using productively.

With stronger penalties, the ordinary learner has more incentive to accommodate the assignments it receives. The benchmark experiments show more room for the correction to help in that regime. This is a comparison of interactions between two hyper-parameters. C controls the price of failing to satisfy the training margin. µ controls the amount of trust placed in the pairwise sign terms through the kernel correction. The results show why either parameter considered in isolation gives an incomplete account of the fitted boundary.

The high-dimensional artificial experiment also gives evidence about that interaction. For the distribution tested there, the authors observe benefits even at the low values of C. The ordinary penalty therefore does not explain all the variation. Dataset geometry, sample size, and the label changes can affect which examples enter the fit and how costly their influence becomes. The benchmark comparisons show the importance of testing that variation directly.

Stronger attenuation has two effects to track

The comparisons across assumed flip probabilities show how a fit moves as the objective gives less influence to off-diagonal entries. They also reveal two components of the measured effect. One is the correction’s effect on accuracy when no training labels are changed. The other is its effect on the subsequent decline as corruption increases. These components can point in different directions for the same dataset.

In the artificial random-noise experiment, the clean-data behavior makes the comparison straightforward. The authors find that strong correction preserves the clean-training accuracy and improves the results under contamination. On the benchmark datasets, the clean starting point can change appreciably. A more gradual decline from a poor starting point can still leave a corrected learner less accurate across conditions of interest. A strong clean fit followed by a steep decline tells a different story. Reading the whole curve is therefore necessary for understanding the outcome of choosing a particular µ.

The paper’s studies of random and deliberate contamination offer a separate comparison. A common budget permits comparison at similar amounts of training-label corruption. The selected placement of the errors then accounts for the difference between two experimental conditions. The ordinary SVM’s poorer behavior under deliberate selection helps explain why the correction’s advantage stands out there. It also identifies a limit to testing only random noise, which can make an already tolerant baseline appear sufficient.

Taken together, these analyses examine the shape of the objective, the coefficients of an individual fit, and the prediction curves over different settings. The algebra explains why the correction has the opportunity to redistribute weight. The visual example shows that redistribution in a concrete fit. The accuracy experiments show where spreading the training influence helps and where the loss of useful pairwise information can outweigh the benefit.

Limitations

Limits identified by the authors

The authors present the kernel correction as a heuristic. The derivation calculates the expected quadratic matrix under independent label flips of a common probability. That calculation accounts for the form of the correction and its preservation of convexity. The choice to solve the SVM using the resulting matrix is a further step. The paper claims empirical improvements and offers an interpretation of the coefficients. It leaves open whether the fitted rule satisfies an optimality principle for this noise assumption or for any wider class of contamination.

Choosing the assumed flip probability is a practical limitation the authors emphasize. A learner might have clean development data and still face contaminated training labels in a future use. Cross-validation on data drawn in the usual way can measure predictive performance under the conditions represented by those data. It has no direct information about a later change in the process that produces the training labels. Selecting µ solely from ordinary validation accuracy can therefore favor a setting that works well when current labels are trustworthy, without measuring how it will behave when their reliability changes.

The paper suggests a way to express that choice through an explicit preference. A user might accept more correction as long as the estimated clean performance remains adequate. The authors also suggest a validation utility in which accuracy is combined with a term that increases with µ. Such a utility would encode how much the user values prospective robustness. The paper does not establish a rule for setting that value or show that the resulting choice is optimal. The open question is how to evaluate a learner for changes that available validation data may represent poorly.

The authors also leave the regularization interpretation partly unresolved. Their algebra shows how a diagonal term enters the objective, and the visual example shows lower coefficient variance. The paper relates that observation to weaker dependence on individual examples. A more general account would need to explain when the added term produces a stable boundary, when it mainly changes the fit to clean data, and when the resulting tradeoff is unfavorable.

The paper describes its evaluation as preliminary. It motivates the problem with spam filtering and intrusion detection and identifies evaluation in such applications as future work. It also leaves a head-to-head comparison with other SVM formulations designed for label noise to future work. The standard SVM baseline establishes what the proposed change can do relative to the original fitting procedure. The study does not establish how it ranks against other defenses under the same data and evaluation conditions.

Limits apparent in the experimental setup

The noise assumption used to derive the correction and the contamination conditions used for evaluation serve different purposes. Independence and a common probability make the matrix expectation easy to calculate. The deliberate condition can induce dependence among the changed labels. Even the random experiments use a set budget for label changes, while the derivation uses independent indicators. The empirical results show that the correction can transfer beyond the exact assumptions used to derive it. The noise calculation itself gives no worst-case guarantee for those settings.

The deliberate contamination found by the study is based on a heuristic. A reported accuracy under that condition measures the effect of the training sets obtained by that procedure. There may be other assignments within the same budget that produce more damage. The paper’s observation that using corrected fits as a reference produced similar results is useful within its experiment. It leaves open the behavior under a wider set of deliberate choices and the strongest possible contamination under the stated budget.

The data manipulations are deliberately narrow. The underlying feature vectors are held fixed, and the task has two classes. A flip therefore has an unambiguous opposite label. The setup does not cover cases where training features and labels change together, or where several alternative class assignments are available. The authors’ examples and prior-work discussion show why those distinctions matter. The experiments establish behavior for the task they actually vary.

The artificial experiments make the mechanism easier to examine because the class distributions are controlled. The visual example provides direct information about the movement of a boundary in a small feature space. The higher-dimensional simulation provides an accuracy comparison in a problem with a known underlying decision rule. These strengths also limit the scope of the conclusions. The same properties that clarify the mechanism leave out sources of uncertainty that would affect deployed classifiers, including patterns of collection and labeling that vary over time.

The benchmark comparisons broaden the evidence, yet their reported metric is overall test accuracy. It tells the reader how many clean test predictions are right in aggregate. It gives less information about whether the change largely helps one class or whether it concentrates mistakes among particular types of examples. The results are averages across random splits. The paper does not provide uncertainty estimates alongside the curve comparisons that would let a reader assess the precision of individual apparent gains.

Finally, the numerical record differs by experiment. The paper supplies exact data sizes, split proportions, penalty settings, and assumed flip probabilities. It presents the test-accuracy trajectories as plots and describes their main patterns in prose. It also summarizes the RBF findings without displaying those curves. The comparisons therefore support claims about the reported trends and their dependence on settings. A precise effect size for a particular dataset, corruption level, and parameter combination would require the corresponding numerical measurements.

What came after

The paper connects a practical question about unreliable training assignments with a statistical question about how much individual examples influence a fitted rule. Two later works cite it from those different directions. One studies predictions through the influence of training examples. The other addresses label noise through the training loss. Their titles and citation relationship establish these connections. They give no basis for attributing particular experimental findings or extensions of the kernel method to either work.

The prediction-level direction is represented by the 2017 paper Understanding Black-box Predictions via Influence Functions. Its stated subject is how influence functions can help explain black-box predictions. The relationship to Biggio and colleagues’ study comes through their use of influence as a way to think about dependence on training data. The SVM paper uses coefficient patterns and the movement of a boundary to reason about that dependence. An influence-function approach addresses the question from the side of a prediction and the training observations that shape it. The connection is methodological. The later work’s title identifies the instrument and its explanatory purpose, while the citation places the earlier SVM study among the work it draws on.

The loss-based direction is represented by the 2017 paper Robust Loss Functions under Label Noise for Deep Neural Networks. It takes up the same broad problem of learning with wrong training assignments and places the intervention in the loss. That is a different part of training from the pairwise quadratic matrix modified by the SVM paper. It also connects to the earlier label-noise work Biggio and colleagues discuss, where the cost of disagreement with a supplied label is the object of redesign. The stated scope of the later paper carries that question into deep neural networks.

The difference between these directions helps locate the contribution of the SVM study. An analysis of influence asks how training observations shape a particular fitted rule or prediction. A robust loss changes what the learner is rewarded for fitting. The kernel correction intervenes in how a particular learner combines signed relationships between examples. Its place in that sequence of work is a concrete demonstration that the reliability of training labels can be expressed inside a standard SVM objective, with predictive consequences that depend on the strength of the correction and the conditions under which it is tested.

Cite

Cite as Battista Biggio, Blaine A. Nelson and Pavel Laskov. 2011. Support Vector Machines Under Adversarial Label Noise. UNICA IRIS Institutional Research Information System (University of Cagliari).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{biggio2011support,
  title = {{Support Vector Machines Under Adversarial Label Noise}},
  author = {Battista Biggio, Blaine A. Nelson and Pavel Laskov},
  booktitle = {UNICA IRIS Institutional Research Information System (University of Cagliari)},
  year = {2011},
  url = {http://hdl.handle.net/11584/85122}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/biggio-2011-support-vector-machines-under-adversarial/