paper-with-me

Papers

Self-Edit: Fault-Aware Code Editor for Code Generation

2023-05-06 · Kechi Zhang, Zhuo Li, Jia Li, Ge Li, Zhi Jin

Large language models (LLMs) have demonstrated an impressive ability to generate codes on competitive programming tasks. However, with limited sample numbers, LLMs still suffer from poor accuracy. Inspired by the process of human programming, we propose a generate-and-edit approach named Self-Edit that utilizes execution results of the generated code from LLMs to improve the code quality on the competitive programming task. We execute the generated code on the example test case provided in the question and wrap execution results into a supplementary comment. Utilizing this comment as guidance, our fault-aware code editor is employed to correct errors in the generated code. We perform extensive evaluations across two competitive programming datasets with nine different LLMs. Compared to directly generating from LLMs, our approach can improve the average of pass@1 by 89\% on APPS-dev, 31\% on APPS-test, and 48\% on HumanEval over nine popular code generation LLMs with parameter sizes ranging from 110M to 175B. Compared to other post-processing methods, our method demonstrates superior accuracy and efficiency.

📄 PDF Abstract BibTeX arXiv:2305.04087

Code (1)

zkcpku/self-edit pytorch

Tasks

Code GenerationHumanEval

Methods 이 논문이 사용한 방법론

Test 설명 없음

Similar Papers 제목 키워드 기반

FluentEditor: Text-based Speech Editing by Considering Acoustic and Prosody Consistency

2023-09-21 · Rui Liu, Jiatian Xi, Ziyue Jiang, Haizhou Li

Text-based speech editing (TSE) techniques are designed to enable users to edit the output audio by modifying the input text transcript instead of the audio itself. Despite much progress in neural network-based TSE techn…

Importance-Aware Learning for Neural Headline Editing

2019-11-25 · Qingyang Wu, Lei LI, Hao Zhou, Ying Zeng 외

Many social media news writers are not professionally trained. Therefore, social media platforms have to hire professional editors to adjust amateur headlines to attract more readers. We propose to automate this headline…

ArticlesDecoderHeadline Generation

Capital Requirements and Claims Recovery: A New Perspective on Solvency Regulation

2021-07-22 · Cosimo Munari, Lutz Wilhelmy, Stefan Weber

Protection of creditors is a key objective of financial regulation. Where the protection needs are high, i.e., in banking and insurance, regulatory solvency requirements are an instrument to prevent that creditors incur …

Management

CodeEditor: Learning to Edit Source Code with Pre-trained Models

2022-10-31 · Jia Li, Ge Li, Zhuo Li, Zhi Jin 외

Developers often perform repetitive code editing activities for various reasons (e.g., code refactoring) during software development. Pre-trained code editing models have achieved the state-of-the-art (SOTA) results. Pre…

Language ModelingLanguage ModellingMasked Language Modeling

S3Editor: A Sparse Semantic-Disentangled Self-Training Framework for Face Video Editing

2024-04-11 · Guangzhi Wang, Tianyi Chen, Kamran Ghasedi, HsiangTao Wu 외

Face attribute editing plays a pivotal role in various applications. However, existing methods encounter challenges in achieving high-quality results while preserving identity, editing faithfulness, and temporal consiste…

AttributeVideo Editing