paper-with-me

Papers

Towards Generating Functionally Correct Code Edits from Natural Language Issue Descriptions

2023-04-07 · Sarah Fakhoury, Saikat Chakraborty, Madan Musuvathi, Shuvendu K. Lahiri

Large language models (LLMs), such as OpenAI's Codex, have demonstrated their potential to generate code from natural language descriptions across a wide range of programming tasks. Several benchmarks have recently emerged to evaluate the ability of LLMs to generate functionally correct code from natural language intent with respect to a set of hidden test cases. This has enabled the research community to identify significant and reproducible advancements in LLM capabilities. However, there is currently a lack of benchmark datasets for assessing the ability of LLMs to generate functionally correct code edits based on natural language descriptions of intended changes. This paper aims to address this gap by motivating the problem NL2Fix of translating natural language descriptions of code changes (namely bug fixes described in Issue reports in repositories) into correct code fixes. To this end, we introduce Defects4J-NL2Fix, a dataset of 283 Java programs from the popular Defects4J dataset augmented with high-level descriptions of bug fixes, and empirically evaluate the performance of several state-of-the-art LLMs for the this task. Results show that these LLMS together are capable of generating plausible fixes for 64.6% of the bugs, and the best LLM-based technique can achieve up to 21.20% top-1 and 35.68% top-5 accuracy on this benchmark.

📄 PDF Abstract BibTeX arXiv:2304.03816

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Test 설명 없음

Similar Papers 제목 키워드 기반

OptiML: An End-to-End Framework for Program Synthesis and CUDA Kernel Optimization

2026-02-12 · Arijit Bhattacharjee, Heng Ping, Son Vu Le, Paul Bogdan 외 arxiv

Generating high-performance CUDA kernels remains challenging due to the need to navigate a combinatorial space of low-level transformations under noisy and expensive hardware feedback. Although large language models can …

Program Synthesis

Program Repair with Minimal Edits Using CodeT5

2023-09-26 · Atsushi Shirafuji, Md. Mostafizer Rahman, Md Faizul Ibne Amin, Yutaka Watanobe

Programmers often struggle to identify and fix bugs in their programs. In recent years, many language models (LMs) have been proposed to fix erroneous programs and support error recovery. However, the LMs tend to generat…

Program Repair

Contrastive Code Representation Learning

2020-07-09 · EMNLP 2021 11 · Paras Jain, Ajay Jain, Tianjun Zhang, Pieter Abbeel 외

Recent work learns contextual representations of source code by reconstructing tokens from their context. For downstream semantic understanding tasks like summarizing code in English, these representations should ideally…

Clone DetectionContrastive LearningData AugmentationMethod name prediction+3

ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?

2024-07-19 · Siddhant Waghjale, Vishruth Veerendranath, Zora Zhiruo Wang, Daniel Fried

Although large language models (LLMs) have been largely successful in generating functionally correct programs, conditioning models to produce efficient solutions while ensuring correctness remains a challenge. Further, …

BenchmarkingCode GenerationIn-Context Learning

VeriCoder: Enhancing LLM-Based RTL Code Generation through Functional Correctness Validation

2025-04-22 · Anjiang Wei, Huanmi Tan, Tarun Suresh, Daniel Mendoza 외

Recent advances in Large Language Models (LLMs) have sparked growing interest in applying them to Electronic Design Automation (EDA) tasks, particularly Register Transfer Level (RTL) code generation. While several RTL da…

Code Generation