paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Scalpel: Automotive Deep Learning Framework Testing via Assembling Model Components

Scalpel:通过组装模型组件对汽车深度学习框架进行测试
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 3/10 · 论文关注汽车深度学习框架的差分测试与缺陷发现,属于机器学习系统质量保障方向,与用户画像中的 ML 系统/程序分析有弱关联;但其核心是动态测试与模型组件组装,不涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析,因此匹配度较低。引用 0 inbox
Yinglong Zou, Juan Zhai, Chunrong Fang, An Guo, Jiawei Liu, Zhenyu Chen
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:在模型组件(head/neck/backbone)层面组装测试输入模型,对汽车深度学习框架做差分测试以发现崩溃与数值不一致缺陷。

汽车深度学习框架为满足实时性与资源约束而优化,但在复杂部署环境下易出现调度内存受限引发的崩溃与内存分配错误等质量问题。现有 DL 框架测试方法生成的模型因缺少多输入/输出张量、多模态数据与多层级特征提取能力而无法部署到自动驾驶系统,导致漏检。Scalpel 在模型组件层面生成测试模型:维护 heads/necks/backbones 组件仓库,经选择、变异与组装生成模型,并将部署成功的模型回填仓库,再在自动驾驶系统中进行差分测试。在 Apollo 中检出 16 个崩溃与 21 个 NaN/不一致缺陷(10 个崩溃获确认),模型生成与缺陷检测效率分别提升 27.44× 与 8.5×;Autoware 中检出 9 个崩溃与 16 个缺陷,展现泛化性。

问题
汽车深度学习框架部署环境复杂,易出现调度内存受限导致的崩溃、内存分配错误等独特质量缺陷,而现有 DL 框架测试方法生成的模型缺少多输入/输出张量、多模态数据与多层级特征提取能力,无法部署到自动驾驶系统,因而无法检出这些问题。
方法
Scalpel 在模型组件层面生成测试输入:维护并更新由 head、neck、backbone 组成的模型组件仓库,通过选择、变异与组装生成可部署的模型,将成功模型回填以扩充仓库,再把新模型部署到自动驾驶系统中用差分测试检测框架缺陷。
评估
在 Apollo 与 Autoware 两个自动驾驶系统上评估:Apollo 中检出 16 个崩溃与 21 个 NaN/不一致缺陷(10 个崩溃已被社区确认),模型生成效率与缺陷检测效率分别提升 27.44× 和 8.5×;Autoware 中检出 9 个崩溃与 16 个 NaN/不一致缺陷,验证了泛化能力。
原文摘要(Abstract)

Deep learning (DL) plays a key role in autonomous driving systems. DL models support perception modules, equipped with tasks such as object detection and sensor fusion. These DL models enable vehicles to process multi-sensor inputs to understand complex surroundings. Deploying DL models in autonomous driving systems faces stringent challenges, including real-time processing, limited computational resources, and strict power constraints. To address these challenges, automotive DL frameworks (e.g., PaddleInference) have emerged to optimize inference efficiency. However, these frameworks encounter unique quality issues due to their more complex deployment environments, such as crashes stemming from limited scheduled memory and incorrect memory allocation. Unfortunately, existing DL framework testing methods fail to detect these quality issues due to the failure in deploying generated test input models, as these models lack three essential capabilities: (1) multi-input/output tensor processing, (2) multi-modal data processing, and (3) multi-level data feature extraction. These capabilities necessitate specialized model components, which existing testing methods neglect during model generation. To bridge this gap, we propose Scalpel, an automotive DL frameworks testing method that generates test input models at the model component level. Scalpel generates models by assembling model components (heads, necks, backbones) to support capabilities required by autonomous driving systems. Specifically, Scalpel maintains and updates a repository of model components, generating test inputs by selecting, mutating, and assembling them. Successfully generated models are added back to enrich the repository. Newly generated models are then deployed within the autonomous driving system to test automotive DL frameworks via differential testing. The experimental results demonstrate that Scalpel outperforms existing methods in both effectiveness and efficiency. In Apollo, Scalpel detects 16 crashes and 21 NaN & inconsistency bugs. All detected bugs have been reported to open-source communities, with 10 crashes confirmed. Scalpel achieves 27.44 × and 8.5 × improvements in model generation efficiency and bug detection efficiency. Additionally, Scalpel detects nine crashes and 16 NaN & inconsistency bugs in Autoware, which shows its excellent generalization.

链接与引用

DOI 原文 · arXiv · DBLP

BibTeX
@inproceedings{abs-2510-21451,
  title = {Scalpel: Automotive Deep Learning Framework Testing via Assembling Model Components},
  author = {Yinglong Zou and Juan Zhai and Chunrong Fang and An Guo and Jiawei Liu and Zhenyu Chen},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3744916.3773242}
}