Abstract
Chart Question Answering (ChartQA) is a challenging task that requires precise alignment between visual data points and their semantic labels. Traditional Vision-Language Models (VLMs) often rely on patch-based image encoding, which can lose critical object-level structural information. This paper introduces a novel framework that models charts as multimodal scene graphs. By utilizing Graph Contrastive Learning (GCL) to align a Visual Graph (VG) with a Textual Graph (TG), the model generates structured representations that are injected as "soft prompts" into a transformer decoder. Our approach demonstrates significant performance improvements on the ChartQA and OpenCQA benchmarks, highlighting the effectiveness of object-aware structural modeling for data-heavy visual reasoning.
Introduction
While Large Language Models (LLMs) have mastered textual reasoning, understanding charts remains a "non-trivial task." Most current VLMs process images by decomposing them into a grid of patches. While efficient, this "patchification" often discards the specific relationships between data points (e.g., a bar in a graph) and their metadata (e.g., axis labels or legends). This lack of structural awareness frequently leads to "hallucinations," where models misinterpret trends or values.
To bridge this gap, we propose a graph-based multimodal contrastive learning framework. By explicitly modeling the chart's underlying data structure as a scene graph, we provide models with a more structured way to interpret charts, mimicking the human process of identifying a visual element and then locating its corresponding label.
Methodology
The proposed framework centers on three core innovations:
- Multimodal Scene Graphs: We construct two distinct graphs for every chart:
- Visual Graph (VG): Uses a K-Nearest Neighbors (KNN) approach to link detected chart objects (bars, legends, etc.) based on spatial proximity.
- Textual Graph (TG): Captures semantic features from OCR-extracted text and labels.
- Graph Contrastive Learning (GCL): This is the core alignment mechanism. Inspired by CLIP, the model is trained to maximize the similarity between corresponding nodes in the visual and textual graphs. For example, the visual representation of a "blue bar" is pulled closer to the textual representation of its label in the embedding space.
- Soft Prompting: Instead of simply feeding the graph into an encoder, the learned unified representations are prepended to the question text as 36 special
<G>tokens. These act as "soft prompts" that guide the transformer decoder to focus on the structural relationships within the chart.
Experimental Results
The model was evaluated on three primary benchmarks: ChartQA (augmented and human subsets), OpenCQA (requiring long-form explanatory answers), and ChartX (a diverse benchmark with 18 chart types).
As shown in the results below, the GCL method provides a consistent performance boost across different backbones. When applied to the UniChart backbone, the method achieved a 67.44% average accuracy on ChartQA, outperforming the base model's 66.24%. On the OpenCQA task, the BLEU4 score improved significantly from 14.88 to 16.35.
Ablation studies further revealed that inter-modality alignment (aligning the visual graph to the textual graph) was more beneficial than intra-modality contrastive learning. This suggests that the primary challenge in chart understanding is the cross-modal mapping between visual geometry and semantic text.
Discussion and Conclusion
The success of this framework reinforces the idea that for data-heavy images like charts, "object-aware" representations are superior to raw image patches. By explicitly modeling the scene graph, the model retains the underlying data structure necessary for accurate reasoning.
While the system currently depends on the quality of upstream object detection and OCR components, the use of graph-based soft prompts represents a significant advancement. Future work will explore more sophisticated GCL designs to better handle noise in the initial detection and extraction phases.
Summary updated