Towards Making Flowchart Images Machine Interpretable
Not on the map. Why?
Abstract (arXiv)
Computer programming textbooks and software documentations often contain flowcharts to illustrate the flow of an algorithm or procedure. Modern OCR engines often tag these flowcharts as graphics and ignore them in further processing. In this paper, we work towards making flowchart images machine-interpretable by converting them to executable Python codes. To this end, inspired by the recent success in natural language to code generation literature, we present a novel transformer-based framework, namely FloCo-T5. Our model is well-suited for this task,as it can effectively learn semantics, structure, and patterns of programming languages, which it leverages to generate syntactically correct code. We also used a task-specific pre-training objective to pre-train FloCo-T5 using a large number of logic-preserving augmented code samples. Further, to perform a rigorous study of this problem, we introduce theFloCo dataset that contains 11,884 flowchart images and their corresponding Python codes. Our experiments show promising results, and FloCo-T5 clearly outperforms related competitive baselines on code generation metrics. We make our dataset and implementation publicly available.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 17 of its 35 references that are in the map. First posted on arXiv 29 Jan 2025.
Builds on
17 of 35 references.
References · 17
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
5 more
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2019MASS: Masked Sequence to Sequence Pre-training for Language Generationcited by 345
- 2021TrOCR: Transformer-based Optical Character Recognition with Pre-trained Modelscited by 278
- 2019Character Region Awareness for Text Detectioncited by 273
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025Follow the Flow: Fine-grained Flowchart Attribution with Neurosymbolic Agentscited by 4
- 2025Arrow-Guided VLM: Enhancing Flowchart Understanding via Arrow Direction Encodingcited by 3
- 2025StarFlow: Generating Structured Workflow Outputs From Sketch Imagescited by 2
- 2026TechING: Towards Real World Technical Image Understanding via VLMscited by 2
- 2026FloCA: Towards Faithful and Logically Consistent Flowchart Reasoningcited by 0
- 2026FloCA: Towards Faithful and Logically Consistent Flowchart Reasoning15 Feb 2026
- 2026TechING: Towards Real World Technical Image Understanding via VLMs26 Jan 2026
- 2025Follow the Flow: Fine-grained Flowchart Attribution with Neurosymbolic Agents2 Jun 2025
- 2025Arrow-Guided VLM: Enhancing Flowchart Understanding via Arrow Direction Encoding9 May 2025
- 2025StarFlow: Generating Structured Workflow Outputs From Sketch Images27 Mar 2025