Learning to Confuse: Generating Training Time Adversarial Data with Auto-Encoder

Ji Feng, Qi-Zhi Cai, Zhi-Hua Zhou

Introduction

This paper introduces Deep Confuse, a novel method designed to generate training-time adversarial data. By adding imperceptible, bounded perturbations to an entire training dataset, the authors demonstrate how to "hijack" the learning process of any future classifier. The result is a model that appears to learn perfectly during training but fails spectacularly when exposed to clean, real-world test data.

The Threat of Training-Time Attacks

Most adversarial machine learning research focuses on test-time attacks, where a malicious actor tweaks a single input (like adding static to a stop sign) to fool an already-trained model. This paper shifts the focus to training-time attacks, specifically addressing the challenge of data poisoning at scale.

While traditional poisoning often involves flipping labels or injecting a few obviously malicious samples, this work asks a more insidious question: Can we modify an entire training dataset with tiny, invisible noises such that any model trained on it becomes useless in the real world?

This question is highly relevant for data privacy—such as preventing unauthorized third parties from successfully training models on your personal data—and for security, ensuring the integrity of outsourced or public datasets.

Methods: The Deep Confuse Framework

The authors propose a framework that frames the attack as a two-player game between two neural networks:

  1. The Noise Generator ($g_\xi$): An auto-encoder-like network that learns to produce the most "harmful" perturbations possible, constrained within a small, imperceptible bound ($\epsilon$).
  2. The Victim Classifier ($f_\theta$): An "imaginary" differentiable model that acts as a proxy for the type of classifier an end-user might eventually train.
Decoupled training process of the Noise Generator and Victim Classifier

The core innovation lies in how the authors solve the resulting non-linear equality constrained optimization problem. Training these two networks simultaneously is notoriously unstable, akin to the challenges faced when training Generative Adversarial Networks (GANs). To resolve this, they decouple the alternating updates.

The generator learns by hijacking the training trajectory of the victim classifier. It observes how the victim updates its weights and learns to move "against" those updates step-by-step. To make this computationally feasible, the authors also introduce a memory-efficient version utilizing a "target network" approach—a technique borrowed from Reinforcement Learning—to stabilize the process without needing to store the entire history of the victim's gradients.

Datasets and Visual Impact

The researchers evaluated their method on three standard benchmarks:

  • MNIST: The classic handwritten digit dataset.
  • CIFAR-10: A collection of small images across 10 categories (planes, dogs, etc.).
  • ImageNet (Reduced): A 2-class subset (bulbul vs. jellyfish) to test the method on higher-resolution, real-world images ($224 \times 224$).
Clean vs. Adversarial examples across ImageNet, MNIST, and CIFAR-10

As seen in the visual comparisons, the adversarial perturbations generated by Deep Confuse are virtually indistinguishable from the clean data to the human eye, yet they completely derail the learning process.

Key Insights and Results

The Generalization Gap

The most striking insight is that the poisoned models do not simply fail to learn; they "overfit" to the noise. During training, the loss decreases, and accuracy on the poisoned training data looks excellent. However, the model has essentially memorized the adversarial noise patterns instead of learning actual semantic features, leading to a massive performance gap when it encounters clean test data.

Universal Vulnerability and Transferability

The perturbations are not just effective against the specific neural network used during the attack generation. They exhibit high transferability. Noise generated using a simple Convolutional Neural Network (CNN) was able to break much deeper architectures like ResNet and DenseNet. Remarkably, it even degraded the performance of non-neural models like Random Forests and Support Vector Machines (SVMs).

Label-Specific Sabotage

The attack can also be "targeted." Instead of just causing random misclassifications, the attacker can force the model to consistently misclassify specific classes according to predefined rules. In label-specific experiments on MNIST, the authors successfully forced a "shift-by-one" misclassification (predicting 1 as 2, 2 as 3, etc.) with a high success rate of 79.7%.

Dramatic Performance Drops

The overall drop in performance across all datasets was severe:

  • MNIST: Accuracy plummeted from 99.32% to 0.25% (significantly worse than random guessing).
  • CIFAR-10: Accuracy dropped from 77.28% to 28.77%.
  • ImageNet (2-class): Accuracy fell from 88.5% to 54.2%.

Limitations and Future Work

While highly effective, the paper notes a few areas for further exploration. First, the optimization complexity is still computationally heavy, requiring careful tuning of learning rates and iteration trials. Second, while empirical results are strong, the authors call for more rigorous theoretical analysis to explain exactly why these specific perturbations transfer so well across entirely different model families. Finally, as this paper focuses on the attack, the natural next step for the community is designing adversarially robust training procedures capable of detecting or ignoring these sophisticated training-time perturbations.

Summary updated

BibTeX
@inproceedings{feng2019learning,
  author = {Ji Feng and Qi-Zhi Cai and Zhi-Hua Zhou},
  title = {{Learning to Confuse: Generating Training Time Adversarial Data with Auto-Encoder}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=ksGYrBrwqOC},
}
Figure