An Empirical Study of Problem-Aligned Multilingual Code Generation and Directed Code Translation by Large Language Models
Wang, Quanhe, Wen, Cheng, Liu, Dugang, Han, Xingjian, Yu, Bin, Chen, Ping et al. · 2026 · 284 citationsRead the paper
All 8 authors
Qin, Shengchao, Tian, Cong
Background. Large language models (LLMs) can generate executable code, but their reliability across programming languages remains difficult to characterize. Aims. We investigate multilingual code capability under problem alignment, focusing on functional reliability, cross-language consistency, translation behavior, problem and sampling effects, and execution quality. Method. We present MciBench, covering 1,489 programming problems and eight languages, of which 1,466 have execution-validated coverage in all eight languages. We evaluate representative LLMs through multilingual generation and analyze source-code-conditioned translation on 100 randomly selected all-language-covered problems. Results. Performance varies substantially across models and target languages, while source-code-conditioned translation also exhibits marked variation across source-target settings. Problem difficulty and candidate budget materially affect correctness, strong aggregate performance does not necessarily imply cross-language consistency, and accepted programs differ in runtime and memory efficiency. Conclusions. Aggregate pass@k alone is insufficient for characterizing multilingual code capability, motivating evaluation that considers language consistency, problem sensitivity, sampling behavior, translation settings, and post-correctness execution quality.
What the full text shows
Shown in the lab- Performance in multilingual code generation varies substantially across models and target languages. (Across 1,489 problems and 8 languages)
- Source-code-conditioned translation performance exhibits marked variation across different source-target language settings. (100 randomly selected problems across 56 ordered source-target settings)
- Strong aggregate performance (pass@k) does not necessarily imply cross-language consistency. (Problem-aligned multilingual generation)
- Functionally correct programs differ in runtime and memory efficiency. (Accepted generated programs normalized within problem-language groups)
- Problem difficulty and candidate budget (pass@1 vs pass@5) materially affect correctness. (Multilingual code generation)
- Setup
- MciBench contains 1,489 algorithmic problems (481 Easy, 723 Medium, 285 Hard) across 8 languages (Python3, Java, C, C++, Rust, JavaScript, C#, Golang), with 1,466 problems having execution-validated coverage in all eight languages.
- How
- The researchers developed MciBench to evaluate LLMs on two tasks: multilingual code generation from problem descriptions and source-code-conditioned translation. They used an execution-based submission-and-check protocol to measure functional correctness, runtime, and memory usage.
- Limitations
- Focuses on online algorithmic problems, which may not generalize to repository-level development or production maintenance. · Problems are publicly available and may have been present in model training data. · Execution-based correctness depends on available tests and does not establish full semantic equivalence. · Runtime and memory measurements are platform-dependent and relative.
Summarized by Gemma 4 from the open-access full text · 29 Oct 2026. Read it