arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.23713cs.CLcs.AI
收藏

在BLP-2025任务2中提升孟加拉语到Python代码生成:通过迭代自我纠正和多语言代理

PyBangla at BLP-2025 Task 2: Enhancing Bangla-to-Python Code Generation with Iterative Self-Correction and Multilingual Agents

Department of Computer Science and Engineering(计算机科学与工程系)

Jahidul Islam, Md Ataullha, Saiful Azad

AI总结:

本文提出BanglaCodeAct框架,通过多代理提示和迭代自我纠正,提升孟加拉语到Python代码生成的性能,实验显示Qwen3-8B结合该框架在开发集和盲测集上分别达到94.0%和71.6%的准确率。

摘要:

大型语言模型在从英语提示生成代码方面表现出色,但这种进展尚未扩展到低资源语言。我们通过引入BanglaCodeAct,一个基于代理的框架,来解决孟加拉语到Python代码生成的问题。该框架利用多代理提示和迭代自我纠正。与以往依赖任务特定微调的方法不同,BanglaCodeAct采用了一个开源多语言LLM,在Thought-Code-Observation循环中实现动态生成、测试和代码优化。我们对几种小参数开源LLM进行了基准测试,并在mHumanEval数据集上评估其在孟加拉语NL2Code任务中的有效性。我们的结果表明,当Qwen3-8B与BanglaCodeAct结合使用时,其在开发集上的pass@1准确率为94.0%,在盲测集上的准确率为71.6%。这些结果为孟加拉语到Python翻译建立了新的基准,并突显了基于代理的推理在低资源语言中可靠代码生成的潜力。实验脚本可在github.com/jahidulzaid/PyBanglaCodeActAgent上公开获取。

英文摘要:

LLMs excel at code generation from English prompts, but this progress has not extended to low-resource languages. We address Bangla-to-Python code generation by introducing BanglaCodeAct, an agent-based framework that leverages multi-agent prompting and iterative self-correction. Unlike prior approaches relying on task-specific fine-tuning, BanglaCodeAct employs an open-source multilingual LLM within a Thought-Code-Observation loop, enabling dynamic generation, testing, and refinement of code from Bangla instructions. We benchmark several small-parameter open-source LLMs and evaluate their effectiveness on the mHumanEval dataset for Bangla NL2Code. Our results show that Qwen3-8B, when deployed with BanglaCodeAct, achieves the best performance, with pass@1 accuracy of 94.0\% on the development set and 71.6\% on the blind test set. These results establish a new benchmark for Bangla-to-Python translation and highlight the potential of agent-based reasoning for reliable code generation in low-resource languages. Experimental scripts are publicly available at github.com/jahidulzaid/PyBanglaCodeActAgent.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑