Grounding Data Science Code Generation with Input-Output Specifications
Yeming Wen, Pengcheng Yin, Kensen Shi, Henryk Michalewski, Swarat, Chaudhuri, Alex Polozov

TL;DR
This paper introduces GIFT4Code, a fine-tuning method for large language models that uses synthetic I/O data and execution feedback to improve data science code generation accuracy and alignment with user specifications.
Contribution
It presents a novel instruction fine-tuning approach leveraging synthetic data and execution feedback to enhance LLM performance on data science coding tasks.
Findings
Significant improvement in code accuracy on Arcade and DS-1000 benchmarks.
Enhanced alignment of generated code with user I/O specifications.
Better handling of complex data science programming tasks.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel-Driven Software Engineering Techniques
