How to 0wn NAS in Your Spare Time
Not on the map. Why?
Abstract (arXiv)
New data processing pipelines and novel network architectures increasingly drive the success of deep learning. In consequence, the industry considers top-performing architectures as intellectual property and devotes considerable computational resources to discovering such architectures through neural architecture search (NAS). This provides an incentive for adversaries to steal these novel architectures; when used in the cloud, to provide Machine Learning as a Service, the adversaries also have an opportunity to reconstruct the architectures by exploiting a range of hardware side channels. However, it is challenging to reconstruct novel architectures and pipelines without knowing the computational graph (e.g., the layers, branches or skip connections), the architectural parameters (e.g., the number of filters in a convolutional layer) or the specific pre-processing steps (e.g. embeddings). In this paper, we design an algorithm that reconstructs the key components of a novel deep learning system by exploiting a small amount of information leakage from a cache side-channel attack, Flush+Reload. We use Flush+Reload to infer the trace of computations and the timing for each computation. Our algorithm then generates candidate computational graphs from the trace and eliminates incompatible candidates through a parameter estimation process. We implement our algorithm in PyTorch and Tensorflow. We demonstrate experimentally that we can reconstruct MalConv, a novel data pre-processing pipeline for malware detection, and ProxylessNAS- CPU, a novel network architecture for the ImageNet classification optimized to run on CPUs, without knowing the architecture family. In both cases, we achieve 0% error. These results suggest hardware side channels are a practical attack vector against MLaaS, and more efforts should be devoted to understanding their impact on the security of deep learning systems.
Key facts. Cited by 11 papers in the map (data through 13 Oct 2026). First posted on arXiv 17 Feb 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 3; 2023: 3; 2024: 1.
11 papers.
- 2022I Know What You Trained Last Summer: A Survey on Stealing Machine Learning Models and Defencescited by 75
- 2021DeepSteal: Advanced Model Extractions Leveraging Efficient Weight Stealing in Memoriescited by 42
- 2024What Was Your Prompt? A Remote Keylogging Attack on AI Assistantscited by 26
- 2021Can one hear the shape of a neural network?: Snooping the GPU via Magnetic Side Channelcited by 8
- 2021On the Security Risks of AutoMLcited by 7
- 2022Careful What You Wish For: on the Extraction of Adversarially Trained Modelscited by 6
- 2023Army of Thieves: Enhancing Black-Box Model Extraction via Ensemble based sample selectioncited by 6
- 2022Privacy of Autonomous Vehicles: Risks, Protection Methods, and Future Directionscited by 4
- 2023Mercury: An Automated Remote Side-channel Attack to Nvidia Deep Learning Acceleratorcited by 4
- 2021Ownership Verification of DNN Architectures via Hardware Cache Side Channelscited by 3
- 2023Side Channel-Assisted Inference Leakage from Machine Learning-based ECG Classificationcited by 0
- 2024What Was Your Prompt? A Remote Keylogging Attack on AI Assistants14 Mar 2024
- 2023Army of Thieves: Enhancing Black-Box Model Extraction via Ensemble based sample selection8 Nov 2023
- 2023Mercury: An Automated Remote Side-channel Attack to Nvidia Deep Learning Accelerator2 Aug 2023
- 2023Side Channel-Assisted Inference Leakage from Machine Learning-based ECG Classification4 Apr 2023
- 2022Privacy of Autonomous Vehicles: Risks, Protection Methods, and Future Directions8 Sep 2022
- 2022Careful What You Wish For: on the Extraction of Adversarially Trained Models21 Jul 2022
- 2022I Know What You Trained Last Summer: A Survey on Stealing Machine Learning Models and Defences16 Jun 2022
- 2021DeepSteal: Advanced Model Extractions Leveraging Efficient Weight Stealing in Memories8 Nov 2021
- 2021On the Security Risks of AutoML12 Oct 2021
- 2021Can one hear the shape of a neural network?: Snooping the GPU via Magnetic Side Channel15 Sep 2021
- 2021Ownership Verification of DNN Architectures via Hardware Cache Side Channels6 Feb 2021