Enhancing LLM Code Generation Capabilities through Test-Driven Development and Code Interpreter

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Jalil, Sajed, Saha, Shuvo, Seym, Hossain Mohammad
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909906108416000
author Jalil, Sajed
Saha, Shuvo
Seym, Hossain Mohammad
author_facet Jalil, Sajed
Saha, Shuvo
Seym, Hossain Mohammad
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2511_12823
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Enhancing LLM Code Generation Capabilities through Test-Driven Development and Code Interpreter
Jalil, Sajed
Saha, Shuvo
Seym, Hossain Mohammad
Software Engineering
Machine Learning
Programming Languages
I.2.7; D.2.3
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.
title Enhancing LLM Code Generation Capabilities through Test-Driven Development and Code Interpreter
topic Software Engineering
Machine Learning
Programming Languages
I.2.7; D.2.3
url https://arxiv.org/abs/2511.12823