DNN Adversarial Attack Detection via Intermediate Layer Consistency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep neural networks (DNNs) are vulnerable to adversarial attacks, which can cause misclassifications in critical applications by injecting small perturbations into input data, and existing defense mechanisms are still susceptible to generating successful attacks.

Innovation Solution

The technique leverages the inconsistency between final target labels and intermediate representations within the DNN to detect adversarial attacks by examining label and correlation consistency, allowing for appropriate actions to be taken to protect the system, such as issuing notifications or re-training the DNN.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If adversarial training or input preprocessing is used to defend against attacks, then the DNN becomes more resistant to some attacks, but it remains vulnerable to successful adversarial attacks and increases system complexity

Engineering Contradiction:
Improveresistance to adversarial attacksVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent segments the DNN into multiple layers and examines intermediate representations at different stages. By dividing the detection process across layers rather than relying on a single defense mechanism, the system identifies adversarial examples through inconsistencies in intermediate outputs without requiring complex preprocessing or retraining of the entire model.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary detection mechanism that monitors intermediate representations within the DNN. This intermediary layer analyzes consistency across different layers to detect adversarial inputs, providing a defense mechanism that operates within the existing model architecture rather than adding external complexity.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If existing defense mechanisms are applied to harden the DNN, then some attacks are blocked, but the DNN still generates successful adversarial examples and loses detection precision

Engineering Contradiction:
Improvemodel hardeningVSAvoiddetection precision
Core Design Contradiction:
ReliabilityVSMeasurement precision

Solution Approach 1:

The patent implements a feedback mechanism that uses intermediate representations from multiple layers to detect adversarial examples. By continuously monitoring consistency across layers and providing feedback about detected inconsistencies, the system maintains high detection precision while defending against attacks, avoiding the precision loss associated with traditional hardening methods.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The detection approach dynamically evaluates intermediate representations at different layers during inference. Rather than using static defense mechanisms that may fail against new attack types, the dynamic analysis of layer-wise consistency adapts to detect various adversarial strategies while maintaining precision.

Inventive Principle:
Principle #15Dynamics

3Reliability

If adversarial training is used to improve robustness, then the model becomes harder to attack, but it requires additional training data and computing resources

Engineering Contradiction:
ImproverobustnessVSAvoidcomputing resources
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent performs preliminary analysis of intermediate representations during the normal inference process. By examining layer outputs as part of the standard forward propagation, the system detects adversarial examples without requiring separate training phases or additional computing resources beyond what is already needed for model inference.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The detection mechanism uses the DNN's own intermediate representations to identify adversarial inputs. The model essentially detects attacks using its internal structure and outputs, eliminating the need for external adversarial training data or additional computational models, thereby reducing energy and resource requirements.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS12045713B2Detecting adversary attacks on a deep neural network (DNN)
Publication Date: 2024.07.23 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12045713B2 patent drawing
  • US12045713B2 patent drawing
  • US12045713B2 patent drawing

AI summary

A method, apparatus and computer program product to protect a deep neural network (DNN) having a plurality of layers including one or more intermediate layers. In this approach, a training data set is received. During training of the DNN using the received training data set, a representation of activations associated with an intermediate layer is recorded. For at least one or more of the representations, a separate classifier (model) is trained. The classifiers, collectively, are used to train an outlier detection model. Following training, the outliner detection model is used to detect an adversarial input on the deep neural network. The outlier detection model generates a prediction, and an indicator whether a given input is the adversarial input. According to a further aspect, an action is taken to protect a deployed system associated with the DNN in response to detection of the adversary input.