Unseen-Codebases-Domain Data Synthesis and Training Based on Code Graphs
On the map: Synthetic data and self-improvement for LLMs → Code and instruction data synthesis
Abstract (arXiv)
In the context of newly release software frameworks, large language models (LLMs) often exhibit poor performance and a high rate of hallucination, as they are not exposed to such environments during training. Although inference-time augmentation techniques such as retrieval-augmented generation (RAG) can partially mitigate hallucinations, knowledge injection through prompting alone is insufficient to enable models to fully understand the intrinsic relationships among different components of a codebase, or to reason about the correct compositions and apply. Although explicit knowledge injection can be achieved through post-training, compared with public code domains, unseen codebases typically provide only source code and lack large volumes of high-quality, usage-oriented code that can be directly leveraged as training data. Consequently, existing data synthesis approaches are insufficient to adequately capture unseen codebases usage scenarios when restricted to source code alone. To address these challenges, we propose UCD-Training, a two-stage training framework for reasoning-aware data synthesis grounded in a code graph constructed from unseen codebases. UCD-Training first parses the source code to build a code graph, then conducts dependency-preserving continued pretraining (CPT) using file-level dependency data, followed by graph-grounded supervised fine-tuning (SFT) on three types of synthesized data augmented with explicit reasoning traces: (1) single-hop relation reasoning data, (2) compositional API reasoning data, and (3) codebase utilization data. We further introduce a new benchmark, UnseenCodeBench, for code generation on unseen codebases and conduct comprehensive experiments across multiple codebases.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Code and instruction data synthesis, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 29 of its 48 references that are in the map. First posted on arXiv 24 Feb 2026.
Builds on
29 of 48 references.
Closest ancestors · 2
Same direction, newest first
- 2025Knowledge-Graph-Driven Data Synthesis for Low-Resource Software Development: A HarmonyOS Case Study29 Nov
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructions20 Dec
Other references · 27
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2020Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningcited by 275
- 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
- 2024Continual Learning with Pre-Trained Models: A Surveycited by 151
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
15 more
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 89
- 2024VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing Toolcited by 85
- 2024AnalogCoder: Analog Circuit Design via Training-Free Code Generationcited by 82
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Codecited by 61
- 2022When Language Model Meets Private Librarycited by 54
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2023On the Effectiveness of Large Language Models in Domain-Specific Code Generationcited by 44
- 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolvingcited by 30
- 2023Chain-of-Thought in Neural Code Generation: From and For Lightweight Language Modelscited by 27
- 2024ExploraCoder: Advancing code generation for multiple unseen APIs via planning and chained explorationcited by 11
- 2024MedCodER: A Generative AI Assistant for Medical Codingcited by 10
- 2024Unseen Horizons: Unveiling the Real Capability of LLM Code Generation Beyond the Familiarcited by 7
- 2025Knowledge Matters: Injecting Project and Testing Knowledge into LLM-based Unit Test Generationcited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024Context-Augmented Code Generation Using Programming Knowledge Graphs
- 2025UCoder: Unsupervised Code Generation by Internal Probing of Large Language Models
- 2024Case2Code: Scalable Synthetic Data for Code Generation
- 2025Boost, Disentangle, and Customize: A Robust System2-to-System1 Pipeline for Code Generation
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2025Key-Augmented Neural Triggers for Knowledge Sharing ↗
- 2026From Brute Force to Semantic Insight: Performance-Guided Data Transformation Design with LLMs
- 2026FastCode: Fast and Cost-Efficient Code Understanding and Reasoning