arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.03640cs.SE
收藏

AI 可以简单吗?从 EZR.py 工具包中汲取的经验教训

Can AI be Easy? Lessons Learned from the EZR.py Toolkit

North Carolina State University(北卡罗来纳州立大学)

Tim Menzies, Srinath Srinivasan, Kishan Ganguly

AI总结:

本文通过开发仅 400 行的 EZR.py 工具包,证明在表格软件工程优化任务中,通过阅读和重构代码可以简化 AI 算法,使小型统一工具包在性能上媲美甚至超越大型库。

摘要:

最近许多媒体报道声称开发者不再需要阅读代码。我们对此持不同意见,至少在表格软件工程(SE)优化任务领域内:即 $x$ 和 $y$ 值的行,其中 $y$ 值的获取成本高昂。作为证据,我们提供了 400 行的 this http URL,一个 Python 工具包(无重型依赖),实现了朴素贝叶斯、$k$-means 聚类、分类与回归树、模拟退火、局部搜索、主动学习以及用于表格 SE 数据的互补贝叶斯文本挖掘相关性过滤。EZR 是通过反复阅读和重构 AI 工具以简化和统一它们而构建的。结果表明,许多看似不同的学习算法在剥离到核心后几乎相同:经典算法每行只需几行代码,而最先进的主动学习器仅需约 80 行。在 MOOT 仓库中的 120 多个表格 SE 优化任务上测试,这些小型工具的性能与最先进的解释工具(SHAP、LIME)、SMAC3 优化器和基于 SVM 的文本挖掘过滤器(FASTREAD)相当或更好,同时运行速度比 SMAC3 快 500 倍,使用的标记数据量少几个数量级,并且即使有数千个变量,也能从少于十个变量构建树。我们得出结论,在表格 SE 优化范围内,阅读和重构代码是产生洞察力的有用方法,小型统一工具包可以媲美大型库。EZR 以开源许可证提供。通过 extsf{pip install ezr} 安装;示例数据在 extsf{this http URL}。

英文摘要:

Much recent press claims that developers no longer need to read code. We disagree, at least within the domain of tabular software-engineering (SE) optimization tasks: rows of $x$ and $y$ values where the $y$ values are expensive to obtain. As evidence we present 400 lines of EZR.py, a Python toolkit (no heavy dependencies) that implements Naive Bayes, $k$-means clustering, classification and regression trees, simulated annealing, local search, active learning, and complementary-Bayes text-mining relevance filtering for tabular SE data. EZR was built by repeatedly reading and refactoring AI tools to simplify and unify them. The result demonstrates that many seemingly different learning algorithms are nearly the same once stripped back to their core: classical algorithms collapse to a few lines each, and a state-of-the-art active learner fits in roughly 80 lines. Tested on the 120+ tabular SE optimization tasks in the MOOT repository, these tiny tools perform as well as or better than state-of-the-art explanation tools (SHAP, LIME), the SMAC3 optimizer, and SVM-based text-mining filters (FASTREAD), while running 500$\times$ faster than SMAC3, using orders of magnitude less labelled data, and building trees from fewer than ten variables even when thousands are available. We conclude that, within the scope of tabular SE optimization, reading and refactoring code is a useful method of generating insight, and small unified toolkits can rival large libraries. EZR is available under an open-source license. Install via \textsf{pip install ezr}; example data at \textsf{github.com/timm/moot}.

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

↑