Skip to main content
QUICK REVIEW

[Paper Review] DetectX -- Adversarial Input Detection using Current Signatures in Memristive XBar Arrays

Abhishek Moitra, Priyadarshini Panda|arXiv (Cornell University)|Jun 22, 2021
Advanced Memory and Neural ComputingEngineering54 references8 citations
TL;DR

DetectX proposes a hardware-efficient adversarial input detection method using Sum of Column Currents (SoI) signatures in memristive crossbar arrays. By employing a dual-phase training strategy to enhance SoI separation between clean and adversarial inputs, DetectX achieves 10x–25x lower energy consumption and ROC-AUC >0.95 against strong white-box and black-box attacks, outperforming neural network-based detectors in robustness and efficiency.

ABSTRACT

Adversarial input detection has emerged as a prominent technique to harden Deep Neural Networks(DNNs) against adversarial attacks. Most prior works use neural network-based detectors or complex statistical analysis for adversarial detection. These approaches are computationally intensive and vulnerable to adversarial attacks. To this end, we propose DetectX - a hardware friendly adversarial detection mechanism using hardware signatures like Sum of column Currents (SoI) in memristive crossbars (XBar). We show that adversarial inputs have higher SoI compared to clean inputs. However, the difference is too small for reliable adversarial detection. Hence, we propose a dual-phase training methodology: Phase1 training is geared towards increasing the separation between clean and adversarial SoIs; Phase2 training improves the overall robustness against different strengths of adversarial attacks. For hardware-based adversarial detection, we implement the DetectX module using 32nm CMOS circuits and integrate it with a Neurosim-like analog crossbar architecture. We perform hardware evaluation of the Neurosim+DetectX system on the Neurosim platform using datasets-CIFAR10(VGG8), CIFAR100(VGG16) and TinyImagenet(ResNet18). Our experiments show that DetectX is 10x-25x more energy efficient and immune to dynamic adversarial attacks compared to previous state-of-the-art works. Moreover, we achieve high detection performance (ROC-AUC > 0.95) for strong white-box and black-box attacks. The code has been released at https://github.com/Intelligent-Computing-Lab-Yale/DetectX

Motivation & Objective

  • To address the vulnerability of neural network-based adversarial detectors to dynamic attacks and high computational overhead.
  • To develop a hardware-friendly, energy-efficient detection mechanism compatible with analog crossbar DNN accelerators.
  • To leverage intrinsic hardware signatures—specifically Sum of Column Currents (SoI)—for reliable adversarial input distinction.
  • To ensure robustness against diverse adversarial attack types, including strong white-box and black-box attacks.
  • To demonstrate that non-neural, signature-based detection is more resilient and efficient than existing deep learning-based detection approaches.

Proposed method

  • DetectX monitors the Sum of Column Currents (SoI) in analog crossbar arrays as a hardware signature to differentiate between clean and adversarial inputs.
  • A dual-phase training approach is used: Phase 1 maximizes SoI separation between clean and adversarial inputs; Phase 2 enhances robustness against varying attack strengths.
  • The DetectX module is implemented in 32nm CMOS using a SoI computing unit and a simple Look-Up Table (LUT)-based detector for low-area, low-power operation.
  • The system integrates with the Neurosim platform, where column currents are multiplexed and digitized via ADC before being processed by the DetectX module.
  • Detection is applied only at the first layer of the network, avoiding performance overhead in deeper layers.
  • The method is device-agnostic, enabling deployment across different memristive technologies such as RRAM and FeFETs.

Experimental results

Research questions

  • RQ1Can hardware signatures like Sum of Column Currents (SoI) in analog crossbars reliably distinguish adversarial inputs from clean inputs?
  • RQ2Can a dual-phase training strategy effectively increase the separation between SoI distributions of clean and adversarial inputs?
  • RQ3How does the energy efficiency of a non-neural, hardware-signature-based detector compare to neural network-based detectors in adversarial detection?
  • RQ4Is the proposed detection mechanism robust against dynamic adversarial attacks that target neural detector models?
  • RQ5Can the method maintain high detection performance (e.g., ROC-AUC >0.95) under strong white-box and black-box attacks?

Key findings

  • DetectX achieves ROC-AUC scores above 0.95 for strong white-box PGD attacks (ϵ=8/255, α=0.5/255, n=40 and n=200), outperforming prior works.
  • For black-box attacks, DetectX achieves a ROC-AUC of 0.99, significantly outperforming Sterneck et al. [12], who report only 0.37, indicating reliable detection.
  • The DetectX module consumes 10x to 25x less energy than state-of-the-art neural network-based detectors, as validated on CIFAR10, CIFAR100, and Tiny-ImageNet benchmarks.
  • DetectX is immune to dynamic adversarial attacks due to its non-neural, hardware-signature-based design, unlike neural detector-based systems that are vulnerable to such attacks.
  • Phase 2 training successfully maintains low error rates even under strong adversarial attacks, ensuring consistent detection performance.
  • The method is device-agnostic and can be integrated with any memristive crossbar architecture regardless of the underlying NVM technology.

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.