AI helped Google engineers cut code migration times in half
The firm also simplified communications as migrations can be completed by a single engineer
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
You are now subscribed
Your newsletter sign-up was successful
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.
-
Cohere's Aleph Alpha merger could create a transatlantic sovereign AI powerhouseAnalysis The merger between Cohere and Aleph Alpha aims to capitalize on the burgeoning sovereign AI market
-
Everything you need to know about OpenAI's new workspace agentsNews New ‘workspace agents’ from OpenAI will automate tasks for workers and can be customized for specific roles
-
NTT has a plan to reduce emissions across the entire software product life cycleNews A first of its kind framework aims to track everything from procurement and design through to operation and disposal
-
Open source is booming in Europe as enterprises look to strengthen digital autonomyNews Concerns over lock-in, rising prices, and vendor reliance are fueling a shift to open source alternatives
-
UK firms regret software spending as tool sprawl causes IT headachesNews Spur-of-the-moment software purchases are creating fragmented tech stacks, and it’s harming productivity
-
Big tech is clamping down on open source ‘AI slop’ reportsNews Firms including Microsoft, OpenAI, and Google have pledged funding to bolster open source security and cut down on slop reports
-
‘AI is making us able to develop software at the speed of light’: Mistral CEO Arthur Mensch thinks 50% of SaaS solutions could be supplanted by AINews Mensch’s comments come amidst rising concerns about the impact of AI on traditional software
-
Automated code reviews are coming to Google's Gemini CLI Conductor extension – here's what users need to knowNews A new feature in the Gemini CLI extension looks to improve code quality through verification
-
AWS CEO Matt Garman isn’t convinced AI spells doom for the software industry – but admits providers will “have to innovate” to stay afloatNews Software stocks have taken a beating in recent weeks, but AWS CEO Matt Garman has joined Nvidia's Jensen Huang and Databricks CEO Ali Ghodsi in pouring cold water on the AI-fueled hysteria.
-
The open source ecosystem is booming thanks to AI, but hackers are taking advantageNews Analysis by Sonatype found that AI is giving attackers new opportunities to target victims