PlotQA: Reasoning over Scientific Plots

Nitesh Methani, Pritha Ganguly, Mitesh M. Khapra, Pratyush Kumar

TL;DR

PlotQA introduces a massive dataset of 28.9 million question-answer pairs grounded in over 224,000 plots sourced from real-world data. It exposes a critical gap in current VQA models: their inability to handle "out-of-vocabulary" (OOV) answers and complex numerical reasoning. To address this, the authors propose a hybrid pipeline that converts visual plots into structured tables, achieving a new state-of-the-art on existing benchmarks.

What Problem Does This Paper Address?

While Visual Question Answering (VQA) has made strides in natural images, scientific plots present a unique challenge. Existing datasets like FigureQA and DVQA are largely synthetic and "closed-world." They assume answers come from a small, fixed vocabulary or can be directly extracted as text from the image.

In reality, scientific reasoning often requires calculating new values—like averages, ratios, or medians—that appear nowhere in the original image or a pre-defined list of labels. For example, asking for the "average number of Hispanic students" across several schools (as seen in Figure 1c below) requires detecting bars, reading their values, and performing floating-point arithmetic. Current end-to-end neural models, which treat VQA as a classification task, fail miserably here, often dropping to single-digit accuracy.

Figure 1: A sample {plot, question, answer} triplet from FigureQA, DVQA, and PlotQA (our) datasets.

Methods

The authors move away from a monolithic end-to-end approach, arguing that expecting a single neural network to handle simultaneous perception, OCR, and multi-step math is unrealistic. Instead, they propose a hybrid model that uses a binary classifier to route questions:

  1. Simple Questions: Questions with answers in a fixed vocabulary (e.g., "Yes/No" or structural questions like "How many bars are there?") are handled by a standard VQA classification pipeline (CNN + LSTM + Attention).
  2. Complex Reasoning Questions: Questions requiring OOV answers or math enter a four-stage pipeline designed to reconstruct the underlying data:
  3. Visual Element Detection (VED): A Faster R-CNN with a Feature Pyramid Network (FPN) detects bars, lines, legend markers, and axis ticks.
  4. OCR: Tesseract extracts text from the detected bounding boxes.
  5. Semi-structured Information Extraction (SIE): This critical step links visual elements to their labels and interpolates numerical values based on their position relative to axis ticks.
  6. Table QA: The extracted data is formatted into a structured table. A semantic parser then converts the natural language question into a logical form (a program) that executes against the table to produce the final answer.
Figure 3: The proposed multi-staged modular pipeline.

Datasets

  • PlotQA (New): The primary contribution, featuring 224,377 plots and 28.9 million QA pairs. Unlike previous datasets, the data is sourced from real-world entities like the World Bank and government sites, leading to a massive vocabulary of ~5 million words and complex floating-point values.
  • DVQA: An existing benchmark used to validate the model's generalizability.
  • FigureQA: A synthetic dataset used for comparison in the paper's literature review.

Key Insights and Ideas

  • The OOV Bottleneck: Over 80% of questions in PlotQA have answers that are "Out Of Vocabulary." This renders traditional classification-based VQA models ineffective.
  • Perception Precision is Paramount: In standard object detection, an Intersection over Union (IoU) of 0.5 is considered a success. However, the authors found that for plots, a small misalignment in a bounding box (e.g., an IoU of 0.6) can lead to significant errors in the interpolated numerical value, causing the final mathematical answer to be wrong.
  • Decoupling Reasoning from Vision: By converting the image back into a structured table, the model can leverage mature Table-QA techniques, which are far better at handling complex logic and arithmetic than pure visual models.

Key Results

  • PlotQA Performance: State-of-the-art VQA models (like SAN, BAN, and LoRRA) achieved less than 8% accuracy on PlotQA. The proposed hybrid model reached 22.52%, a significant jump, though still far below the human baseline of 80.47%.
  • DVQA SOTA: The hybrid model achieved 58% accuracy on the DVQA dataset, significantly outperforming the previous best result of 46%.
  • Ablation Success: The hybrid approach proved essential; the "QA-as-classification" component excelled at Yes/No questions, while the "Multi-stage pipeline" was the only way to answer OOV reasoning questions.

Limitations and Future Work

The primary limitation is the propagation of errors through the pipeline. If the Visual Element Detection (VED) stage slightly misses the top of a bar or misidentifies a legend color, the resulting table is incorrect, and the final answer is doomed. The authors note that detection accuracy for elements like "dotlines" drops below 20% at high IoU thresholds (0.9).

Future work will likely focus on improving the precision of visual element detection and developing more robust methods for linking OCR text to visual markers, especially in crowded or overlapping plots.

Summary updated

BibTeX
@inproceedings{methani2020plotqa,
  author = {Nitesh Methani and Pritha Ganguly and Mitesh M. Khapra and Pratyush Kumar},
  title = {{PlotQA: Reasoning over Scientific Plots}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2020},
}
Figure