paperbot · PL 论文追踪

全部论文 待读 收藏

P1 NB2P: Generating Data Science Pipelines from Computational Notebooks

NB2P:从计算笔记本生成数据科学流水线
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 5/10 · 该论文处于 PL+AI 交叉,用 AST 分析与学习式编解码从计算笔记本中抽取数据科学流水线,与“将程序分析用于 ML/数据科学系统”相邻;但它不涉及 Agentic/LLM 程序、静态分析/形式化验证、浮点或贝叶斯程序分析,且 LLM 仅作基线,因此匹配度中等。引用 0 inbox
Haotian Gao, Quang Trung Ta, Tien Tuan Anh Dinh, Nhut-Minh Ho, Zhiyong Huang, Beng Chin Ooi
crossref: 2026-09-12

AI 速览

一句话:提出 NB2P,自动从计算笔记本中提取可部署的数据科学流水线,性能优于 LLM 基线且开销低。

计算笔记本中单元格的执行顺序任意,数据操作混杂,导致难以提取内聚的数据科学流水线并迁移到生产系统。NB2P 系统在语法树层面分析笔记本以恢复执行顺序,并依据语义将数据操作分组为流水线阶段。为捕获数据流与细粒度层次信息,它采用基于树的学得编码-解码算法,最终组装阶段构建可部署的流水线。作者在 Kaggle 大规模笔记本语料上训练 NB2P,并与使用最先进大语言模型及其他方法的基线对比。实验表明,NB2P 持续优于基线且开销较低。

问题
从执行顺序任意、操作混杂的计算笔记本中自动提取内聚且可部署的数据科学流水线。
方法
在语法树层面恢复执行顺序,按语义分组数据操作,并使用基于树的学得编码-解码算法捕获数据流与层次信息,最终组装成流水线。
评估
在 Kaggle 大规模笔记本语料上训练,与最先进大语言模型等基线对比,NB2P 持续更优且开销低。
原文摘要(Abstract)

Computational notebooks empower data scientists to explore data, perform analytics, and share findings through data pipelines. Extracting these pipelines facilitates understanding and migrating them to production systems. However, notebook cells executed in arbitrary order complicate data flow between stages. Moreover, data operations may not be cleanly separated, hindering the extraction of cohesive pipeline components. In this paper, we propose NB2P, a novel system that automatically extracts data science pipelines from notebooks. Given a notebook, NB2P performs analysis at the syntax tree level to recover the execution order, then groups the data operations into pipeline stages based on semantics. It uses a tree-based, learned encoding-decoding algorithm that captures the data flow and fine-grained hierarchical information in the notebook. Finally, NB2P assembles the stages and constructs the final pipeline that can be deployed into production systems. We train NB2P on a large notebook corpus from Kaggle and compare it against baselines that use state-of-the-art large language models and other approaches. The experimental results show that NB2P consistently outperforms the baselines while incurring low overhead.

链接与引用

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

BibTeX
@inproceedings{paperbot11678,
  title = {NB2P: Generating Data Science Pipelines from Computational Notebooks},
  author = {Haotian Gao and Quang Trung Ta and Tien Tuan Anh Dinh and Nhut-Minh Ho and Zhiyong Huang and Beng Chin Ooi},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3744916.3773200}
}