paper-with-me

Papers

CODEMENV: Benchmarking Large Language Models on Code Migration

2025-06-01 · Keyuan Cheng, Xudong Shen, Yihao Yang, Tengyue Wang, Yang Cao, Muhammad Asif Ali, Hanbin Wang, Lijie Hu, Di Wang

Large language models (LLMs) have shown remarkable capabilities across various software engineering tasks; however, their effectiveness in code migration, adapting code to run in different environments, remains insufficiently studied. In this work, we introduce CODEMENV: Code Migration Across Environment, a new benchmark specifically designed to assess LLMs' abilities in code migration scenarios. CODEMENV consists of 922 examples spanning 19 Python and Java packages, and covers three core tasks: (1) identifying functions incompatible with specific versions, (2) detecting changes in function definitions, and (3) adapting code to target environments. Experimental evaluation with seven LLMs on CODEMENV yields an average pass@1 rate of 26.50%, with GPT-4O achieving the highest score at 43.84%. Key findings include: (i) LLMs tend to be more proficient with newer function versions, which aids in migrating legacy code, and (ii) LLMs sometimes exhibit logical inconsistencies by identifying function changes irrelevant to the intended migration environment. The datasets are available at https://github.com/xdshen-ai/Benchmark-of-Code-Migration.

📄 PDF Abstract BibTeX arXiv:2506.00894

Code (1)

xdshen-ai/benchmark-of-code-migration 공식 구현

Tasks

Benchmarking

Similar Papers 제목 키워드 기반

Automatic Qiskit Code Refactoring Using Large Language Models

2025-06-17 · José Manuel Suárez, Luis Mariano Bibbó, Joaquin Bogado, Alejandro Fernandez

As quantum software frameworks evolve, developers face increasing challenges in maintaining compatibility with rapidly changing APIs. In this work, we present a novel methodology for refactoring Qiskit code using large l…

Migrating Code At Scale With LLMs At Google

2025-04-13 · Celal Ziftci, Stoyan Nikolov, Anna Sjövall, Bo Kim 외

Developers often evolve an existing software system by making internal changes, called migration. Moving to a new framework, changing implementation to improve efficiency, and upgrading a dependency to its latest version…

Large Language Model

MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versions

2025-04-13 · Pucheng Dang, Di Huang, Dong Li, Kang Chen 외

Out-of-tree kernel patches are essential for adapting the Linux kernel to new hardware or enabling specific functionalities. Maintaining and updating these patches across different kernel versions demands significant eff…

LibRec: Benchmarking Retrieval-Augmented LLMs for Library Migration Recommendations

2025-08-13 · Junxiao Han, Yarong Wang, Xiaodong Gu, Cuiyun Gao 외 arxiv

In this paper, we propose LibRec, a novel framework that integrates the capabilities of LLMs with retrieval-augmented generation(RAG) techniques to automate the recommendation of alternative libraries. The framework furt…

What a diff makes: automating code migration with large language models

2025-10-31 · Katherine A. Rosenfeld, Cliff C. Kerr, Jessica Lundin arxiv

Modern software programs are built on stacks that are often undergoing changes that introduce updates and improvements, but may also break any project that depends upon them. In this paper we explore the use of Large Lan…