Submitted:
02 December 2026
Posted:
04 December 2026
You are already at the latest version
Abstract
Deployed neural networks are often distributed solely as optimized, stripped binaries. Compilation obscures high-level model information, including operator types, computation graph topology, tensor shapes, operator attributes, and model parameters. Recovering this information is essential for white-box security analysis of deployed neural networks. However, existing neural-network binary decompilation methods primarily target conventional convolutional neural networks (CNNs) and cannot handle large-scale neural networks such as Transformers and large language models (LLMs). The primary challenges arise from complex operator fusion introduced by modern AI compilers. In this work, we present DeFusion, the first decompilation framework capable of decompiling LLMs from optimized x86 binaries. DeFusion combines the semantic reasoning capabilities of LLMs with precise static and dynamic program analysis to recover primitive operators within fused operators, their topology, attributes, and tensor shapes, model parameters, and the overall computation graph. We evaluate DeFusion on 18 neural networks spanning CNNs, Transformers, and LLMs, including models with more than seven billion parameters. DeFusion successfully decompiles all 18 models end to end and recovers complex fused operators containing up to eleven primitive operators. These results demonstrate that DeFusion extends neural-network binary decompilation beyond conventional CNNs to Transformers and LLMs.
Keywords:
decompilation
; neural networks
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.