DiTOX:ONNX优化器中的故障检测与定位
DiTOX: Fault Detection and Localization in the ONNX Optimizer
AI总结:
DiTOX通过差分测试和故障定位技术,发现ONNX优化器中15个问题,揭示了优化器在不同任务中的正确性问题。
摘要:
ONNX优化器是官方ONNX仓库的一部分,广泛用于图级别模型优化,并默认用于优化ONNX模型。尽管其受欢迎程度很高,但其在保持模型正确性方面的能力尚未得到系统性评估。我们提出了DiTOX,一个自动化框架,利用差分测试、故障定位和通用到其他编译器优化器的评估技术,全面评估ONNX优化器的正确性。DiTOX对ONNX模型的语料库应用优化步骤,执行原始和优化版本在用户定义的输入上,并检测行为差异或优化器故障。当出现分歧时,DiTOX通过迭代、细粒度分析来隔离负责的优化步骤。我们在ONNX模型库中的130个模型上评估了DiTOX,涵盖视觉和语言任务。我们发现,在默认设置下,9.2%的模型实例导致优化器崩溃或生成无效模型。此外,30%的分类模型和16.6%的对象检测和分割模型出现了输出差异,而基于文本的模型则大多稳健。总体而言,DiTOX发现了15个问题——14个之前未知的问题——影响了9个47个优化步骤以及优化器基础设施。所有问题都已报告给ONNX优化器开发者。我们的结果表明,DiTOX提供了一种简单而有效的方法来验证AI模型优化器,并且可以轻松扩展到ONNX之外。
英文摘要:
The ONNX Optimizer, part of the official ONNX repository and widely adopted for graph-level model optimizations, is used by default to optimize ONNX models. Despite its popularity, its ability to preserve model correctness has not been systematically evaluated. We present DiTOX, an automated framework for comprehensively assessing the correctness of the ONNX Optimizer using differential testing, fault localization, and evaluation techniques that generalize to other compiler optimizers. DiTOX applies optimization passes to a corpus of ONNX models, executes both original and optimized versions on user-defined inputs, and detects discrepancies in behavior or optimizer failures. When divergences are observed, DiTOX isolates the responsible optimization pass through iterative, fine-grained analysis. We evaluated DiTOX on 130 models from the ONNX Model Hub spanning vision and language tasks. We found that 9.2% of model instances crashed the optimizer or produced invalid models under default settings. Moreover, output discrepancies occurred in 30% of classification models and 16.6% of object detection and segmentation models, while text-based models were largely robust. Overall, DiTOX uncovered 15 issues -- 14 previously unknown -- affecting 9 of the 47 optimization passes as well as the optimizer infrastructure. All issues were reported to the ONNX Optimizer developers. Our results demonstrate that DiTOX provides a simple and effective approach for validating AI model optimizers and is readily extensible beyond ONNX.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。