SPELL: Synthesis of Programmatic Edits using LLMs
Not on the map. Why?
Abstract (arXiv)
Library migration is a common but error-prone task in software development. Developers may need to replace one library with another due to reasons like changing requirements or licensing changes. Migration typically entails updating and rewriting source code manually. While automated migration tools exist, most rely on mining examples from real-world projects that have already undergone similar migrations. However, these data are scarce, and collecting them for arbitrary pairs of libraries is difficult. Moreover, these migration tools often miss out on leveraging modern code transformation infrastructure. In this paper, we present a new approach to automated API migration that sidesteps the limitations described above. Instead of relying on existing migration data or using LLMs directly for transformation, we use LLMs to extract migration examples. Next, we use an Agent to generalize those examples to reusable transformation scripts in PolyglotPiranha, a modern code transformation tool. Our method distills latent migration knowledge from LLMs into structured, testable, and repeatable migration logic, without requiring preexisting corpora or manual engineering effort. Experimental results across Python libraries show that our system can generate diverse migration examples and synthesize transformation scripts that generalize to real-world codebases.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 12 of its 58 references that are in the map. First posted on arXiv 1 Feb 2026.
Builds on
12 of 58 references.
References · 12
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
- 2017Do Developers Update Their Library Dependencies? An Empirical Study on the Impact of Security Advisories on Library Migrationcited by 23
- 2024Unprecedented Code Change Automation: The Fusion of LLMs and Transformation by Examplecited by 15
- 2025Migrating Code At Scale With LLMs At Googlecited by 14
- 2021SOAR: A Synthesis Approach for Data Science API Refactoringcited by 8
- 2021IntelliTC: Automating Type Changes in IntelliJ IDEAcited by 2
- 2023MELT: Mining Effective Lightweight Transformations from Pull Requestscited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.