Elamur Research

ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoning

Paper · 2022 · Ahmed Masry, Do Xuan Long, Jia Qing Tan et al.

Summary

Most chart question answering resources rely on templated questions, charts rendered by plotting software, and answers drawn from a small closed vocabulary. This leaves out the arithmetic-heavy and appearance-based questions that people actually ask. The authors built ChartQA from real charts crawled from Statista, Pew, Our World In Data and OECD. Crowdworkers on AMT wrote compositional questions, which involve at least two operations, and visual questions, which mention properties such as colour or height. A T5 model produced additional questions from human-written Statista summaries, and a subset of these was manually checked.

For modelling, the authors extend ChartOCR to recover a fully structured data table from the chart image. They also extract visual features and feed both into adapted transformer QA models, VisionTaPas and VL-T5. These models match or beat earlier systems on prior datasets and set the best results on ChartQA. Error analysis shows that nested arithmetic, multi-step visual reasoning and inaccurate table extraction remain hard. The benchmark matters because it measures open-ended, human-phrased numerical and visual reasoning over realistic charts.

Key points

  • The benchmark contains 20,882 charts from four sources, split into two parts:
    • ChartQA-H has 9,608 human-written questions on 4,804 charts.
    • ChartQA-M has 23,111 questions generated from summaries on 17,141 charts.
  • Annotator agreement was 61.04% under exact match. A manual check of 500 samples that tolerated typos and lexical variants found 78.55% agreement.
  • Earlier datasets (FigureQA, DVQA, LEAF-QA, LEAFQA++, PlotQA) use templated questions and software-plotted charts. PlotQA is the only one with open-vocabulary answers.
  • VisionTaPas reached 45.52% overall and 29.60% on ChartQA-H. Removing its difference and ratio supervision cut overall accuracy by 1.80% and ChartQA-H accuracy by 4.76%.
  • Accuracy was best on bar charts and weakest on pie charts, mainly because data extraction fails more often there. Data-retrieval questions were answered far better than visual ones.

Interesting ideas

  • I1. Generating questions from summaries written by people, rather than from templates, gives a large set of questions with natural wording; validating only a sample keeps the cost low.
  • I2. Measuring agreement both by exact match and by a manual pass that accepts surface variants (like "3$" vs "3 dollars") shows how much apparent disagreement comes from formatting alone.
  • I3. Adding explicit supervision for specific operations such as difference and ratio, then ablating them, demonstrated that named operators improve compositional answers.
  • I4. Running the same models with a gold data table and with an automatically extracted one separates perception errors from reasoning errors.
  • I5. The authors propose future semantic graph representations linking the question, chart objects and data values, since separate inputs miss structure and position-based encodings break on synonyms like US vs United States.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (learn): Questions generated by an LLM teacher from human-written story summaries could produce silver QA items for fables, with a spot-checked subset serving as a quality gate.
  • I2 (answer): The answer checker should normalise units, numerals and rounding before scoring, so that formatting differences are not counted as reasoning failures in maths word problems.
  • I3 (answer): Maths word-problem solvers could expose a closed, inspectable inventory of operators, with an ablation per operator to prove each one earns its place.
  • I4 (learn): Evaluate frames and answers on gold UD trees as well as on gparse output, so each failure can be attributed to parsing or to downstream reasoning.
  • I5 (world): Answering should resolve mentions to world entities via the ontology and knowledge graph, rather than to surface positions or strings, so that aliases map to the same entity.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

 Fields, topics and concepts

Cite

Cite as Ahmed Masry, Do Xuan Long, Jia Qing Tan, Shafiq Joty and Enamul Hoque. 2022. ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoning. Findings of the Association for Computational Linguistics: ACL 2022.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.findings-acl.177

@inproceedings{masry2022chartqa,
  title = {{ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoning}},
  author = {Ahmed Masry, Do Xuan Long, Jia Qing Tan, Shafiq Joty and Enamul Hoque},
  booktitle = {Findings of the Association for Computational Linguistics: ACL 2022},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.177},
  url = {https://doi.org/10.18653/v1/2022.findings-acl.177}
}

References

41 references, 18 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. 2016. Layer normalization. ArXiv, abs/1607.06450.
  2. Jeonghun Baek, Geewook Kim, Junyeop Lee, Sungrae Park, Dongyoon Han, Sangdoo Yun, Seong Joon Oh, and Hwalsuk Lee. 2019. What is wrong with scene text recognition model comparisons? dataset and model analysis. In International Conference on Computer Vision (ICCV). OpenAlex ↗ · Scholar ↗
  3. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chri… — Language Models are Few-Shot Learners
  4. R. Chaudhry, S. Shekhar, U. Gupta, P. Maneriker, P. Bansal, and A. Joshi. 2020. Leaf-qa: Locate, encode attend for figure question answering. In 2020 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 3501–3510. OpenAlex ↗ · Scholar ↗
  5. Jaemin Cho, Jie Lei, Hao Tan, and Mohit Bansal. 2021. Unifying vision-and-language tasks via text generation. In ICML. OpenAlex ↗ · Scholar ↗
  6. Minseok Cho, Reinald Kim Amplayo, Seung won Hwang, and Jonghyuck Park. 2018. Adversarial tableqa: Attention supervision for question answering on tables. ArXiv, abs/1810.08113. the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long an… — arXiv:1810.08113 OpenAlex ↗ · Scholar ↗
  7. Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. 2021. An image is worth 16x16 words: Transformers for image recognition at scale. In Intern…
  8. Julian Eisenschlos, Syrine Krichene, and Thomas Müller. 2020. Understanding tables with intermediate pre-training. In Findings of the Association for Computational Linguistics: EMNLP 2020, pages 281–296, Online. Association for Computational Linguistics.
  9. Mor Geva, Ankit Gupta, and Jonathan Berant. 2020. Injecting numerical reasoning skills into language models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 946–958, Online. Association for Computational Linguistics.
  10. Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. 2017. Mask r-cnn. In 2017 IEEE International Conference on Computer Vision (ICCV), pages 2980–2988. OpenAlex ↗ · Scholar ↗
  11. Jonathan Herzig, Pawel Krzysztof Nowak, Thomas Müller, Francesco Piccinno, and Julian Eisenschlos. 2020. TaPas: Weakly supervised table parsing via pre-training. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4320–4333, Online. Association for Compu…
  12. Enamul Hoque, Vidya Setlur, Melanie Tory, and Isaac Dykeman. 2018. Applying pragmatics principles for interaction with visual analytics. IEEE Transactions on Visualization and Computer Graphics, 24(1):309– 318. OpenAlex ↗ · Scholar ↗
  13. Daekyoung Jung, Wonjae Kim, Hyunjoo Song, Jeong-in Hwang, Bongshin Lee, Bohyoung Kim, and Jinwook Seo. 2017. ChartSense: Interactive Data Extraction from Chart Images, page 6706–6717. Association for Computing Machinery, New York, NY, USA. OpenAlex ↗ · Scholar ↗
  14. J. Choi, Sanghun Jung, Deok Gun Park, J. Choo, and N. Elmqvist. 2019. Visualizing for the non-visual: Enabling the visually impaired to use visualization. Computer Graphics Forum, 38. OpenAlex ↗ · Scholar ↗
  15. Kushal Kafle, Scott Cohen, Brian L. Price, and Christopher Kanan. 2018. DVQA: understanding data visualizations via question answering. CoRR, abs/1801.08163. — arXiv:1801.08163 OpenAlex ↗ · Scholar ↗
  16. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of Kushal Kafle, Robik Shrestha, Brian L. Price, Scott Cohen, and Christopher Kanan. 2019. Answering questio…
  17. Kushal Kafle, Mohammed Yousefhussien, and Christopher Kanan. 2017. Data augmentation for visual question answering. In Proceedings of the 10th International Conference on Natural Language Generation, pages 198–202, Santiago de Compostela, Spain. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  18. Samira Ebrahimi Kahou, Adam Atkinson, Vincent Michalski, Ákos Kádár, Adam Trischler, and Yoshua Bengio. 2017. Figureqa: An annotated figure dataset for visual reasoning. CoRR, abs/1710.07300.
  19. Dae Hyun Kim, Enamul Hoque, and Maneesh Agrawala. 2020. Answering questions about charts and generating visual explanations. In Proceedings of the 2020 CHI Conference on Human Factors in Computing Systems, pages 1–13. OpenAlex ↗ · Scholar ↗
  20. Dae Hyun Kim, Vidya Setlur, and Maneesh Agrawala. 2021. Towards understanding how readers integrate charts and captions: A case study with line charts. In Proceedings of the CHI Conference on Human Factors in Computing Systems, pages 1–11. OpenAlex ↗ · Scholar ↗
  21. Hei Law and Jia Bin Deng. 2019. Cornernet: Detecting objects as paired keypoints. International Journal of Computer Vision, 128:642–656. OpenAlex ↗ · Scholar ↗
  22. Matan Levy, Rami Ben-Ari, and Dani Lischinski. 2021. Classification-regression for chart comprehension. CoRR, abs/2111.14792. — arXiv:2111.14792 OpenAlex ↗ · Scholar ↗
  23. Patrick Lewis, Yuxiang Wu, Linqing Liu, Pasquale Minervini, Heinrich Küttler, Aleksandra Piktus, Pontus Stenetorp, and Sebastian Riedel. 2021. PAQ: 65 Million Probably-Asked Questions and What You Can Do With Them. Transactions of the Association for Computational Linguistics, 9:1098–1115.
  24. Tsung-Yi Lin, Michael Maire, Serge J. Belongie, Lubomir D. Bourdev, Ross B. Girshick, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. 2014. Microsoft COCO: common objects in context. CoRR, abs/1405.0312.
  25. Linyong Nan, Chiachun Hsieh, Ziming Mao, Xi Victoria Lin, Neha Verma, Rui Zhang, Wojciech Kryściński, Nick Schoelkopf, Riley Kong, Xiangru Tang, Murori Mutuma, Ben Rosand, Isabel Trindade, Renusree Bandaru, Jacob Cunningham, Caiming Xiong, and Dragomir Radev. 2021. Fetaqa: Free-form table question…
  26. Panupong Pasupat and Percy Liang. 2015. Compositional semantic parsing on semi-structured tables. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1470–…
  27. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67.
  28. Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. Squad: 100, 000+ questions for machine comprehension of text. CoRR, abs/1606.05250.
  29. Shaoqing Ren, Kaiming He, Ross B. Girshick, and Jian Sun. 2015. Faster R-CNN: towards real-time object detection with region proposal networks. CoRR, abs/1506.01497.
  30. M. Savva, Nicholas Kong, Arti Chhajta, Li Fei-Fei, Maneesh Agrawala, and J. Heer. 2011. Revision: automated classification, analysis and redesign of chart images. Proceedings of the 24th annual ACM symposium on User interface software and technology. OpenAlex ↗ · Scholar ↗
  31. David Saxton, Edward Grefenstette, Felix Hill, and Pushmeet Kohli. 2019. Analysing mathematical reasoning abilities of neural models. In International Conference on Learning Representations.
  32. Xiaoyi Liu, Diego Klabjan, and Patrick N. Bless. 2019. Data extraction from charts via single deep neural network. ArXiv, abs/1906.11906. — arXiv:1906.11906 OpenAlex ↗ · Scholar ↗
  33. Noah Siegel, Zachary Horvitz, Roie Levin, Santosh Kumar Divvala, and Ali Farhadi. 2016. Figureseer: Parsing result-figures in research papers. In ECCV. OpenAlex ↗ · Scholar ↗
  34. Junyu Luo, Zekun Li, Jinpeng Wang, and Chin-Yew Lin. 2021. Chartocr: Data extraction from charts images via a deep hybrid framework. 2021 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 1916–1924. OpenAlex ↗ · Scholar ↗
  35. Hrituraj Singh and Sumit Shekhar. 2020. STL-CQA: Structure-based transformers with localization and encoding for chart question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 3275–3284, Online. Association for Computational Linguis… OpenAlex ↗ · Scholar ↗
  36. Ahmed Masry and Enamul Hoque. 2021. Integrating image data extraction and table parsing methods for chart question answering. Chart Question Answering Workshop, in conjunction with the Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–5. OpenAlex ↗ · Scholar ↗
  37. Nitesh Methani, Pritha Ganguly, Mitesh M. Khapra, and Pratyush Kumar. 2020. Plotqa: Reasoning over scientific plots. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV). OpenAlex ↗ · Scholar ↗
  38. Damien Teney, Lingqiao Liu, and Anton van den Hengel. 2017. Graph-structured representations for visual question answering. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3233–3241. OpenAlex ↗ · Scholar ↗
  39. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. CoRR, abs/1706.03762.
  40. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pier-ric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, and Jamie Brew. 2019. Huggingface’s transformers: State-of-the-art natural language processing. CoRR, abs/1910.03771.
  41. Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. 2019. Detectron2. https://github.com/facebookresearch/ detectron2 . OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/masry-2022-chartqa-benchmark-question-answering-about/