Skip to main content
QUICK REVIEW

[Paper Review] Manipulating SGD with Data Ordering Attacks

Ilia Shumailov, Zakhar Shumaylov|arXiv (Cornell University)|Apr 19, 2021
Adversarial Robustness in Machine LearningComputer Science41 references7 citations
TL;DR

This paper introduces BRRR attacks—data ordering manipulation techniques that exploit the stochastic nature of SGD training by reordering batches or individual data points to disrupt model learning or inject backdoors. The key contribution is demonstrating that even with clean data and no model access, an attacker can severely degrade model accuracy or implant backdoors via strategic data ordering, with whitebox BOB achieving 91% trigger accuracy on CIFAR-10.

ABSTRACT

Machine learning is vulnerable to a wide variety of attacks. It is now well understood that by changing the underlying data distribution, an adversary can poison the model trained with it or introduce backdoors. In this paper we present a novel class of training-time attacks that require no changes to the underlying dataset or model architecture, but instead only change the order in which data are supplied to the model. In particular, we find that the attacker can either prevent the model from learning, or poison it to learn behaviours specified by the attacker. Furthermore, we find that even a single adversarially-ordered epoch can be enough to slow down model learning, or even to reset all of the learning progress. Indeed, the attacks presented here are not specific to the model or dataset, but rather target the stochastic nature of modern learning procedures. We extensively evaluate our attacks on computer vision and natural language benchmarks to find that the adversary can disrupt model training and even introduce backdoors.

Motivation & Objective

  • To investigate whether adversarial data ordering during SGD training can disrupt model learning or inject backdoors without modifying data or model architecture.
  • To evaluate the feasibility of integrity and availability attacks on machine learning models through manipulation of data batching and sampling order.
  • To demonstrate that such attacks are effective even in black-box settings with no access to model parameters or training data.
  • To analyze the theoretical underpinnings of why data ordering affects stochastic gradient descent and model convergence.
  • To show that backdoors can be implanted using only clean data and labels by controlling batch order, enabling novel poisoning attacks.

Proposed method

  • Proposes three types of data ordering attacks: Batch Reordering (BRR), Reshuffling, and Replacing, collectively termed BRRR attacks.
  • Introduces Batch-Order Poisoning (BOP) and Batch-Order Backdoor (BOB) techniques that use only clean data and labels to manipulate model parameter updates.
  • Employs a surrogate model in whitebox settings to guide data reordering based on model outputs, enabling targeted backdoor injection.
  • Uses a blackbox attacker model that infers optimal data order without access to the target model’s gradients or parameters.
  • Applies the attacks across multiple computer vision (CIFAR-10, ImageNet) and NLP (EmbeddingBag, VGG16) benchmarks with varying batch sizes.
  • Evaluates performance using metrics like test accuracy, trigger accuracy, and error rates under trigger inputs to measure attack success.

Experimental results

Research questions

  • RQ1Can data ordering alone disrupt the training process of deep neural networks using standard SGD?
  • RQ2To what extent can an attacker control model behavior using only the order of data batches, without modifying data or model architecture?
  • RQ3How effective are data-ordering attacks in both white-box and black-box settings for injecting backdoors?
  • RQ4Does the stochastic nature of SGD make models vulnerable to subtle data reordering that preserves data integrity?
  • RQ5How do architectural differences (e.g., CNN vs. NLP models) affect the success rate of data-ordering backdoor attacks?

Key findings

  • A single adversarially-ordered epoch is sufficient to significantly slow down or even reset the entire learning progress of a model.
  • Whitebox BOB achieves 91% ± 13 trigger accuracy on CIFAR-10 with VGG16, approaching the performance of traditional backdoor attacks using perturbed data.
  • Blackbox BOB achieves 68% ± 19 trigger accuracy on the same benchmark, demonstrating effectiveness without model access.
  • In NLP, the BOB attack successfully injects backdoors with 50 commas as a trigger, achieving up to 68.76% trigger accuracy under whitebox conditions.
  • Larger batch sizes reduce backdoor success rates in NLP models, indicating sensitivity to batch-level data distribution and embedding aggregation.
  • The attacks are model- and dataset-agnostic, as they exploit fundamental assumptions of stochastic learning rather than model-specific vulnerabilities.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.