Representing Charts as Text for Language Models: An In-Depth Study of Question Answering for Bar Charts
Machine Learning models for chart-grounded Q&A (CQA) often treat charts as images, but performing CQA on pixel values has proven challenging. We thus investigate a resource overlooked by current ML-based approaches: the declarative documents describing how charts should visually encode data (i.e., chart specifications). In this work, we use chart specifications to enhance language models (LMs) for chart-reading tasks, such that the resulting system can robustly understand language for CQA. Through a case study with 359 bar charts, we test novel fine tuning schemes on both GPT-3 and T5 using a new dataset curated for two CQA tasks: question-answering and visual explanation generation. Our text-only approaches strongly outperform vision-based GPT-4 on explanation generation (99% vs. 63% accuracy), and show promising results for question-answering (57–67% accuracy). Through in-depth experiments, we also show that our text-only approaches are mostly robust to natural language variation.
Authors
- Jane Hoffswell (ORCID: https://orcid.org/0000-0002-9871-4575)
- Shunan Guo (ORCID: https://orcid.org/0000-0001-5355-8399)
- Eunyee Koh (ORCID: https://orcid.org/0000-0003-2091-5972)
- Victor S. Bursztyn (ORCID: https://orcid.org/0000-0002-6187-6415)
Institutions
- Adobe Systems (United States) (US)
Publication Details
- Published
- 2024-10-13
- DOI
- https://doi.org/10.1109/vis55277.2024.00061
- Citations
- 2
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.69