AI helped Google engineers cut code migration times in half
The firm also simplified communications as migrations can be completed by a single engineer
Google has significantly cut code migration times internally through the use of AI tools, a paper has revealed.
Citing a growing interest in more bespoke large language model (LLM) uses, the paper’s authors explained that the purpose of the report was to share Google’s experience using AI in code migration.
While it’s not a research paper in that the authors did not carry out comparison against other approaches, they did reveal that LLMs can be used to significantly reduce time by automating manual tasks.
“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,” the authors said.
Google trailed various migrations, such as from INT32 to INT64 ID. The total time spent on this migration was reduced by an estimated 50% when compared to a similar exercise carried out without an LLM, according to the paper.
The authors said the time needed to review and land the changes was taken into account here, and that there was also a significant reduction in communication overheads as all the necessary changes could be undertaken by a single engineer.
Other migrations included from JUnit 3 to JUnit 4 and from Joda Time to Java Time.
Sign up today and you will receive a free copy of our Future Focus 2025 report - the leading guidance on AI, cybersecurity and other IT challenges as per 700+ senior executives
While Google has used specific infrastructure to migrate code for some time now, the authors said the firm found that the type of migrations it was attempting to undertake required different solutions.
“This is because the contextual clues and the actual changes to be made have quite a bit of variance, and these are difficult to write out in a deterministic code transformation pass,” authors said.
“This is exactly where modern LLMs are very effective, and in practice, offer a lower barrier to entry compared to devising other customized program transformation systems, such as based on program synthesis,” they added.
RELATED WHITEPAPER
Google reportedly used LLM prompting to build workflows containing bespoke, customized parts as well as some of the sub-steps in the code migration such as file discovery and validations.
This isn’t the first time Google has claimed an internal victory on AI coding tools.
In November last year, Google CEO Sundar Pichai said that over 25% of the firm’s internal source code is AI generated. Engineers remain in the loop and code is reviewed by humans, Pichai said, with engineer workflows improved as a result.
AI could be a game changer for code migration
Migrating code is a tedious and repetitive task according to Komninos Chatzipapas, founder of HeraHaven.AI, and can be efficiently automated using AI.
“AI is very good at this mainly due to two features: test-time compute & speculative decoding,” Chatzipapas told ITPro.
“With the former, AI is able to ‘think’ and evaluate multiple paths before responding which increases accuracy. And with the latter, it's able to take large amounts of text (say, a code file) and only change a few designated lines of code, while keeping the rest of the file intact,” he added.
Teams can also use unit tests to evaluate whether the AI tool successfully migrated the code, Chatzipapas said, meaning hallucinatory errors can be fixed.

George Fitzmaurice is a former Staff Writer at ITPro and ChannelPro, with a particular interest in AI regulation, data legislation, and market development. After graduating from the University of Oxford with a degree in English Language and Literature, he undertook an internship at the New Statesman before starting at ITPro. Outside of the office, George is both an aspiring musician and an avid reader.
-
Gender diversity improvements could be the key to tackling the UK's AI skills shortageNews Encouraging more women to pursue tech careers could plug huge gaps in the AI workforce
-
Researchers claim Salt Typhoon masterminds learned their trade at Cisco Network AcademyNews The Salt Typhoon hacker group has targeted telecoms operators and US National Guard networks in recent years
-
Google CEO Sundar Pichai thinks software development is 'exciting again' thanks to vibe coding — but developers might disagreeNews Google CEO Sundar Pichai claims software development has become “exciting again” since the rise of vibe coding, but some devs are still on the fence about using AI to code.
-
European software spending is set to surge in 2026 – here's whyNews Enterprises are approaching the “trough of disillusionment” with AI, but it’s not stopping them from spending
-
GitHub is scrapping some Claude, OpenAI, and Gemini models in Copilot – here's what you need to know and what alternatives are availableNews GitHub Copilot users are urged to switch to the newer models following the retirement cut-off
-
UK government programmers trialed AI coding assistants from Microsoft, GitHub, and Google – here's what they foundNews Developers participating in a trial of AI coding tools from Google, Microsoft, and GitHub reported big time savings, with 58% saying they now couldn't work without them.
-
Google's new Jules coding agent is free to use for anyone – and it just got a big update to prevent bad code outputNews Jules came out of beta and launched publicly earlier this month, but it's already had a big update aimed at improving code quality and safety.
-
Using an older version of Python? You’re leaving ‘money and performance on the table’ if you don’t upgrade – and missing out on big developer efficiency gainsNews New research from JetBrains shows a majority of enterprises are using a version of Python that’s a year or more older – and it's having a big impact on efficiency and performance.
-
This handy new Gmail feature is exactly what you need to clean up your inboxNews A simple change in Gmail will give users more control over repeat senders
-
OpenAI's plan to acquire AI coding startup Windsurf ended in disaster – here’s how the deal fell apartNews The acquisition by Cognition comes after a rumored $3bn offer from OpenAI fell through