FlowVQA: Mapping Multimodal Logic in Visual Question Answering with Flowcharts

Shubhankar Singh, Purvi Chaurasia, Yerram Varun, Pranshu Pandya, Vatsal Gupta, Vivek Gupta, Dan Roth

Introduction

While Vision Language Models (VLMs) like GPT-4V and Gemini have demonstrated remarkable capabilities in image captioning and general object recognition, their ability to perform rigorous spatial and logical reasoning remains a subject of intense scrutiny. Most existing Visual Question Answering (VQA) benchmarks suffer from "linguistic shortcuts," where models can predict correct answers based on textual patterns without truly grounding their reasoning in the visual evidence.

To address this, the FlowVQA benchmark introduces a novel challenge: the interpretation of flowcharts. Flowcharts are inherently non-linear and multi-directional, requiring models to map semantic content (text within nodes) to structural logic (directional edges). This paper presents a comprehensive evaluation of current VLMs, revealing a significant gap between proprietary and open-source models and uncovering a fundamental "directional bias" in how AI processes visual logic.

The Problem: Beyond Surface-Level Recognition

Traditional VQA tasks often rely on static scenes where the relationship between objects is simple. In contrast, flowcharts represent a "multimodal logic" puzzle. To answer a question about a flowchart, a model must:

  1. Locate specific nodes and text.
  2. Identify the direction and connectivity of arrows.
  3. Traverse paths to maintain the "state" of a logical sequence.

If a model cannot navigate these structures, it lacks true multimodal reasoning. The authors argue that flowcharts are a superior metric for testing whether a model can actually "read" a diagram or is simply guessing based on context.

Methodology

The researchers developed a robust "generate-and-test" pipeline to ensure the dataset was both logically sound and visually diverse:

  1. Structured Summarization: Using GPT-4, the team converted unstructured "how-to" text from sources like WikiHow and Instructables into structured summaries using control tags (e.g., START, DECISION, PROCESS).
  2. Code-to-Image Rendering: These structured summaries were translated into Mermaid.js scripts and rendered into high-resolution images. This approach ensures that the ground truth logic is mathematically verifiable.
  3. Human-in-the-Loop Verification: To maintain high data quality, experts reviewed the generated charts. Approximately 51% of the initial data was discarded to ensure only the most coherent and challenging examples were included.
  4. Evaluation Framework: A panel of three Large Language Models (GPT-3.5, Llama-2 70B, and Mixtral) served as evaluators, using a majority-vote system to grade model outputs against gold-standard references.

The FlowVQA Dataset

The resulting dataset comprises 2,272 flowchart images and 22,413 question-answer pairs. The data is categorized into four distinct task types to test different cognitive abilities:

  • T1 (Fact Retrieval): Extracting specific information from a single node.
  • T2 (Applied Scenario): Solving "word problems" that require applying the flowchart's logic to a hypothetical situation.
  • T3 (Flow Referential): Following specific paths and decision-making logic.
  • T4 (Topological): Understanding the overall graph architecture, such as counting the total number of nodes or identifying terminal points.

Key Insights and Findings

The Proprietary vs. Open-Source Chasm

The study highlights a massive performance disparity. Proprietary models like GPT-4V significantly outperform open-source alternatives. Open-source models often struggle with high-aspect-ratio images and lack the precise visual grounding necessary to connect text to specific spatial regions in a crowded diagram.

Directional Bias

One of the most significant findings is the "directional bias." VLMs appear heavily influenced by standard document layouts. When flowcharts were flipped from a standard top-down orientation to a bottom-up flow, GPT-4V’s performance dropped by 15%. This suggests that even the most advanced models rely on layout conventions rather than pure logical traversal of the graph edges.

Complexity and Scaling

As the number of nodes increases, model performance declines linearly. Current VLMs struggle to maintain the logical state of a path as the visual context becomes more complex. While fine-tuning (tested on Qwen-VL) provided a modest 11% boost in accuracy, it failed to close the gap with proprietary models, suggesting that flowchart reasoning may require architectural changes rather than just more data.

Results Summary

  • Top Performer: GPT-4V, utilizing Few-Shot Chain-of-Thought (CoT) prompting, achieved a peak accuracy of 68.42%.
  • Runner Up: Gemini Pro followed with 61.41%.
  • Open Source Performance: Most open-source models struggled to break the 50% mark, with particularly poor performance on T4 (Topological) tasks, where they often failed simple node-counting exercises.

Conclusion and Future Work

FlowVQA demonstrates that while VLMs are improving, they are far from mastering multimodal logic. The identified directional bias and the struggle with topological reasoning point toward a need for "Graph-Encoder" architectures that treat diagrams as mathematical structures rather than flat pixel grids. Future research will focus on expanding the dataset to multiple languages and developing adversarial probes—flowcharts with counter-intuitive layouts—to further challenge the limits of AI reasoning.

Summary updated

BibTeX
@inproceedings{singh2024flowvqa,
  author = {Shubhankar Singh and Purvi Chaurasia and Yerram Varun and Pranshu Pandya and Vatsal Gupta and Vivek Gupta and Dan Roth},
  title = {{FlowVQA: Mapping Multimodal Logic in Visual Question Answering with Flowcharts}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.78},
}
Figure