[Paper Review] LEAF-QA: Locate, Encode & Attend for Figure Question Answering
This paper introduces LEAF-QA, a large-scale, real-world dataset of 250,000 densely annotated charts with 2 million QA pairs, and proposes LEAF-Net, a novel architecture that localizes chart elements, encodes questions and answers in terms of these elements, and uses attention mechanisms for multimodal reasoning. LEAF-Net achieves state-of-the-art performance on FigureQA and DVQA, significantly outperforming prior models, especially on complex reasoning and out-of-vocabulary answers.
We introduce LEAF-QA, a comprehensive dataset of $250,000$ densely annotated figures/charts, constructed from real-world open data sources, along with ~2 million question-answer (QA) pairs querying the structure and semantics of these charts. LEAF-QA highlights the problem of multimodal QA, which is notably different from conventional visual QA (VQA), and has recently gained interest in the community. Furthermore, LEAF-QA is significantly more complex than previous attempts at chart QA, viz. FigureQA and DVQA, which present only limited variations in chart data. LEAF-QA being constructed from real-world sources, requires a novel architecture to enable question answering. To this end, LEAF-Net, a deep architecture involving chart element localization, question and answer encoding in terms of chart elements, and an attention network is proposed. Different experiments are conducted to demonstrate the challenges of QA on LEAF-QA. The proposed architecture, LEAF-Net also considerably advances the current state-of-the-art on FigureQA and DVQA.
Motivation & Objective
- To address the limitations of existing chart QA datasets, which rely on synthetic data with limited vocabulary and fixed templates, by creating a large-scale, real-world dataset with diverse, naturalistic questions.
- To enable robust, generalizable figure question answering by constructing a dataset from open, real-world data sources such as government census and financial reports.
- To develop a deep learning framework capable of handling out-of-vocabulary answers and complex reasoning over chart elements, moving beyond binary or fixed-vocabulary answer spaces.
- To evaluate model generalization using a novel test set drawn from unseen data sources, simulating real-world deployment challenges.
Proposed method
- LEAF-Net uses Mask R-CNN to localize and segment chart elements (e.g., titles, axes, legends, data points) with bounding boxes or masks.
- It encodes questions and answers in terms of detected chart elements, enabling semantic grounding of natural language queries to visual components.
- An attention mechanism fuses visual features from localized elements with encoded question and answer representations for end-to-end reasoning.
- The model is trained on LEAF-QA with data augmentation via paraphrasing of question templates to prevent template memorization.
- For evaluation, the model is fine-tuned on DVQA and FigureQA using ground-truth boxes and chart-specific string encoding, with both oracle and OCR-based text extraction.
- Ablation studies assess the impact of element localization, OCR accuracy, and answer encoding on overall performance.
Experimental results
Research questions
- RQ1Can a multimodal QA model generalize to real-world charts with diverse, unseen vocabularies and complex visual layouts?
- RQ2How does chart element localization and semantic encoding improve reasoning over charts compared to end-to-end visual-linguistic models?
- RQ3To what extent does paraphrasing questions and avoiding template-based data generation improve model robustness and generalization?
- RQ4How does the proposed architecture perform on out-of-vocabulary answers, a key challenge in real-world chart QA?
Key findings
- LEAF-Net achieves 72.72% overall accuracy on the DVQA test set, significantly outperforming the previous SOTA SANDY model (56.48%)
- On the FigureQA dataset, LEAF-Net achieves 81.15% accuracy, surpassing the prior state-of-the-art CNN+LSTM (56.16%) and Relation Net (72.54%)
- The model maintains high performance on the novel test set (61.33% overall accuracy), demonstrating strong generalization to unseen data sources
- Precision and recall for text element detection are high across most categories, with title and axis label detection exceeding 99% precision and 98% recall
- OCR performance is significantly improved in LEAF-Net compared to prior models, due to localized text extraction, with only a minor drop from oracle performance
- Ablation studies confirm that chart element encoding and attention mechanisms are critical for handling complex reasoning and out-of-vocabulary answers
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.