arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.09957cs.SEcs.LG
收藏

数据感知静态分析:利用数据特征改进机器学习代码中语义故障的检测

Data-aware Static Analysis: Improving Detection of Semantic Faults in Machine Learning Code Using Data Characteristics

Knut and Alice Wallenberg Foundation(Knut和Alice沃尔贝格基金会);Software Center Project 61(软件中心项目61);Vinnova CoDig competence center(Vinnova CoDig专业中心)

Willem Meijer, Kristian Sandahl, Dániel Varró

AI总结:

提出一种数据感知静态分析方法,结合数据流与控制流分析及API契约,在编写代码时而非训练后检测机器学习代码中的语义故障,如误用未缩放数据训练尺度敏感模型。

摘要:

机器学习模型使用中的语义故障是机器学习开发者常见的问题,会导致预测次优、计算成本高或输出错误。例如,有人可能错误地使用未缩放的数据来训练尺度敏感模型。机器学习开发者在训练模型后手动分析结果来检测这些故障,这使得过程效率低下。我们提出了一种新颖的数据感知静态分析方法来检测机器学习代码中的语义故障,使开发者能够在编写代码时而不是在训练模型后揭示这些错误。我们的方法结合了数据流和控制流分析以及API契约,能够在高抽象层次上对机器学习代码进行数据感知推理。通过分析真实世界的机器学习笔记本样本,我们展示了我们解决方案的潜力,发现我们可以检测需要数据感知方法的故障。

英文摘要:

Semantic faults specific to the use of machine learning models are a common problem for machine learning developers, causing suboptimal predictions, high computational cost, or incorrect outputs. For example, one may erroneously use unscaled data to train a scale-sensitive model. Machine learning developers detect these faults after training their models and manually analyzing the results, making it an inefficient process. We propose a novel data-aware static analysis approach to detect semantic faults in machine learning code, allowing developers to reveal these bugs while writing code instead of after training the model. Our approach uses combined data and control flow analysis, and API contracts, enabling data-aware reasoning about machine learning code at a high level of abstraction. We highlight the potential of our solution by analyzing a sample of real-world machine learning notebooks, finding that we can detect faults that require a data-aware approach.

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

↑