arXiv:2609.06438cs.CLSep 2026

Manuscript Offprint

arXiv:2609.06438

InsightChain: Optimized Chain-of-Insight Analytics for LLM-driven Data Visualization

Hanya Sun, Chen Zhang, Sheng Liang, Yongyue Zhang, Yong Liu

Abstract

Large language models (LLMs) are increasingly used for automated data visualization, yet existing approaches often frame visualization generation as a single-step mapping from user query to figure or code, overlooking the iterative analytical reasoning process of expert analysts. We present InsightChain, a four-stage visualization prompting pipeline (Explore–Focus–Test–Present) that emulates expert analytical workflows, together with VG-COPRO, a vision-guided automatic prompt optimization (APO) method adapted to jointly optimize such multi-stage, executable pipelines. To address the evaluation gap for complex data visualization, we introduce the Insight Progression Metric (IPM), a rubric combining four text-based dimensions with a vision-based dimension. We assess IPM through a 100-chain human pilot and an expanded 300-chain agent-based evaluation spanning all ten domains. Experiments on public datasets show that InsightChain consistently outperforms competing prompting baselines. Existing APO methods fail to yield consistent gains on this multi-stage task, whereas VG-COPRO improves performance in both in-domain and cross-domain settings.

1 Introduction

Large language models (LLMs) have significantly advanced automated data visualization (Dibia, 2023; Tian et al., 2025). However, most existing approaches treat visualization as a single-step mapping from query to executable code or rendered figure, bypassing intermediate validation (Cheng et al., 2023). This one-shot approach contradicts expert sensemaking workflows (Pirolli and Card, 2005), which are inherently iterative: analysts explore broad data distributions (Tukey, 1977), formulate specific hypotheses (Heer and Shneiderman, 2012), and refine visual encodings (Munzner, 2014)

to synthesize reliable insights (Sacha et al., 2014). By compressing this multi-stage reasoning into a single run, current LLM strategies often yield superficial visualizations that lack statistical rigor and fail to uncover deep insights in complex real-world data.

To bridge this gap, we introduce InsightChain, a multi-stage prompting pipeline that emulates expert workflows through four stages: Explore, Focus, Test, and Present. Because these stages are interdependent, optimizing their prompts requires feedback that accounts for downstream execution and the rendered output. We therefore study how existing automatic prompt optimization (APO) methods transfer to this setting and introduce VG-COPRO, a task-adapted method that combines COPRO's per-predictor search with OPRO-style proposal and vision-aware, pipeline-level evaluation.

Evaluating this form of multi-stage analysis is difficult because a table may support multiple valid analytical directions, leaving no unique reference insight or visualization, while final-output metrics cannot determine whether intermediate hypotheses are grounded in executed evidence. We therefore introduce the Insight Progression Metric (IPM), a rubric tailored to multi-step visualization tasks, for evaluating both the analytical trajectory and the final visualization. Our experiments address four questions: (1) how well IPM agrees with human evaluation, and how robustly it behaves across repeated and cross-family judgments; (2) whether the chain pipeline improves over non-chain prompting baselines across task models; (3) whether VG-COPRO yields consistent gains over the unoptimized chain and existing APO methods; and (4) whether the optimized prompts transfer when the Present stage is rendered by a text-to-image model. Our contributions are three-fold:

• We propose InsightChain, an execution-grounded prompting pipeline for automated

*Co-first Authors

†Corresponding Author data visualization that follows four stages of expert sensemaking: Explore, Focus, Test, and Present.

  • We systematically study how existing APO methods transfer to multi-stage, executable data analysis and introduce VG-COPRO, a task-adapted optimizer that combines dimension-level diagnostic feedback, a leave-one-domain-out robustness objective, and vision-aware evaluation.

  • We introduce the Insight Progression Metric (IPM), a rubric for evaluating multi-step visualization tasks, assess its agreement with human ratings, and examine its repeatability and cross-family robustness through agent-based judgments. Experiments across ten domains demonstrate the effectiveness of InsightChain and VG-COPRO, including transfer to a text-to-image renderer.

References (10)