API-guided Dataset Synthesis to Finetune Large Code Models
Not on the map. Why?
Abstract (arXiv)
Large code models (LCMs), pre-trained on vast code corpora, have demonstrated remarkable performance across a wide array of code-related tasks. Supervised fine-tuning (SFT) plays a vital role in aligning these models with specific requirements and enhancing their performance in particular domains. However, synthesizing high-quality SFT datasets poses a significant challenge due to the uneven quality of datasets and the scarcity of domain-specific datasets. Inspired by APIs as high-level abstractions of code that encapsulate rich semantic information in a concise structure, we propose DataScope, an API-guided dataset synthesis framework designed to enhance the SFT process for LCMs in both general and domain-specific scenarios. DataScope comprises two main components: Dsel and Dgen. On one hand, Dsel employs API coverage as a core metric, enabling efficient dataset synthesis in general scenarios by selecting subsets of existing (uneven-quality) datasets with higher API coverage. On the other hand, Dgen recasts domain dataset synthesis as a process of using API-specified high-level functionality and deliberately-constituted code skeletons to synthesize concrete code. Extensive experiments demonstrate DataScope's effectiveness, with models fine-tuned on its synthesized datasets outperforming those tuned on unoptimized datasets five times larger. Furthermore, a series of analyses on model internals, relevant hyperparameters, and case studies provide additional evidence for the efficacy of our proposed methods. These findings underscore the significance of dataset quality in SFT and advance the field of LCMs by providing an efficient, cost-effective framework for constructing high-quality datasets. This contribution enhances performance across both general and domain-specific scenarios, paving the way for more powerful and tailored LCMs.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 54 of its 94 references that are in the map. First posted on arXiv 15 Aug 2024.
Builds on
54 of 94 references.
References · 54
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2021Program Synthesis with Large Language Modelscited by 3,509
38 more
- 2023Qwen Technical Reportcited by 3,273
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
- 2023LIMA: Less Is More for Alignmentcited by 1,080
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 449
- 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 445
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
- 2023How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Compositioncited by 222
- 2024When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Methodcited by 201
- 2023LLMs Cannot Reliably Identify and Reason About Security Vulnerabilities (Yet?): A Comprehensive Evaluation, Framework, and Benchmarkscited by 94
- 2024A Closer Look at the Limitations of Instruction Tuningcited by 76
- 2023Split and Merge: Aligning Position Biases in LLM-based Evaluatorscited by 71
- 2024Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimationcited by 53
- 2024CYCLE: Learning to Self-Refine the Code Generationcited by 39
- 2022CCTEST: Testing and Repairing Code Completion Systemscited by 35
- 2024How Beginning Programmers and Code LLMs (Mis)read Each Othercited by 31
- 2024Diversity Measurement and Subset Selection for Instruction Tuning Datasetscited by 28
- 2017Program Synthesis using Conflict-Driven Learningcited by 26
- 2023Traces of Memorisation in Large Language Models for Codecited by 26
- 2015Program Synthesis from Polymorphic Refinement Typescited by 20
- 2023CoachLM: Automatic Instruction Revisions Improve the Data Quality in LLM Instruction Tuningcited by 19
- 2024Exploring Multi-Lingual Bias of Large Code Models in Code Generationcited by 17
- 2018Quality Control in Crowdsourcing: A Survey of Quality Attributes, Assessment Techniques and Assurance Actionscited by 16
- 2023Benchmarking and Explaining Large Language Model-based Code Generation: A Causality-Centric Approachcited by 15
- 2017Program Synthesis using Abstraction Refinementcited by 12
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2025: 9; 2026: 2.
11 papers.
- 2025MultiKernelBench: A Multi-Platform Benchmark for Kernel Generationcited by 35
- 2025SoK: Evaluating Jailbreak Guardrails for Large Language Modelscited by 17
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
- 2025TreeSynth: Synthesizing Diverse Data from Scratch via Tree-Guided Subspace Partitioningcited by 6
- 2025Differentiation-Based Extraction of Proprietary Data from Fine-Tuned LLMscited by 6
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Modelscited by 3
- 2026To See is Not to Master: Teaching LLMs to Use Private Libraries for Code Generationcited by 3
- 2025What Matters in LLM-generated Data: Diversity and Its Effect on Model Fine-Tuningcited by 1
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Frameworkcited by 1
- 2025Go-UT-Bench: A Fine-Tuning Dataset for LLM-Based Unit Test Generation in Gocited by 0
- 2026Repository-Level Solidity Code Generation with Large Language Models: From Prompting to Fine-Tuningcited by 0
- 2026Repository-Level Solidity Code Generation with Large Language Models: From Prompting to Fine-Tuning18 Jun 2026
- 2026To See is Not to Master: Teaching LLMs to Use Private Libraries for Code Generation16 Mar 2026
- 2025Go-UT-Bench: A Fine-Tuning Dataset for LLM-Based Unit Test Generation in Go14 Nov 2025
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Framework20 Oct 2025
- 2025MultiKernelBench: A Multi-Platform Benchmark for Kernel Generation20 Jul 2025
- 2025What Matters in LLM-generated Data: Diversity and Its Effect on Model Fine-Tuning24 Jun 2025
- 2025Differentiation-Based Extraction of Proprietary Data from Fine-Tuned LLMs20 Jun 2025
- 2025SoK: Evaluating Jailbreak Guardrails for Large Language Models12 Jun 2025
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Models11 Jun 2025
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems18 May 2025
- 2025TreeSynth: Synthesizing Diverse Data from Scratch via Tree-Guided Subspace Partitioning21 Mar 2025