Abstract
Chart question answering (CQA) is a task used for assessing chart comprehension, which is fundamentally different from understanding natural images. CQA requires analyzing the relationships between the textual and the visual components of a chart, in order to answer general questions or infer numerical values. Most existing CQA datasets and models are based on simplifying assumptions that often enable surpassing human performance. In this work, we address this outcome and propose a new model that jointly learns classification and regression. Our language-vision setup uses co-attention transformers to capture the complex real-world interactions between the question and the textual elements. We validate our design with extensive experiments on the realistic PlotQA dataset, outperforming previous approaches by a large margin, while showing competitive performance on FigureQA. Our model is particularly well suited for realistic questions with out-of-vocabulary answers that require regression.
Introduction
While Visual Question Answering (VQA) for natural images has seen significant progress, Chart Question Answering (CQA) remains a unique challenge. Charts are structured representations of data where the relationship between text (legends, titles, axis labels) and visual elements (lines, bars, dots) is paramount. Most existing CQA models treat the problem purely as a classification task—picking an answer from a fixed vocabulary. This approach fails when the answer is a specific numerical value not seen in the training set (e.g., "What was the exact aid flow in 1979?"). The proposed Classification-Regression Chart Transformer (CRCT) addresses this by jointly learning to identify discrete categories and calculate continuous values.
Methodology: The CRCT Architecture
The CRCT model employs a multi-stage pipeline to process charts and questions. It begins with object detection using a Mask R-CNN to identify both visual elements (line segments, markers) and textual elements (labels, titles). These elements are then processed through a bimodal encoding stage: a visual branch for geometry and features, and a textual branch using BERT to process the question alongside chart text with spatial awareness.
A core innovation is the Hybrid Prediction Head. Unlike standard models, CRCT features two outputs: a classification head for discrete answers (like "Yes/No") and a regression head for continuous numerical values. A special regression flag $\langle R \rangle$ acts as a soft switch, allowing the model to decide whether a question requires a category or a calculated number. This enables the model to handle "out-of-vocabulary" (OOV) numerical answers that are common in real-world data.
Experimental Results and Analysis
The model was evaluated on several benchmarks, most notably PlotQA, a massive dataset of 29 million Q&A pairs based on real-world data. PlotQA is particularly challenging because up to 90% of its questions require regression for OOV answers.
CRCT achieved a dramatic performance leap on PlotQA-D1, reaching 76.94% accuracy compared to the previous state-of-the-art of 53.96%. In complex reasoning tasks, the model nearly doubled previous performance (54.87% vs 31.2%). Furthermore, CRCT demonstrated high data efficiency, matching previous SOTA results even when trained on only 10% of the dataset. On PlotQA-D2, which is heavily weighted toward regression, CRCT maintained a significant lead over classification-only models (34.44% vs 10.37%).
Conclusion
The CRCT model demonstrates that joint learning of classification and regression is essential for realistic chart comprehension. By grounding visual elements in textual metadata and enabling continuous value prediction, it overcomes the limitations of vocabulary-constrained models. Future work will address sensitivities to color schemes and the challenges of non-linear axis scales, as well as reducing the reliance on dense bounding box annotations for training.
Summary updated