Lune

ICSE2023顶会

PYEVOLVE: Automating Frequent Code Changes in Python ML Systems

Malinda Dilhara, Danny Dig, Ameya Ketkar

摘要

Because of the naturalness of software and the rapid evolution of Machine Learning (ML) techniques, frequently repeated code change patterns (CPATs) occur often. They range from simple API migrations to changes involving several complex control structures such as for loops. While manually performing CPATs is tedious, the current state-of-the-art techniques for inferring transformation rules are not advanced enough to handle unseen variants of complex CPATs, resulting in a low recall rate. In this paper we present a novel, automated workflow that mines CPATs, infers the transformation rules, and then transplants them automatically to new target sites. We designed, implemented, evaluated and released this in a tool, PYEVOLVE. At its core is a novel data-flow, control-flow aware transformation rule inference engine. Our technique allows us to advance the state-of-the-art for transformation-by-example tools; without it, 70% of the code changes that PYEVOLVE transforms would not be possible to automate. Our thorough empirical evaluation of over 40,000 transformations shows 97% precision and 94% recall. By accepting 90% of CPATs generated by PYEVOLVE in famous open-source projects, developers confirmed its changes are useful.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Making Python code idiomatic by automatic refactoring non-idiomatic Python code with pythonic idioms 引用了 Discovering Repetitive Code Changes in Python ML Systems
  • Discovering Repetitive Code Changes in Python ML Systems 引用了 An empirical study on program failures of deep learning jobs
  • Discovering Repetitive Code Changes in Python ML Systems 引用了 An Empirical Study of Refactorings and Technical Debt in Machine Learning Systems
  • Refactoring to Pythonic Idioms: A Hybrid Knowledge-Driven Approach Leveraging Large Language Models 引用了 Making Python code idiomatic by automatic refactoring non-idiomatic Python code with pythonic idioms
  • Refactoring to Pythonic Idioms: A Hybrid Knowledge-Driven Approach Leveraging Large Language Models 引用了 Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Example
  • MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versions 引用了 Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Example
  • Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Example 引用了 Making Python code idiomatic by automatic refactoring non-idiomatic Python code with pythonic idioms
  • Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Example 引用了 Discovering Repetitive Code Changes in Python ML Systems
  • Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Example 引用了 An Empirical Study of Refactorings and Technical Debt in Machine Learning Systems
  • Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Example 引用了 PyNose: A Test Smell Detector For Python
  • Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Example 引用了 MELT: Mining Effective Lightweight Transformations from Pull Requests
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper11

  1. Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by ExampleMalinda Dilhara, Abhiram Bellur, Timofey Bryksin, Danny DigFSE 2024 · 18 次引用
  2. Refactoring to Pythonic Idioms: A Hybrid Knowledge-Driven Approach Leveraging Large Language ModelsZejun Zhang, Zhenchang Xing, Xiaoxue Ren, Qinghua Lu 等FSE 2024 · 11 次引用
  3. MELT: Mining Effective Lightweight Transformations from Pull RequestsDaniel Ramos, Hailie Mitchell, Inês Lynce, Vasco Manquinho 等ASE 2023 · 6 次引用
  4. MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across VersionsPucheng Dang, Di Huang, Dong Li, Kang Chen 等NeurIPS 2025 · 3 次引用
  5. Automated Deep Learning Optimization via DSL-Based Source Code TransformationRuixin Wang, Minghai Lu, Cody Hao Yu, Yi-Hsiang Lai 等ISSTA 2024 · 1 次引用

它引用的 Paper8

  1. An empirical study on program failures of deep learning jobsRu Zhang, Wencong Xiao, Hongyu Zhang, Yu Liu 等ICSE 2020 · 96 次引用
  2. An Empirical Study of Refactorings and Technical Debt in Machine Learning SystemsYiming Tang, Raffi Khatchadourian, Mehdi Bagherzadeh, Rhia Singh 等ICSE 2021 · 60 次引用
  3. PyNose: A Test Smell Detector For PythonTongjie Wang, Yaroslav Golubev, Oleg Smirnov, Jiawei Li 等ASE 2021 · 44 次引用
  4. Making Python code idiomatic by automatic refactoring non-idiomatic Python code with pythonic idiomsZejun Zhang, Zhenchang Xing, Xin Xia, Xiwei Xu 等FSE 2022 · 35 次引用
  5. Discovering Repetitive Code Changes in Python ML SystemsMalinda Dilhara, Ameya Ketkar, Nikhith Sannidhi, Danny DigICSE 2022 · 30 次引用

相关 Paper

  1. Inferring and Applying Type ChangesAmeya Ketkar, Oleg Smirnov, Nikolaos Tsantalis, Danny Dig 等ICSE 2022 · 17 次引用
  2. SPINFER: Inferring Semantic Patches for the Linux KernelLucas Serrano, Van-Anh Nguyen, Ferdian Thung, Lingxiao Jiang 等USENIX ATC 2020 · 16 次引用
  3. APP-Miner: Detecting API Misuses via Automatically Mining API Path PatternsJiasheng Jiang, Jingzheng Wu, Xiang Ling, Tianyue Luo 等S&P 2024 · 8 次引用
  4. reCode : A Lightweight Find-and-Replace Interaction in the IDE for Transforming Code by ExampleWode Ni, Joshua Sunshine, Vu Le, Sumit Gulwani 等UIST 2021 · 15 次引用
  5. DyLin: A Dynamic Linter for PythonAryaz Eghbali, Felix Burk, Michael PradelFSE 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖