Skip to main content
QUICK REVIEW

[Paper Review] Can one hear the shape of a neural network?: Snooping the GPU via Magnetic Side Channel

Henrique Teles Maia, Chang Xiao|arXiv (Cornell University)|Sep 15, 2021
Advanced Memory and Neural ComputingEngineering39 references5 citations
TL;DR

This paper demonstrates that a passive attacker can reconstruct the complete topology and hyperparameters of a black-box neural network running on a GPU by analyzing magnetic field fluctuations from the GPU's power cable using a low-cost $3 induction sensor. The method uses a two-stage approach—first classifying layer types via a BiLSTM classifier, then jointly optimizing hyperparameters through integer programming—achieving 55.19–77.36% transfer attack success on VGG and 84.47–98.56% on ResNet models.

ABSTRACT

Neural network applications have become popular in both enterprise and personal settings. Network solutions are tuned meticulously for each task, and designs that can robustly resolve queries end up in high demand. As the commercial value of accurate and performant machine learning models increases, so too does the demand to protect neural architectures as confidential investments. We explore the vulnerability of neural networks deployed as black boxes across accelerated hardware through electromagnetic side channels. We examine the magnetic flux emanating from a graphics processing unit's power cable, as acquired by a cheap $3 induction sensor, and find that this signal betrays the detailed topology and hyperparameters of a black-box neural network model. The attack acquires the magnetic signal for one query with unknown input values, but known input dimensions. The network reconstruction is possible due to the modular layer sequence in which deep neural networks are evaluated. We find that each layer component's evaluation produces an identifiable magnetic signal signature, from which layer topology, width, function type, and sequence order can be inferred using a suitably trained classifier and a joint consistency optimization based on integer programming. We study the extent to which network specifications can be recovered, and consider metrics for comparing network similarity. We demonstrate the potential accuracy of this side channel attack in recovering the details for a broad range of network architectures, including random designs. We consider applications that may exploit this novel side channel exposure, such as adversarial transfer attacks. In response, we discuss countermeasures to protect against our method and other similar snooping techniques.

Motivation & Objective

  • To investigate whether electromagnetic side channels from GPU power cables can leak detailed neural network architecture information.
  • To develop a non-intrusive, low-cost method for extracting neural network topology and hyperparameters from a single inference trace.
  • To enable adversarial transfer attacks by reconstructing accurate surrogate models of black-box neural networks.
  • To evaluate the feasibility and accuracy of this side-channel attack across diverse GPU models and complex architectures.
  • To propose countermeasures against such physical side-channel leaks in deployed deep learning systems.

Proposed method

  • Capture magnetic flux variations from the GPU power cable using a low-cost $3 induction sensor placed near the cable.
  • Use a BiLSTM-based classifier to identify layer types (e.g., convolutional, fully connected, normalization) from the EM signal trace.
  • Estimate individual layer hyperparameters (e.g., kernel size, filter count, input/output dimensions) using dedicated deep neural network models.
  • Formulate joint hyperparameter optimization as an integer programming problem to ensure architectural consistency across layers.
  • Leverage the modular, sequential evaluation pattern of deep neural networks to map signal signatures to layer sequences.
  • Validate reconstruction accuracy by measuring transfer attack success rates on reconstructed models.

Experimental results

Research questions

  • RQ1Can magnetic side-channel signals from a GPU’s power cable reveal the topology and hyperparameters of a black-box neural network?
  • RQ2To what extent can a passive observer reconstruct complex, state-of-the-art deep learning models using only a single inference trace?
  • RQ3How accurate is the reconstructed model in enabling adversarial transfer attacks compared to existing methods?
  • RQ4What are the limitations of this approach in handling non-linear or graph-based architectures and training-phase operations?
  • RQ5What countermeasures can be effectively deployed to mitigate such side-channel leakage in production systems?

Key findings

  • The method successfully reconstructed full neural network architectures—including VGG and ResNet variants—using only a single inference trace and a $3 magnetic sensor.
  • Transfer attack success rates reached 55.19–77.36% for VGG and 84.47–98.56% for ResNet, significantly outperforming prior EM-based methods.
  • The approach generalizes across multiple GPU models and supports diverse layer types, including recurrent, pooling, and normalization layers.
  • The reconstruction accuracy is robust even for deep networks with hundreds of layers, surpassing previous methods limited to tens of layers.
  • The attack does not require access to input-output data, memory traces, or hardware tampering, making it highly practical and stealthy.
  • The method cannot detect dropout or other training-only operations, as they are inactive during inference, highlighting a key limitation.

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.