paperbot · PL 论文追踪

全部论文 待读 收藏

P1 The raise of machine learning hyperparameter constraints in Python code

Python 代码中机器学习超参数约束的异常引发分析
ISSTA Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis2022匹配度 6/10 · 论文将过程间最弱前置条件分析与抽象解释用于 Python 机器学习库,自动抽取 ML 超参数约束并发现真实缺陷,属于“PL→AI”中面向机器学习系统的静态分析方向;但不涉及 Agentic/LLM 程序、浮点程序分析或贝叶斯程序分析,因此并非该研究画像的核心匹配。引用 1 inbox
Ingkarat Rak-amnouykit, Ana Milanova, Guillaume Baudart, Martin Hirzel, Julian Dolby
crossref: 2026-09-12

AI 速览

一句话:提出首个 Python 过程间最弱前置条件分析,抽取 ML 超参数约束并在 8 个库的高精度发现真实缺陷。

机器学习算子常存在跨多个超参数或数据的正确性约束,违反这些约束会触发运行时异常,但相关文档通常不完整甚至缺失。本文提出首个针对 Python 的过程间最弱前置条件分析,用于抽取机器学习超参数约束。该分析以静态分析为主,并在处理机器学习库中典型 Python 惯用法时选择性地切换到具体域,以保证分析的可处理性。作者在来自 8 个机器学习库的 181 个算子上抽取超参数约束,实验取得高精度与高召回率,并发现了真实 bug。该工作推进了 Python 静态分析,也朝着更安全、更鲁棒的机器学习迈出一步。

问题
机器学习算子常带有跨多个超参数或数据的正确性约束,违反时会引发运行时异常,但这类约束通常缺乏完整、正式的文档。
方法
提出首个面向 Python 的过程间最弱前置条件分析,静态抽取超参数约束,并在必要时选择性使用具体域处理典型 Python 惯用法。
评估
从 8 个机器学习库的 181 个算子中抽取超参数约束,报告了高精度和高召回率,并发现真实 bug。
原文摘要(Abstract)

Machine-learning operators often have correctness constraints that cut across multiple hyperparameters and/or data. Violating these constraints causes the operator to raise runtime exceptions, but those are usually documented only informally or not at all. This paper presents the first interprocedural weakest-precondition analysis for Python to extract hyperparameter constraints. The analysis is mostly static, but to make it tractable for typical Python idioms in machine-learning libraries, it selectively switches to the concrete domain for some cases. This paper demonstrates the analysis by extracting hyperparameter constraints for 181 operators from a total of 8 ML libraries, where it achieved high precision and recall and found real bugs. Our technique advances static analysis for Python and is a step towards safer and more robust machine learning.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot7385,
  title = {The raise of machine learning hyperparameter constraints in Python code},
  author = {Ingkarat Rak-amnouykit and Ana Milanova and Guillaume Baudart and Martin Hirzel and Julian Dolby},
  booktitle = {ISSTA},
  year = {2022},
  doi = {10.1145/3533767.3534400}
}