C: Scalable Auto-Feedback for LLM-based Chart Generation

Woosung Koh, Jang Han Yoon, Minhyung Lee, Youngjin Song, Jaegwan Cho, Jaehyun Kang, Taehyeon Kim, Se-young Yun, Youngjae Yu, Bongshin Lee

TL;DR

This paper introduces C$^2$, a novel framework for scalable, LLM-based chart generation that tackles the challenges of limited training data and expensive human curation. C$^2$ comprises an automatic feedback provider (ChartAF) and a diverse dataset (ChartUIE-8K), enabling significant improvements in chart quality and data diversity without requiring costly human intervention.

What Problem Does This Paper Address?

Generating high-quality charts using Large Language Models (LLMs) is hampered by two major issues: the scarcity and high cost of obtaining $\langle \text{instruction}, \text{data}, \text{code} \rangle$ triplets for training and evaluation, and the difficulty in objectively evaluating the quality of generated charts. Existing evaluation methods often rely on reference-based approaches, which are labor-intensive and limit scalability. This makes it challenging to train and improve LLMs for effective chart generation.

Methods

The core of the proposed solution is ChartAF, an automatic feedback provider that operates without needing human-curated references. ChartAF has two components:

  • ChartAF-S: This component provides a scalar evaluation score for chart generation. It works by decomposing a user query into task, purpose, and audience, then generating specific criteria. These criteria are then binarized into questions, which are evaluated by an LLM to produce a scalar score. This score can be used for test-time scaling (TTS) to improve chart generation.
  • ChartAF-G: This component provides granular, natural language feedback. It builds upon ChartAF-S by associating each evaluated criterion with actionable feedback categories: Retain, Edit, Discard, and Add. This feedback can then be used to refine the generated chart code.

To support this feedback mechanism and address data scarcity, the authors also introduce ChartUIE-8K, a large-scale, diverse, and reference-free dataset for chart generation evaluation.

Datasets

The paper introduces a new dataset:

  • ChartUIE-8K: This dataset is a comprehensive chart generation evaluation set, containing over 8,000 instances. It significantly improves data diversity by increasing queries, datasets, and chart types by 5982%, 1936%, and 91%, respectively, compared to existing benchmarks. It was curated using an LLM-assisted process that emulates user interactions.

The authors also reference existing datasets and benchmarks for comparison, such as MatPlotBench and Plot2Code.

Key Insights and Ideas

  • Reference-free feedback is key to scalability: The ability of ChartAF to provide feedback without relying on expensive human-curated references is a critical breakthrough for scaling LLM-based chart generation.
  • Decomposition is crucial for effective feedback: Breaking down user queries into task, purpose, and audience, and then generating specific criteria, allows for more targeted and useful feedback.
  • Binarized questions improve LLM reasoning: Converting evaluation criteria into binary (yes/no) questions makes LLMs more reliable in their reasoning process.
  • Granular feedback enables iterative improvement: The Edit, Retain, Discard, and Add categories provide actionable insights for refining chart generation code.
  • Diverse datasets are essential for robust evaluation: ChartUIE-8K's broad coverage of queries, datasets, and chart types allows for more comprehensive and realistic evaluation of LLM capabilities.
  • LLM-generated queries can be realistic: The study on ChartUIE-8K's queries showed that they align well with real-world user needs and preferences.

Key Results

  • User Preference: In an experiment, 84% of respondents preferred charts generated with ChartAF feedback, with 74% strongly preferring them.
  • Performance Improvement: ChartAF outperformed nine baselines in chart generation quality.
  • Data Diversity: ChartUIE-8K significantly increased data diversity across queries, datasets, and chart types.
  • Query Realism: 94% of participants preferred ChartUIE-8K's queries, and 93% found them realistic and aligned with real-world use cases.
  • Test-Time Scaling (TTS): ChartAF-S proved effective as a verifier for TTS, leading to improved chart generation.
  • In-context Tuning: ChartAF-G's granular feedback significantly improved chart generation quality for various LLMs, even smaller ones.

Limitations and Future Work

  • Code Execution Errors: The current feedback mechanism assumes successful code execution. While the system allows for re-generations, code execution failures can still occur.
  • Language and Model Size: The current work is limited to English and does not extensively explore smaller LLMs (e.g., 8B parameter models).
  • Future Work: The authors suggest expanding coverage to other languages and model sizes. They also highlight the potential for more advanced TTS approaches for chart generation and the importance of developing self-improving LLMs. They also emphasize the need for future evaluation sets to rigorously align with real-world use cases.

Summary updated

BibTeX
@inproceedings{koh2025c,
  author = {Woosung Koh and Jang Han Yoon and Minhyung Lee and Youngjin Song and Jaegwan Cho and Jaehyun Kang and Taehyeon Kim and Se-young Yun and Youngjae Yu and Bongshin Lee},
  title = {{C: Scalable Auto-Feedback for LLM-based Chart Generation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.232},
}
Figure