Skip to content

Empirical evaluation of data poisoning attacks in supervised learning: label flipping vs. backdoor poisoning on MNIST and Fashion-MNISTEmpirical Evaluation of Data Poisoning Attacks in Supervised Learning

arXiv: Adversarial Attacks, Backdoors & Poisoning· arXiv:2609.10952· Toshif Khan, Muhammad Abusaqer·Indexed by this site · 2026-10-01· Originally publishedAttacks

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors report on MNIST and Fashion-MNIST: backdoor ASR across the three models is 0.9667–1.0000, and label flipping lowers linear models more.

Threat modelPoisoning during training: label flipping reduces overall quality, backdoor causes triggered samples to be classified into the target class. The paper does not state whether the attacker knows the model parameters, and does not use white-box or black-box. Only 5%, 10%, or 20% of the training set is modified: either labels are changed to wrong ones, or a trigger is added and changed to class 0. Data are MNIST and Fashion-MNIST. Metrics include clean accuracy and ASR.

Questions
Supervised training relies on trusted training data, but poisoning during training can break decision boundaries or implant attacker-specified behavior. The authors want to compare indiscriminate label flipping and targeted backdoors under the same protocol, to see what is missed by only reporting clean test metrics.
Methods
On MNIST and Fashion-MNIST, trained with Logistic Regression, Linear SVM, Random Forest. Label flipping randomly changes labels to wrong ones; backdoor adds a trigger and changes to class 0. Proportions 5%, 10%, 20%, only the training set is modified, backdoor uses ASR.
Experiments and results
Label flipping causes larger drops in clean accuracy and macro-F1 for the two linear models, while Random Forest shows smaller drops. ASR is 0.9667–1.0000 under all backdoor conditions, and clean accuracy is mostly close to baseline. The authors state that only doing clean testing would miss backdoors.
Limitations and future work
The discussion states the experiments are a compact benchmark: classical classifiers, a simple visible trigger, and moderate poisoning rates (Section 5). Future directions include other poisoning types, deep models, defense trade-offs, and more realistic data and threat models (Section 6). Coverage includes two datasets, three models, two attacks, and 5%, 10%, 20%; repetitions and defense results are not reported.
Experimental setupLogistic Regression、Linear SVM et al. · MNIST、Fashion-MNIST · accuracy、macro-precision et al.
Evaluated models
Logistic RegressionLinear SVMRandom Forest
Benchmarks
MNISTFashion-MNIST
Metrics
accuracymacro-precisionmacro-recallmacro-F1attack success rate (ASR)
AI summaryThe study evaluated label flipping and backdoor poisoning, two types of training-time attacks, on MNIST and Fashion-MNIST, comparing three baseline classifiers—Logistic Regression, Linear SVM, and Random Forest—with poisoning rates set to 5%, 10%, and 20%. Label flipping caused noticeable performance degradation, with Logistic Regression and Linear SVM most affected and Random Forest relatively stable; backdoor poisoning achieved attack success rates of 0.9667 to 1.0000 across all datasets and models, and clean test performance often remained close to baseline. The results indicate that indiscriminate poisoning is reflected in standard metrics, while targeted backdoor poisoning is more stealthy and requires safety-oriented evaluation methods.

The study evaluated label flipping and backdoor poisoning, two types of training-time attacks, on MNIST and Fashion-MNIST, comparing three baseline classifiers—Logistic Regression, Linear SVM, and Random Forest—with poisoning rates set to 5%, 10%, and 20%. Label flipping caused noticeable performance degradation, with Logistic Regression and Linear SVM most affected and Random Forest relatively stable; backdoor poisoning achieved attack success rates of 0.9667 to 1.0000 across all datasets and models, and clean test performance often remained close to baseline. The results indicate that indiscriminate poisoning is reflected in standard metrics, while targeted backdoor poisoning is more stealthy and requires safety-oriented evaluation methods.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    To see, under the same protocol, the different effects of indiscriminate label flipping and targeted backdoors on classical classifiers.

    Under the same protocol, how do indiscriminate label flipping and targeted backdoor poisoning change the clean test performance and attack success rate of classical classifiers.

    • Why it matters: The authors argue that machine learning is increasingly used in safety-sensitive decisions, and its effectiveness depends on the trustworthiness of training data. If an adversary alters the training set, the model may learn corrupted decision boundaries, predict worse, or exhibit attacker-specified behavior at inference time.
    • Two threat types: Label flipping changes selected training samples to incorrect labels, used to degrade overall quality. Backdoors induce incorrect outputs when a trigger appears. The authors treat the former as indiscriminate degradation and the latter as a targeted threat that may preserve clean accuracy.
    • Existing gap: The authors state that poisoning research has expanded to deep learning, federated learning, and large language models, so reproducible empirical baselines are even more needed. The authors compare attack behavior, not new algorithms.
    • This paper's content: On MNIST and Fashion-MNIST, using Logistic Regression, Linear SVM, and Random Forest, they compare two poisoning types at 5%, 10%, and 20%. Metrics include clean test accuracy, macro-precision, macro-recall, macro-F1, and ASR for backdoors. The authors list three points: a unified comparison of the two poisoning types, differences across datasets and models, and reproducible baselines for students and practitioners.
    • Threat model:
      • Goal: Label flipping lowers overall prediction quality; backdoors classify inputs into an attacker-chosen class when the trigger appears and may maintain relatively strong clean performance.
      • Knowledge: The paper does not state whether the attacker knows model parameters or architecture, nor does it use white-box or black-box.
      • Capability: Only modifies 5%, 10%, or 20% of training samples. Label flipping uniformly and randomly changes labels to incorrect ones without altering images. Backdoors randomly sample non-target samples, add the trigger, and change labels to a fixed target class. The clean test set is not modified.
      • Victim system and evaluation: The victims are the three supervised classifiers above. Label flipping is assessed via clean test metrics; ASR is the proportion of non-target test samples that, after adding the trigger, are predicted as the target class.
  2. What related research exists?

    The poisoning literature covers classical classifiers, backdoor benchmarks, and large language models; the authors position this paper as a small reproducible comparison.

    The poisoning literature is divided by the paper into indiscriminate degradation, targeted backdoors, and settings beyond fixed batches. Based on this, the authors write that clean accuracy may mask backdoors, and that beyond deep models and large language models, small reproducible comparisons are still needed.

    Classification and surveys

    • NIST (Vassilev et al., 2024): lists poisoning as a training-time attack, with the goal of using manipulated training data to corrupt the learned model.
    • Cinà et al. (2023), Zhao et al. (2025): surveys cover targeted attacks, backdoors, optimization-based poisoning, federated settings, and contamination in deep learning and large language models. The paper states that Zhao et al. emphasize attack classification, scalable attack construction, and new threat surfaces.

    Classical classifiers

    • Biggio et al. (2012): poison support vector machines with carefully crafted training points to increase test error. The paper states this is one of the foundational formulations for supervised classifiers.
    • Yerlikaya and Bahtiyar (2022): study random and distance-based label flipping on SVM, Logistic Regression, and Random Forest. The paper states this is directly relevant because simpler strategies can also degrade performance in classical settings.

    Backdoor evaluation

    • BadNets (Gu et al., 2017): models poisoned during training can behave normally on clean inputs while misclassifying triggered inputs with high reliability.
    • Schwarzschild et al. (2021): provide a unified benchmark for backdoors and targeted poisoning, and show that effectiveness varies with training protocol, architecture, and dataset. The paper states that ASR should therefore be used, not just clean test accuracy.

    Online learning and language models

    • Zhang et al. (2020): formulate online poisoning as sequential decision-making, extending poisoning research beyond fixed batches.

    • Bowen et al. (2025): examine scaling trends in large language model poisoning. The paper reports their finding that in some settings, larger models may be easily induced into harmful behavior with relatively small poisoning proportions.

    • Baselines and benchmarks: the controls are unpoisoned Logistic Regression, Linear SVM, and Random Forest on the same subsets; datasets are MNIST and Fashion-MNIST. Attacks are random label flipping and trigger backdoors along the BadNets framework, with poisoning rates of 5%, 10%, and 20%.

    The authors' positioning is written at the end of Section 2: attacks can be indiscriminate poisoning that lowers overall accuracy, or targeted backdoors that implant trigger behavior; clean accuracy alone may hide a successful backdoor. Recent work mostly focuses on deep architectures, complex optimization, or large language models, and the authors argue that teaching and applications still need concise experiments on the same protocol, standard benchmarks, and classical interpretable models. This paper corresponds to that comparison.

  3. How does the paper address this problem?

    Rather than proposing new algorithms, they retrain three classical classifiers with random label flipping and a trigger backdoor with a fixed target class.

    The overall approach is a controlled comparison: no new poisoning algorithm or defense is proposed; only, under the same protocol, how label flipping and backdoor poisoning change supervised image classification is examined.

    Problem setup

    • Empirical scope: The paper examines two representative training-time attacks. Label flipping represents indiscriminate poisoning, and backdoors represent targeted poisoning. The comparison axes are dataset, poisoning rate, and baseline classifier.
    • Retraining: For each dataset and model, a clean model is first obtained on the unmodified training set, then retrained separately for each poisoning condition.
    • Data boundary: Only the training set is poisoned. Standard metrics use the clean test set as is.

    Data and classifiers

    • Image data: MNIST comes from LeCun et al.'s handwritten digit benchmark. Fashion-MNIST is used as a harder alternative with the same image size, train–test structure, and number of classes. Both are 28×28 grayscale, 10 classes, read via scikit-learn and OpenML.
    • Subset and preprocessing: To balance computational cost and class balance, stratified sampling is done with random seed 42. Each dataset has 8,000 training and 2,000 test images. Pixels are scaled to [0, 1] and then flattened into 784-dimensional vectors. Additional fixed random seeds are used throughout, but the paper does not state their values.
    • Three classifiers: Logistic Regression and Linear SVM include feature standardization. The former uses the saga solver with up to 300 iterations; Linear SVM uses up to 5,000 iterations; Random Forest has 100 trees. Implementations use scikit-learn. The authors' rationale is that the models are mature, facilitate transparent comparison, and align with the second author's recent multi-model comparison style.

    Label flipping

    • Rates and sampling: 5%, 10%, 20%. Samples are drawn uniformly at random from the training set at those rates.
    • Modification: The true label is replaced with a randomly chosen incorrect label; the image is unchanged.
    • Intent: To observe how quickly clean test performance degrades as the proportion of incorrect labels increases. The paper maps this to lowering the classifier by corrupting supervision.

    Backdoor poisoning

    • Setup: Follows the general BadNets framework, using what the authors call a simple, transparent trigger attachment. The target class is class 0 in all experiments.
    • Training poisoning: A corresponding proportion of training samples from non-target classes is randomly drawn, the visible trigger is attached, and labels are changed to class 0, creating a spurious association between the trigger and the target label.
    • Trigger: A 3×3 white square in the lower-right corner of the image. In Section 5, the authors call this trigger simple and visible.
    • Targeted testing: The same trigger is applied to test samples whose true class is not the target class. The goal is to see whether the model can learn the trigger-to-target-class mapping while clean accuracy remains relatively high.

    Metrics and implementation

    • Clean test: accuracy, macro-precision, macro-recall, macro-F1. The authors state these are used to view multi-class prediction quality in a balanced way.
    • ASR: On test samples whose true class is not the target class, the trigger is added, and the proportion predicted as the target class is computed. The authors state this metric separately reflects whether the backdoor goal is learned and is not replaced by clean accuracy.
    • Software: Python, with NumPy, pandas, matplotlib, scikit-learn. Experiment notes save summary tables and figures. The paper does not report multi-seed repetitions.
    • No defenses: Section 3.7 states that, because the paper's scope focuses on attack impact, the design emphasizes consistent comparison of attack type, poisoning rate, dataset, and classifier.
  4. What experiments did the paper conduct?

    Label flipping decreases linear models more, and ASR across all backdoor conditions in Table 3 is 0.9667 to 1.0000.

    Experimental setup

    • Models: Logistic Regression (saga, up to 300 iterations, with standardization), Linear SVM (up to 5,000 iterations, with standardization), Random Forest (100 trees). All implemented in scikit-learn.
    • Data: MNIST and Fashion-MNIST. Each dataset is stratified sampled, with 8,000 for training and 2,000 for testing, sampling seed 42; 28×28 grayscale, 10 classes, pixels normalized to [0, 1] and flattened to 784 dimensions.
    • Conditions: clean training, and label flipping and backdoor each at 5%, 10%, and 20%. The backdoor target class is fixed to 0. Each dataset–model–condition is retrained separately. Poisoning only occurs in the training set.
    • Metrics: clean test accuracy and macro-F1, and backdoor ASR. Table 1 gives clean accuracy and macro-F1; Tables 2 and 3 also give drops relative to the clean baseline, and Table 3 additionally gives ASR. The drops in the tables are consistent with "clean value minus poisoned value," with negative values indicating higher after poisoning.
    • Judgment: metrics are directly computed from classification results. The paper does not describe a review model or human verification, nor does it report repetitions, standard deviations, or significance tests. The paper does not give the denominator for ASR.
    • Controls: the clean models in Table 1. The paper does not use other poisoning algorithms as baselines.

    Main results

    The table below only lists the 20% poisoning rate. Clean Acc comes from Table 1, label flipping Acc drops from Table 2, and backdoor Acc drops and ASR from Table 3.

    Swipe horizontally to read the table

    ModelDatasetClean AccFlip Acc DropBackdoor Acc DropBackdoor ASR
    Logistic RegressionMNIST0.90050.07050.00250.9884
    Linear SVMMNIST0.84000.04950.01150.9956
    Random ForestMNIST0.94750.00750.00501.0000
    Logistic RegressionFashion-MNIST0.82950.05000.00950.9867
    Linear SVMFashion-MNIST0.76650.06000.03300.9939
    Random ForestFashion-MNIST0.84550.00200.00101.0000
    • Linear models and exceptions: the authors state that label flipping drops are clearer on the two linear models, while Random Forest is relatively stable. On Fashion-MNIST, the largest accuracy drop for Linear SVM is not at 20% but at 10%, at 0.0660, with a macro-F1 drop of 0.0680 (Table 2).
    • Backdoor range: the authors report ASR from 0.9667 to 1.0000 across all backdoor conditions. They state that on MNIST, clean accuracy changes are within 0.0115, and on Fashion-MNIST, the largest clean accuracy loss still comes with an ASR above 0.99 (Section 4.3).
    • Authors' security interpretation: the authors argue that from a security perspective, backdoors are more dangerous because clean testing can be near normal while trigger behavior remains effective; label flipping is more visible in routine metrics. They also state that a stronger clean baseline does not imply greater security.

    Label flipping variation with poisoning rate

    • Direction: in Table 2, accuracy and macro-F1 drops move in the same direction. The authors state that label corruption therefore affects overall prediction quality rather than a minority class. The captions of Figures 1 and 2 only indicate accuracy and macro-F1 trends on the two datasets, without endpoint numbers.
    • MNIST: accuracy drops at 5%, 10%, and 20% are, in order: Logistic Regression 0.0240, 0.0415, 0.0705; Linear SVM 0.0275, 0.0355, 0.0495; Random Forest 0.0055, 0.0035, 0.0075. Random Forest's accuracy at 10% is 0.9440, higher than at 5% (0.9420). At 20%, Logistic Regression's macro-F1 drop is 0.0716, the largest macro-F1 drop in Table 2; the authors state this is the strongest degradation on MNIST.
    • Fashion-MNIST: Logistic Regression accuracy drops are 0.0190, 0.0320, 0.0500. Linear SVM is 0.0515, 0.0660, 0.0600, with accuracy at 10% (0.7005) lower than at 20% (0.7065). Random Forest drops are 0.0070, 0.0060, 0.0020, which the authors state do not exceed 0.0070. The authors believe the two linear models are more sensitive in this experiment and explicitly state this does not imply Random Forest is more robust in all settings.

    Backdoor ASR and clean accuracy

    • ASR: the lowest in Table 3 is Fashion-MNIST, Logistic Regression, 5%, at 0.9667. Random Forest is 1.0000 at all three levels on MNIST; on Fashion-MNIST, it is 0.9922 at 5% and 1.0000 at 10% and 20%.
    • Clean accuracy increases or stays flat: on MNIST, Logistic Regression at 5% has a drop of -0.0005 (accuracy 0.9010), Linear SVM at 10% is -0.0015, Random Forest at 5% is -0.0005. On Fashion-MNIST, Random Forest at 5% has a drop of 0.0000 (accuracy remains 0.8455). The paper does not separately explain these cells.
    • Authors' interpretation: the authors state that routine clean testing is insufficient to detect such compromises, and backdoors can be relatively stealthy while embedding attacker-controlled behavior. The captions of Figures 3 and 4 are ASR trends and backdoor macro-F1 trends, respectively, with no endpoint numbers; values are based on Table 3.

    Other ablations and analyses

    The paper has no ablations on triggers, target classes, or model hyperparameters.

    • Table 1: MNIST accuracy ranges from 0.8400 (Linear SVM) to 0.9475 (Random Forest), and Fashion-MNIST from 0.7665 to 0.8455; the authors state Random Forest is highest and Linear SVM lowest, and MNIST is easier.
    • Macro-precision and macro-recall are defined in Section 3.7, but Tables 1–3 do not provide values.
    • The authors state that qualitative trends are consistent across the two datasets: label flipping is visible in routine metrics, while backdoors have high targeted success rates and relatively small damage to clean testing (Section 5).
    • In the backdoor cells, Fashion-MNIST, Linear SVM, 20% has a macro-F1 of 0.7336 (Table 3), with a clean macro-F1 of 0.7656 (Table 1).
    • The paper does not report multiple-seed repetitions or standard deviations, and the numbers in the tables are not accompanied by variation ranges (Section 3.6).
    • The paper does not compare trigger positions, sizes, target classes, or tree counts.
  5. What are some points that can be further explored?

    The authors limit the scope to classical models, visible triggers, and moderate poisoning rates, and plan to add attacks, deep models, and defenses.

    Limitations and future directions noted by the authors

    • Evaluation scope (Section 5): The authors state the experiments are a compact, reproducible benchmark, not a comprehensive adversarial evaluation; the models are classical baselines rather than deep neural networks, the trigger is simple and visible, and the poisoning rates are moderate.
    • Random Forest extrapolation (Section 5): The authors state that it only shows smaller clean test degradation under this study's simple random label corruption, not that it is more robust to poisoning in all settings.
    • Attack types (Section 6): The authors plan to evaluate clean-label poisoning, optimization-based poisoning, and more adaptive backdoor triggers to see whether this paper's trends still appear.
    • Model families (Section 6): The authors plan to compare with convolutional neural networks, vision transformers, or other deep architectures to see whether stronger representational capacity changes poisoning susceptibility or attack stealth.
    • Defenses (Section 6): The authors state the paper intentionally first compares attacks. The next step is to evaluate data cleaning, robust training, influence-function-based filtering, and others under the same protocol, measuring mitigation effects and trade-offs with clean task performance.
    • Threats and tasks (Section 6): The authors plan to add datasets, class imbalance, partial attacker knowledge, different trigger positions, and scenarios where the attacker controls only part of the training pipeline and the defender validates data before training. The same section proposes broadening the task scope, attack realism, and defense depth, and connecting to a teaching and experimental framework for trustworthy AI.

    Experimental coverage

    • Classifiers are Logistic Regression, Linear SVM, and Random Forest, 3 in total; datasets are MNIST and Fashion-MNIST, each with 8,000 training and 2,000 test samples (Sections 3.2–3.3).
    • Attacks performed are uniformly random label flipping and a backdoor with target class 0 and a 3×3 white block trigger in the lower-right corner; poisoning rates are 5%, 10%, 20% (Sections 3.4–3.5, Table 2, Table 3).
    • Clean test defines accuracy, macro-precision, macro-recall, macro-F1; tables report accuracy, macro-F1, and decreases, with ASR additionally given for backdoors. The paper does not give the denominator count for ASR (Section 3.7, Tables 1–3).
    • Stratified sampling seed is 42, and fixed random seeds are used throughout; the paper does not report the number of repetitions or significance tests (Sections 3.2, 3.6, Section 4).
    • No defense experiments. Section 3.7 states the design focus is attack comparison; Section 6 lists defenses as future work.
  6. Summarize the main content of the paper

    Label flipping lowers linear models more; backdoor ASR is 0.9667–1.0000, and clean accuracy is mostly close to baseline.

    Khan and Abusaqer compared two types of training-time poisoning on two image classification benchmarks.

    • Problem: Supervised models rely on trustworthy training sets. The authors treat label flipping as an indiscriminate attack that lowers overall quality and backdoors as a targeted attack that may preserve clean performance.
    • Protocol: MNIST and Fashion-MNIST, each with stratified sampling of 8,000 training and 2,000 test samples. Classifiers are Logistic Regression, Linear SVM, and Random Forest. Labels are randomly changed to incorrect ones at 5%, 10%, 20%; backdoors attach a 3×3 white block in the lower-right corner to non-target samples and change their labels to class 0. Only the training set is poisoned.
    • Label flipping: Accuracy and macro-F1 decrease in the same direction, with linear models decreasing more. On MNIST, Logistic Regression at 20% has accuracy down 0.0705 and macro-F1 down 0.0716. On Fashion-MNIST, Linear SVM at 10% has accuracy down 0.0660, higher than its 0.0600 at 20%. Random Forest accuracy decreases are no more than 0.0075 on MNIST and no more than 0.0070 on Fashion-MNIST (Table 2).
    • Backdoor: ASR across all conditions in Table 3 is 0.9667–1.0000. On MNIST, clean accuracy changes by no more than 0.0115. The largest clean accuracy decrease is 0.0330 for Fashion-MNIST, Linear SVM, at 20%, with ASR 0.9939. Random Forest is 1.0000 at all three levels on MNIST, and 0.9922 at 5% and 1.0000 at 10% and 20% on Fashion-MNIST.
    • Conclusion: The authors believe the impact depends on the attack goal. Label flipping is more easily reflected in accuracy and macro-F1; backdoors are more stealthy and can implant attacker-controlled misclassifications. The authors state that standard metrics are insufficient to assess model safety in adversarial settings, and good clean performance does not mean greater safety. The authors also state that, in this controlled benchmark, simple poisoning strategies can already affect model trustworthiness.

Related papers

Show 3 more papers
Read originalarxiv.org