Automated Customization of LLMs for Enterprise Code Repositories Using Semantic Scopes
Not on the map. Why?
Abstract (arXiv)
Code completion (CC) is a task frequently used by developers when working in collaboration with LLM-based programming assistants. Despite the increased performance of LLMs on public benchmarks, out of the box LLMs still have a hard time generating code that aligns with a private code repository not previously seen by the model's training data. Customizing code LLMs to a private repository provides a way to improve the model performance. In this paper we present our approach for automated LLM customization based on semantic scopes in the code. We evaluate LLMs on real industry cases with two private enterprise code repositories with two customization strategies: Retrieval-Augmented Generation (RAG) and supervised Fine-Tuning (FT). Our mechanism for ingesting the repository's data and formulating the training data pairs with semantic scopes helps models to learn the underlying patterns specific to the repository, providing more precise code to developers and helping to boost their productivity. The code completions of moderately sized customized models can be significantly better than those of uncustomized models of much larger capacity. We also include an analysis of customization on two public benchmarks and present opportunities for future work.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 11 of its 16 references that are in the map. First posted on arXiv 5 Feb 2026.
Builds on
11 of 16 references.
References · 11
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 89
- 2023A Theory on Adam Instability in Large-Scale Machine Learningcited by 54
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 33
- 2024HumanEvo: An Evolution-aware Benchmark for More Realistic Evaluation of Repository-level Code Generationcited by 26
- 2024CoCoST: Automatic Complex Code Generation with Online Searching and Correctness Testingcited by 7
- 2024Smaller but Better: Self-Paced Knowledge Distillation for Lightweight yet Effective LCMscited by 6
- 2024Improving FIM Code Completions via Context & Curriculum Based Learningcited by 6
- 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industrycited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsets
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation
- 2026RepoZero: Can LLMs Generate a Code Repository from Scratch?
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASML
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChat
- 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
- 2025Application Modernization with LLMs: Addressing Core Challenges in Reliability, Security, and Quality
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches