mlsanityData to 7 Oct 2026

API-guided Dataset Synthesis to Finetune Large Code Models

arXiv 2408.08343 ↗First posted 15 Aug 2024cs.SE cs.AIcited by 11

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  7. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  8. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  9. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  10. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  11. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  12. 2021Program Synthesis with Large Language Modelscited by 3,509
38 more
  1. 2023Qwen Technical Reportcited by 3,273
  2. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  3. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
  4. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  6. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  7. 2022Large Language Models Encode Clinical Knowledgecited by 1,807
  8. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  9. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
  10. 2023LIMA: Less Is More for Alignmentcited by 1,080
  11. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  12. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  13. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  14. 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
  15. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
  16. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  17. 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 449
  18. 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 445
  19. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  20. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
  21. 2023How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Compositioncited by 222
  22. 2024When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Methodcited by 201
  23. 2023LLMs Cannot Reliably Identify and Reason About Security Vulnerabilities (Yet?): A Comprehensive Evaluation, Framework, and Benchmarkscited by 94
  24. 2024A Closer Look at the Limitations of Instruction Tuningcited by 76
  25. 2023Split and Merge: Aligning Position Biases in LLM-based Evaluatorscited by 71
  26. 2024Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimationcited by 53
  27. 2024CYCLE: Learning to Self-Refine the Code Generationcited by 39
  28. 2022CCTEST: Testing and Repairing Code Completion Systemscited by 35
  29. 2024How Beginning Programmers and Code LLMs (Mis)read Each Othercited by 31
  30. 2024Diversity Measurement and Subset Selection for Instruction Tuning Datasetscited by 28
  31. 2017Program Synthesis using Conflict-Driven Learningcited by 26
  32. 2023Traces of Memorisation in Large Language Models for Codecited by 26
  33. 2015Program Synthesis from Polymorphic Refinement Typescited by 20
  34. 2023CoachLM: Automatic Instruction Revisions Improve the Data Quality in LLM Instruction Tuningcited by 19
  35. 2024Exploring Multi-Lingual Bias of Large Code Models in Code Generationcited by 17
  36. 2018Quality Control in Crowdsourcing: A Survey of Quality Attributes, Assessment Techniques and Assurance Actionscited by 16
  37. 2023Benchmarking and Explaining Large Language Model-based Code Generation: A Causality-Centric Approachcited by 15
  38. 2017Program Synthesis using Abstraction Refinementcited by 12

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 9; 2026: 2.

11 papers.