paper-with-me

Papers

Grounding Data Science Code Generation with Input-Output Specifications

2024-02-12 · Yeming Wen, Pengcheng Yin, Kensen Shi, Henryk Michalewski, Swarat Chaudhuri, Alex Polozov

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.

📄 PDF Abstract BibTeX arXiv:2402.08073

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Probing Semantic Grounding in Language Models of Code with Representational Similarity Analysis

2022-07-15 · Shounak Naik, Rajaswa Patil, Swati Agarwal, Veeky Baths

Representational Similarity Analysis is a method from cognitive neuroscience, which helps in comparing representations from two different sources of data. In this paper, we propose using Representational Similarity Analy…

DA-Code: Agent Data Science Code Generation Benchmark for Large Language Models

2024-10-09 · Yiming Huang, Jianwen Luo, Yan Yu, Yitong Zhang 외

We introduce DA-Code, a code generation benchmark specifically designed to assess LLMs on agent-based data science tasks. This benchmark features three core elements: First, the tasks within DA-Code are inherently challe…

Code Generation

Enhancing Contextual Understanding in Large Language Models through Contrastive Decoding

2024-05-04 · Zheng Zhao, Emilio Monti, Jens Lehmann, Haytham Assem

Large language models (LLMs) tend to inadequately integrate input context during text generation, relying excessively on encoded prior knowledge in model parameters, potentially resulting in generated text with factual i…

Open-Domain Question AnsweringQuestion AnsweringText Generation

Hypothesis-Conditioned Query Rewriting for Decision-Useful Retrieval

2026-03-19 · Hangeol Chang, Changsun Lee, Seungjoon Rho, Junho Yeo 외 arxiv

Retrieval-Augmented Generation (RAG) improves Large Language Models (LLMs) by grounding generation in external, non-parametric knowledge. However, when a task requires choosing among competing options, simply grounding g…

Answer Selection

EVOQUER: Enhancing Temporal Grounding with Video-Pivoted BackQuery Generation

2021-09-10 · Yanjun Gao, Lulu Liu, Jason Wang, Xin Chen 외

Temporal grounding aims to predict a time interval of a video clip corresponding to a natural language query input. In this work, we present EVOQUER, a temporal grounding framework incorporating an existing text-to-video…

TranslationVideo Grounding