Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Example
Not on the map. Why?
Abstract (arXiv)
Software developers often repeat code changes, known as "code change patterns" (CPATs), within and across projects. Automating these CPATs accelerates development, but current Transformation by Example (TBE) techniques are limited by the input examples' quality and quantity, missing variations with different syntax or flow yet semantically similar. Large Language Models (LLMs), trained on vast code datasets, can overcome these limitations by generating semantically equivalent, unseen CPAT variants, enhancing TBE effectiveness. We identified best practices for using LLMs to generate code variants meeting criteria of correctness, usefulness, and applicability. Implementing these in PyCraft, combining static and dynamic analysis with LLMs, we achieved an F-measure of 96.6% in identifying correct variants, expanding inputs by 58x on average, and automating changes to increase target codes by up to 39x. Patches from PyCraft were submitted to projects like microsoft/DeepSpeed and IBM/inFairness, with an 83% acceptance rate, validating our approach's usefulness.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 Feb 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 3; 2025: 7; 2026: 5.
15 papers.
Sort:
By area:
- 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projectscited by 45
- 2025Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modificationscited by 20
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 15
- 2025Migrating Code At Scale With LLMs At Googlecited by 14
- 2024Artificial-Intelligence Generated Code Considered Harmful: A Road Map for Secure and High-Quality Code Generationcited by 11
- 2025On the Effectiveness of Large Language Models in Writing Alloy Formulascited by 7
- 2025Treefix: Enabling Execution with a Tree of Prefixescited by 2
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versionscited by 2
- 2025OBsmith: LLM-Powered JavaScript Obfuscator Testingcited by 2
- 2025Leveraging LLMs, IDEs, and Semantic Embeddings for Automated Move Method Refactoringcited by 1
- 2026SPELL: Synthesis of Programmatic Edits using LLMscited by 1
- 2026Multi-Agent Coordinated Rename Refactoringcited by 0
- 2026Agentic Generation of AST Transformation Rules for Fixing Breaking Updates23 Jun 2026
- 2026uGen: An Agentic Framework for Generating Microarchitectural Attack PoCs15 May 2026
- 2026RepoReviewer: A Local-First Multi-Agent Architecture for Repository-Level Code Review17 Mar 2026
- 2026SPELL: Synthesis of Programmatic Edits using LLMs1 Feb 2026
- 2026Multi-Agent Coordinated Rename Refactoring1 Jan 2026
- 2025OBsmith: LLM-Powered JavaScript Obfuscator Testing11 Oct 2025
- 2025Migrating Code At Scale With LLMs At Google13 Apr 2025
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versions13 Apr 2025
- 2025Leveraging LLMs, IDEs, and Semantic Embeddings for Automated Move Method Refactoring26 Mar 2025
- 2025On the Effectiveness of Large Language Models in Writing Alloy Formulas21 Feb 2025
- 2025Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modifications19 Feb 2025
- 2025Treefix: Enabling Execution with a Tree of Prefixes21 Jan 2025
3 more
- 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projects13 Dec 2024
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translation1 Nov 2024
- 2024Artificial-Intelligence Generated Code Considered Harmful: A Road Map for Secure and High-Quality Code Generation27 Sep 2024
- 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projectscited by 45
- 2026Multi-Agent Coordinated Rename Refactoringcited by 0
- 2026uGen: An Agentic Framework for Generating Microarchitectural Attack PoCscited by 0
- 2026Agentic Generation of AST Transformation Rules for Fixing Breaking Updatescited by 0
- 2026Agentic Generation of AST Transformation Rules for Fixing Breaking Updates23 Jun 2026
- 2026uGen: An Agentic Framework for Generating Microarchitectural Attack PoCs15 May 2026
- 2026Multi-Agent Coordinated Rename Refactoring1 Jan 2026
- 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projects13 Dec 2024
- 2025Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modificationscited by 20
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 15
- 2025Migrating Code At Scale With LLMs At Googlecited by 14
- 2024Artificial-Intelligence Generated Code Considered Harmful: A Road Map for Secure and High-Quality Code Generationcited by 11
- 2025On the Effectiveness of Large Language Models in Writing Alloy Formulascited by 7
- 2025Treefix: Enabling Execution with a Tree of Prefixescited by 2
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versionscited by 2
- 2025OBsmith: LLM-Powered JavaScript Obfuscator Testingcited by 2
- 2025Leveraging LLMs, IDEs, and Semantic Embeddings for Automated Move Method Refactoringcited by 1
- 2026SPELL: Synthesis of Programmatic Edits using LLMscited by 1
- 2026RepoReviewer: A Local-First Multi-Agent Architecture for Repository-Level Code Reviewcited by 0
- 2026RepoReviewer: A Local-First Multi-Agent Architecture for Repository-Level Code Review17 Mar 2026
- 2026SPELL: Synthesis of Programmatic Edits using LLMs1 Feb 2026
- 2025OBsmith: LLM-Powered JavaScript Obfuscator Testing11 Oct 2025
- 2025Migrating Code At Scale With LLMs At Google13 Apr 2025
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versions13 Apr 2025
- 2025Leveraging LLMs, IDEs, and Semantic Embeddings for Automated Move Method Refactoring26 Mar 2025
- 2025On the Effectiveness of Large Language Models in Writing Alloy Formulas21 Feb 2025
- 2025Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modifications19 Feb 2025
- 2025Treefix: Enabling Execution with a Tree of Prefixes21 Jan 2025
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translation1 Nov 2024
- 2024Artificial-Intelligence Generated Code Considered Harmful: A Road Map for Secure and High-Quality Code Generation27 Sep 2024