BanglaForge: 通过自反思的LLM协作实现孟加拉语代码生成
BanglaForge: LLM Collaboration with Self-Refinement for Bangla Code Generation
AI总结:
BanglaForge通过双模型协作与自反思技术,实现低资源孟加拉语代码生成,达到84.00%的Pass@1准确率。
摘要:
孟加拉语在代码生成领域是一个低资源语言,缺乏大规模标注数据集和将自然语言规范转换为可执行程序的工具。这使得孟加拉语到代码的生成成为一项具有挑战性的任务,需要创新的解决方案。为此,我们引入了BanglaForge,一种用于从孟加拉语函数描述生成代码的新框架。BanglaForge采用检索增强的双模型协作范式与自反思,结合上下文学习、基于LLM的翻译、系统提示工程以及基于执行反馈的迭代自反思,其中编码器生成初始解决方案,评审器则增强其以提高鲁棒性。在BLP-2025孟加拉语代码生成基准测试中,BanglaForge实现了84.00%的Pass@1准确率,证明了检索、模型协作和自反思在低资源孟加拉语代码生成中的有效性。
英文摘要:
Bangla is a low-resource language for code generation, lacking large-scale annotated datasets and tools to transform natural language specifications into executable programs. This makes Bangla-to-code generation a challenging task requiring innovative solutions. To address this, we introduce BanglaForge, a novel framework for generating code from Bangla function descriptions. BanglaForge leverages a retrieval-augmented dual-model collaboration paradigm with self-refinement, combining in-context learning, llm-based translation, systematic prompt engineering, and iterative self-refinement based on execution feedback, where a coder generates initial solutions and a reviewer enhances them for robustness. On the BLP-2025 Bangla Code Generation benchmark, BanglaForge achieves a competitive Pass@1 accuracy of 84.00%, demonstrating the effectiveness of retrieval, model collaboration, and self-refinement for low-resource Bangla code generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。