Skip to main content
QUICK REVIEW

[Paper Review] Detecting Adversarial Examples via Key-based Network

Pinlong Zhao, Zhouyu Fu|arXiv (Cornell University)|Jun 2, 2018
Adversarial Robustness in Machine LearningComputer Science14 references8 citations
TL;DR

This paper proposes a detection-based defense, key-based network, which identifies adversarial examples by leveraging error-correcting output codes through binary classifiers trained on random label subsets. Unlike prior methods, it requires only normal training data and is robust against diverse attacks due to its randomized encoding scheme, achieving high detection rates with minimal accuracy drop on clean images.

ABSTRACT

Though deep neural networks have achieved state-of-the-art performance in visual classification, recent studies have shown that they are all vulnerable to the attack of adversarial examples. Small and often imperceptible perturbations to the input images are sufficient to fool the most powerful deep neural networks. Various defense methods have been proposed to address this issue. However, they either require knowledge on the process of generating adversarial examples, or are not robust against new attacks specifically designed to penetrate the existing defense. In this work, we introduce key-based network, a new detection-based defense mechanism to distinguish adversarial examples from normal ones based on error correcting output codes, using the binary code vectors produced by multiple binary classifiers applied to randomly chosen label-sets as signatures to match normal images and reject adversarial examples. In contrast to existing defense methods, the proposed method does not require knowledge of the process for generating adversarial examples and can be applied to defend against different types of attacks. For the practical black-box and gray-box scenarios, where the attacker does not know the encoding scheme, we show empirically that key-based network can effectively detect adversarial examples generated by several state-of-the-art attacks.

Motivation & Objective

  • To address the vulnerability of deep neural networks to adversarial examples, which can mislead models with imperceptible perturbations.
  • To develop a defense mechanism that does not require prior knowledge of adversarial example generation processes.
  • To enable detection of adversarial examples across various attack types, including black-box and gray-box settings.
  • To maintain high accuracy on normal inputs while effectively rejecting adversarial inputs.
  • To design a defense resilient to transfer-based attacks by ensuring low label prediction overlap between key-based and standard networks.

Proposed method

  • Key-based network trains multiple binary classifiers on randomly selected pairs of label subsets to generate unique binary code vectors (signatures) for each class.
  • Each class is encoded with a binary vector based on the expected outputs of the trained binary classifiers, forming a signature for that class.
  • During inference, the model computes the output code of a test image and compares it to the stored class signatures; mismatched codes indicate adversarial input.
  • The method relies on error-correcting output codes (ECOC) to enhance robustness and enable detection even with minor code mismatches.
  • The encoding scheme is randomly chosen and kept secret, making it difficult for attackers to reverse-engineer or evade detection.
  • The defense is applied as a plug-in to existing networks by replacing the logits and softmax layers with the key-based code mapping, preserving the original architecture.

Experimental results

Research questions

  • RQ1Can a detection-based defense be effective without requiring knowledge of adversarial example generation processes?
  • RQ2Can a randomized encoding scheme based on error-correcting output codes improve robustness against diverse adversarial attacks?
  • RQ3Does the key-based network maintain high accuracy on normal inputs while effectively detecting adversarial examples?
  • RQ4To what extent does the key-based network resist transfer-based attacks from other models?
  • RQ5How sensitive is the detection performance to variations in code length and network architecture?

Key findings

  • The key-based network achieved a detection rate of 98.5% on FGSM attacks and 96.7% on DeepFool attacks under black-box settings, demonstrating strong generalization.
  • On random inputs, the prediction overlap between key-based network and baseline models was only 0%, indicating minimal correlation and strong resistance to transfer attacks.
  • For normal images with random noise, the prediction overlap between key-based network and baseline models was 19.48%, significantly lower than with other baselines, suggesting distinct input-output mappings.
  • The method caused minimal accuracy loss on clean images, with no significant drop across different network architectures (e.g., Baseline2, Baseline3, Baseline4).
  • Detection performance was stable across various code lengths, with no sharp decline or improvement observed, indicating robustness to code length selection.
  • The framework is architecture-agnostic and can be applied to a wide range of deep neural networks without modifying the underlying model structure.

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.