arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.20616cs.SEcs.DC
收藏

利用MPI突变进行AI错误检测

Harnessing MPI mutations for AI error detection

Inria(法国国家信息与自动化研究所);University of Versailles(凡尔赛大学)

Asia Auville, Tim Jammer, Eric Petit, Pablo de Oliveira Castro, Emmanuelle Saillard, Mihail Popov

AI总结:

本文提出MPI突变数据集(MMD),训练结合AST-T5嵌入的MLP检测MPI错误,部分性能优于Qwen-3 Coder LLM,经优化提示的Claude Sonnet 4.5超ITAC,为MPI错误检测提供新基准

摘要:

尽管已有大量专家验证工具,MPI错误仍难以识别。动态工具(需要性能分析)计算成本高但错误检测准确,而静态分析(在源代码或编译阶段运行)计算成本低但准确性较差。有趣的是,AI和大语言模型(LLM)近期的成功提供了一种替代方案,可在保持静态分析低开销的同时提高其准确性。然而当前方法仍难以基准测试、过于通用,且难以适应高性能计算的特定挑战。本文研究了AI驱动工具如何高效准确地检测真实世界MPI应用中的错误。我们提出了一种新型MPI突变数据集(MMD),该数据集由从数千个开源GitHub项目中提取的MPI程序构建而成。在对这些文件进行排序和过滤后,我们使用合成代码突变注入能真实模拟开发者错误的错误。我们利用该数据集训练不同的AI模型,并评估它们相对于标准验证工具的泛化能力。我们训练了紧凑的多层感知器(MLP),结合AST-T5嵌入(仅Transformer编码器网络)来检测多种MPI错误(来自MPI-BugBench(MBB)分类,包括调用顺序错误或无效参数),检测准确率高达92.0%。在某些情况下,我们的方法优于经专家提示的Qwen-3 Coder LLM,并与成熟的动态验证工具相比具有竞争力。我们进一步评估了Claude Sonnet 4.5在不同提示策略下的表现,结果显示,精心设计的提示将无效参数检测准确率从84.8%提高到93.6%,超过了动态工具ITAC(87.0%)。完整的智能体流程在MBB上实现了73.9%的整体多分类准确率和87.6%的错误检测召回率。这为大规模验证工作铺平了道路,这些工作可使用我们的数据集作为基础,彻底研究真实世界应用中的每个MPI错误。

英文摘要:

MPI errors are challenging to identify despite the significant number of expert verification tools. Dynamic tools (i.e., requiring profiling) are computationally expensive and accurate in error detection, whereas static analysis (i.e., operating at source code or compilation) is computationally cheap but less accurate. Interestingly, the recent success of AI and LLMs offers an alternative to increase static analysis accuracy while preserving its low overhead. Yet current methods remain difficult to benchmark, too general, and poorly adapted to the specific challenges of high-performance computing. In this paper, we investigate how AI-powered tools can efficiently and accurately detect errors in real-world MPI applications. We propose a novel MPI Mutated Dataset (MMD), constructed from MPI programs extracted from thousands of open-source GitHub projects. After sorting and filtering these files, we inject errors that realistically emulate developers' mistakes using synthetic code mutations. We leverage the dataset to train different AI models and assess their generalization capabilities against standard verification tools. We train compact multilayer perceptrons (MLP) with AST-T5 embeddings (i.e., transformer only encoder network) to detect diverse MPI errors (from the MPI-BugBench (MBB) classification) including CallOrdering or InvalidParameter, achieving detection accuracies up to 92.0%. In some cases, our method outperforms the expert prompted Qwen-3 Coder LLM and provides competitive results compared to established dynamic verification tools. We further evaluate Claude Sonnet 4.5 across different prompting strategies, showing that engineered prompts improve InvalidParam detection accuracy from 84.8% to 93.6%, surpassing the dynamic tool ITAC (87.0%). The full agentic pipeline achieves 73.9% overall multi-class accuracy and 87.6% bug detection recall on MBB. This paves the way for large-scale verification efforts that can use our dataset as a foundation to thoroughly investigate each MPI error in real world applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑