---
title: "Poisoning Attacks against Support Vector Machines — Biggio 2012"
description: "Biggio and colleagues study how poisoned training data changes support vector machines and raises test error in handwritten digit classification."
canonical: "https://research.elamur.ai/free/en/papers/biggio-2012-poisoning-attacks-against-support-vector/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/biggio-2012-poisoning-attacks-against-support-vector/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2012](https://md.research.elamur.ai/free/en/papers/2012/) / Poisoning Attacks against Support Vector Machines

# Poisoning Attacks against Support Vector Machines

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

**Authors:** Battista Biggio, Blaine A. Nelson and Pavel Laskov · **Year:** 2012 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[Cited by **48** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/biggio-2012-poisoning-attacks-against-support-vector/cited-by/) · arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1206.6389)
- [arXiv 1206.6389](https://arxiv.org/abs/1206.6389)

## Summary

A classifier can make more mistakes because something changed in the data it learned from. Biggio and colleagues examine a deliberate version of this problem in [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/). They study support vector machines, or SVMs, trained on labeled examples. Their question is how much an adversary can degrade classification by adding a specially designed example to the training set. This is a poisoning attack. Its effects can persist after training, when the classifier encounters ordinary inputs. The study assumes an adversary who knows the training algorithm and the training set, can draw representative data, and can specify the label of the added example.

The paper treats this as a question about the sensitivity of a fitted decision rule. An SVM gives some training examples a direct role in its predictions. A change to the training data can affect the contribution of a new example and the contributions of examples that were already present. The authors use the mathematical conditions of an optimal SVM fit to study this response locally. They assess the resulting decision rule using hinge loss, a measure that gives a penalty to wrong answers and to correct answers with too little margin. The analysis applies to both linear and nonlinear SVMs because it expresses the response through the kernel, the function that determines how the SVM compares examples.

In artificial Gaussian data, the authors can visualize how the position of an added example affects validation hinge loss and classification error. They report that the procedure reaches a good local maximum for both kernels they examine. On binary MNIST handwritten digit tasks, they compare deliberate poisoning with the starting condition of a randomly mislabeled example. In the reported example runs, classification error rises from an initial range of 2–5% to 15–20% after the added example is optimized. A separate experiment finds that, on average, classification error grows as more poisoned examples enter the training set. Errors vary substantially across runs.

The experiments establish a vulnerability under a strong set of assumptions. The MNIST test results show that degradation can carry over to data separate from the validation examples. The artificial experiment shows how the relationship between hinge loss and error depends on the decision rule and the region being examined. The paper also identifies practical barriers, including the difficulty of controlling labels assigned by trusted people and of turning a change in a classifier’s numerical input into a corresponding change in a real object.

## Deep dive: Poisoning Attacks against Support Vector Machines

Biggio and colleagues study how poisoned training data changes support vector machines and raises test error in handwritten digit classification. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Changing what the classifier learns

An SVM learns a rule for assigning labels from examples whose labels are already supplied. For a human reader, the distinction between training and prediction is easy to overlook. Both stages can involve the same kind of object, such as a handwritten digit or a message. But an object used for training can affect the rule applied to everything that comes later. An object submitted for prediction ordinarily receives an answer from the rule already in use. The paper is about the former kind of influence.

The authors use a distinction from earlier security research. A causative attack affects the learning process through training data. An exploratory attack exploits the classifier at prediction time. Poisoning is an instance of the causative category in which new examples enter the training collection. An adversary can therefore have a way to affect learning even when the examples already stored in a training database are protected. The distinction is practical because control of what enters a collection and control of what is already inside it can belong to different people.

The paper gives repositories and honeypots as examples of collection mechanisms. A honeypot, in this context, is a resource that attracts activity so the resulting observations can be studied. Collections of malware examples assembled from external activity can provide training material for a detector. The same source of fresh examples creates an opportunity for someone outside the organization to influence the composition of that material. The paper uses those settings to motivate the question of training integrity, then investigates it on artificial data and handwritten digits.

An adversary’s influence over a data source changes how one should interpret a training sample. The paper starts from the assumption that learning algorithms commonly rely on examples coming from a natural or otherwise well-behaved distribution. The authors observe that data in security applications can change over time and can include behavior chosen in response to the system observing it. They use spam to make this point concrete. People sending spam can change their behavior as filters become widely used. A change in a collection of messages can thus reflect decisions made by people who have a stake in the classifier’s performance.

There is a further difference between a naturally difficult training example and an example chosen for its effect on learning. Both can influence a classifier. In the deliberate case, the example is selected with the classifier’s response in mind. That creates the possibility that a small change in the dataset has a large effect on the fitted rule. The number of changed records and the change in prediction quality are different quantities. The question the authors pose is whether the second quantity can be substantial when the first is small.

#### What earlier work supplied

The introduction describes earlier applications of learning to spam, fraud, intrusion, and malicious software detection. These references establish the practical setting for the paper’s concern. A classifier in one of these applications is part of a system whose users or subjects may have reasons to change the inputs it sees. The authors also cite learning methods designed to handle particular types of corrupted data. The rationale for those methods is closely related to the paper’s starting point. A claim that training is reliable depends on the kind of corruption a learner is expected to handle.

The authors describe earlier direct studies of poisoning as work on relatively simple anomaly detection methods. An anomaly detector tries to identify observations that depart from behavior treated as usual. This paper asks the corresponding security question for an SVM that learns to distinguish labeled classes. A collection of observations establishes what is usual in one setting. Labeled examples supply evidence about how to separate categories in the other. Moving the security question to an SVM also introduces a specific mathematical problem. To account for the effect of an added example, the analysis needs to explain how the optimal SVM fit responds to a change in the data.

An earlier paper by Cauwenberghs and Poggio provides that connection. It studies incremental and decremental SVM learning, which is concerned with updating an SVM fit as examples are added or removed. Biggio and colleagues draw on its observation that, under a suitable local condition, the optimum changes smoothly as the underlying problem changes. A smooth response is one that can be described by a derivative within a neighborhood. From a security perspective, this turns an observation about efficient learning into a way to reason about the stability of a decision rule.

The paper also situates its contribution relative to research that formulates manipulations in feature space. A feature is a numerical property the learner uses. The distinction here is between the coordinates available at the classifier’s input and the representation in which a nonlinear kernel defines the classification rule. A nonlinear kernel can correspond to an implicit representation that is unlike the original coordinates. A statement about a change in that implicit representation may have little direct meaning for someone reasoning about images or other objects that enter the learner. The paper’s kernel analysis matters because it lets the authors discuss changes in input coordinates even when the decision rule is nonlinear.

There is another representation issue beyond the one introduced by the kernel. A real object can pass through feature extraction before it reaches the classifier. Pixels supply the learner’s coordinates directly in the handwritten digit experiment. A system that classifies messages may obtain its numerical features through a more complicated mapping. The paper distinguishes the mathematical issue of working in the classifier’s input coordinates from the practical issue of linking those coordinates to an object someone could actually submit. The first is part of its analysis. The second returns as a limitation in the conclusion.

#### The adversary and the outcome

The assumptions specify a deliberately informed adversary. The learning algorithm is known, and the adversary can obtain data from the underlying distribution. The analysis also gives the adversary knowledge of the specific training set. The authors call this last assumption generally unrealistic. They mention a surrogate training collection sampled from the same distribution as something an adversary could use in practice. The experiments establish what happened in the known-training-set case. The suggested surrogate is a separate scenario.

This matters because the decision rule reflects the particular examples seen during training. Two samples drawn from the same distribution can produce different fitted rules, and the training examples that actively constrain the fit can differ. Knowing which rule is being affected gives the adversary in the paper information that knowledge of the general task alone would leave uncertain. The authors frame that knowledge as a way to study a worst-case capability under their assumptions. It does not establish a universal numerical bound on performance loss.

The paper also grants control over the label of an injected example. In a binary problem, the authors call the class named by that label the attacking class and the other class the attacked class. These terms identify the two roles in the experiment. Their use can otherwise invite an incorrect inference about the measurement. The main reported classification errors are measured over the evaluation data for the binary task. The class names alone do not provide error rates restricted to either class.

The outcome of interest is degraded accuracy after training. The paper uses one set of examples to assess the decision rule during its analysis and a separate test split in the MNIST evaluation. This separation matters because a substantial penalty on the validation examples could reflect their particular composition. When test error also rises, the experiment provides evidence that the damage extends beyond those examples. That is the link between the mathematical question about how the SVM changes and the empirical question about whether it makes more wrong predictions.

### The method, step by step

#### How an SVM responds to training data

An SVM assigns a score to an example. The sign of the score determines which of the classes it predicts. The score also has a role during training because the learner favors examples whose scores reach a margin on the correct side of the decision boundary. The boundary is where the score changes sign. A margin gives the training objective a way to prefer a clear separation over a rule that merely places an example on the correct side.

The paper distinguishes training examples by the values of their dual variables. These are coefficients determined by the SVM fit. Examples in the margin support set have coefficients strictly between zero and an upper limit. Their signed scores meet the margin condition exactly. Examples in the error support set have coefficients at the upper limit. The term *error support* refers to their role in the margin conditions, which can include examples that are correctly classified but fall within the margin. Reserve examples have zero coefficients. Their own scores meet the condition for lying beyond the margin in the strict case the authors describe.

```
0 < αᵢ < C
```

Here αᵢ is the dual coefficient associated with training example i, C is the upper limit on that coefficient, and \< denotes a strict inequality. The expression identifies a margin support vector. In the paper’s terminology, a coefficient at C places an example in the error support set, while a coefficient of zero places it in the reserve set.

These categories help explain why the training set has to be considered as a whole. A reserve point has no direct term in the current prediction rule. The existence of that zero coefficient is a property of the current fit. If the data change, a coefficient can move and an example can take on a different role. In the opposite direction, a training example that influences predictions in one fit may lose that influence in another. The categories describe where examples stand relative to the fitted rule at a specific moment.

The kernel supplies the comparisons between pairs of examples. In the linear case, the comparison is a dot product of their input coordinates. The paper also considers a radial basis function, called an RBF kernel, which compares points using their distance. It discusses a polynomial kernel in the mathematical analysis. For the training conditions, the authors use a matrix that incorporates the class labels into the pairwise kernel values.

```
Qᵢⱼ = yᵢ yⱼ Kᵢⱼ
```

Here Qᵢⱼ is the label-weighted kernel entry for examples i and j. The symbols yᵢ and yⱼ are the labels of those examples, and Kᵢⱼ is their kernel value. Juxtaposition denotes multiplication. The indices identify which pair of examples supplies a particular entry in the matrix.

An added training example can affect predictions in two ways. It can contribute directly through its own coefficient and kernel comparisons. Its presence can also change the fitted coefficients of other examples and the bias, the offset in the decision score. This second effect is central to the paper. It is possible to think of an addition as adding one term to a sum. That description would miss the changes in the other terms that follow when the SVM is fitted again.

#### Why use a separate validation set?

The authors use distinct data for fitting the classifier and assessing the effect of the added example. The training set determines which SVM is fitted. The validation set supplies examples on which that fitted rule is scored. This setup makes it possible to ask how a change in one collection affects predictions on another. In the digit experiment, the MNIST test split gives the authors a further assessment on data separate from both.

The validation objective uses hinge loss. This loss starts from a signed score, obtained by multiplying the prediction score by the example’s correct label. That product is positive when the sign agrees with the correct class and negative when it disagrees. An example with a signed score that meets the required margin contributes no hinge loss. An example inside the margin contributes a penalty according to how far its signed score falls short. As a consequence, a correct prediction can contribute a positive penalty.

```
ℓ = max(0, 1 − y f(x))
```

Here ℓ is the hinge loss for the example with input x and correct label y. The expression f(x) is the SVM score at x, and y f(x) is its signed score. The constant 1 is the margin target used in the loss. The minus sign subtracts the signed score from the target. The function max returns the greater of zero and that shortfall.

Summing those penalties gives a validation criterion sensitive to changes in the scores before every such change produces a new classification mistake. Imagine a validation example whose score begins on the correct side of the boundary and then moves towards it. Its classification outcome can stay the same during that movement. Once its signed score falls below the margin target, its hinge loss records the movement. The criterion can also respond to worsening scores on examples that were already wrong, even though their contribution to the count of mistakes stays fixed.

The distinction between the loss and the mistake count shapes the whole evaluation. Classification error is the proportion of incorrect predictions on a split. Hinge loss measures the size of margin shortfalls. A change in which examples receive positive hinge loss can occur without a change in the set of examples misclassified. Likewise, two fitted rules that misclassify the same examples can incur different hinge losses. The paper compares the two measures on the artificial data to show how closely their patterns align in that setting.

#### What the local analysis can establish

The mathematical argument uses conditions that characterize an optimal SVM fit. These are the Karush–Kuhn–Tucker conditions, abbreviated KKT. The relevant conditions connect the signed score of each training example to the category of its coefficient. A margin support vector must remain on the margin while it belongs to that category. There is also a constraint requiring the sum of the training coefficients weighted by their labels to be zero. These are joint requirements on the coefficients and bias. A change in the data has to be considered together with the changes in the fit that keep those requirements satisfied.

The local qualification does substantial work. Within a neighborhood where the support and reserve categories stay fixed, the equalities give the authors a way to study how the fit changes. A transition from one category to another changes the constraints relevant to that analysis. For instance, the equality that keeps a margin support vector on the margin belongs to its current role. Once it reaches the upper coefficient limit and takes on a different role, the same local calculation has a different set of unknowns. Smooth behavior in a neighborhood is therefore compatible with complicated behavior over a wider region.

The authors study the indirect response of the fitted weights and bias alongside the direct contribution from the changed input. Both responses appear in the validation scores. This is the paper’s mathematical bridge between a change in the training collection and a change in the behavior of a classifier on separate examples. Because the bridge uses pairwise kernel values, it applies when the kernel defines a nonlinear rule in the original coordinates. It also explains why a nonlinear kernel can change the shape of the response across different locations in the input space.

The authors describe the search at a high level as gradient ascent on the validation criterion. Gradient ascent uses local information about the direction in which a score increases. In this paper, the score is evaluated after accounting for the fitted SVM. The surface being studied therefore depends on the training problem as well as on the validation data. A location with a higher validation loss can lead to a different SVM fit, and the next neighborhood can have different support vectors. The procedure gives an empirical way to explore this surface, with the local character of its information limiting what it says about the surface as a whole.

How the study evaluates SVM sensitivity The steps in order.

The artificial experiment supplies a way to inspect the local analysis in a setting where the effects can be drawn on a plane. The digit experiment supplies a setting where the original coordinates have a visual interpretation and held-out classification can be measured. These are complementary uses of the method. In the artificial case, the reader can see the relationship between position, loss, and error. In MNIST, the reader can see whether validation sensitivity is accompanied by degraded test performance.

### Experiments and results

#### What the experiments measure

The evaluation moves from artificial data to handwritten digits. In the artificial experiment, each example has a location in a plane. That lets the authors show how the losses resulting from separate fitted classifiers vary with the location of an added example. In the handwritten digit experiment, each example has many pixel coordinates, so the authors use images and error curves to describe the behavior. Those two presentations address different questions. The plane helps explain the relationship between a search criterion and its surroundings. The digit results quantify what happened to predictive performance in the runs the paper reports.

The paper uses classification error in both settings and also shows validation hinge loss in the artificial experiment. The baseline depends on the comparison. The artificial plots display the fit obtained from clean training data as a reference, alongside surfaces that describe the effect of an addition. The single-addition digit experiment uses its first iteration as a baseline with a randomly mislabeled example. The paper’s principal before-and-after error ranges for those runs belong to that experimental comparison. They should be read with the starting condition in view.

#### Artificial Gaussian classes

The artificial experiment samples from two Gaussian distributions. A Gaussian here describes a cloud of points centered around a mean, with a covariance matrix specifying the spread. The negative class has mean coordinates written as `[-1.5, 0]`, while the positive class has mean coordinates written as `[1.5, 0]`. Both have covariance `0.6 I`, where `I` is the identity matrix. The two classes therefore have the same specified spread, with means separated along the horizontal coordinate.

The training split contains 25 points per class and the validation split contains 500 points per class. Both are drawn from the specified distributions. The authors compare a linear SVM and an RBF SVM. The regularization parameter C is 1 for both fits. The RBF parameter γ, which governs the dependence of the kernel on distance, is 0.5. The same underlying experimental setup lets the reader see how kernel choice is associated with a different shape of the response.

A point on a loss plot represents a hypothetical location of the added training example. Its color summarizes how the classifier fitted with that addition performs on the validation data. The colors do not describe the label predicted for an ordinary observation placed at that location. They summarize an entire evaluation of the refitted classifier. That distinction is important because the axes show where a training change is made, whereas the evaluation concerns other examples.

For each kernel, the paper places a hinge-loss plot beside a classification-error plot. The authors can then inspect whether an area with large validation penalties also corresponds to an area where many predictions are wrong. They show the clean decision boundary and margins as visual reference points. These help orient the reader relative to the original classes and show that the response surfaces describe an effect on a previously fitted classification problem.

For the linear SVM, the reported endpoint lies at a corner of the region permitted in the experiment. The authors describe the relevant loss surface as unbounded without a restriction on the added input. In this case the location of the endpoint has to be interpreted in light of the constraint. It marks a solution reached within the allowed region. It is evidence of the shape of the loss under the chosen setup, and its position at the corner reflects the domain over which the search was allowed to proceed.

The RBF plot gives a different picture. The procedure reaches a local maximum of hinge loss, and the authors report that its location also gives the largest classification error within the area they examine. The agreement is between those particular quantities on the displayed region for that experiment. It supports the choice of hinge loss as a stand-in for error in the example. Because the two metrics capture different things about the score, the agreement on that region remains an empirical observation.

The artificial data accordingly give meaning to the term *local maximum*. The paper can show where a trajectory ends relative to other locations in the same plot. For the RBF case, it can also compare that endpoint against the largest classification error observed in the displayed area. The visual comparison is more informative about the shape of the problem than an isolated value of final loss would be. It helps the reader distinguish a place where a local search has settled from the question of how good that location is across a wider domain.

#### MNIST handwritten digits

The real-data experiment uses MNIST. The authors study binary classifiers for `7` versus `1`, `9` versus `8`, and `4` versus `0`. These pairs define distinct prediction problems. An error on one pair is a decision between the two labels in that pair. The experimental design therefore keeps the interpretation of a mistake tied to the particular task, even when the paper describes a range of errors across its example runs.

Each digit is used as a grayscale image with `28 × 28` pixels. The pixels are read in raster order, which means scanning across the image in order by row. Their intensities are the 784 features of the classifier’s input. The authors divide each intensity value by 255 to scale it into the stated input interval. The resulting representation makes the numerical inputs interpretable as pixels. When the paper displays an added example, the reader can relate the values the SVM sees to marks in an image.

The paper uses a linear kernel for these digit tasks and sets C to 1. It samples 100 examples for training and 500 for validation, and retains the established MNIST test split for the relevant digits. The authors describe the test data as containing about 2000 samples per digit, with the amount varying by digit. The 100 and 500 figures describe the sampled training and validation collections, respectively. In the artificial experiment the split sizes are explicitly given per class. Keeping the two sampling descriptions distinct prevents a mistaken comparison of the sizes of the experiments.

The paper shows an initial and a final image for each pair. In the `7` versus `1` example, the authors note that the lower stroke of the `7` becomes straighter. In the `9` versus `8` example, they describe a rounding of the bottom of the `9`. In the `4` versus `0` example, they describe added rounded marks around the outline of the `4`. Their interpretation is that the changes give each image some visual character of the class used as its label. The images make that interpretation accessible. They do not measure how frequently people would choose either label for the changed image.

The authors report that, in the illustrated single-addition runs, classification error moves from 2–5% initially to 15–20% after the deliberate training change is refined. These are ranges given for example runs on the binary MNIST tasks. The initial condition already includes a randomly mislabeled example, which is why the comparison speaks directly to the extra effect observed after refinement. The paper shows separate validation and testing curves. The range in its prose describes classification error across the examples, and it does not give a separate written endpoint for each curve and each digit pair.

Reported initial and final classification-error range endpoints for the MNIST example runs The reported final error range lies above the initial range.

**The numbers**

| System or setting | classification error % |
| --- | --- |
| Initial range, lower endpoint | 2 |
| Initial range, upper endpoint | 5 |
| Final range, lower endpoint | 15 |
| Final range, upper endpoint (this paper) | 20 |

The chart shows boundaries of the ranges the authors write in the prose. Its rows represent endpoints of those ranges, so they cannot be matched to individual digit pairs or read as four independent trials. The star identifies the upper endpoint of the error range under the paper’s deliberate poisoning condition. For a classifier, lower error is preferable. In the study, higher error is evidence that the training change had a larger harmful effect.

The distinction between the curves matters because the validation data help define what the authors look for, while the test data indicate whether the harmful effect carries to other examples. The paper reports that validation error generally overestimates classification error and attributes this to the smaller validation sample. The separate test curves provide evidence of an increase on held-out data in the displayed runs. They also make visible why the precise effect is better judged from the test split than inferred directly from the validation criterion.

#### More than one added example

The authors also repeat the experiment with multiple additions. They inject additional examples into the same class and repeat the evaluation with randomly selected training and validation data. The split sizes remain 100 training samples and 500 validation samples. The plots present average validation and test classification error against the proportion of the training collection made up of poisoned examples, separately for each digit pair.

The averages show a steady increase in error as the contamination proportion increases. That pattern extends the evidence beyond any one illustrated starting image or sampled training collection. The authors also report substantial variance. They suggest that the relatively small training and validation collections help explain it. The trend therefore describes an average pattern over the runs they performed, with noticeable dependence on which examples were drawn.

The single-addition and multiple-addition results answer related but different questions. The example runs establish that one added point can have a large effect under the paper’s conditions. The repeated experiment asks whether the effect remains apparent when the training and validation sets vary and when the amount of contamination changes. Its rising curves support that broader empirical observation. The paper gives the direction of the pattern in prose, with the detailed dose-by-dose errors presented visually.

### What the ablations show

The paper presents no formal component ablation, but its comparisons examine kernel choice, the relationship between hinge loss and error, random mislabeling as a baseline, and the effect of increasing contamination.

#### Hinge loss and classification error

The side-by-side artificial plots address a basic question about the choice of validation criterion. Hinge loss responds to the signed scores, while classification error records changes in which side of the boundary a prediction falls. A useful comparison therefore asks whether a high-loss part of the surface is also a part where prediction errors accumulate. The RBF example gives a particularly clear instance of agreement in the area examined. The reported endpoint has high hinge loss and coincides with the area’s largest error.

This comparison is informative even though the two metrics are evaluated on the same validation collection there. It addresses whether one measure acts as a guide to the other within a particular problem. The separate MNIST test results address a different question, whether damage seen in the validation assessment carries to other examples. A reader can accept that hinge loss and classification error line up in the artificial case while still asking how much validation error overstates test error on the digit tasks. Each comparison has its own evidentiary role.

The linear case also shows why the magnitude or shape of hinge loss needs to be interpreted carefully. A margin shortfall can keep growing as confidence in a wrong prediction increases. Classification error counts a wrong prediction once for the example in question. Consequently, an unbounded loss surface and a bounded percentage of wrong predictions are compatible. The paper’s discussion of the linear endpoint concerns the geometry of the loss and the imposed bound on feasible inputs.

#### Kernel choice and the shape of the response

The artificial kernel comparison keeps the kind of data and the regularization setting in common while changing how the SVM compares examples. Under the linear kernel the search ends at the edge of the allowed region. Under the RBF kernel the authors identify a local maximum associated with the largest classification error in the area shown. The comparison establishes that the loss landscape can look different under different kernels while still permitting harmful training sensitivity in both examples.

This is a comparison of behavior under the paper’s settings. A claim that either kernel is generally safer would need evidence over comparable feasible regions, other parameter values, and more problems. The point of the artificial experiment is narrower. It makes clear that the geometry governing the learning problem helps determine where a large deterioration can occur. The paper’s MNIST experiment uses a linear kernel, so the evidence for kernel differences comes from the artificial comparison.

#### The role of random mislabeling

The initial MNIST condition is the paper’s direct comparison with a randomly mislabeled addition. A random label error can already affect classification. Using it as the starting point makes it possible to ask whether tailoring the added example produces further damage against the same underlying task. In the illustrated runs, the reported final error range is above the reported initial range.

The paired comparison is stronger for this purpose than setting the error of one arbitrary clean fit beside the error of an unrelated poisoned fit. The latter comparison could mix the effects of the training sample with the effects of the addition. In the plots, the first iteration and later results belong to the same run. This gives the reader a meaningful reference for interpreting the later error. The evidence is strongest for the example runs themselves, since those plots are presented as illustrations and the written error ranges do not summarize all possible random mislabelings.

The images add an explanation at the level of individual examples. The changed images exhibit some features the authors associate with their assigned class, and the associated fitted classifiers produce more errors. This comparison links a visible input change to a measured outcome in a run. The experiment does not isolate individual strokes or pixels, so it cannot determine which visual feature accounts for the measured increase.

#### Contamination and variation across samples

In the multiple-addition experiment, the proportion of poisoned training examples is the varying condition. The upward average trend gives evidence that the effect can accumulate when the experiment is repeated with more additions. Using new training and validation samples across runs also reveals variation that a single trajectory would hide. The finding includes both a direction in the average and a warning about the precision with which one run represents another.

The comparison is between contamination levels under the paper’s sequential approach. A larger effect at a larger contamination proportion says something about that approach and those tasks. It says little about which examples interact most strongly with one another or about whether a different collection of examples could produce a similar effect at a different contamination level. The authors identify those questions about choosing and treating examples jointly as work for the future.

### Limitations

#### Limits the authors state

The authors recognize that exact knowledge of the learner’s training set is a strong assumption. Their analysis studies an informed adversary with access to details that would often be unavailable in practice. They suggest that a surrogate collection from the same distribution might be used where the actual collection is unknown. The paper’s empirical findings concern the setup with the training set known. A surrogate could give a different picture because the points that constrain its fitted SVM may differ from the ones that constrain the learner’s fit.

The assumption about labels is another practical limitation identified by the authors. In their setup, the injected example carries the chosen label. They contrast that setup with a spam filter in which people supply the training labels. An outsider may be able to send a message, while the user who sees it decides what label it receives. In that case, the label observed by the training system is a consequence of someone else’s judgment. The authors identify this as an additional constraint on the kind of input that can produce the effect they study.

The distinction also explains why the digit illustrations cannot settle the label-control question. An image in the experiment has an assigned label by design. Similarity to another digit is an interpretation the authors offer when viewing the changes. It gives the reader a visual account of what happened to the input. A study of trusted human labeling would need to observe how people label such an image and how their decisions enter the training collection. The experiment holds the label fixed so those questions lie outside its measurement.

The authors also acknowledge a constraint on the numerical analysis. The local sensitivity argument depends on the current support-vector categories. Its validity over a finite move requires care because a point can change category as the fit changes. The authors describe restrictions on the size of the local changes as a cost of their approach and identify more accurate, efficient treatment of the relevant neighborhood as future work. This limit concerns the scope of the mathematical information used at each stage.

A separate limit concerns finding a good configuration of several additions. The paper reports a sequential multiple-addition experiment. The authors distinguish this from treating the added examples together and from selecting the best collection of starting examples. Both issues matter because the influence of one example is defined relative to the other data in the fit. An example’s contribution after earlier additions may differ from its contribution when evaluated alone. The repeated experiments show the behavior of the sequential approach under the stated conditions.

The authors’ final practical concern is the inverse feature-mapping problem. The numerical coordinates available to an SVM may come from operations on an object such as a message. A change that has meaning in those coordinates need not correspond to a simple change in the underlying object. Handwritten digit images provide a favorable case for interpretation because the paper uses the pixel values directly. The authors describe settings with more complicated operations and normalizations, where realizing a change in the learner’s input would require a separate connection to the original data.

These limitations apply at different stages of the argument. Knowing the actual training set matters for predicting the response of a particular fit. Label control matters for determining what enters supervised training. The local constraint matters for describing how the fit changes. Feature mapping matters for linking the numerical analysis to data that can exist in the application. The paper’s experiments bring these issues together under a particular set of conditions, while its conclusion treats them as separate open questions.

#### Limits visible in the experiments

The authors use the artificial plane to make the loss landscape visible. This advantage comes from the simplicity of the Gaussian construction. The experiment gives a controlled view of two classes with a common covariance, and the figure covers a specified area of their input plane. The evidence for a maximum is therefore tied to the plotted area and the relevant feasible region. A claim about a global maximum would require a result over the whole domain. The paper’s description of a good local maximum is consistent with the reach of the experiment.

The linear case makes the dependence on the feasible domain especially clear. The observed endpoint is at a corner, so the bound on the domain participates in defining the result. Changing the domain could alter the location of such an endpoint. In the RBF example, agreement between a high hinge loss and the largest error in the plotted area is evidence about that comparison under those settings. A different sample can change the rule being evaluated and the location of costly changes.

The MNIST experiment has a different scope. It studies specified binary tasks with a linear SVM and a sampled training collection. The full digit recognition problem would require decisions among more classes. The paper does not measure what happens in such a setting. Similarly, its quantitative digit findings cannot establish the same error rates for nonlinear kernels on MNIST. The visual artificial comparison and the numerical digit experiment supply different parts of the evidence.

The reported size of the effect deserves care. The 2–5% and 15–20% ranges come from exemplary runs. They express the scale of a demonstrated change under the paper’s assumptions. They do not give a mean effect over the single-addition runs, a probability of reaching a given error, or a separate estimate for each pair on each split. The multiple-run experiment helps address sensitivity to the sampled data but answers its own question about a sequence of contamination levels. It is accompanied by substantial spread, which remains part of the empirical result.

There is also a distinction between aggregate and class-specific error. The terms *attacking class* and *attacked class* could lead a reader to expect a separate accounting of what happens to each class. The reported classification-error ranges and trends concern the binary prediction tasks as evaluated. Without a class-by-class breakdown, one cannot determine how much of the overall increase comes from errors on the attacked class or how the other class fares. The paper’s claim of a harmful effect on classification is supported at the aggregate level it measures.

Finally, the paper motivates its work with security applications and performs its measurements on Gaussian classes and digit images. A security deployment may differ in who supplies labels, how inputs become features, and how much the learner knows about the origin of examples. Those differences affect whether the conditions of the experiment hold. The evidence establishes that an SVM can be sensitive to deliberate additions during training and that the resulting increase in error can persist on held-out data. The magnitude observed is a result of the specific evaluation.

### What came after

The later papers that cite the SVM study bring the question of training-data influence into several settings. The titles establish the scope of those connections. They support a distinction between work concerned with tracing the effect of training examples, work concerned with who participates in training, and work concerned with what data or knowledge a system receives. A citation establishes a relationship to the earlier study. An account of exactly which part of its method a later paper adopted requires evidence about that paper’s treatment of the citation.

A close conceptual connection is the use of influence to understand a prediction. Biggio and colleagues ask how a fitted classifier and its errors respond to a change in the training collection. A study of prediction through influence functions asks how to explain a prediction by examining the effect of its training examples. The purposes differ, but both make the link between the fitting process and subsequent decisions part of the object of study. The later work addresses the explanatory side of that question in [Understanding Black-box Predictions via Influence Functions](https://md.research.elamur.ai/free/en/papers/koh-2017-understanding-black-box-predictions-influence/).

A related line concerns the deliberate design of a training collection. In the SVM paper, the deliberate change is judged by its harmful effect on classification. The question of dataset distillation instead concerns what can be retained in a condensed training collection. The conceptual link is the use of downstream learning as the test of a data choice. A small collection can be considered in terms of the rule it produces, which is the perspective connecting the SVM study to [Dataset Distillation](https://md.research.elamur.ai/free/en/papers/wang-2018-dataset-distillation/).

Federated learning puts training participation at the center of the security question. The original SVM paper describes a learner receiving examples through a channel that an adversary may be able to influence. A federated learning setting brings a different question into view, the effect of potentially adversarial participation in learning. Among the later papers, that question is explicitly the subject of [Analyzing Federated Learning through an Adversarial Lens](https://md.research.elamur.ai/free/en/papers/bhagoji-2019-analyzing-federated-learning-through-adversarial/).

Other citing works on federated learning treat the area at a wider scope. A broad survey of advances and open problems situates security questions among the challenges that arise when training has multiple contributors. The SVM paper supplies an early example of why access to the learning process matters for the classifier that is ultimately fitted. The broader subject is addressed in [Advances and Open Problems in Federated Learning](https://md.research.elamur.ai/free/en/papers/kairouz-2020-advances-open-problems-federated-learning/).

The privacy survey cited in the same area has a different stated focus. The SVM study asks about integrity, in the sense of whether someone can distort a learned decision rule. A survey of privacy preservation asks about protection of information involved in learning. The connection is that the terms under which data contribute to training have consequences for more than one property of the system. The privacy question is the stated subject of [Privacy Preservation in Federated Learning: An insightful survey from the GDPR Perspective](https://md.research.elamur.ai/free/en/papers/truong-2020-privacy-preservation-federated-learning-insightful/).

Another citing paper changes the source of the training data in a different way. The SVM study gives a deliberate adversary a role in the composition of a training set. A study of training repeatedly on generated data takes up a feedback process in which the source of later training data changes. The connection concerns the reliance of learning on the origin and composition of the examples it receives. The later paper’s title identifies forgetting as the effect of interest in [The Curse of Recursion: Training on Generated Data Makes Models Forget](https://md.research.elamur.ai/free/en/papers/shumailov-2023-curse-recursion-training-generated-data/).

The citation also reaches work on corrupting retrieved knowledge. In the SVM paper, the changed input enters during training and affects the fitted decision rule. In retrieval-augmented generation, the name signals an additional source of information consulted as part of producing an answer. The later work addresses corruption of that knowledge source. The point of connection is the effect of influencing one of the inputs on which a system relies, with the intervention situated at the knowledge source in [PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models](https://md.research.elamur.ai/free/en/papers/zou-2024-poisonedrag-knowledge-corruption-attacks-retrieval/).

## Cite

Cite as Battista Biggio, Blaine A. Nelson and Pavel Laskov. 2012. Poisoning Attacks against Support Vector Machines. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1206.6389](https://doi.org/10.48550/arxiv.1206.6389) · [arXiv 1206.6389](https://arxiv.org/abs/1206.6389)

```bibtex
@misc{biggio2012poisoning,
  title = {{Poisoning Attacks against Support Vector Machines}},
  author = {Battista Biggio, Blaine A. Nelson and Pavel Laskov},
  year = {2012},
  doi = {10.48550/arxiv.1206.6389},
  eprint = {1206.6389},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1206.6389}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
