Reproduce “Exploring Multi-Lingual Bias of Large Code Models in Code Generation” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Chaozheng Wang, Zongjie Li, Cuiyun Gao, Wenxuan Wang, Ting Peng, Hailiang Huang, Yuetang Deng, Shuai Wang and 1 more
Researchers investigated multi-lingual bias in Large Code Models (LCMs) for code generation, specifically concerning natural language understanding and programming language generation. They quantified significant performance disparities (e.g., a 17.2% average Pass@1 drop for Chinese instructions in Python) and demonstrated that instruction tuning with a newly constructed multi-lingual dataset reduced multi-NL bias by up to 84% and multi-PL bias by 40%, concurrently improving overall code generation performance by 31-46%.
Key insights
- Current LCMs exhibit substantial multi-natural language and multi-programming language biases, leading to significant performance degradation when moving from high-resource (English) instructions or dominant programming languages (Python) to others.
- Training-free methods like external multi-step translation can reduce multi-NL bias during prompting, but LCMs themselves are poor self-translators and exacerbate bias.
- Instruction tuning with a diverse dataset (Multi-EvolInstruct-Code) significantly reduces both multi-NL and multi-PL biases while simultaneously enhancing overall code generation performance, with specific tuning strategies showing optimal results.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.