paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Model-less Is the Best Model: Generating Pure Code Implementations to Replace On-Device DL Models

无模型即最佳模型:生成纯代码实现以替代端侧深度学习模型
ISSTA Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis2024匹配度 2/10 · 论文处于机器学习与程序语言的交叉,但核心是将端侧 DL 模型自动转换为纯代码以增强安全与性能,属于代码生成/模型保护方向,并非用户关注的静态分析、LLM/Agent 改进程序分析、浮点程序分析或贝叶斯程序分析。引用 4 inbox
Mingyi Zhou, Xiang Gao, Pei Liu, John Grundy, Chunyang Chen, Xiao Chen, Li Li
crossref: 2026-09-12

AI 速览

一句话:提出 CustomDLCoder,自动将端侧 DL 模型转换为无显式模型的定制纯代码程序,兼顾安全与性能。

端侧部署的深度学习模型(如 TFLite)易被攻击者从应用或设备中提取,进而发起对抗等攻击,而现有防护无法完全阻止。本文提出 CustomDLCoder,自动解析端侧 DL 模型,提取其后端计算代码并进行配置,进而合成一个无需保留显式模型表示的定制可执行程序来部署模型。该程序既隐藏模型信息以抵御模型嗅探等攻击,又去除模型解析与预处理步骤,仅保留数据计算。实验表明,相比 TFLite,该方法在 x86-64 与 ARM64 上分别加速推理 21.0% 和 24.3%,并降低内存消耗 68.8% 和 36.0%。

问题
端侧 DL 模型可被提取并用于对抗等攻击,传统软件保护难以直接应用,且缺乏自动将 DL 模型转为纯代码的方法。
方法
CustomDLCoder 解析 DL 模型、提取并配置后端计算代码,合成无显式模型表示的定制可执行程序。
评估
在 x86-64 与 ARM64 上对比 TFLite,验证其禁用模型嗅探,并测量推理加速与内存节省。
原文摘要(Abstract)

Recent studies show that on-device deployed deep learning (DL) models, such as those of Tensor Flow Lite (TFLite), can be easily extracted from real-world applications and devices by attackers to generate many kinds of adversarial and other attacks. Although securing deployed on-device DL models has gained increasing attention, no existing methods can fully prevent these attacks. Traditional software protection techniques have been widely explored. If on-device models can be implemented using pure code, such as C++, it will open the possibility of reusing existing robust software protection techniques. However, due to the complexity of DL models, there is no automatic method that can translate DL models to pure code. To fill this gap, we propose a novel method, CustomDLCoder, to automatically extract on-device DL model information and synthesize a customized executable program for a wide range of DL models. CustomDLCoder first parses the DL model, extracts its backend computing codes, configures the extracted codes, and then generates a customized program to implement and deploy the DL model without explicit model representation. The synthesized program hides model information for DL deployment environments since it does not need to retain explicit model representation, preventing many attacks on the DL model. In addition, it improves ML performance because the customized code removes model parsing and preprocessing steps and only retains the data computing process. Our experimental results show that CustomDLCoder improves model security by disabling on-device model sniffing. Compared with the original on-device platform (i.e., TFLite), our method can accelerate model inference by 21.0% and 24.3% on x86-64 and ARM64 platforms, respectively. Most importantly, it can significantly reduce memory consumption by 68.8% and 36.0% on x86-64 and ARM64 platforms, respectively.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8447,
  title = {Model-less Is the Best Model: Generating Pure Code Implementations to Replace On-Device DL Models},
  author = {Mingyi Zhou and Xiang Gao and Pei Liu and John Grundy and Chunyang Chen and Xiao Chen and Li Li},
  booktitle = {ISSTA},
  year = {2024},
  doi = {10.1145/3650212.3652119}
}