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

Abstract

Generating high-quality charts with Large Language Models (LLMs) is often hindered by the lack of objective evaluation metrics and the high cost of human-curated reference charts. We present the $C^2$ framework, which introduces CHARTAF, a reference-free automatic feedback system, and CHARTUIE-8K, a large-scale dataset for chart generation. By automating evaluation through visualization principles and binary reasoning, $C^2$ significantly enhances chart quality, with 84% of human users preferring post-feedback results.

1. Introduction

The generation of charts via LLMs involves a complex triplet of instruction, data, and code. Traditional evaluation methods rely on "gold standard" references, which are expensive to produce and limit the diversity of training data. The $C^2$ framework addresses these bottlenecks by moving toward reference-free evaluation, where an AI critic judges chart quality based on established visualization principles rather than simple comparison to a pre-existing example.

Overview of the C² framework showing the transition from an initial flawed chart to a refined post-feedback version.

2. Methodology: The CHARTAF Pipeline

The core of the $C^2$ framework is CHARTAF (Chart Auto-Feedback), a multi-stage pipeline designed to provide granular, actionable feedback to the LLM. It operates through three primary modules:

2.1 Decomposition and Criteria Generation

CHARTAF first decomposes a user query into three dimensions: Task (what to do), Purpose (why), and Audience (for whom). These factors are combined with "Basic Criteria" derived from visualization research (e.g., Tufte’s principles) to create query-specific (q-Specific) criteria.

2.2 Binary Evaluation and Feedback

To ensure reliability, these criteria are framed as binary (Yes/No) questions, as LLMs excel at binary reasoning.

  • CHARTAF-S: Generates a scalar score used for test-time scaling (selecting the best version from multiple outputs).
  • CHARTAF-G: Provides granular, code-centric feedback (Retain, Edit, Discard, Add) to guide the LLM in refining the visualization code.
Detailed architecture of the CHARTAF pipeline, illustrating the decomposition of queries into specific criteria and the generation of granular feedback.

3. Scaling Data with CHARTUIE-8K

By removing the reference bottleneck, the authors curated CHARTUIE-8K, a benchmark containing over 8,000 instances across 509 datasets and 63 chart types. This represents a massive increase in scale—nearly 6,000% more queries and a 1,936% increase in dataset variety compared to previous benchmarks like MatPlotBench.

4. Results and Key Insights

The framework's effectiveness was validated through both automated benchmarks and human studies:

  • Human Preference: In a double-blind study, 84% of participants preferred charts refined by CHARTAF over initial attempts.
  • Performance: CHARTAF-G outperformed nine specialized baselines across various LLM backbones, including GPT-4o, Claude 3.5, and Llama 3.1.
  • Binary Reasoning: A key finding is that LLMs are significantly more accurate when performing binary reasoning on specific design principles than when providing open-ended qualitative scores.

5. Limitations and Future Work

While $C^2$ marks a significant step forward, it is currently limited to English and depends on successful code execution to trigger visual feedback. Future research will explore advanced "test-time scaling" (TTS) to optimize inference compute and extend support to smaller "edge" models.

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