Decompiling x86 Deep Neural Network Executables
Not on the map. Why?
Abstract (arXiv)
Due to their widespread use on heterogeneous hardware devices, deep learning (DL) models are compiled into executables by DL compilers to fully leverage low-level hardware primitives. This approach allows DL computations to be undertaken at low cost across a variety of computing platforms, including CPUs, GPUs, and various hardware accelerators. We present BTD (Bin to DNN), a decompiler for deep neural network (DNN) executables. BTD takes DNN executables and outputs full model specifications, including types of DNN operators, network topology, dimensions, and parameters that are (nearly) identical to those of the input models. BTD delivers a practical framework to process DNN executables compiled by different DL compilers and with full optimizations enabled on x86 platforms. It employs learning-based techniques to infer DNN operators, dynamic analysis to reveal network architectures, and symbolic execution to facilitate inferring dimensions and parameters of DNN operators. Our evaluation reveals that BTD enables accurate recovery of full specifications of complex DNNs with millions of parameters (e.g., ResNet). The recovered DNN specifications can be re-compiled into a new DNN executable exhibiting identical behavior to the input executable. We show that BTD can boost two representative attacks, adversarial example generation and knowledge stealing, against DNN executables. We also demonstrate cross-architecture legacy code reuse using BTD, and envision BTD being used for other critical downstream tasks like DNN security hardening and patching.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 45 of its 116 references that are in the map. First posted on arXiv 3 Oct 2022.
Builds on
45 of 116 references.
References · 45
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2014Going Deeper with Convolutionscited by 4,231
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2016Enriching Word Vectors with Subword Informationcited by 1,578
33 more
- 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,194
- 2016Practical Black-Box Attacks against Machine Learningcited by 893
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 774
- 2016Universal adversarial perturbationscited by 774
- 2016CNN Architectures for Large-Scale Audio Classificationcited by 701
- 2016Stealing Machine Learning Models via Prediction APIscited by 602
- 2016Delving into Transferable Adversarial Examples and Black-box Attackscited by 530
- 2019Dreaming to Distill: Data-free Knowledge Transfer via DeepInversioncited by 419
- 2018Knockoff Nets: Stealing Functionality of Black-Box Modelscited by 285
- 2019Simple Black-box Adversarial Attackscited by 249
- 2014cuDNN: Efficient Primitives for Deep Learningcited by 240
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
- 2019Stolen Memories: Leveraging Model Memorization for Calibrated White-Box Membership Inferencecited by 168
- 2018Learning to Optimize Tensor Programscited by 138
- 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 84
- 2018Glow: Graph Lowering Compiler Techniques for Neural Networkscited by 73
- 2019Black-Box Adversarial Attack with Transferable Model-based Embeddingcited by 57
- 2018Cache Telepathy: Leveraging Shared Resource Attacks to Learn DNN Architecturescited by 56
- 2018Tiramisu: A Polyhedral Compiler for Expressing Fast and Portable Codecited by 53
- 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
- 2020The Deep Learning Compiler: A Comprehensive Surveycited by 46
- 2018Stealing Neural Networks via Timing Side Channelscited by 42
- 2020Hermes Attack: Steal DNN Models with Lossless Inference Accuracycited by 41
- 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 34
- 2019Hybrid Batch Attacks: Finding Black-box Adversarial Examples with Limited Queriescited by 33
- 2020Learning Black-Box Attackers with Transferable Priors and Query Feedbackcited by 32
- 2018Optimizing CNN Model Inference on CPUscited by 29
- 2019Open DNN Box by Power Side-Channel Attackcited by 28
- 2020Efficient Execution of Quantized Deep Learning Models: A Compiler Approachcited by 12
- 2020Two Sides of the Same Coin: White-box and Black-box Attacks for Transfer Learningcited by 9
- 2019Datalog Disassemblycited by 7
- 2020Stealing Black-Box Functionality Using The Deep Neural Tree Architecturecited by 3
- 2017Audio Scene Classification with Deep Recurrent Neural Networkscited by 2
Built on by
Citing papers per year: 2023: 2; 2024: 0; 2025: 3; 2026: 2.
7 papers.
- 2023Nova: Generative Language Models for Assembly Code with Hierarchical Attention and Contrastive Learningcited by 12
- 2023Compiled Models, Built-In Exploits: Uncovering Pervasive Bit-Flip Attack Surfaces in DNN Executablescited by 2
- 2025Activation Functions Considered Harmful: Recovering Neural Network Weights through Controlled Channelscited by 2
- 2025THEMIS: Towards Practical Intellectual Property Protection for Post-Deployment On-Device Deep Learning Modelscited by 2
- 2025NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executablescited by 0
- 2026PCodeTrans: Translate Decompiled Pseudocode to Compilable and Executable Equivalentcited by 0
- 2026SoK: AI-Augmented Binary Reversingcited by 0
- 2026SoK: AI-Augmented Binary Reversing16 Jun 2026
- 2026PCodeTrans: Translate Decompiled Pseudocode to Compilable and Executable Equivalent16 Mar 2026
- 2025NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executables8 Sep 2025
- 2025THEMIS: Towards Practical Intellectual Property Protection for Post-Deployment On-Device Deep Learning Models31 Mar 2025
- 2025Activation Functions Considered Harmful: Recovering Neural Network Weights through Controlled Channels24 Mar 2025
- 2023Nova: Generative Language Models for Assembly Code with Hierarchical Attention and Contrastive Learning22 Nov 2023
- 2023Compiled Models, Built-In Exploits: Uncovering Pervasive Bit-Flip Attack Surfaces in DNN Executables12 Sep 2023