A Question-Answering framework for plots using Deep learning

Revanth Reddy, Rahul Ramesh, Ameet Deshpande, Mitesh M. Khapra

Abstract

Visual Question Answering (VQA) on scientific plots requires a shift from spatial reasoning to statistical reasoning. We present FigureNet, a modular deep learning architecture that decomposes plot-based VQA into discrete sub-problems: identifying elements by color and determining their relative statistical order. By utilizing specialized modules like the Spectral Segregator, FigureNet achieves an 84.29% accuracy on the FigureQA dataset—a 7% improvement over the previous state-of-the-art—while reducing training time by over 12x.

Introduction

While general-purpose VQA models excel at identifying objects in natural scenes, they often struggle with the abstract nature of scientific plots. In a bar graph or pie chart, the "identity" of a data point is typically encoded by its color, and its "value" is represented by its spatial extent. Standard Convolutional Neural Networks (CNNs) tend to aggregate information across color channels, which "smears" the very features needed to distinguish between data series. FigureNet addresses these challenges through a modular "divide and conquer" approach.

The FigureQA Dataset

To evaluate the model, the authors utilized FigureQA, a synthetic dataset containing over 1 million question-answer pairs grounded in 100,000 images of bar graphs and pie charts. Questions range from simple maximum/minimum identification to more complex statistical queries like "Is X the high median?".

Example of a bar chart and associated reasoning questions from the FigureQA dataset.

Methodology: FigureNet Architecture

FigureNet is composed of several specialized components designed to preserve data integrity and facilitate reasoning:

Spectral Segregator Module

Unlike traditional CNNs that use large kernels to blend features, the Spectral Segregator employs $1 \times 1$ and depthwise separable convolutions. This design ensures that color information remains segregated across channels. By avoiding the "smearing" effect of standard convolutions, the model can effectively "count" pixels of a specific color to quantify an element's value.

Visualization of the intermediate representation where color channels are preserved for scaling and reasoning.

Order Extraction and Reasoning

The Order Extraction module identifies the relative ranking of elements. Rather than calculating absolute numerical values, FigureNet frames the problem as a sorting task. This relative ordering is then processed by a custom two-layered LSTM that propagates probabilities across time steps, allowing the model to handle a variable number of plot elements (up to 11).

Results and Discussion

FigureNet demonstrates significant improvements in both accuracy and computational efficiency. The model achieved an overall accuracy of 84.29%, significantly outperforming the Relation Networks (RN) baseline of 77.33% and a standard CNN+LSTM baseline of 59.94%.

In terms of efficiency, the training time for the end-to-end phase of FigureNet was approximately 10.47 hours, compared to 354.79 hours for Relation Networks—a massive reduction in computational overhead. The model performed exceptionally well on "Maximum/Minimum" questions (~90% accuracy). However, "Low/High Median" questions proved more difficult (~73%), suggesting that even with specialized modules, complex statistical aggregation remains a challenge.

Conclusion and Future Work

FigureNet proves that modularity and color-preserving convolutions are key to effective plot reasoning. Future iterations aim to move beyond synthetic constraints by integrating Optical Character Recognition (OCR) to handle text labels and legends, as well as developing color-agnostic features to support monochrome or textured plots.

Summary updated

BibTeX
@inproceedings{reddy2019question,
  author = {Revanth Reddy and Rahul Ramesh and Ameet Deshpande and Mitesh M. Khapra},
  title = {{A Question-Answering framework for plots using Deep learning}},
  booktitle = {IJCNN},
  year = {2019},
  url = {https://openreview.net/forum?id=PEBwm5BFU4s},
}
Figure