Papers
Topics
Authors
Recent
Search
2000 character limit reached

Customizing an LLM for Enterprise Software Engineering

Published 15 May 2026 in cs.SE | (2605.16517v1)

Abstract: Enterprise software development is a continuous evolutionary process, characterized by incremental additions, architectural revisions, production deployments and rigorous maintenance. These activities generate valuable data that modern LLMs could be finetuned on, to unlock additional tool possibilities for enterprise software engineering. While frontier LLMs are already very capable, this form of customization offers a compelling path for enterprise-specific optimization. We introduce Gemini for Google (GfG)}, an adaptation of Gemini specialized for Google's internal software engineering ecosystem. This paper details the model's end-to-end development, from curating a trillion-token proprietary dataset to implementing a mid-training strategy that mitigates catastrophic forgetting. In a large-scale blind A/B study across 29,000 developers, Gemini for Google significantly outperformed baselines: reducing the mean number of iterations per turn by 23\%, and increasing code survival rates by about 17%. Beyond metrics, we provide a comprehensive blueprint for enterprise model adaptation, covering: (1)The extraction of high-value signals from software engineering data, (2)Data preparation strategies, (3)Full-stack model tuning (continued pre-training and post-training), and (4)The deployment of downstream applications. We believe this methodology offers a replicable path for other organizations to unlock the full potential of their internal engineering data.

Summary

  • The paper presents a novel adaptation strategy by integrating a trillion-token proprietary corpus and mid-training intervention to optimize LLMs for enterprise software engineering.
  • The methodology effectively mitigates catastrophic forgetting using data replay and mid-training branching, preserving general reasoning while specializing for code maintenance and refactoring.
  • Empirical results, including a 23.1% reduction in iterations and improved code submission metrics, confirm significant productivity and quality gains in real-world deployments.

Customization of LLMs for Enterprise Software Engineering: A Comprehensive Analysis

Context and Motivation

Enterprise software engineering requires specialized, context-sensitive solutions incompatible with generic LLM benchmarks and public datasets. The demands of maintaining, evolving, and optimizing monolithic systems—such as Google’s internal code repository—entail workflow-specific artifacts, proprietary libraries, review processes, and bespoke infrastructure. Standard frontier LLMs, though powerful, lack exposure to these internal distributions, limiting their efficacy in code maintenance, migration, and refactoring tasks critical to enterprise environments.

The paper "Customizing an LLM for Enterprise Software Engineering" (2605.16517) presents Gemini for Google (GfG), an adaptation of Gemini optimized for Google’s engineering ecosystem. The authors provide a detailed blueprint covering dataset curation, mid-training specialization, and deployment strategies, emphasizing the preservation of general reasoning abilities and effective mitigation of catastrophic forgetting during domain-intensive specialization.

Data Curation and Target Capabilities

GfG’s specialization is underpinned by a trillion-token proprietary corpus spanning six primary domains: Change-Generation, Knowledge, Issues and Fixes, Code Generation, Logs and Performance, and Activity Timelines. The data was meticulously curated to support high-value capabilities:

  • Automated Code Transformations: Extensive code review artifacts, including initial/final code states and reviewer comments, enabled modeling critique-and-refine paradigms essential for reliable code refactoring and optimization.
  • Internal Chatbots and Knowledge Discovery: Synthesis of unstructured documentation, technical Q&A logs, and API references facilitated context-aware assistance, vital in navigating Google’s proprietary infrastructure.
  • Code Completion and Generation: Developer code submissions were processed in formats like FIM to enrich context-aware infilling and anticipatory synthesis capabilities.
  • Issues/Bug Fixing and APR: Instrumented developer sessions and build fixing datasets offered supervision for automated program repair, leveraging both human and machine feedback signals.

The corpus incorporated diverse artifacts and granularities, including instruction-guided editing, automated repair, FIM-based infilling, and multi-turn development trajectories, conforming to native pre-training formats to minimize distributional shifts.

Model Specialization: Mid-Training Intervention and Post-Training

Unlike RAG, LoRA, or scratch training, GfG’s methodology intervenes partway through Gemini’s pre-training, augmenting domain-specific data while preserving general reasoning. Two distinct variants were trained (Gemini-Flash for low latency; Gemini-Pro for complex reasoning). Mixture weights were determined via ablations on smaller models.

Continuous evaluation accompanied training, including static analysis metrics, LLM-based autorating, and execution-based correctness, ensuring convergence toward enterprise objectives. Post-training used curated datasets with crowdsourced validation, expert review, and refined integration with Gemini’s instruction tuning mixtures, optimizing for code transformation, migration, NL2SQL, and internal QA tasks.

Catastrophic Forgetting and Mixture-of-Experts Adaptation

The domain shift inherent in trillion-token injection risked degrading foundational reasoning. Initial continued pre-training led to significant regressions on standard coding and reasoning benchmarks. The authors mitigated this by:

  • Data Replay: Mixing parent model pre-training data into enterprise mixtures anchored general capabilities.
  • Mid-Training Branching: Branching from earlier foundation checkpoints rather than just before final convergence improved retention of core reasoning.

For MoE architectures, standard router load-balancing led to expert collapse due to highly homogenous internal data. Custom expert routing techniques were implemented to safeguard proficiency across model tasks.

Empirical Results and Industrial Impact

Offline Benchmarks

GfG outperformed baseline Gemini 2.5 Pro across external and internal coding tasks (SWE-bench Verified: +5%; Aider polyglot edit block: +13%; Google SWE Tasks: +5%). Non-coding proficiency and multimodal reasoning (ARC AGI, GradQA, MMMU-Pro) were preserved, with only minor variances on specialized math/logic assessments.

Online A/B Study

A blind, randomized A/B study leveraging 29,000 developers unequivocally demonstrated industrial utility:

  • Efficiency Gains: Mean conversational iterations dropped by 23.1%; turn latency decreased by 8.9%.
  • Quality Improvements: Hunk and code line acceptance rates increased by approximately 4.5%.
  • Production Impact: Code submission rates increased by 11–14%; code survival rate improved by 16.8%.

User feedback corroborated superior domain alignment, reduced friction, and enhanced usability, with baseline models perceived as qualitatively regressive.

Case Studies

Three industrial deployments highlighted practical impact:

  • Automated Migrations: 50% time reduction and 80% AI-authored changes for Ads infrastructure migrations; 87% acceptance of AI-generated JUnit migrations.
  • Efficiency Optimizations: ECO, leveraging GfG, effected >99.5% production success, saving 500,000 CPU cores per quarter.
  • IDE Assistance: “Smart Paste” realized widespread adoption, 45% acceptance, 58% code survival at 30 minutes, and emergent workflows for repetitive refactoring and cross-language translation.

Lessons and Theoretical Implications

The study surfaced critical insights:

  • Data Composition: Negative transfer from reasoning-style datasets (e.g., verbose ReAct traces) can degrade tool use and function-calling in post-training.
  • Schema Alignment: Aligning internal proprietary data with base model pre-training formats is essential to minimize syntax shock and maintain seamless capability transitions.
  • Evaluation Limitations: Standard benchmarks fail to capture enterprise maintenance and legacy evolution complexity; comprehensive evaluation protocols and production telemetry are imperative.

Practically, the blueprint demonstrated here enables organizations to maximize proprietary engineering data utility via end-to-end model adaptation. Theoretically, the results underscore the feasibility of large-scale domain specialization without sacrificing foundational intelligence, provided strategic interventions and mixture balancing are applied.

Conclusion

Gemini for Google represents a robust, replicable framework for LLM adaptation to enterprise software engineering environments. By integrating trillion-token bespoke corpora, mid-training intervention, and targeted post-training, substantial gains in productivity, code quality, and deployment impact are realized. Future developments will likely focus on further refining mixture optimization, enhancing agentic coding workflows, and advancing methodologies for catastrophic forgetting mitigation in MoE and large-scale domain-shift paradigms.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 1 like about this paper.