Abstract
While Large Language Models (LLMs) have demonstrated remarkable instruction-following capabilities in text, Vision-Language Models (VLMs) often struggle with the specialized structural and mathematical nuances of charts. We present ChartInstruct, a massive instruction-tuning dataset comprising 191,000 instructions across 71,000 diverse charts. By fine-tuning models on this dataset, we develop systems that not only achieve state-of-the-art performance on standard benchmarks like ChartQA and ChartFC but also exhibit zero-shot capabilities in novel tasks such as anomaly detection and forecasting.
1. Introduction
Charts are a ubiquitous medium for communicating complex data, yet they pose unique challenges for artificial intelligence. Standard VLMs, typically trained on natural images using encoders like CLIP, often fail to grasp the "mathematical" relationships inherent in charts—such as the precise mapping between a bar's height and its corresponding axis value. Furthermore, existing chart-AI models are frequently task-specific, lacking the flexibility to follow diverse user instructions. ChartInstruct addresses these limitations by providing a robust framework for general-purpose chart reasoning.
2. Methodology
The researchers developed two distinct system architectures to explore the most effective way to process visual data:
2.1 System Architectures
- End-to-End System: This model utilizes the LLaVA architecture but replaces the standard CLIP vision encoder with UniChart. UniChart is specifically pre-trained on chart structures, providing the necessary inductive bias to parse axes, legends, and data points. This encoder is linked to an LLM (Llama2-7B or Flan-T5-XL) via a projection adapter.
- Pipeline System: This modular approach decouples visual perception from reasoning. The system first uses UniChart to extract the underlying data table from the chart image. This structured text (Markdown table) is then fed into the LLM alongside the user's instruction.
2.2 Instruction Generation via Distillation
To create a diverse training set, the authors employed a "distillation" approach using advanced LLMs (GPT-3.5, GPT-4, and Gemini). By providing these models with raw chart data tables, they generated 191,000 instructions covering:
- Descriptive Tasks: Summarization and basic question answering.
- Reasoning Tasks: Chain-of-Thought (CoT) explanations and Python code generation for data analysis.
- Emergent Tasks: Novel instructions such as identifying outliers or predicting future trends based on historical visual data.
3. Data and Benchmarking
The study introduces two primary datasets:
- ChartInstruct: The core instruction-tuning set containing 191K instructions across 71K charts.
- WebCharts: A collection of 41,000 real-world charts scraped from 157 online domains, ensuring the models are exposed to diverse, non-synthetic visual styles.
Performance was evaluated across four major benchmarks: ChartQA (factoid QA), Chart2Text (summarization), OpenCQA (open-ended QA), and ChartFC (fact-checking).
4. Results and Analysis
The ChartInstruct models established new State-of-the-Art (SOTA) benchmarks:
- Accuracy Gains: On ChartQA, the Pipeline model achieved a Relaxed Accuracy of 72.00, a significant improvement over the previous SOTA of 66.24. In fact-checking (ChartFC), accuracy rose to 72.65%, compared to the 63.8% baseline.
- Human Evaluation: In comparative studies, humans rated ChartInstruct-Llama significantly higher than base UniChart in Informativeness (3.85 vs 3.2) and Relevance (4.06 vs 2.74). The instruction-tuned models were notably better at adhering to specific user prompts rather than generating generic descriptions.
5. Discussion: Pipeline vs. End-to-End
A key finding of the research is that the Pipeline System often outperformed the End-to-End system on reasoning-heavy tasks. This suggests that current LLMs are more proficient at reasoning over structured text (tables) than extracting logic directly from raw pixels. Additionally, the success of the UniChart encoder highlights that specialized vision components are essential for tasks involving "visualized math."
6. Limitations and Future Work
While ChartInstruct represents a major step forward, challenges remain. The models occasionally struggle with high-precision numerical calculations and "crowded" charts where visual elements overlap. Hallucinations—where the model generates confident but unsupported claims—also persist. Future research will focus on enhancing the numerical reasoning of the underlying LLMs and expanding the dataset to include interactive and unconventional chart formats.
Summary updated