mlsanityData to 7 Oct 2026

To See is Not to Master: Teaching LLMs to Use Private Libraries for Code Generation

arXiv 2603.15159 ↗First posted 16 Mar 2026cs.SE cs.AI cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have shown strong potential for code generation, yet they remain limited in private-library-oriented code generation, where the goal is to generate code using APIs from private libraries. Existing approaches mainly rely on retrieving private-library API documentation and injecting relevant knowledge into the context at inference time. However, our study shows that this is insufficient: even given accurate required knowledge, LLMs still struggle to invoke private-library APIs effectively. To address this limitation, we propose PriCoder, an approach that teaches LLMs to invoke private-library APIs through automatically synthesized data. Specifically, PriCoder models private-library data synthesis as the construction of a graph, and alternates between two graph operators: (1) Progressive Graph Evolution, which improves data diversity by progressively synthesizing more diverse training samples from basic ones, and (2) Multidimensional Graph Pruning, which improves data quality through a rigorous filtering pipeline. To support rigorous evaluation, we construct two new benchmarks based on recently released libraries that are unfamiliar to the tested models. Experiments on three mainstream LLMs show that PriCoder substantially improves private-library-oriented code generation, yielding gains of over 20% in pass@1 in many settings, while causing negligible impact on general code generation capability.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 38 of its 60 references that are in the map. First posted on arXiv 16 Mar 2026.

Builds on

38 of 60 references.

References · 38

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2025Qwen3 Technical Reportcited by 8,195
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  6. 2021Program Synthesis with Large Language Modelscited by 3,509
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  8. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
  9. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,175
  10. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  11. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  12. 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
26 more
  1. 2023ChatDev: Communicative Agents for Software Developmentcited by 893
  2. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  3. 2022CodeT: Code Generation with Generated Testscited by 369
  4. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
  5. 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
  6. 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
  7. 2023Structured Chain-of-Thought Prompting for Code Generationcited by 136
  8. 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 61
  9. 2022When Language Model Meets Private Librarycited by 54
  10. 2025Are We on the Right Way to Assessing LLM-as-a-Judge?cited by 23
  11. 2024Genetic Instruct: Scaling up Synthetic Generation of Coding Instructions for Large Language Modelscited by 17
  12. 2025Exploring the Potential of Diffusion Large Language Models in Code Generationcited by 16
  13. 2026Self-Play Only Evolves When Self-Synthetic Pipeline Ensures Learnable Information Gaincited by 16
  14. 2024API-guided Dataset Synthesis to Finetune Large Code Modelscited by 11
  15. 2024ExploraCoder: Advancing code generation for multiple unseen APIs via planning and chained explorationcited by 11
  16. 2024Compositional API Recommendation for Library-Oriented Code Generationcited by 10
  17. 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scalecited by 8
  18. 2024Contextual API Completion for Unseen Repositories Using LLMscited by 6
  19. 2024SIKeD: Self-guided Iterative Knowledge Distillation for mathematical reasoningcited by 6
  20. 2025TreeSynth: Synthesizing Diverse Data from Scratch via Tree-Guided Subspace Partitioningcited by 6
  21. 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammarscited by 6
  22. 2026What Papers Don't Tell You: Recovering Tacit Knowledge for Automated Paper Reproductioncited by 6
  23. 2026KOCO-BENCH: Can Large Language Models Leverage Domain Knowledge in Software Development?cited by 5
  24. 2026SE-Bench: Benchmarking Self-Evolution with Knowledge Internalizationcited by 5
  25. 2025DiffuTester: Accelerating Unit Test Generation for Diffusion LLMs via Mining Structural Patterncited by 2
  26. 2025Generate, Evaluate, Iterate: Synthetic Data for Human-in-the-Loop Refinement of LLM Judgescited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.