arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.06972cs.SE
收藏

谷歌如何将AI用于内部代码迁移?

How is Google using AI for internal code migrations?

Stoyan Nikolov, Daniele Codecasa, Anna Sjovall, Maxim Tabachnyk, Satish Chandra, Siddharth Taneja, Celal Ziftci

AI总结:

本文作为谷歌的实践经验报告,分享了企业内部将大语言模型应用于多场景代码迁移的落地经验,证实其可显著缩短迁移时长、降低项目推进门槛,相关经验也可复用至软件工程的其他机器学习应用场景。

摘要:

近年来,生成式AI尤其是大语言模型(LLM)在软件工程领域的应用引发了极大关注;目前已有多款商用工具,许多大型企业也为自身的软件工程师开发了专有的基于机器学习(ML)的工具。虽然代码补全等常见任务的ML应用已在通用工具中普及,但业界对将LLM用于更多定制化场景的兴趣正日益增长,代码迁移便是这类场景之一。\n 本文是一份关于谷歌内部使用LLM开展代码迁移的经验报告。它并非一项研究性工作——我们并未将其与其他方法进行对比,也未针对研究问题或假设开展验证。相反,我们分享了在企业环境下将基于LLM的代码迁移应用于多种迁移场景的实践经验,希望能为其他行业从业者提供有价值的参考,其中不少经验也适用于软件工程领域的各类ML应用场景。有迹象表明,使用LLM可大幅缩短代码迁移所需时间,还能降低迁移项目启动与推进的门槛。

英文摘要:

In recent years, there has been a tremendous interest in using generative AI, and particularly large language models (LLMs) in software engineering; indeed there are now several commercially available tools, and many large companies also have created proprietary ML-based tools for their own software engineers. While the use of ML for common tasks such as code completion is available in commodity tools, there is a growing interest in application of LLMs for more bespoke purposes. One such purpose is code migration. This article is an experience report on using LLMs for code migrations at Google. It is not a research study, in the sense that we do not carry out comparisons against other approaches or evaluate research questions/hypotheses. Rather, we share our experiences in applying LLM-based code migration in an enterprise context across a range of migration cases, in the hope that other industry practitioners will find our insights useful. Many of these learnings apply to any application of ML in software engineering. We see evidence that the use of LLMs can reduce the time needed for migrations significantly, and can reduce barriers to get started and complete migration programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑