IconQA: A New Benchmark for Abstract Diagram Understanding and Visual Language Reasoning

Pan Lu, Liang Qiu, Jiaqi Chen, Tony Xia, Yizhou Zhao, Wei Zhang, Zhou Yu, Xiaodan Liang, Song-Chun Zhu

TL;DR

IconQA is a new large-scale benchmark designed to push the boundaries of Visual Question Answering (VQA) beyond natural images into the realm of abstract diagrams. By providing over 100,000 questions that require diverse cognitive skills—from geometric reasoning to arithmetic—alongside a massive pre-training dataset of 645,000 icons, the authors demonstrate that specialized architectures like their "Patch-TRM" are essential for bridging the gap between human and machine reasoning in symbolic environments.

What Problem Does This Paper Address?

Most current VQA research focuses on natural images (e.g., "What color is the car?"). However, our visual world is also filled with abstract diagrams, icons, and symbolic representations that carry dense semantic meaning. Think of elementary school math problems: they often use icons to represent variables or spatial relationships that require high-level cognitive reasoning rather than just simple object detection.

Existing diagram datasets are often too narrow (focused only on charts or plots) or lack linguistic variety because they are generated from rigid templates. This creates a gap: AI models that excel at identifying dogs in photos often stumble when asked to count "metal objects" in a stylized diagram or perform spatial reasoning on a set of icons. IconQA aims to fill this gap by providing a real-world-inspired challenge that demands perception, commonsense, and multi-step reasoning.

Comparison of traditional VQA datasets vs. the new IconQA benchmark, highlighting the shift from natural scenes to abstract diagrams.

Methods

The authors introduce a strong baseline model called Patch-TRM (Pyramid Patch Cross-modal Transformer). Its design addresses two specific challenges of icon-based VQA:

  1. Hierarchical Parsing: Unlike natural images, diagrams have varied aspect ratios and objects that might be missed by standard grid-based cropping. Patch-TRM uses a pyramid layout to parse diagrams into patches at multiple scales, helping the model capture complete objects regardless of their size or position.
  2. Domain-Specific Pre-training: Standard vision backbones (like ResNet) are usually pre-trained on ImageNet. The authors found these "natural image" features perform poorly on abstract icons. To fix this, they pre-trained their ResNet backbone on a new, massive auxiliary dataset (Icon645) specifically for icon classification.
  3. Cross-modal Fusion: The model uses a Transformer-based architecture to learn joint embeddings between the visual patches and the question text (encoded via BERT), followed by an attention mechanism to focus on relevant diagram regions based on the query.
Overview of the various benchmark baselines evaluated, including attention-based and Transformer-based models.

Datasets

The paper introduces two significant new resources:

  • IconQA: The primary benchmark, containing 107,439 QA pairs. It features three sub-tasks: multi-image-choice, multi-text-choice, and filling-in-the-blank. The questions are categorized into 13 reasoning skills, including geometry, counting, and logic.
  • Icon645: A massive auxiliary dataset of 645,687 colored icons across 377 classes, retrieved from Flaticon. This is used primarily for pre-training vision encoders to understand the "visual language" of icons.
The distribution of the 13 different reasoning skills required to solve problems in the IconQA dataset.

Key Insights and Ideas

  • The "Natural Image" Bias: Models pre-trained solely on natural images struggle significantly with abstract diagrams. The authors show that pre-training on the Icon645 dataset is critical for downstream performance, highlighting that "abstract perception" is a distinct skill from "natural perception."
  • Reasoning vs. Perception: IconQA successfully disentangles these. Because icons are simplified versions of objects, the "perception" task is easier, allowing researchers to focus more on the "reasoning" logic (e.g., "If I take away two foxes, how many stay?").
  • Human-Machine Performance Gap: While humans still dominate overall (averaging ~95% accuracy), machines are surprisingly competitive in specific areas.
  • Superhuman Numerical Reasoning: Interestingly, the Patch-TRM model actually outperforms humans in specific categories like estimation, probability, and measurement. This suggests that while AI struggles with general commonsense, it can be more consistent than humans at specific mathematical logic tasks when given a symbolic context.

Key Results

The authors benchmarked eight existing SOTA VQA models against their Patch-TRM baseline:

  • Patch-TRM (Ours): Achieved the best results across all sub-tasks, with 82.66% on multi-image-choice, 75.19% on multi-text-choice, and 83.62% on filling-in-the-blank.
  • Comparison: It significantly outperformed the next best model (ViLT), which scored 79.67%, 72.69%, and 79.27% respectively.
  • Ablation Study: Removing the icon-specific pre-training caused a performance drop of up to 2.5%, and removing the attention mechanism led to a massive 7% decline, proving that both domain knowledge and cross-modal focus are essential.

Limitations and Future Work

  • Grade Level: The current dataset is limited to problems at the 3rd-grade level and below. Future iterations could expand to higher grade levels involving more complex scientific diagrams.
  • Lack of Explanations: The current benchmark only evaluates the final answer. The authors suggest that adding "textual explanations" or "step-by-step reasoning" annotations would be a valuable next step for building more transparent and interpretable AI tutors.
  • Object-Level Parsing: The dataset currently lacks fine-grained object-level bounding boxes, which could further improve how models parse complex, dense diagrams.

Summary updated

Abstract

Current visual question answering (VQA) tasks mainly consider answering human-annotated questions for natural images. However, aside from natural images, abstract diagrams with semantic richness are still understudied in visual understanding and reasoning research. In this work, we introduce a new challenge of Icon Question Answering (IconQA) with the goal of answering a question in an icon image context. We release IconQA, a large-scale dataset that consists of 107,439 questions and three sub-tasks: multi-image-choice, multi-text-choice, and filling-in-the-blank. The IconQA dataset is inspired by real-world diagram word problems that highlight the importance of abstract diagram understanding and comprehensive cognitive reasoning. Thus, IconQA requires not only perception skills like object recognition and text understanding, but also diverse cognitive reasoning skills, such as geometric reasoning, commonsense reasoning, and arithmetic reasoning. To facilitate potential IconQA models to learn semantic representations for icon images, we further release an icon dataset Icon645 which contains 645,687 colored icons on 377 classes. We conduct extensive user studies and blind experiments and reproduce a wide range of advanced VQA methods to benchmark the IconQA task. Also, we develop a strong IconQA baseline Patch-TRM that applies a pyramid cross-modal Transformer with input diagram embeddings pre-trained on the icon dataset. IconQA and Icon645 are available at https://iconqa.github.io.
BibTeX
@misc{lu2021iconqa,
  author = {Pan Lu and Liang Qiu and Jiaqi Chen and Tony Xia and Yizhou Zhao and Wei Zhang and Zhou Yu and Xiaodan Liang and Song-Chun Zhu},
  title = {{IconQA: A New Benchmark for Abstract Diagram Understanding and Visual Language Reasoning}},
  year = {2021},
  eprint = {2110.13214},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.13214},
}
Figure