ChartAssistant: A Universal Chart Multimodal Language Model via Chart-to-Table Pre-training and Multitask Instruction Tuning

Fanqing Meng, Wenqi Shao, Quanfeng Lu, Peng Gao, Kaipeng Zhang, Yu Qiao, Ping Luo

Introduction

Charts serve as a critical medium for data communication in business and science, yet they present a significant challenge for general-purpose vision-language models (VLMs). While models like LLaVA excel at natural scene description, they often struggle with the precise visual perception, textual alignment, and numerical reasoning required for chart interpretation. In this work, researchers introduce ChartAssistant, a universal multimodal model designed to bridge the gap between raw pixels and structured data reasoning.

Methodology: A Two-Stage Training Pipeline

The core innovation of ChartAssistant lies in its two-stage training process, which departs from the traditional multitask-then-fine-tune approach used in previous works.

  1. Stage I: Alignment Pre-training (Chart-to-Table): The model is first trained on the "bottleneck" task of translating chart images into Markdown tables. This forces the model to align visual marks (bars, lines, dots) with their underlying data values, establishing a foundational "chart literacy."
  2. Stage II: Multitask Instruction Tuning: Following alignment, the model undergoes instruction tuning on ChartSFT, a massive dataset encompassing diverse chart-related tasks.
The ChartAssistant training pipeline compared to previous work, highlighting the shift toward alignment pre-training.

Architectural Variants

The researchers developed two versions of the model to balance efficiency and power:

  • ChartAst-D: A lightweight 260M parameter model based on the Donut architecture.
  • ChartAst-S: A high-performance 13B parameter model based on the SPHINX framework.

ChartSFT: Scaling Instruction Data

The performance of ChartAssistant is underpinned by ChartSFT, a gargantuan dataset containing 39 million chart-text pairs. This dataset aggregates existing benchmarks (ChartQA, PlotQA) and introduces new synthetic data for specialized chart types like radar and box plots. Additionally, the authors integrated over 1.3 million tables from scientific papers (arXiv) to ensure robustness in academic contexts.

Advanced Reasoning Capabilities

ChartAssistant incorporates two key technical features to enhance its utility:

  • Chain-of-Thought (CoT) for Math: Instead of direct value prediction, the model generates JSON-formatted reasoning steps (e.g., selecting values, then applying a mathematical function), improving accuracy in numerical QA.
  • Referring QA: The model can answer questions about specific regions of a chart indicated by bounding boxes or arrows, sharpening its spatial awareness.
Visual examples of ChartAssistant's capabilities, including Chart-to-Table translation, Numerical QA with CoT, and Referring QA.

Key Results and Insights

ChartAssistant sets new state-of-the-art (SOTA) benchmarks across multiple dimensions:

  • Numerical Accuracy: It outperformed the previous SOTA (UniChart) by 50.0% in numerical QA tasks.
  • Generalization: On the RealCQA dataset, which features real-world charts unseen during training, ChartAssistant showed a 29.5% improvement over UniChart.
  • Human-Level Performance: On the complex "human" split of ChartQA, ChartAst-S achieved 65.9% accuracy, nearing human-like interpretation levels.

A significant insight from the study is that specialized pre-training can be more impactful than raw parameter count; the 260M ChartAst-D model outperformed the 13B ChartLlama on several benchmarks. Furthermore, training on "Referring QA" tasks was found to have a positive "cross-pollination" effect, improving performance on general tasks like summarization.

Limitations and Future Directions

While ChartAssistant represents a major leap forward, challenges remain. The current model is primarily optimized for English and occasionally struggles with "visual commonsense" (e.g., interpreting highly stylized infographics or subtle color gradients). Additionally, the sequential nature of the CoT reasoning means that a single error in data extraction can lead to a failure in the entire logic chain. Future work will focus on multilingual support and enhancing the precision of the OCR-free visual encoders.

For more details, the code and data are available at https://github.com/OpenGVLab/ChartAst.

Summary updated

BibTeX
@inproceedings{meng2024chartassistant,
  author = {Fanqing Meng and Wenqi Shao and Quanfeng Lu and Peng Gao and Kaipeng Zhang and Yu Qiao and Ping Luo},
  title = {{ChartAssistant: A Universal Chart Multimodal Language Model via Chart-to-Table Pre-training and Multitask Instruction Tuning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.463},
}
Figure