通过测试驱动开发与代码解释器增强大语言模型代码生成能力
Enhancing LLM Code Generation Capabilities through Test-Driven Development and Code Interpreter
AI总结:
针对资源受限新兴市场的孟加拉语用户难以低成本使用高性能代码生成工具的问题,提出结合TDD与Code Interpreter的无微调方法,基于开源权重模型实现了优异的孟加拉语代码生成效果。
摘要:
过去数年间,提升大语言模型(LLM)的代码生成能力一直是自然语言处理(NLP)研究的核心方向之一。尽管全球有2.42亿孟加拉语母语使用者,但在大语言模型训练领域,孟加拉语受到的关注极少。近期已有各类微调与增强生成技术被用于大幅提升代码生成性能,但终端用户要有效使用这些技术需要具备大量专业知识、投入可观资源。本研究的目标是在资源受限的新兴市场普及高性能代码生成工具的使用权限,支持用户以母语调用这类工具。我们提出了一种结合测试驱动开发(TDD)与代码解释器(CI)的全新方法,采用开源权重模型,提升了孟加拉语提示词下代码生成的基线准确率,整体准确率达到85%。该方法无需微调,且证实同模型家族中即使是最小规格的模型,也能达到与最大规格模型相比最高98%的准确率。我们所有的实验结果均已在GitHub公开,可供验证与复现。
英文摘要:
Over the past few years, improving LLM code generation capabilities has been a key focus in NLP research. Despite Bengali having 242 million native speakers worldwide, it receives little attention when it comes to training LLMs. More recently, various fine-tuning and augmented generation techniques have been employed to significantly enhance code generation performance. However, they require considerable expertise and resources to utilize effectively as an end user. The goal of our work is to democratize access to powerful code generation tools in resource-constrained emerging markets, enabling users to leverage them in their native language. We introduce a novel approach that combines Test-Driven Development (TDD) and Code Interpreter (CI), utilizing open-weight models, which improves the baseline accuracy for code generation with Bengali prompts and achieves an overall accuracy of 85%. Our approach requires no finetuning and proves that even the smallest models in the same family can attain up to 98% accuracy compared to the largest models. All of our results are publicly shared in GitHub for validation and reproducibility.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。