Automatic Library Migration Using Large Language Models: First Results
Not on the map. Why?
Abstract (arXiv)
Despite being introduced only a few years ago, Large Language Models (LLMs) are already widely used by developers for code generation. However, their application in automating other Software Engineering activities remains largely unexplored. Thus, in this paper, we report the first results of a study in which we are exploring the use of ChatGPT to support API migration tasks, an important problem that demands manual effort and attention from developers. Specifically, in the paper, we share our initial results involving the use of ChatGPT to migrate a client application to use a newer version of SQLAlchemy, an ORM (Object Relational Mapping) library widely used in Python. We evaluate the use of three types of prompts (Zero-Shot, One-Shot, and Chain Of Thoughts) and show that the best results are achieved by the One-Shot prompt, followed by the Chain Of Thoughts. Particularly, with the One-Shot prompt we were able to successfully migrate all columns of our target application and upgrade its code to use new functionalities enabled by SQLAlchemy's latest version, such as Python's asyncio and typing modules, while preserving the original code behavior.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). First posted on arXiv 28 Aug 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 6; 2026: 3.
9 papers.
- 2025Migrating Code At Scale With LLMs At Googlecited by 14
- 2025CODEMENV: Benchmarking Large Language Models on Code Migrationcited by 13
- 2026Are Coding Agents Generating Over-Mocked Tests? An Empirical Studycited by 5
- 2025Using Copilot Agent Mode to Automate Library Migration: A Quantitative Assessmentcited by 3
- 2025Taxonomy of migration scenarios for Qiskit refactoring using LLMscited by 2
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Modelscited by 2
- 2025Automatic Qiskit Code Refactoring Using Large Language Modelscited by 1
- 2026Converted, Not Equivalent: Benchmarking Codebase Conversion via Observational Equivalencecited by 0
- 2026Legacy System Modernization with Coding Agents: A Case Studycited by 0
- 2026Legacy System Modernization with Coding Agents: A Case Study29 Aug 2026
- 2026Converted, Not Equivalent: Benchmarking Codebase Conversion via Observational Equivalence27 May 2026
- 2026Are Coding Agents Generating Over-Mocked Tests? An Empirical Study30 Jan 2026
- 2025Using Copilot Agent Mode to Automate Library Migration: A Quantitative Assessment30 Oct 2025
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Models19 Sep 2025
- 2025Automatic Qiskit Code Refactoring Using Large Language Models17 Jun 2025
- 2025Taxonomy of migration scenarios for Qiskit refactoring using LLMs8 Jun 2025
- 2025CODEMENV: Benchmarking Large Language Models on Code Migration1 Jun 2025
- 2025Migrating Code At Scale With LLMs At Google13 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025MigrationBench: Repository-Level Code Migration Benchmark from Java 8
- 2026Testing Framework Migration with Large Language Models
- 2024Low-Cost Language Models: Survey and Performance Evaluation on Python Code Generation
- 2024A Comprehensive Framework for Evaluating API-oriented Code Generation in Large Language Models
- 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
- 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
- 2024How Well Do Large Language Models Serve as End-to-End Secure Code Agents for Python?
- 2024An Empirical Study on Self-correcting Large Language Models for Data Science Code Generation