mlsanityData to 7 Oct 2026

Grounding Data Science Code Generation with Input-Output Specifications

arXiv 2402.08073 ↗First posted 12 Feb 2024cs.LG cs.PL cs.SEcited by 7

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have recently demonstrated a remarkable ability to generate code from natural language (NL) prompts. However, in the real world, NL is often too ambiguous to capture the true intent behind programming problems, requiring additional input-output (I/O) specifications. Unfortunately, LLMs can have difficulty aligning their outputs with both the NL prompt and the I/O specification. In this paper, we give a way to mitigate this issue in the context of data science programming, where tasks require explicit I/O specifications for clarity. Specifically, we propose GIFT4Code, a novel approach for the instruction fine-tuning of LLMs with respect to I/O specifications. Our method leverages synthetic data produced by the LLM itself and utilizes execution-derived feedback as a key learning signal. This feedback, in the form of program I/O specifications, is provided to the LLM to facilitate instruction fine-tuning. We evaluated our approach on two challenging data science benchmarks, Arcade and DS-1000. The results demonstrate a significant improvement in the LLM's ability to generate code that is not only executable but also accurately aligned with user specifications, substantially improving the quality of code generation for complex data science tasks.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 39 of its 56 references that are in the map. First posted on arXiv 12 Feb 2024.

Builds on

39 of 56 references.

References · 39

  1. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  2. 2021Program Synthesis with Large Language Modelscited by 3,509
  3. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  4. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  6. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  7. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  8. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  9. 2023Teaching Large Language Models to Self-Debugcited by 963
  10. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  11. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
  12. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
27 more
  1. 2023Instruction Tuning with GPT-4cited by 676
  2. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  3. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  4. 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
  5. 2022CodeT: Code Generation with Generated Testscited by 369
  6. 2022Language Models are Realistic Tabular Data Generatorscited by 290
  7. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
  8. 2023Planning with Large Language Models for Code Generationcited by 179
  9. 2022Instruction Induction: From Few Examples to Natural Language Task Descriptionscited by 152
  10. 2023Does Synthetic Data Generation of LLMs Help Clinical Text Mining?cited by 151
  11. 2016DeepCoder: Learning to Write Programscited by 145
  12. 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
  13. 2022Natural Language to Code Translation with Executioncited by 122
  14. 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
  15. 2023Exploiting Asymmetry for Synthetic Training Data Generation: SynthIE and the Case of Information Extractioncited by 89
  16. 2018Leveraging Grammar and Reinforcement Learning for Neural Program Synthesiscited by 83
  17. 2018Robust Text-to-SQL Generation with Execution-Guided Decodingcited by 51
  18. 2021Latent Execution for Neural Program Synthesiscited by 35
  19. 2020AutoQA: From Databases To QA Semantic Parsers With Only Synthetic Training Datacited by 29
  20. 2022LINGUIST: Language Model Instruction Tuning to Generate Annotated Utterances for Intent Classification and Slot Taggingcited by 29
  21. 2020TF-Coder: Program Synthesis for Tensor Manipulationscited by 27
  22. 2022Guess the Instruction! Flipped Learning Makes Language Models Stronger Zero-Shot Learnerscited by 22
  23. 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Modelscited by 22
  24. 2022CLASP: Few-Shot Cross-Lingual Data Augmentation for Semantic Parsingcited by 21
  25. 2022I2D2: Inductive Knowledge Distillation with NeuroLogic and Self-Imitationcited by 21
  26. 2021On The Ingredients of an Effective Zero-shot Semantic Parsercited by 13
  27. 2022Augmenting Multi-Turn Text-to-SQL Datasets with Self-Playcited by 9

Built on by

Cited by year

Citing papers per year: 2024: 5; 2025: 2.

7 papers.