Skip to content

Adversarial examples can serve as effective data augmentation for unsupervised machine learningAdversarial Examples can be Effective Data Augmentation for Unsupervised Machine Learning

arXiv· arXiv:2103.01895· AAAI· Chia-Yi Hsu, Pin-Yu Chen, Songtao Lu, Sijia Liu, Chia-Mu YuNational Yang Ming Chiao Tung University; IBM Research; Michigan State UniversityIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Attacks

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

The authors propose using per-sample MINE to generate unsupervised adversarial examples (UAEs) and perform data augmentation, and report a 73.5% improvement in reconstruction error on the SVHN sparse autoencoder.

Questions
Existing adversarial example methods are mainly designed for supervised learning and rely on supervision from true labels, target classes, or trained classifiers, so they cannot be directly applied to unsupervised models. The authors aim to provide supervision-independent robustness evaluation and data augmentation means for unsupervised (self-supervised) models.
Methods
Propose per-sample MINE as an information-theoretic similarity measure between original samples and perturbed samples, estimating MI for a single sample using random sampling or first-layer convolution outputs; formulate the attack as a constrained optimization and solve it with the MinMax algorithm (dynamically updating the coefficient c); retrain the model with the generated UAE as plug-and-play data augmentation.
Experiments and results
On MNIST/SVHN, the ASR of both MinMax and penalty-based is 100%, but MinMax has higher MI. MINE-UAE data augmentation improves data reconstruction by up to 73.5% (SVHN sparse autoencoder), and SimCLR accuracy by 1.58%; on Coil-20 performance decreases, which the authors attribute to the low ASR (9.21%).
Limitations and future work
The authors note that the ASR of MINE-UAE on Coil-20 is below 10%, and that the training loss increases after augmentation; the performance degradation may stem from the feature selection protocol and the model's learning capability (Section 4.5). The paper does not have a Limitations section; the experiments cover 4 types of autoencoders, concrete autoencoder, and SimCLR, across 9 datasets in total.
Experimental setupMNIST classifier、CIFAR-10 classifier et al. · MNIST、SVHN et al. · ASR、MI et al.
Threat model
Unsupervised setting: generate UAEs using only training samples and the training loss, without labels or predictions from other supervised models; the success criterion is that the relative loss of the perturbed sample is no greater than the original loss (κ=0), while the MINE similarity to the original sample is as low as possible; an L∞ norm constraint is optional (ε=1 is suggested, i.e., not used).
Evaluated models
MNIST classifierCIFAR-10 classifierDense AutoencoderSparse AutoencoderConvolutional AutoencoderAdversarial AutoencoderConcrete autoencoderSimCLR (ResNet-18)Madry modelTRADES
Benchmarks
MNISTSVHNFashion MNISTIsoletCoil-20Mice ProteinHuman Activity RecognitionCIFAR-10Tiny-ImageNet
Metrics
ASRMIFIDKIDL2 reconstruction lossclassification accuracy
AI summaryThe researchers propose a label-free unsupervised adversarial example generation framework that uses a mutual information neural estimator as an information-theoretic similarity measure, together with a MinMax algorithm with provable convergence guarantees. The generated adversarial examples are used as a plug-and-play data augmentation tool for model retraining, yielding significant improvements on unsupervised tasks such as data reconstruction, representation learning, and contrastive learning across multiple datasets.

The researchers propose a label-free unsupervised adversarial example generation framework that uses a mutual information neural estimator as an information-theoretic similarity measure, together with a MinMax algorithm with provable convergence guarantees. The generated adversarial examples are used as a plug-and-play data augmentation tool for model retraining, yielding significant improvements on unsupervised tasks such as data reconstruction, representation learning, and contrastive learning across multiple datasets.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Define and generate supervision-independent adversarial examples (UAE) for unsupervised models and use them as data augmentation.

    Core problem: existing adversarial example methods are mainly designed for supervised learning; how to define, generate, and exploit adversarial examples for unsupervised machine learning models.

    • Problem setting: the authors note that adversarial examples are widely used for robustness evaluation and adversarial training, but most existing attack algorithms require true labels, target classes, or supervision provided by a trained classifier, and cannot be directly applied to unsupervised tasks.
    • Shortcomings of existing methods: the authors state that although recent work such as Cemgil et al. 2020 targets unsupervised tasks, it follows the idea of maximizing training loss under an Lp norm constraint; this paper instead seeks samples with lower training loss but dissimilar to the original samples (Table 1).
    • Core observation: the authors analogize UAEs to "on-manifold" adversarial examples: samples with low training loss but dissimilar to the training data correspond to generalization error on low-loss samples, so using them for data augmentation may improve generalization.
    • The paper proposes: a UAE generation framework based on per-sample MINE similarity, a MinMax algorithm with a convergence proof, and the use of UAEs as plug-and-play data augmentation for data reconstruction, representation learning, and contrastive learning.
    • Threat model (unsupervised setting, as stated in the paper):
      • Attacker's goal: find a perturbed sample x+δ that is dissimilar to x (measured by MINE) but whose relative loss is no greater than the original loss.
      • Knowledge: uses only training samples and the associated training loss, without labels or predictions from other supervised models (supervision-free).
      • Capability: add perturbation δ to the sample, with an optional L∞ constraint δ∈[−ε,ε]; the authors suggest setting ε=1, i.e., not using this constraint.
      • Victim system: trained unsupervised models (autoencoders, concrete autoencoder, SimCLR).
  2. What related research exists?

    Related work is divided into four groups: supervised adversarial attacks and defenses, semi-supervised extensions, MINE, and on-manifold adversarial examples.

    Supervised adversarial attacks and defenses

    • PGD attack (Madry et al. 2018)—a widely used Lp-norm-constrained supervised adversarial example generation method, used in this paper as a baseline in visual comparisons and robustness evaluations.
    • By threat model, divided into white-box (Szegedy et al. 2013; Carlini and Wagner 2017b), black-box (Chen et al. 2017; Brendel et al. 2018; Liu et al. 2020), and transfer-based (Nitin Bhagoji et al. 2018; Papernot et al. 2017).
    • Adversarial training (Madry et al. 2018) and its variants are called by the authors the most effective defense to date, but the authors point out that it has a robustness-accuracy trade-off (Su et al. 2018; Tsipras et al. 2019).

    Semi-supervised and unsupervised adversarial examples

    • Miyato et al. 2018, Zhang et al. 2019, Stanforth et al. 2019, Carmon et al. 2019—use classifiers trained on labeled data to predict pseudo-labels for unlabeled data and generate (semi-supervised) adversarial examples.
    • Cemgil et al. 2020—find adversarial examples that maximize training loss under Lp-norm constraints; the paper explicitly states that this work is the opposite, finding samples with low training loss but dissimilar to the original samples.

    Mutual Information Neural Estimation (MINE)

    • Belghazi et al. 2018—propose MINE, which parameterizes and maximizes a lower bound on MI with a neural network; the authors point out that vanilla MINE applies only to batches of samples, not to single samples, and this paper proposes two per-sample MINE sampling methods to fill this gap.
    • Hjelm et al. 2019, Zhu, Zhang, and Evans 2020—use MINE to improve representation learning.

    On-manifold adversarial examples

    • Stutz, Hein, and Schiele 2019—under the supervised setting, point out that Lp-norm-constrained adversarial training may find off-manifold samples and harm generalization; the authors state that the UAE in this paper play a role similar to on-manifold adversarial examples.

    Baselines and benchmarks: the data augmentation comparison baselines are L2-UAE and Gaussian augmentation (GA), the attack comparison baselines are the penalty-based algorithm and PGD attack, and the contrastive learning comparison is CLAE (Ho and Vasconcelos 2020); the datasets are MNIST, SVHN, Fashion MNIST, Isolet, Coil-20, Mice Protein, Human Activity Recognition, CIFAR-10, and Tiny-ImageNet.

    The authors position this paper as: extending adversarial example research to unsupervised tasks, replacing label supervision with an information-theoretic similarity measure, and demonstrating the use of UAE as a data augmentation tool.

  3. How does the paper address this problem?

    Use per-sample MINE to measure similarity, formulate UAE generation as a constrained optimization, and solve it with the MinMax algorithm.

    Overall idea: replace label supervision with neural mutual information estimation to generate UAEs that are "dissimilar to the original samples but have lower training loss," then use them as plug-and-play data augmentation to retrain the model. The core of the framework is per-sample MINE and the MinMax attack algorithm.

    Per-sample MINE (single-sample mutual information estimation)

    • Motivation: vanilla MINE (Belghazi et al. 2018) estimates MI only over batches of samples; the authors propose two methods to construct distributions for a single sample.
    • Random sampling: perform independent Gaussian compressive sampling on the sample to obtain K compressed samples and compute IΘ(x, x+δ); independent of the underlying model. The implementation sets d'=128, K=500 (SuppMat 6.2).
    • Convolutional layer output: take the K feature maps of the first convolutional layer as samples to compute MI; the authors state that the second convolutional layer performs worse, so this paper uses the convolutional approach when applicable and random sampling otherwise.

    Attack formalization

    • Supervised setting: maximize IΘ(x, x+δ), subject to x+δ∈[0,1]^d, δ∈[−ε,ε]^d, and the attack criterion fx(x+δ)≤0; the attack function follows the logit margin form of Carlini and Wagner 2017b (untargeted/targeted).
    • Unsupervised setting: minimize IΘ(x, x+δ), subject to the same constraints and requiring fxunsup(x+δ)≤0; taking an autoencoder as an example, fxunsup(x+δ)=|x−Φ(x+δ)|2−|x−Φ(x)|2+κ, i.e., the attack succeeds when the reconstruction loss of x+δ is at least a margin κ smaller than the reconstruction loss of x.
    • The authors state that such UAEs correspond to generalization error on low-loss samples, and that the model is biased toward these unseen samples.

    MinMax algorithm and convergence

    • Problem reformulation: minδmaxc≥0 F(δ,c)=c· fx+(x+δ)−IΘ(x,x+δ), where fx+ is ReLU(fx), and c dynamically balances the attack success and similarity terms.
    • Algorithm procedure (Algorithm 1): alternately update δ by projected gradient (step size α, clipped to [−ε,ε] and [0,1]) and c (update rule ct+1=(1−β/t^1/4)·ct+β·fx+, step size β), iterate T times, and return the δ* that satisfies the criterion and has optimal MI.
    • Convergence guarantee: under Assumption A.1 (compact feasible set, Lipschitz-continuous gradients of fx+ and IΘ) and A.2 (η-stability of per-sample MINE), Theorem 1 gives a convergence rate of kL(δ,c)k²≤C/√T(ε0); the authors state that this rate is standard for non-convex min-max saddle-point problems.
    • Comparison baseline: the penalty-based method fixes c and tunes it via binary search (following Carlini and Wagner 2017b); the two methods have similar computational complexity.

    Data augmentation procedure

    • Generate UAEs sample by sample using all training data, with κ=0; an attack is counted as successful if the relative loss is no greater than the original loss, and ASR is measured on the training set.
    • Training samples for which the attack fails are duplicated to maintain data balance; after augmentation, the model is retrained from scratch and evaluated on the test set.
    • Default parameters α=0.01, β=0.1, T=40, with MINE using the vanilla implementation (Belghazi et al. 2018).
  4. What experiments did the paper conduct?

    MinMax has higher MI than penalty-based; MINE-UAE augmentation improves reconstruction, representation, and contrastive learning, with Coil-20 as an exception.

    Experimental setup

    • Models tested: four types of autoencoders—Dense/Sparse/Convolutional/Adversarial (MNIST, SVHN; CIFAR-10 and Tiny-ImageNet use convolutional autoencoder), concrete autoencoder (6 datasets), SimCLR (ResNet-18, batch size 512, CIFAR-10); two published robust models, Madry and TRADES, are also evaluated (MNIST/CIFAR-10).
    • Datasets: MNIST (60K/10K), SVHN (73257/26302), Fashion MNIST (60K/10K), Isolet (6238/1559), Coil-20 (1152/288), Mice Protein (864/216), Human Activity Recognition (4252/1492), CIFAR-10, Tiny-ImageNet (sizes not stated in the paper).
    • Baselines: penalty-based attack (9-step binary search), PGD attack (100 steps), L2-UAE, Gaussian augmentation (GA, σ=0.01 and 10⁻³), CLAE (contrastive learning).
    • Metrics: ASR (the proportion on the training set whose relative loss is no greater than the original loss), MI, FID/KID, test-set L2 reconstruction loss, downstream classification accuracy.
    • Sample sizes and parameters: supervised attacks use 1000 correctly classified test images; MinMax defaults to α=0.01, β=0.1, T=40; the comparison in Table 3 uses T=9000; FID/KID use 1000 test samples, randomly sampled over 10 runs, K=96.
    • Number of repetitions: the GA column reports mean±standard deviation (number of repetitions not stated); for the remaining experiments the paper does not report the number of repetitions.

    Main results

    Table 4: test-set reconstruction loss and training-set ASR of autoencoders retrained after UAE augmentation (according to Table 4).

    Swipe horizontally to read the table

    DatasetAutoencoderOriginalMINE-UAEL2-UAEGA(σ=0.01)MINE-UAE ASR
    MNISTSparse0.005610.00243 (↑56.7%)0.00348 (↑38.0%)0.00280 (↑50.1%)100%
    MNISTDense0.002580.00228 (↑11.6%)0.00286 (↓6.0%)0.00244 (↑5.4%)92.99%
    MNISTConvolutional0.002940.00256 (↑12.9%)0.00364 (↓23.8%)0.00301 (↓2.4%)99.86%
    MNISTAdversarial0.047850.04581 (↑4.3%)0.06098 (↓27.4%)0.05793 (↓21%)98.46%
    SVHNSparse0.008870.00235 (↑73.5%)0.00315 (↑64.5%)0.00301 (↑66.1%)100%
    SVHNDense0.006590.00421 (↑36.1%)0.00550 (↑16.5%)0.00858 (↓30.2%)99.99%
    SVHNConvolutional0.001280.00095 (↑25.8%)0.00121 (↑5.5%)0.00098 (↑25.4%)100%
    SVHNAdversarial0.001730.00129 (↑25.4%)0.00181 (↓27.4%)0.00161 (↑6.9%)94.82%
    • The authors state that MINE-UAE has a higher ASR than L2-UAE and GA in most cases, and improves reconstruction performance on all models and datasets.
    • The authors state that L2-UAE and GA lead to performance degradation in several cases (the ↓ rows in the table).
    • The authors believe the improvement stems from UAE being on-manifold samples with low loss but dissimilar to the training data, and that retraining with augmentation can improve generalization.

    MinMax vs. penalty-based comparison

    • What was tested: untargeted supervised attacks on MNIST/CIFAR-10, T=9000, with penalty-based using 9-step binary search.
    • Results: the ASR of both is 100%; on MI, MinMax is 51.29 (MNIST)/17.14 (CIFAR-10), and penalty-based is 28.28/13.69 (Table 3). Figure 2 shows that as iterations increase, the MI of MinMax keeps rising while penalty-based saturates at a lower value.
    • Authors' interpretation: dynamically updating the coefficient c makes MinMax more efficient; with a fixed number of iterations T=40, the ASR of penalty-based (2,20)/(4,10)/MinMax is 9.0/93.54/99.86% (SuppMat 6.6).

    Representation learning and contrastive learning

    • Representation learning (Table 6, concrete autoencoder, M=50, Mice Protein uses M=10): MINE-UAE improves reconstruction (up to 11.0%, Activity) and accuracy (up to +1.39%, Mice Protein from 89.81% to 91.2%) on 5 of the 6 datasets; the exception is Coil-20, where the reconstruction loss rises from 0.00693 to 0.01374 (↓98.3%) and the ASR is only 9.21%. The authors state the reason is that the ASR is low and the training loss increases after augmentation (0.00683→0.01368, SuppMat 6.10), possibly stemming from limitations of the feature selection protocol and the model's learning capability.
    • Contrastive learning (Table 7, CIFAR-10 SimCLR): MINE-UAE reduces the contrastive loss from 0.29010 to 0.26755 (↑7.8%), with accuracy +1.58% and ASR 100%; the authors state that the accuracy improvement is 30 times that of CLAE (+0.05%), and note that CLAE shows a negative gain in their reproduction and that its base SimCLR has only 83.27% test accuracy.

    Other ablations and analyses

    • Similarity metric ablation (Table 13): on MNIST, MINE-UAE is 0.00256 (↑12.9%), L2/cosine are 0.002983 (↓14.6%)/0.002950 (↓0.3%), and feature scattering-based is 0.00268 (↑8.9%).
    • Stacking on existing conventional augmentation (Table 5, SVHN convolutional AE): adding MINE-UAE on top of Flip+Rotation+Gaussian noise improves by 67.75%.
    • Random sampling K ablation (Table 8, CIFAR-10): when K>500, MI, FID, and KID tend to stabilize.
    • Hyperparameter sensitivity (Table 12, MNIST): results are comparable for α∈{0.01,0.05} and β∈{0.05,0.1,0.5}; the authors state it is robust to the hyperparameter range.
    • Runtime (Table 9): on MNIST, per sample MINE-UAE is 0.059 sec., L2-UAE 0.025 sec., GA 0.012 sec.; on CIFAR-10 they are 1.735/0.37/0.029 sec. respectively.
    • Robustness (Figure 9, 10): the authors state that at ε=0.4, Adv. training-UAE can still resist more than 60% of PGD adversarial examples on MNIST (the ASR of Adv. training is 100%); at ε=0.01, SimCLR-UAE resists more than 40% on CIFAR-10.
    • Visual quality (Figure 1, 3, Table 2): the authors state that the MINE attack has better visual quality than PGD at large ε; on FID/KID, random sampling gives 339.47±8.07/14.86±1.45, and convolutional output gives 344.231/10.78.
  5. What are some points that can be further explored?

    The authors point out that augmentation fails on Coil-20 and give an explanation; the paper does not have a dedicated Limitations section.

    Limitations and future directions noted by the authors

    • Performance degradation on Coil-20: MINE-UAE has an ASR below 10% on Coil-20, and the training loss after augmentation is noticeably higher than the original training loss; the authors state that the performance degradation may stem from limitations of the feature selection protocol and the model's learning capability (Section 4.5; SuppMat 6.10 states that even after tuning, the MINE-UAE training loss could not be reduced).
    • Worse results with the second convolutional layer: the authors tested computing per-sample MINE using the output of the second convolutional layer and found performance degraded; this paper uses only the first layer (Section 3.1).
    • Diminishing returns from multiple rounds of augmentation: the reconstruction error of the second round of data augmentation (SVHN sparse autoencoder) is 0.00199, only slightly better than 0.00235 in the first round; the authors state that the benefit of the first round of augmentation is relatively larger (SuppMat 6.15).
    • The paper does not have a Limitations or Future Work section and does not list other future directions.

    Scope of experiments

    • The models tested are 4 types of autoencoders, concrete autoencoder, and SimCLR (ResNet-18); two published robust models, Madry and TRADES, are also evaluated; both attacks and augmentation are performed on models trained by the authors themselves.
    • There are 9 datasets in total: MNIST, SVHN, Fashion MNIST, Isolet, Coil-20, Mice Protein, Human Activity Recognition, CIFAR-10, and Tiny-ImageNet, covering image and tabular (speech, protein, sensor) data.
    • The defense/robustness evaluation consists of ASR curves against PGD attacks (Figure 7–10); adaptive attacks against MINE-UAE are not evaluated.
    • The supervised attack experiments use 1000 correctly classified test images; the robustness evaluation randomly selects 1000 correctly classified test images; the GA column reports mean±standard deviation, and for the remaining experiments the paper does not report the number of repetitions.
    • The paper does not report details of the network architecture of the MINE estimator θ or the value of the number of training iterations TI (which appears only in Algorithm 2).
  6. Summarize the main content of the paper

    Use per-sample MINE to generate unsupervised adversarial examples and perform data augmentation, improving performance on multiple unsupervised tasks.

    A methods paper that extends adversarial examples to unsupervised learning: the authors define unsupervised adversarial examples (UAE) that do not rely on labels or classifier supervision—samples that are dissimilar to the original samples (MINE metric) but have lower training loss—and use them as plug-and-play data augmentation.

    • Problem to solve: existing adversarial example methods rely on true labels, target classes, or trained classifiers and cannot be directly applied to unsupervised models.
    • Method highlights: propose per-sample MINE (random sampling or first-layer convolution outputs) to estimate mutual information for a single sample; formulate UAE generation as a constrained optimization and solve it with a MinMax algorithm that dynamically updates the coefficient c, and prove a convergence rate kLk²≤C/√T(ε0).
    • Algorithm comparison: on MNIST/CIFAR-10, the ASR of both MinMax and penalty-based is 100%, but MinMax has higher MI (51.29/17.14 vs. 28.28/13.69, Table 3).
    • Data reconstruction: MINE-UAE augmentation improves test reconstruction loss on all four autoencoders on MNIST/SVHN, by up to 73.5% (SVHN Sparse) and 56.7% (MNIST Sparse) (Table 4).
    • Representation and contrastive learning: concrete autoencoder improves on 5 of 6 datasets (accuracy up to +1.39%); CIFAR-10 SimCLR contrastive loss improves by 7.8% and accuracy by +1.58% (Tables 6, 7).
    • Exception: on Coil-20, ASR is only 9.21% and reconstruction performance drops by 98.3%, which the authors attribute to the feature selection protocol and the model's learning capability.
    • Authors' conclusion: MINE is an effective information-theoretic similarity measure, and UAE as data augmentation can bring consistent gains in data reconstruction, representation learning, and contrastive learning, and can improve robustness to PGD attacks (per the authors).

Related papers

Show 3 more papers
Read originalAAAI