FlatD: Protecting Deep Neural Network Program from Reversing Attacks

  • Jinquan Zhang
  • , Zihao Wang
  • , Dinghao Wu
  • , Pei Wang
  • , Rui Zhong

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

The emergence of Deep Learning compilers provides automated optimization and compilation across Deep Learning frameworks and hardware platforms, which enhances the performance of AI service and benefits the deployment to edge devices and low-power processors. However, deep neural network (DNN) programs generated by Deep Learning compilers introduce a new attack interface. They are targeted by new model extraction attacks that can fully or partially rebuild the DNN model by reversing the DNN programs. Unfortunately, no defense countermeasure is designed to hinder this kind of attack. To address the issue, we investigate all of the state-of-the-art reversing-based model extraction attacks and identify an essential component shared across the frameworks. Based on this observation, we propose FlatD, the first defense framework for DNN programs toward reversing-based model extraction attacks. FlatD manipulates and conceals the original Control Flow Graphs of DNN programs based on Control Flow Flattening. Unlike traditional Control Flow Flattening, FlatD ensures the DNN programs are challenging for attackers to recover their Control Flow Graphs and gain necessary information statically. Our evaluation shows that, compared to the traditional Control Flow Flattening (O-LLVM), FlatD provides more effective and stealthy protection to DNN programs with similar performance and lower scale.

Original languageEnglish (US)
Title of host publicationProceedings - 2025 IEEE/ACM 47th International Conference on Software Engineering
Subtitle of host publicationSoftware Engineering in Practice, ICSE-SEIP 2025
PublisherInstitute of Electrical and Electronics Engineers
Pages641-652
Number of pages12
Edition2025
ISBN (Electronic)9798331536855
DOIs
StatePublished - 2025
Event47th IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice, ICSE-SEIP 2025 - Ottawa, Canada
Duration: Apr 27 2025May 3 2025

Conference

Conference47th IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice, ICSE-SEIP 2025
Country/TerritoryCanada
CityOttawa
Period4/27/255/3/25

All Science Journal Classification (ASJC) codes

  • Software
  • Safety, Risk, Reliability and Quality

Fingerprint

Dive into the research topics of 'FlatD: Protecting Deep Neural Network Program from Reversing Attacks'. Together they form a unique fingerprint.

Cite this