Skip to main content
QUICK REVIEW

[Paper Review] Siamese networks for generating adversarial examples

Mandar Kulkarni, Aria Abubakar|arXiv (Cornell University)|May 3, 2018
Adversarial Robustness in Machine LearningComputer Science6 references4 citations
TL;DR

This paper proposes a Siamese network-based method to generate adversarial examples for black-box deep neural networks without access to the target model's architecture or training data. By using an unlabeled mismatched dataset (e.g., TinyImageNet or Food-101) as queries to the target model, the approach learns adversarial perturbations via contrastive learning on image pairs derived from misclassified predictions, achieving high transferability across models including ResNet-50, MNIST, and CIFAR-10.

ABSTRACT

Machine learning models are vulnerable to adversarial examples. An adversary modifies the input data such that humans still assign the same label, however, machine learning models misclassify it. Previous approaches in the literature demonstrated that adversarial examples can even be generated for the remotely hosted model. In this paper, we propose a Siamese network based approach to generate adversarial examples for a multiclass target CNN. We assume that the adversary do not possess any knowledge of the target data distribution, and we use an unlabeled mismatched dataset to query the target, e.g., for the ResNet-50 target, we use the Food-101 dataset as the query. Initially, the target model assigns labels to the query dataset, and a Siamese network is trained on the image pairs derived from these multiclass labels. We learn the \emph{adversarial perturbations} for the Siamese model and show that these perturbations are also adversarial w.r.t. the target model. In experimental results, we demonstrate effectiveness of our approach on MNIST, CIFAR-10 and ImageNet targets with TinyImageNet/Food-101 query datasets.

Motivation & Objective

  • Address the challenge of generating adversarial examples in a black-box setting where the adversary has no access to the target model’s architecture or training data.
  • Overcome the limitation of prior methods that require access to a subset of the training data or model gradients.
  • Leverage Siamese networks to learn adversarial perturbations by exploiting label discrepancies from mismatched query datasets.
  • Demonstrate the effectiveness of learned perturbations in transferring across models, even to remote APIs like Google Vision.
  • Show that universal adversarial perturbations can be effectively learned using Siamese contrastive learning on unlabeled stimuli.

Proposed method

  • Use an unlabeled mismatched dataset (e.g., TinyImageNet or Food-101) as a stimulus to query the target CNN, obtaining multiclass predictions.
  • Construct positive and negative image pairs based on the similarity or dissimilarity of the predicted labels from the target model.
  • Train a Siamese network on these image pairs using a contrastive loss to learn feature representations that capture adversarial directions.
  • Apply the Fast Gradient Sign (FGS) method to the Siamese network to generate adversarial perturbations that switch the predicted label.
  • Transfer the learned perturbations to the target model by applying them to real images and evaluating misclassification rates.
  • Optimize perturbations using a bounded L-infinity norm (ε) and iterative optimization to maximize misclassification while minimizing perceptibility.

Experimental results

Research questions

  • RQ1Can adversarial perturbations be effectively learned without access to the target model’s architecture or training data?
  • RQ2To what extent can perturbations learned on a mismatched dataset (e.g., Food-101) transfer to a target model (e.g., ResNet-50) for misclassification?
  • RQ3How does the size of the training set for the Siamese network affect the transferability and success rate of the adversarial perturbations?
  • RQ4Are the learned perturbations universal, i.e., effective across multiple images with minimal ε, and do they generalize across different models?
  • RQ5Can the perturbations generated via Siamese learning outperform random perturbations in terms of transfer success and required ε magnitude?

Key findings

  • The proposed method achieved a transfer rate of 0.635 ± 0.059 on the MNIST target using 30k image pairs from TinyImageNet as stimulus, demonstrating high effectiveness.
  • For the CIFAR-10 target, the transfer rate reached 0.426 ± 0.06 with 30k image pairs from Food-101, showing consistent performance across datasets.
  • Transfer rates increased with more training pairs, but plateaued after a threshold (e.g., 30k pairs), indicating diminishing returns beyond a certain data size.
  • The top-ranked perturbation from the Siamese network outperformed random perturbations, requiring significantly smaller ε to achieve misclassification.
  • Adversarial examples generated by the method successfully fooled the Google Vision API, confirming transferability to real-world remote models.
  • The method successfully generated universal perturbations effective across diverse images, including those requiring ε_T = 27 for misclassification, though most required smaller ε.

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.