Socratic Chart: Cooperating Multiple Agents for Robust SVG Chart Understanding

Yuyang Ji, Haohan WangarXiv 2025 · DOI

Introduction

Current Multimodal Large Language Models (MLLMs), such as GPT-4o and Gemini-2.0, have set new benchmarks in chart reasoning. However, their performance is often brittle, relying on "textual shortcuts"—reading explicit numbers printed on bars or lines—rather than perceiving the underlying geometry. When these textual cues are removed or the chart is visually distorted (e.g., stretched horizontally), standard models experience performance drops of up to 30-50%. This suggests a lack of genuine visual-linguistic reasoning.

Performance drop comparison between standard models and Socratic Chart when textual labels are removed.

To bridge this gap, we propose Socratic Chart, a multi-agent framework designed to convert raw pixels into structured Scalable Vector Graphics (SVG) code. By transforming the visual reasoning task into a symbolic data problem, Socratic Chart achieves superior robustness and accuracy.

The Socratic Chart Framework

The Socratic Chart pipeline utilizes a collaborative multi-agent approach to ensure high-fidelity data extraction. The process involves three main stages:

  1. Chart Classification: A specialized agent identifies the chart type (e.g., bar, line, or pie) to select the appropriate extraction tools.
  2. Specialized Agent-Generators: Multiple agents operate in parallel to extract specific attributes. For instance, a "Bar Chart Agent" calculates bar heights using bounding boxes, while a "Text Extraction Agent" maps labels to spatial coordinates.
  3. Agent-Critic Refinement: This "Socratic" element involves a critic agent that reviews generator outputs. It identifies inconsistencies, such as misaligned text or missing data points, and refines the final SVG code.
The Socratic Chart multi-agent pipeline, featuring specialized generators and a critic refinement stage.

The final output is a structured SVG representation that encodes the chart's geometry and data, allowing MLLMs to process the information as text while retaining the original image for dual-modality reasoning.

Experimental Evaluation

The framework was evaluated across several challenging benchmarks, including ChartQA-RL (Removed Labels), where textual labels are stripped to force reliance on visual geometry, and ChartQA-HV (Horizontal/Vertical Perturbation), which tests robustness against visual distortion.

Key Results

Socratic Chart demonstrates significant improvements in robustness compared to state-of-the-art models:

  • Label-Free Dominance: On ChartQA-RL, Socratic Chart achieved 57.6% accuracy, significantly outperforming GPT-4o (40.8%) and Gemini-2 (37.2%).
  • Robustness to Intervention: While other models saw massive declines under label removal (Gemini-2 dropped by 50%), Socratic Chart’s performance drop was the lowest at only 23.9%.
  • Scientific Chart Reasoning: On the ChartXiv benchmark, Socratic Chart reached 30.1% accuracy, surpassing GPT-4v (26.9%) and specialized models like SIMPLOT.

Discussion and Insights

The success of Socratic Chart highlights the "OCR Crutch" in current MLLMs, proving they are heavily dependent on explicit text. By using SVG as a "Universal Language," the framework leverages the existing strengths of MLLMs in reasoning over structured XML. Furthermore, the multi-agent "Critic" mechanism proved vital; dedicated error-checking significantly improves the fidelity of the generated data compared to single-agent approaches.

Conclusion

Socratic Chart offers a robust alternative to standard end-to-end MLLM inference for chart understanding. By prioritizing geometric extraction and symbolic reasoning, it overcomes the limitations of textual shortcuts. Future work will focus on reducing the computational overhead of the multi-agent pipeline and expanding the critic mechanism to handle more diverse scientific visualization styles.

Summary updated

BibTeX
@misc{ji2025socratic,
  author = {Yuyang Ji and Haohan Wang},
  title = {{Socratic Chart: Cooperating Multiple Agents for Robust SVG Chart Understanding}},
  year = {2025},
  eprint = {2504.09764},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.09764},
}
Figure