FigureNet : A Deep Learning model for Question-Answering on Scientific Plots

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

TL;DR

This paper introduces FigureNet, a novel deep learning architecture designed for question-answering on scientific plots. FigureNet effectively identifies plot elements, quantifies their values, and determines their relative order, outperforming existing methods by a significant margin and achieving this with substantially reduced training time.

What Problem Does This Paper Address?

Automating the understanding of visual information, particularly scientific plots, is a significant challenge. These plots are ubiquitous in research papers, business reports, and other documents, and extracting meaningful insights from them often requires complex reasoning. While deep learning has made strides in various vision and NLP tasks, effectively answering questions that require understanding the relationships and values within graphical representations remains an open problem. Existing approaches often struggle with the nuanced reasoning required, and some state-of-the-art models are computationally expensive. This paper aims to bridge this gap by developing a more efficient and effective model for visual question answering on categorical plots.

Methods

FigureNet employs a modular, "divide and conquer" approach, breaking down the complex task into sub-tasks that are handled by specialized modules. The core innovation lies in its architecture, which is designed to be end-to-end differentiable and amenable to supervised pre-training.

  • Spectral Segregator Module: This module is responsible for identifying plot elements and their corresponding colors within an image. It utilizes a custom architecture involving 1x1 convolutions, scaling layers, and depthwise convolutions to effectively differentiate colors, followed by a two-layered LSTM to output color probabilities for each plot element.
  • Order Extraction Module: This module quantifies the statistical values of each plot element and determines their relative ordering. It also uses a similar architecture to the Spectral Segregator, with LSTMs to output probabilities for the sorted positions of plot elements.
  • Final Feed-forward Network: The outputs from the Spectral Segregator and Order Extraction modules are concatenated with the question representation (derived from an LSTM) and fed into a feed-forward network to produce the final answer.

A key aspect of FigureNet's methodology is supervised pre-training of individual modules on specific sub-tasks, which significantly speeds up the overall training process and improves performance.

Datasets

The primary dataset used in this paper is FigureQA. This dataset is a synthetic corpus containing over a million question-answer pairs grounded in scientific-style figures, specifically designed to focus on reasoning. It includes various plot types like bar graphs and pie charts, and importantly, it is color-coded, eliminating the need for OCR modules to identify plot elements. The dataset provides annotations with bounding boxes for each figure, which are crucial for the supervised pre-training of FigureNet's modules.

Key Insights and Ideas

  • Modular Design for Complex Reasoning: The paper demonstrates that breaking down the visual question-answering task into distinct modules (element identification, value quantification, ordering) is a highly effective strategy for tackling complex reasoning on scientific plots.
  • Depthwise Convolutions for Color Differentiation: The use of depthwise convolutions in the Spectral Segregator module is crucial for differentiating between colors, a key aspect of the FigureQA dataset. Traditional convolutions tend to aggregate information across channels, hindering color-specific identification.
  • LSTM for Variable Number of Elements: The adoption of LSTMs in both the Spectral Segregator and Order Extraction modules is motivated by the fact that the number of plot elements in figures is not fixed. LSTMs are well-suited to handle sequential data of varying lengths, allowing the model to adapt to different plot complexities.
  • Pre-training for Efficiency and Performance: Supervised pre-training of individual modules significantly reduces the overall training time and improves the final model's accuracy. This approach allows the model to learn foundational visual reasoning skills before tackling the end-to-end task.
  • No Sampling for Gradient Propagation: The paper highlights the advantage of directly feeding the output probabilities from the previous time step to the current time step in the LSTM, rather than sampling. This modification allows for better gradient propagation during end-to-end training.

Key Results

  • State-of-the-Art Accuracy: FigureNet achieves an accuracy of 84.29% on the FigureQA dataset, outperforming the state-of-the-art Relation Networks baseline (77.33%) by approximately 7%.
  • Substantial Training Time Reduction: FigureNet's training time is over an order of magnitude less than that of Relation Networks. While RNs took 354.79 hours, FigureNet's total training time (including pre-training and end-to-end training) was around 28.50 hours.
  • Strong Performance Across Plot Types: FigureNet demonstrates superior performance across all figure types (vertical bar, horizontal bar, and pie charts) compared to baselines, with its performance on pie charts being particularly close to human performance.
  • Module Performance: The Spectral Segregator module achieved an accuracy of 80.82%, and the Order Extraction module achieved 74.31%, indicating their effectiveness in their respective sub-tasks.

Limitations and Future Work

  • Reliance on Color Coding: The current FigureNet model is heavily reliant on the color-coding of plot elements in the FigureQA dataset. Real-world scientific figures may not always have such clear color distinctions, and plot elements might be indistinguishably colored.
  • Extending to Real-Life Figures: The authors propose an approach to extend FigureNet to real-life figures. This involves using bounding box annotations to train a detection model for plot element names on axes/legends, followed by OCR to extract these names. The Order Extraction module can then be used as is, and the figure representation would be formed by concatenating word embeddings of plot element names with the outputs from the Order Extraction module.
  • Improving Low/High Median Questions: The paper notes that questions related to low and high medians are the most difficult for both models and humans. Future work could focus on improving performance on these specific question types.
  • Color Agnosticism: The authors suggest making the model color-agnostic to test its performance on unseen plot color combinations.

Summary updated

BibTeX
@inproceedings{reddy2019figurenet,
  author = {Revanth Reddy and Rahul Ramesh and Ameet Deshpande and Mitesh M. Khapra},
  title = {{FigureNet : A Deep Learning model for Question-Answering on Scientific Plots}},
  booktitle = {IJCNN},
  year = {2019},
  url = {https://openreview.net/forum?id=PEBwm5BFU4s},
}
Figure