Doc2Chart: Intent-Driven Zero-Shot Chart Generation from Documents
Abstract
Large Language Models (LLMs) have demonstrated strong capabilities in transforming text descriptions or tables to data visualizations via instruction-tuning methods. However, it is not straightforward to apply these methods directly for a more real-world use case of visualizing data from long documents based on user-given intents, as opposed to the user pre-selecting the relevant content manually. We introduce the task of intent-based chart generation from documents: given a user-specified intent and document(s), the goal is to generate a chart adhering to the intent and grounded on the document(s) in a zero-shot setting. We propose an unsupervised, two-staged framework in which an LLM first extracts relevant information from the document(s) by decomposing the intent and iteratively validates and refines this data. Next, a heuristic-guided module selects an appropriate chart type before final code generation. To assess the data accuracy of the generated charts, we propose an attribution-based metric that uses a structured textual representation of charts, instead of relying on visual decoding metrics that often fail to capture the chart data effectively. To validate our approach, we curate a dataset comprising of 1,242 <intent, document, charts> tuples from two domains, finance and scientific, in contrast to the existing datasets that are largely limited to parallel text descriptions/ tables and their corresponding charts. We compare our approach with baselines using single-shot chart generation using LLMs and query-based retrieval methods; our method outperforms by upto 9 points and 17 points in terms of chart data accuracy and chart type respectively over the best baselines.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on5
- Do LVLMs Understand Charts? Analyzing and Correcting Factual Errors in Chart CaptioningKung-Hsiang Huang, Mingyang Zhou, Hou Pong Chan, Yi Fung et al.ACL Findings 2024 · 16 citations
- Is Table Retrieval a Solved Problem? Exploring Join-Aware Multi-Table RetrievalPeter Baile Chen, Yi Zhang, Dan RothACL 2024 · 4 citations
- Peering into the Mind of Language Models: An Approach for Attribution in Contextual Question AnsweringAnirudh Phukan, Shwetha Somasundaram, Apoorv Saxena, Koustava Goswami et al.ACL Findings 2024 · 4 citations
- Text2Chart31: Instruction Tuning for Chart Generation with Automatic FeedbackFatemeh Pesaran Zadeh, Juyeon Kim, Jin-Hwa Kim, Gunhee KimEMNLP 2024 · 2 citations
- Interpreting and Editing Vision-Language Representations to Mitigate HallucinationsNick Jiang, Anish Kachinthaya, Suzanne Petryk, Yossi GandelsmanICLR 2025
Related papers
- ChartInstruct: Instruction Tuning for Chart Comprehension and ReasoningAhmed Masry, Mehrad Shahmohammadi, Md. Rizwan Parvez, Enamul Hoque et al.ACL Findings 2024 · 30 citations
- Advancing Multimodal Large Language Models in Chart Question Answering with Visualization-Referenced Instruction TuningXingchen Zeng, Haichuan Lin, Yilin Ye, Wei ZengIEEE VIS 2024 · 23 citations
- UniChart: A Universal Vision-language Pretrained Model for Chart Comprehension and ReasoningAhmed Masry, Parsa Kavehzadeh, Do Xuan Long, Enamul Hoque et al.EMNLP 2023 · 48 citations
- Making Multimodal LLMs Reliable Chart Data Extractors: A Benchmark and Training FrameworkYuchen He, Peizhi Ying, Liqi Cheng, Kuilin Peng et al.CHI 2026 · 1 citation
- ChartM³: A Multi-Stage Code-Driven Pipeline for Constructing Multi-Dimensional and Multi-Step Visual Reasoning Data in Chart ComprehensionDuo Xu, Hao Cheng, Xin Lin, Zhen Xie et al.EMNLP Findings 2025
