AskChart: Universal Chart Understanding through Textual Enhancement

Xudong Yang, Yifan Wu, Yizhang Zhu, Nan Tang, Yuyu Luo · Submission to ICLR 2025 · Withdrawn

TL;DR

AskChart is a lightweight, 4.6-billion-parameter multimodal model that explicitly extracts and incorporates embedded chart text (via OCR) alongside visual tokens through a sparse Mixture of Experts (MoE) architecture. Supported by ChartBase—a newly curated 7.5-million-sample dataset—and a three-stage training recipe, AskChart outperforms state-of-the-art 13B models by 68.3% on open-ended chart reasoning and 49.2% on chart summarization while maintaining competitive performance on standard QA and table extraction benchmarks.

What Problem Does This Paper Address?

Standard multimodal large language models (MLLMs) struggle with charts because they treat them primarily as natural images. In reality, human chart reading relies heavily on textual context—axis labels, legends, tick marks, and data annotations—to resolve visual ambiguities. Relying solely on visual tokens often causes models to hallucinate values or misinterpret categories.

Furthermore, existing chart-specialized models face three major bottlenecks:

  1. Alignment: Raw OCR outputs on complex charts are inherently noisy, requiring explicit visual-textual grounding.
  2. Efficiency: High-performing models often scale to 13B+ parameters, making deployment computationally expensive.
  3. Data: Few large-scale datasets combine multi-turn chart dialogue, structural tables, and visual-prompt annotations.

Methods

AskChart addresses these challenges through a lightweight, MoE-based architecture and a targeted training strategy:

  • Dual-Stream Input Processing: Given a chart, a frozen or lightweight OCR tool (PaddleOCR) extracts text sequences ($X_o$), which are concatenated with user instruction tokens ($X_t$) and passed through a shared text embedding layer. Simultaneously, a SigLIP vision encoder extracts visual tokens ($X_v$) projected into language space ($H_v$).
  • MoE Backbone: The model replaces traditional feed-forward networks (FFNs) in a Phi-2 backbone with sparse MoE layers (4 experts total, top-2 activated per token), routing both visual and text tokens dynamically with load-balancing auxiliary loss.
  • Three-Stage Training Pipeline:
  • Stage I (Visual-Textual Alignment): Trains the projection layer and unfreezes the vision encoder on noisy chart-to-table translation tasks to map visual features to structured data.
  • Stage II (Multi-Task Instruction Tuning): Generalizes the model across multi-turn reasoning, open-ended QA, and visual prompts (e.g., bounding boxes, arrows highlighting regions of interest).
  • Stage III (MoE Fine-Tuning): Fine-tunes the MoE layers using downstream tasks and Chain-of-Thought (CoT) table extractions to reinforce multi-step reasoning.
       [ Input Chart ] ────────────► [ SigLIP Vision Encoder ] ──► [ Projection ] ──┐
             │                                                                      │
             ▼                                                                      ▼
  [ Plug-in OCR (PaddleOCR) ]                                              [ MoE-LLaVA / Phi-2 ]
             │                                                             (Top-2 of 4 Experts)
             ▼                                                                      ▲
[ Extracted Text + User Prompt ] ──► [ Text Embedding Layer ] ──────────────────────┘

Datasets

The authors introduce ChartBase, a 7.5-million-sample multi-task dataset comprising:

  • OCR-Aware Data Prompt Dataset (~6.98M samples): Combines 6.79M single-turn examples from UniChart with 189K multi-turn conversations synthetically generated via ChatGPT from underlying PlotQA tables and paired with PaddleOCR text.
  • Visual Prompt Dataset (417K samples): ChartQA images augmented with visual markers (arrows, ellipses, triangles, bounding boxes) pointing directly to relevant data elements.
  • Chart-to-Table Instruction Following Dataset (61.5K samples): Built from text-to-SQL datasets (Spider and BIRD), converted to charts via DeepEye/Matplotlib, paired with step-by-step CoT table reconstruction labels.

Evaluation benchmarks include ChartQA, OpenCQA, Chart-to-Text (Pew and Statista subsets), ChartInsights, and zero-shot evaluations on RealCQA, StructChart, and ChartX.

Key Insights and Ideas

  • Explicit OCR is better than "implicit" reading: Giving the model direct textual tokens prevents the vision encoder from having to guess fine-grained character strokes, drastically reducing numerical hallucinations.
  • Chart-to-table pretraining outperforms chart-to-text: Grounding visual tokens into structured row/column tables during Stage I provided a significantly stronger semantic anchor than descriptive text summaries (ChartQA score improved from 67.0 to 67.8; Chart-to-Table from 80.2 to 81.5).
  • Unfreezing the vision encoder matters: While standard MLLM training pipelines keep image encoders frozen, unfreezing SigLIP across all training stages substantially improved fine-grained visual-numerical comprehension.
  • Modality-agnostic experts: Token routing analysis showed that both image and text tokens distribute almost equally across MoE experts rather than dedicating specific experts to specific modalities.

Key Results

Despite having only 4.6B parameters, AskChart significantly outperforms larger 13B architectures:

  • Open-ended ChartQA (OpenCQA): Reaches 83.8 BLEU, outperforming the 13B ChartAst-S (15.5) and ChartLLaMA (4.7).
  • Chart-to-Text: Achieves 64.4 BLEU on Pew (vs. 15.2 for ChartAst-S 13B) and 47.7 BLEU on Statista (vs. 41.0).
  • ChartQA & Chart-to-Table: Scores 76.1% relaxed accuracy on ChartQA (surpassing ChartLLaMA's 69.7% and competitive with ChartAst-S's 79.9%), while achieving 87.4 F1 on Chart-to-Table.
  • ChartInsights: Ranked 1st overall with 42.7% across low-level analytical tasks, leading particularly on range (59.5%), retrieval (71.2%), and distribution (50.5%).
  • Zero-Shot Transfer: Achieved superior cross-domain generalization on RealCQA (33.0), StructChart (30.5), and ChartX (36.9).

Limitations and Future Work

  • Fine-grained Hallucinations & Math Reasoning: Error analysis revealed drops in accuracy on complex compositional queries requiring multi-step arithmetic, where the small language backbone (Phi-2) still hits capacity limits.
  • Context Length & Memory: High token counts resulting from extensive OCR text can hit LLM context limits (2,048 tokens) and trigger GPU out-of-memory errors during multi-turn fine-tuning.
  • Single-Run Evaluations: Most reported benchmark results come from a single run due to the substantial compute cost of training on 7.5M samples.

Summary updated

BibTeX
@misc{yang2024askchart,
  author = {Xudong Yang and Yifan Wu and Yizhang Zhu and Nan Tang and Yuyu Luo},
  title = {{AskChart: Universal Chart Understanding through Textual Enhancement}},
  year = {2024},
  eprint = {2412.19146},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.19146},
}
Figure