Flow2Code: Evaluating Large Language Models for Flowchart-based Code Generation Capability
While large language models (LLMs) show promise in code generation, existing benchmarks neglect the flowchart-based code generation.To promote further research on flowchartbased code generation, this work presents Flow2Code, a novel benchmark for flowchartbased code generation evaluation.The evaluation dataset spans 15 programming languages and includes 5,622 code segments paired with 16,866 flowcharts of three types: code, UML, and pseudocode.Extensive experiments with 13 multimodal LLMs reveal that current LLMs can not generate code based on flowcharts perfectly.Besides, experiment results show that the supervised fine-tuning technique contributes greatly to the models' performance.We publicly release our code and datasets at https://github.com/hml-github/Flow2Code.
Authors
- Aimin Zhou (ORCID: https://orcid.org/0000-0003-1015-9966)
- Xiaoming Shi (ORCID: https://orcid.org/0000-0002-7071-571X)
- Jie Zeng (ORCID: https://orcid.org/0000-0003-4486-5041)
- Wei Zhang (ORCID: https://orcid.org/0000-0003-2501-5033)
- Yankai Jiang (ORCID: https://orcid.org/0009-0006-9968-7560)
- Zeming Liu (ORCID: https://orcid.org/0000-0002-3691-8097)
- Mengliang He (ORCID: https://orcid.org/0009-0002-6698-0905)
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.findings-acl.425
- Primary Topic
- Model-Driven Software Engineering Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- East China Normal University