Enhanced Chart Understanding via Visual Language Pre-training on Plot Table Pairs

Mingyang Zhou, Yi Ren Fung, Long Chen, Christopher Thomas, Heng Ji, Shih-Fu ChangACL 2023

Introduction

Chart understanding is a complex task requiring the integration of visual geometry (shapes, colors, positions) and semantic text (labels, axes, legends). Existing Vision-Language (V+L) models often treat charts as natural images, missing precise numerical relationships, while pipeline methods that extract tables first are prone to brittle OCR errors. ChartT5 addresses these issues by explicitly modeling the cross-modal mapping between chart images and their underlying structured data during pre-training.

Methodology

ChartT5 is based on the VLT5 encoder-decoder transformer architecture. It processes chart images by detecting visual objects (e.g., bars, legend keys) using Mask R-CNN and extracting scene text via OCR. These inputs, along with their spatial coordinates, are fed into the transformer.

Overview of the ChartT5 pre-training pipeline, illustrating the reconstruction of masked tables from chart images and OCR tokens.

The model's performance is driven by two novel pre-training objectives:

  1. Masked Header Prediction (MHP): The model fills in missing table headers by aligning them with chart labels and legends.
  2. Masked Value Prediction (MVP): The model predicts missing numerical values by reasoning about the visual scale (e.g., bar height relative to the Y-axis).

A "sentinel token" mechanism allows the model to point directly to OCR tokens in the image, facilitating the handling of specific chart vocabulary like rare names or precise values.

Datasets and Evaluation

The model was pre-trained on a large-scale corpus of 495,000 chart-table pairs synthesized from PlotQA, DVQA, and FigureQA. Evaluation was conducted on:

  • ChartQA: A benchmark for question answering on real-world web charts.
  • Chart-to-Text: A summarization task requiring natural language descriptions of chart findings.

Key Results

ChartT5 achieved state-of-the-art performance, reaching 53.16% accuracy on ChartQA, significantly outperforming non-pretrained baselines. On machine-generated questions, accuracy reached 74.4%. In summarization tasks, the model demonstrated superior Content Selection (CS), with a score of 82.16 on the Statista dataset, indicating high factual accuracy in generated summaries compared to standard T5-OCR models.

Limitations

Despite its strengths, ChartT5 faces several challenges:

  • OCR Dependency: Errors in initial text extraction directly impact downstream predictions.
  • Multi-hop Reasoning: The model struggles with complex logical steps, such as comparing sums of multiple data points.
An example of a failure in multi-hop reasoning where the model incorrectly answers a comparative question about bar sums.
  • Synthetic-to-Real Gap: While effective on real-world data, the reliance on synthetic pre-training data leaves room for improvement in handling "in-the-wild" charts from diverse sources like old documents.

Future work may explore "OCR-free" architectures to mitigate the limitations of external text extraction engines.

Summary updated

BibTeX
@inproceedings{zhou2023enhanced,
  author = {Mingyang Zhou and Yi Ren Fung and Long Chen and Christopher Thomas and Heng Ji and Shih-Fu Chang},
  title = {{Enhanced Chart Understanding via Visual Language Pre-training on Plot Table Pairs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.85},
}
Figure