← Latest papers
💻 computer science

Customizing an LLM for Enterprise Software Engineering

This paper introduces Gemini for Google (GfG), a specialized large language model adapted for Google's internal software engineering ecosystem through a comprehensive end-to-end process of data curation and mid-training, which significantly improved developer efficiency and code quality in a large-scale study while providing a replicable blueprint for enterprise model customization.

Original authors: Aditya Kini, Satish Chandra, Milad Hashemi, Saksham Thakur, Aditya Pandey, Vincent Nguyen, Marc Brockschmidt, Franjo Ivančić, Danny Tarlow, Parthasarathy Ranganathan, Petros Maniatis, Ahmed Omran, Zah
Published 2026-05-21
📖 5 min read🧠 Deep dive

Original authors: Aditya Kini, Satish Chandra, Milad Hashemi, Saksham Thakur, Aditya Pandey, Vincent Nguyen, Marc Brockschmidt, Franjo Ivančić, Danny Tarlow, Parthasarathy Ranganathan, Petros Maniatis, Ahmed Omran, Zaheer Abbas, Anita Gergely, Martin Sevenich, Gufeng Zhang, Amy Hua, Alexander Frömmgen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a brilliant, world-class chef (the original AI model). This chef can cook almost anything: Italian pasta, French pastries, or Japanese sushi. They are trained on every recipe book in the public library.

However, you work in a massive, high-tech corporate cafeteria (Google's internal software ecosystem). Here, the rules are weird. You don't use standard ovens; you use custom-built, proprietary machines. The ingredients are unique, and the "recipes" (code) have specific, strange names that no one outside the building knows.

If you ask the world-class chef to cook a meal for your cafeteria, they might try to use a standard recipe. It will look good, but it won't work with your machines, and it might break the food.

This paper describes how Google took that world-class chef and gave them a specialized training camp to become the perfect chef for their specific cafeteria. They call this new chef "Gemini for Google" (GfG).

Here is how they did it, broken down into simple steps:

1. Gathering the "Secret Recipe Book"

Instead of just giving the chef more public cookbooks, the team gathered a massive library of internal documents. This wasn't just code; it was the entire history of how their engineers work:

  • The "Critique" Log: They looked at thousands of conversations where senior engineers reviewed code, said "fix this," and the junior engineer fixed it. This taught the AI how to accept feedback and improve.
  • The "Break-Fix" Log: They watched how engineers fixed broken builds (when the software stops working). The AI learned: "Oh, when this error pops up, the solution is usually to change this specific line."
  • The "Speed" Log: They studied how engineers made programs run faster, teaching the AI to spot slow spots and suggest fixes.
  • The "Chat" Log: They used internal Q&A sessions where engineers asked about weird, internal tools, teaching the AI the specific names and jargon of the company.

2. The "Mid-Training" Surgery

Usually, you either train a model from scratch (start with a baby brain) or you just tweak the end (fine-tuning). Google did something in the middle.

Think of the original AI as a student who has finished high school (general pre-training).

  • The Problem: If you just start teaching them advanced corporate law immediately, they might forget how to do basic math or write a simple essay. This is called "catastrophic forgetting."
  • The Solution: Instead of starting from the very end of high school, they went back to the student's junior year. They took the student, gave them the "Secret Recipe Book" (the internal data), and let them continue their education from that point. This way, the student kept their general smarts but learned the specific corporate rules.

3. The Results: A Smarter Assistant

They tested this new "Gemini for Google" against the standard version with 29,000 engineers. The results were like comparing a generic GPS to one that knows every shortcut in your specific city:

  • Fewer Back-and-Forths: When engineers asked for help, the standard AI needed about 23% more conversation turns to get the job right. The specialized AI got it right the first time more often.
  • Better Code Survival: Code written by the specialized AI was 17% more likely to survive the review process and actually get used in the final product. It was less likely to be rejected or broken.
  • Real-World Wins:
    • The "Time Travel" Migration: They used the AI to update a decade-old system to a new one. It did 80% of the work automatically, cutting the time in half.
    • The "Smart Paste": When an engineer copied code from one file to another, the AI automatically fixed the imports and variable names so it worked instantly, saving thousands of keystrokes.

4. What They Learned (The Lessons)

The paper highlights three big lessons for anyone trying to do this:

  1. More Data Isn't Always Better: Just throwing everything at the AI can confuse it. They had to carefully pick the right mix of data, or the AI would learn the wrong habits (like talking too much when it should just act).
  2. Don't Fight the Format: They learned it's easier to shape their internal data to look like the AI's original training style, rather than forcing the AI to learn a new, weird format.
  3. Real Tests Matter: You can't just test the AI on a multiple-choice quiz. You have to watch it work in the real world. Did the engineer actually accept the code? Did it survive the review? That's the real score.

The Bottom Line

This paper isn't about inventing a new type of brain. It's about taking a very smart, general-purpose brain and giving it a specialized internship inside a specific company. By feeding it the company's own history, mistakes, and successes, they created an AI that doesn't just "know code"—it knows their code, their tools, and their way of working.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →