paper-with-me

Papers

Multi-Programming Language Ensemble for Code Generation in Large Language Model

2024-09-06 · Tengfei Xue, Xuefeng Li, Tahir Azim, Roman Smirnov, Jianhui Yu, Arash Sadrieh, Babak Pahlavan

Large language models (LLMs) have significantly improved code generation, particularly in one-pass code generation. However, most existing approaches focus solely on generating code in a single programming language, overlooking the potential of leveraging the multi-language capabilities of LLMs. LLMs have varying patterns of errors across different languages, suggesting that a more robust approach could be developed by leveraging these multi-language outputs. In this study, we propose Multi-Programming Language Ensemble (MPLE), a novel ensemble-based method that utilizes code generation across multiple programming languages to enhance overall performance. By treating each language-specific code generation process as an individual "weak expert" and effectively integrating their outputs, our method mitigates language-specific errors and biases. This multi-language ensemble strategy leverages the complementary strengths of different programming languages, enabling the model to produce more accurate and robust code. Our approach can be seamlessly integrated with commonly used techniques such as the reflection algorithm and Monte Carlo tree search to improve code generation quality further. Experimental results show that our framework consistently enhances baseline performance by up to 17.92% on existing benchmarks (HumanEval and HumanEval-plus), with a standout result of 96.25% accuracy on the HumanEval benchmark, achieving new state-of-the-art results across various LLM models. The code will be released at https://github.com/NinjaTech-AI/MPLE

📄 PDF Abstract BibTeX arXiv:2409.04114

Code (1)

ninjatech-ai/mple 공식 구현

Tasks

Code GenerationHumanEvalLanguage ModelingLanguage ModellingLarge Language Model

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Benchmarking LLM Code Generation for Audio Programming with Visual Dataflow Languages

2024-09-01 · William Zhang, Maria Leon, Ryan Xu, Adrian Cardenas 외

Node-based programming languages are increasingly popular in media arts coding domains. These languages are designed to be accessible to users with limited coding experience, allowing them to achieve creative output with…

BenchmarkingCode Generation

MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generation

2022-08-17 · Federico Cassano, John Gouwar, Daniel Nguyen, Sydney Nguyen 외

Large language models have demonstrated the ability to generate both natural language and programming language text. Such models open up the possibility of multi-language code generation: could code generation models gen…

BenchmarkingCode GenerationHumanEvalmbpp

ENCORE: Ensemble Learning using Convolution Neural Machine Translation for Automatic Program Repair

2019-06-20 · Thibaud Lutellier, Lawrence Pang, Viet Hung Pham, Moshi Wei 외

Automated generate-and-validate (G&V) program repair techniques typically rely on hard-coded rules, only fix bugs following specific patterns, and are hard to adapt to different programming languages. We propose ENCORE, …

Ensemble LearningMachine TranslationNMTProgram Repair+1

Multi-Agent Collaboration for Multilingual Code Instruction Tuning

2025-02-11 · Jian Yang, Wei zhang, Jiaxi Yang, Yibo Miao 외

Recent advancement in code understanding and generation demonstrates that code LLMs fine-tuned on a high-quality instruction dataset can gain powerful capabilities to address wide-ranging code-related tasks. However, mos…

Cross-Lingual TransferTransfer Learning

CoCoNuT: Combining Context-Aware Neural Translation Models using Ensemble for Program Repair

2020-07-18 · Thibaud Lutellier, Hung Viet Pham, Lawrence Pang, Yitong Li 외

Automated generate-and-validate (GV) program repair techniques (APR) typically rely on hard-coded rules, thus only fixing bugs following specific fix patterns. These rules require a significant amount of manual effort to…

Ensemble LearningMachine TranslationNMTProgram Repair+1