Exploring Adversarial Examples for Efficient Active Learning in Machine Learning Classifiers

Honggang Yu, Shihfeng Zeng, Teng Zhang, Ing-Chao Lin, Yier JinarXiv 2021

Abstract

Adversarial examples are traditionally viewed as security threats to machine learning models. This research challenges that perspective, proposing that these examples are a "gold mine" for training. By establishing a theoretical foundation across $k$-nearest neighbors ($k$-NN), kernel methods, and neural networks, the authors demonstrate that samples generated near a classifier's decision boundary—the essence of adversarial examples—can drastically improve the efficiency and accuracy of Active Learning (AL).

Introduction

Training high-performing machine learning (ML) models often requires massive amounts of labeled data, which is both expensive and time-consuming to acquire. Active Learning (AL) addresses this by iteratively selecting only the most "informative" samples for labeling. While empirical evidence has long suggested that samples near the decision boundary are most useful, a theoretical understanding across diverse classifier types has been lacking. Furthermore, the potential of adversarial attacks—designed specifically to find these boundaries—as a constructive tool for efficient training has remained under-explored. This paper bridges the gap between adversarial security and active learning.

Methods

The authors employ a two-pronged approach to unify adversarial security and active learning:

Theoretical Analysis

Mathematical proofs are provided for three major model classes:

  • $k$-Nearest Neighbors ($k$-NN): Proving that classification accuracy improves as the training distribution concentrates around the decision boundary.
  • Kernel Regression: Establishing upper bounds on estimation error that decrease with dense sampling near the boundary.
  • Reproducing Kernel Hilbert Space (RKHS): Extending proofs to complex functional spaces relevant to deep neural networks.

Adversarial Synthesis

The study utilizes seven adversarial attack strategies to identify decision boundaries and generate synthetic training data, including white-box attacks (FGSM, PGD, DeepFool, and C&W), black-box query-based methods, and region-based attacks for non-parametric models. The core workflow involves a "victim" model generating adversarial examples, which then serve as informative samples to train a "shadow" model more efficiently.

Experimental Setup and Datasets

The methodology was evaluated across four diverse datasets, ranging from synthetic 2D data to complex image benchmarks. Standard architectures like LeNet (for MNIST) and VGG16 (for CIFAR-10) were used to validate the approach.

Summary of datasets used in the evaluation, including sample sizes for training, adversarial generation, and testing.
  • Halfmoon: A synthetic 2D dataset for visualizing decision boundaries.
  • Abalone: A tabular dataset for predicting age from physical measurements.
  • MNIST: Handwritten digits, including a specific "1 vs 7" challenge.
  • CIFAR-10: A standard object recognition benchmark.

Key Insights

  • Adversarial Examples as Informative Samples: Adversarial perturbations are re-envisioned as high-precision searches for the most valuable data points.
  • Concentration Parameter ($\beta$): A distribution model where $\beta$ controls sample clustering around the boundary shows that as $\beta$ increases, the classifier's "area of correctness" expands.
  • Theoretical Unity: $k$-NN, kernel methods, and neural networks share a sensitivity to boundary-proximal data, validating margin-based uncertainty sampling as a universal strategy.
  • Transferability: Adversarial examples generated on one model effectively train different "shadow" models, capturing fundamental task properties.

Results

The experimental results highlight significant gains in accuracy and label efficiency:

  • Accuracy Boost: On the Halfmoon dataset, $k$-NN trained on adversarial examples achieved 96.5% accuracy, vs. 92.0% for random sampling.
  • Label Efficiency: In the MNIST 1v7 task, the adversarial approach reached 98.9% accuracy with only 600 queries, while the baseline reached only 81.9%.
  • Low-Budget Performance: On the Abalone dataset with a budget of 100 samples, the adversarial strategy outperformed the baseline by 8% (23% vs 15% accuracy).

Conclusion

While adversarial examples pose security risks, they also offer a powerful mechanism for efficient active learning. Future work should address the computational overhead of complex attacks and refine methods to ensure adversarial examples remain within a useful distribution. This approach paves the way for "Adversarial Active Learning" strategies optimized for real-time systems.

Summary updated

BibTeX
@misc{yu2021exploring,
  author = {Honggang Yu and Shihfeng Zeng and Teng Zhang and Ing-Chao Lin and Yier Jin},
  title = {{Exploring Adversarial Examples for Efficient Active Learning in Machine Learning Classifiers}},
  year = {2021},
  eprint = {2109.10770},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.10770},
}
Figure