Lune

EMNLP Findings2022

Code Generation From Flowcharts with Texts: A Benchmark Dataset and An Approach

Zejie Liu, Xiaoyu Hu, Deyu Zhou, Lin Li, Xu Zhang, Yanzheng Xiang

摘要

Currently, researchers focus on generating codes from the requirement documents.However, current approaches still perform poorly on some requirements needing complex problemsolving skills.In reality, to tackle such complex requirements, instead of directly translating requirement documents into codes, software engineers write codes via unified modeling language diagrams, such as flowcharts, an intermediate tool to analyze and visualize the system.Therefore, we propose a new source code generation task, that is, to generate source code from flowcharts with texts.We manually construct a benchmark dataset containing 320 flowcharts with their corresponding source codes 1 .Obviously, it is not straightforward to employ the current approaches for the new source code generation task since (1) the flowchart is a graph that contains various structures, including loop, selection, and others which is different from texts; (2) the connections between nodes in the flowchart are abundant and diverse which need to be carefully handled.To solve the above problems, we propose a two-stage code generation model.In the first stage, a structure recognition model is employed to transform the flowchart into pseudo-code containing the structural conventions of a typical programming language such as while, if.In the second stage, a code generation model is employed to convert the pseudo-code into code.Experimental results show that the proposed approach can achieve some improvement over the baselines. 1 https://github.com/LiuZeJie97/Code-Generation-From-Flowcharts-with-Texts-A-Benchmark-Dataset-and-An-Approach Requirement document:Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.Flowchart: The sum of nums[i] and nums[j] is equal to the target Set n to the length of the array num.J is less than n?I is less than n? Increment i Increment j Yes No Yes No Yes No Define j as the index of the array, and the initial value of j is i+1

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. PatentLMM: Large Multimodal Model for Generating Descriptions for Patent FiguresShreya Shukla, Nakul Sharma, Manish Gupta, Anand MishraAAAI 2025 · 6 次引用
  2. Follow the Flow: Fine-grained Flowchart Attribution with Neurosymbolic AgentsManan Suri, Puneet Mathur, Nedim Lipka, Franck Dernoncourt 等EMNLP 2025 · 1 次引用
  3. LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling ResearchShuo Yan, Ruochen Li, Ziming Luo, Zimu Wang 等EMNLP 2025
  4. From Diagrams to Code: Multilingual Programming with Visual DesignLinzheng Chai, Jian Yang, Shukai Liu, Wei Zhang 等ICML 2026

相关 Paper

  1. Flow2Code: Evaluating Large Language Models for Flowchart-based Code Generation CapabilityMengliang He, Jiayi Zeng, Yankai Jiang, Wei Zhang 等ACL Findings 2025 · 5 次引用
  2. SkCoder: A Sketch-based Approach for Automatic Code GenerationJia Li, Yongmin Li, Ge Li, Zhi Jin 等ICSE 2023 · 50 次引用
  3. From Words to Structured Visuals: A Benchmark and Framework for Text-to-Diagram Generation and EditingJingxuan Wei, Cheng Tan, Qi Chen, Gaowei Wu 等CVPR 2025
  4. Doc2Chart: Intent-Driven Zero-Shot Chart Generation from DocumentsAkriti Jain, Pritika Ramu, Aparna Garimella, Apoorv SaxenaEMNLP 2025
  5. RealBench: A Repo-Level Code Generation Benchmark Aligned with Real-World Software Development PracticesJia Li, Hongyi Deng, Yiran Zhang, Kechi Zhang 等FSE 2026
黄昏的海面,两侧是细线勾勒的悬崖