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

机器学习工程笔记本的自动化现代化进程以实现可重现性

Automated Modernization of Machine Learning Engineering Notebooks for Reproducibility

University of Waterloo(滑铁卢大学);Google(谷歌公司)

Bihui Jin, Kaiyuan Wang, Pengyu Nie

AI总结:

本文提出MLEModernizer,通过LLM驱动的框架自动化现代化工机器学习工程笔记本,以恢复其在不断变化的环境中的可重现性。

摘要:

交互式计算笔记本(例如Jupyter笔记本)在机器学习工程(MLE)中被广泛用于编程和共享端到端流程,从数据准备到模型训练和评估。然而,环境侵蚀——机器学习硬件和软件生态系统的快速演变——使得许多已发表的MLE笔记本在当代环境中不可重现,阻碍了代码重用和科学进步。为了量化这一差距,我们研究了从79个流行Kaggle竞赛中挖掘出的12,720个笔记本:只有35.4%在当今环境中仍可重现。关键发现是,环境回退,即将依赖项降级以匹配提交时间,不会提高可重现性,反而引入了额外的失败模式。为了解决环境侵蚀问题,我们设计并实现了MLEModernizer,一个基于大语言模型(LLM)的代理框架,将当代环境视为固定约束,并将笔记本代码现代化以恢复可重现性。MLEModernizer通过迭代执行笔记本、收集执行反馈并应用三种类型的针对性修复(错误修复、运行时间减少和分数校准)来实现。在7,402个在基线环境中不可重现的笔记本上评估,MLEModernizer使5,492(74.2%)个笔记本可重现。MLEModernizer使从业者能够在硬件和软件生态系统持续演变时验证、重用和维护MLE成果。

英文摘要:

Interactive computational notebooks (e.g., Jupyter notebooks) are widely used in machine learning engineering (MLE) to program and share end-to-end pipelines, from data preparation to model training and evaluation. However, environmental erosion-the rapid evolution of hardware and software ecosystems for machine learning-has rendered many published MLE notebooks non-reproducible in contemporary environments, hindering code reuse and scientific progress. To quantify this gap, we study 12,106 notebooks selected from 75 popular Kaggle competitions: only 26% remain reproducible today. Crucially, we find that environment backporting, i.e., downgrading dependencies to match the submission time, does not improve reproducibility (decreased to 12%) but rather introduces additional failure modes. To address environmental erosion, we design and implement MLEModernizer, an LLM-driven agentic framework that treats the contemporary environment as a fixed constraint and modernizes notebook code to restore reproducibility. MLEModernizer iteratively executes notebooks, collects execution feedback, and applies three types of targeted fixes: error-repair, runtime-reduction, and score-calibration. Evaluated on 8,210 notebooks that are non-reproducible under the baseline environment, MLEModernizer makes 3,292 (40.1%, GPT-5.2) and 3,683 (44.9%, GPT-OSS-120b) notebooks reproducible. MLEModernizer presents a best-effort automated recovery and modernization technique that can improve reproducibility for a subset of notebooks. Practitioners can leverage MLEModernizer to validate, reuse, and maintain MLE artifacts as the hardware and software ecosystems continue to evolve.

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

↑