ChartGemma: Visual Instruction-tuning for Chart Reasoning in the Wild

Ahmed Masry, Megh Thakkar, Aayush Bajaj, Aaryaman Kartha, Enamul Hoque +1 more
7/4/2024
cs.AIcs.CLcs.CV

Official code: vis-nlp/ChartGemma (79 stars, GPL-3.0, last commit 2024-07-14).

Abstract

Given the ubiquity of charts as a data analysis, visualization, and decision-making tool across industries and sciences, there has been a growing interest in developing pre-trained foundation models as well as general purpose instruction-tuned models for chart understanding and reasoning. However, existing methods suffer crucial drawbacks across two critical axes affecting the performance of chart representation models: they are trained on data generated from underlying data tables of the charts, ignoring the visual trends and patterns in chart images, and use weakly aligned vision-language backbone models for domain-specific training, limiting their generalizability when encountering charts in the wild. We address these important drawbacks and introduce ChartGemma, a novel chart understanding and reasoning model developed over PaliGemma. Rather than relying on underlying data tables, ChartGemma is trained on instruction-tuning data generated directly from chart images, thus capturing both high-level trends and low-level visual information from a diverse set of charts. Our simple approach achieves state-of-the-art results across $5$ benchmarks spanning chart summarization, question answering, and fact-checking, and our elaborate qualitative studies on real-world charts show that ChartGemma generates more realistic and factually correct summaries compared to its contemporaries. We release the code, model checkpoints, dataset, and demos at https://github.com/vis-nlp/ChartGemma.

View on arXivView PDF

Code Implementations(1)

vis-nlp/ChartGemmaOfficial100%
GPL-3.0
791Jupyter NotebookJul 2, 20242 years agoGPL-3.0

Similar Papers

Cite this paper

@article{masry2024chartgemma,
  title  = {ChartGemma: Visual Instruction-tuning for Chart Reasoning in the Wild},
  author = {Ahmed Masry and Megh Thakkar and Aayush Bajaj and Aaryaman Kartha and Enamul Hoque and Shafiq Joty},
  year   = {2024},
  eprint = {2407.04172},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.04172v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.04172.svg)](https://codeofpaper.com/paper/2407.04172)

Discussion