M²EVAL
Evaluates code generation from a visual software-design diagram and language-specific instructions using execution tests across ten languages.
Benchmark design
These annotations use Evidence-Centered Benchmark Design (ECBD) to describe how the authors designed the benchmark and which choices they justify in their publication.
What the authors tested
We haven’t summarized validation evidence for this edition yet.
Limitations
- Table 4 prints 27 model comparisons and 297 active scores. Twenty-five models use diagrams. The two text-only rows are different systems, so the zero values do not estimate the within-model effect of removing diagrams. (§4.2 and Table 4)
- The benchmark contains 30 shared design ideas with language-specific versions and code tests, not 300 independent software designs. All printed per-language rates conform to 30 items up to rounding. The instruction dataset used for training is separate from M²EVAL. (Tables 1–2 and 4, Appendix B)
- The checked C# example links one exact public test problem and a published design illustration. Individual predictions were not recovered. Execution-based passing addresses the released tests rather than security, maintainability or general software quality. (§§2.1 and 4.1, Figure 27)
Benchmark design choices
Intended use
Diagnose whether models can translate visually specified software designs into correct code across programming languages, and compare training interventions.
§§1, 4–5 §§1, 4–5 §§1, 4–5 §§1, 4–5 §§1, 4–5 §§1, 4–5Capability
Use the design image and a text instruction to implement the intended program in the requested programming language.
§2.1 §2.1Tasks
Develop 30 prototype software-design tasks and check their diagrams, language-specific versions, solutions and execution tests.
§2.2 and Appendix B §2.2 and Appendix B §2.2 and Appendix B §2.2 and Appendix B §2.2 and Appendix BModel setup
Compare visual-input models including the fine-tuned M²-Coder, and separately report text-only comparison models. Use the paper’s decoding settings for each interface.
§§3–4.1 and Table 4 §§3–4.1 and Table 4 §§3–4.1 and Table 4Task selection
Use 300 problems from 30 designs paired across ten programming languages. Verify the tests and translations for each language separately.
§§2.2–2.3 and Table 1 §§2.2–2.3 and Table 1Scoring
Extract generated code, execute the language-specific tests and count tasks that pass every test. Average the ten language rates for the named model setting.
§§2.1, 4.1 and Table 4 §§2.1, 4.1 and Table 4 §§2.1, 4.1 and Table 4 §§2.1, 4.1 and Table 4Design annotations from the paper
Reported model results
- 1
Gemini-2.5-Flash-preview56.7%Sources for Gemini-2.5-Flash-preview - 2
Claude-3.5-Sonnet46.7%Sources for Claude-3.5-Sonnet - 3
Llama-4-Maverick 400B43.3%Sources for Llama-4-Maverick 400B - 4
GPT-4o40%Sources for GPT-4o - 4Doubao1.5-thinking-pro40%Sources for Doubao1.5-thinking-pro
- 4
GPT-4o-mini40%Sources for GPT-4o-mini - 7Doubao1.5-vision-pro33.3%Sources for Doubao1.5-vision-pro
- 8
Claude-3.7-Sonnet30%Sources for Claude-3.7-Sonnet - 9
Llama-4-Scout 109B26.7%Sources for Llama-4-Scout 109B - 9M²-Coder 7B26.7%Sources for M²-Coder 7B
- 11
Gemma-3-it 27B23.3%Sources for Gemma-3-it 27B - 12
Qwen2-VL-Instruct 72B16.7%Sources for Qwen2-VL-Instruct 72B - 12
Qwen2.5-VL-Instruct 72B16.7%Sources for Qwen2.5-VL-Instruct 72B - 12
Qwen2-VL-Instruct 7B16.7%Sources for Qwen2-VL-Instruct 7B - 15
Qwen-VL-Max13.3%Sources for Qwen-VL-Max - 15InternVL2-Llama3 76B13.3%Sources for InternVL2-Llama3 76B
- 15InternVL2 26B13.3%Sources for InternVL2 26B
- 15InternVL3 8B13.3%Sources for InternVL3 8B
- 19
Qwen2.5-VL-Instruct 32B10%Sources for Qwen2.5-VL-Instruct 32B - 20
DeepSeek-VL2 27B6.7%Sources for DeepSeek-VL2 27B - 20
Qwen2.5-VL-Instruct 7B6.7%Sources for Qwen2.5-VL-Instruct 7B - 22QVQ-Preview 72B0%Sources for QVQ-Preview 72B
- 22
Llama3.2-vision 90B0%Sources for Llama3.2-vision 90B - 22
Kimi-VL-Thinking 16B0%Sources for Kimi-VL-Thinking 16B - 22Phi3-vision 4B0%Sources for Phi3-vision 4B
- 1
GPT-4o46.7%Sources for GPT-4o - 1Doubao1.5-vision-pro46.7%Sources for Doubao1.5-vision-pro
- 3
Gemini-2.5-Flash-preview36.7%Sources for Gemini-2.5-Flash-preview - 4Doubao1.5-thinking-pro33.3%Sources for Doubao1.5-thinking-pro
- 4
Llama-4-Maverick 400B33.3%Sources for Llama-4-Maverick 400B - 6
Claude-3.7-Sonnet30%Sources for Claude-3.7-Sonnet - 7
Claude-3.5-Sonnet26.7%Sources for Claude-3.5-Sonnet - 7
GPT-4o-mini26.7%Sources for GPT-4o-mini - 7
Llama-4-Scout 109B26.7%Sources for Llama-4-Scout 109B - 7
Qwen2-VL-Instruct 72B26.7%Sources for Qwen2-VL-Instruct 72B - 7
Qwen2.5-VL-Instruct 72B26.7%Sources for Qwen2.5-VL-Instruct 72B - 12
Qwen-VL-Max23.3%Sources for Qwen-VL-Max - 13
Gemma-3-it 27B20%Sources for Gemma-3-it 27B - 13InternVL3 8B20%Sources for InternVL3 8B
- 13M²-Coder 7B20%Sources for M²-Coder 7B
Example items
Figure 27 · C#/1 virtual-farm task
Implement a virtual-farm crop that changes state as it grows.
Published example, summarizedThe diagram carries information needed for the implementation. The author release lists this problem among the 30 C# test tasks.
Linzheng Chai et al.Review
M²EVAL