环境在环:重新思考基于LLM代理的代码迁移
Environment-in-the-Loop: Rethinking Code Migration with LLM-based Agents
AI总结:
本文提出了一种整合自动环境设置与代码迁移流程的框架,强调自动环境交互对代码迁移自动化的重要性。
摘要:
现代软件系统持续进行代码升级以提升功能、安全性和性能,而大型语言模型(LLMs)在代码迁移任务中展现了显著的能力。然而,尽管关于自动代码迁移(包括重构、API适应和依赖更新)的研究已迅速发展,但伴随其进行的自动环境交互探索仍较为稀缺。实际上,代码与其环境紧密交织。仅依赖静态分析环境会导致对目标设置的不充分理解,延长反馈周期,从而导致大量重新工作和项目延误,进而降低整体效率。我们认为,成功的软件演进需要一种整合代码和环境迁移的全面视角。为了了解当前状况和挑战,我们首先概述了自动环境构建的现状。然后,我们提出了一种新的框架范式,紧密整合自动环境设置与代码迁移流程。最后,我们探讨了代码迁移领域中自动环境交互的挑战和未来方向。我们的发现强调,没有自动环境交互,代码迁移的自动化只是半成品。
英文摘要:
Modern software systems continuously undergo code upgrades to enhance functionality, security, and performance, and Large Language Models (LLMs) have demonstrated remarkable capabilities in code migration tasks. However, while research on automated code migration which including refactoring, API adaptation, and dependency updates has advanced rapidly, the exploration of the automated environment interaction that must accompany it remains relatively scarce. In practice, code and its environment are intricately intertwined. Relying solely on static analysis of the environment leads to an inadequate understanding of the target setting, prolongs feedback cycles, and consequently causes significant rework and project delays, thereby reducing overall efficiency. We contend that successful software evolution demands a holistic perspective that integrates both code and environment migration. To understand the current landscape and challenges, we first provide an overview of the status of automated environment construction. We then propose a novel framework paradigm that tightly integrates automated environment setup with the code migration workflow. Finally, we explore the challenges and future directions for automated environment interaction within the code migration domain. Our findings emphasize that without automated environment interaction, the automation of code migration is only half complete.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。