mlsanityData to 7 Oct 2026

Automatic Library Migration Using Large Language Models: First Results

arXiv 2408.16151 ↗First posted 28 Aug 2024cs.SEcited by 9

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 3.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025MigrationBench: Repository-Level Code Migration Benchmark from Java 8
  2. 2026Testing Framework Migration with Large Language Models
  3. 2024Low-Cost Language Models: Survey and Performance Evaluation on Python Code Generation
  4. 2024A Comprehensive Framework for Evaluating API-oriented Code Generation in Large Language Models
  5. 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
  6. 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale
  7. 2024How Well Do Large Language Models Serve as End-to-End Secure Code Agents for Python?
  8. 2024An Empirical Study on Self-correcting Large Language Models for Data Science Code Generation