Research map / Large language models / Agents, code and math
M²G-Eval: Enhancing and Evaluating Multi-granularity Multilingual Code Generation
Fanglin Xu, Wei Zhang, Jian Yang, Guo Chen, Aishan Liu, Zhoujun Li, Xianglong Liu, Bryan Dai
Hunan University · Beihang University · IQuest Research
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add SFT on M2G-Eval-Instruct | Qwen3-8B · M2G-Eval full-granularity, Line | edit similarity: 20.5 -> 26.7 | Improved |
| Add GRPO stage after SFT (ablation) | M2G-Eval-Coder-SFT · M2G-Eval full-granularity, Line | edit similarity: 26.7 -> 32.2 | Improved |
| Add GRPO stage after SFT (ablation) | M2G-Eval-Coder-SFT · M2G-Eval full-granularity, Block | edit similarity: 21.8 -> 24.8 | Improved |
| Add GRPO stage after SFT (ablation) | M2G-Eval-Coder-SFT · M2G-Eval full-granularity, Class | edit similarity: 16.1 -> 16.8 | Improved |
| Add GRPO stage after SFT (ablation) | M2G-Eval-Coder-SFT · M2G-Eval partial-granularity, Line | edit similarity: 32.0 -> 36.4 | Improved |
| Move from Line to Block/Function to Class granularity | all evaluated models · M2G-Eval | edit similarity | Hurt |
| Use full-granularity instead of partial-granularity languages | all evaluated models · M2G-Eval | edit similarity | Improved |
| Compare scores across languages | evaluated models · M2G-Eval, 18 languages | Pearson correlation of model scores | Improved |
| Train 8B model with SFT and GRPO | M2G-Eval-Coder-RL · M2G-Eval full-granularity, Line | edit similarity: 32.2 vs 32.8 (Qwen3-Coder-480B-A35B-Instruct) | Improved |
Open problems this paper states
- “Dataset is relatively small, with 17K+ training and 1,286 test instances.” → Benchmarks are small, with a few dozen to a few hundred problems. (an open problem in code generation benchmarks)
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- AutoCodeBench: Large Language Models are Automatic Code Benchmark Generators (ICLR 2026 · similarity 0.92)
- DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories (ACL 2024 · similarity 0.92)
- McEval: Massively Multilingual Code Evaluation (ICLR 2025 · similarity 0.91)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.90)
- EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code (NeurIPS 2025 · similarity 0.89)
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (ICML 2025 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.