InsightChain: Optimized Chain-of-Insight Analytics for LLM-driven Data Visualization
Organizations: Huawei Technologies Co., Ltd.
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.
Figures & tables
| In-domain (n=35) | Cross-domain (n=135) | ||||||||
| Task model | Method | IPM | IPM | ||||||
| Gemini 3 Flash | InsightChain (pre-APO) | 7.24 | – | – | – | 7.38 | – | – | – |
| Single-shot 4-prompt | 6.05 | 6.38 | |||||||
| LIDA | 5.79 | 5.93 | |||||||
| MIPROv2 | 7.20 | – | 7.15 | – | |||||
| COPRO | 7.08 | – | 7.05 | – | |||||
| Chain | Single | LIDA | |||
| (a) Other Evaluation Metrics ( ) | |||||
| CLIP img–cap. | |||||
| C2T BLEU | – | – | |||
| LIDA VLM | |||||
| IPM (ours) | 7.36 | ||||
| (b) Judge-free Code Validation ( ) | |||||
| In-dom ( ) | Cross-dom ( ) | |||||
| Variant | IPM | IPM | ||||
| Hybrid | ||||||
| + Mod 1 | ||||||
| + Mod 2 | ||||||
| + Mod 3 | ||||||
| VG-COPRO | ||||||
| Split | n | Chain | Single-shot | ||
| In-domain | 35 | ||||
| Cross-domain | 135 |
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Dimension | MAE | h IPM | ||
| Exploration Breadth | ||||
| Focus Relevance | ||||
| Hypothesis Rigor | ||||
| Insight Communication | ||||
| Visual Quality | ||||
| Composite |
| (a) Per-dimension self-consistency ( runs) | |||
| Dimension | n | ||
| Exploration Breadth | 100 | ||
| Focus Relevance | 100 | ||
| Hypothesis Rigor | 100 | ||
| Insight Communication | 100 | ||
| Visual Quality | 0 99 | ||
| Source | Pairs | Construction |
| Seed pair | Same dataset and prompt; different seed | |
| Regeneration | Same dataset and quality regime | |
| Metric-close | Same regime, different datasets, |
| Metric | Multi- stage | Vision- judged | Faithful- ness gate | Insight- aware | Spec- free |
| nvBench-style spec match ( Luo et al., 2021 ) | ✗ | ✗ | ✗ | ✗ | ✗ |
| Chart-to-Text BLEU ( Kantharaj et al., 2022 ) | ✗ | ✗ | ✗ | ✗ | ✓ |
| CLIP ( Radford et al., 2021 ) | ✗ | ✓ | ✗ | ✗ | ✓ |
| LIDA partial VLM eval ( Dibia, 2023 ) | ✗ | partial | ✗ | partial | ✓ |
| InsightBench rubric ( Sahu et al., 2025 ) | text only | ✗ | ✗ | ✓ | ✓ |
| IPM (ours) | ✓ | ✓ | ✓ | ✓ | ✓ |
| Method | Search algorithm | What is searched |
| MIPROv2 | Bayesian / TPE | instr. + demos |
| COPRO | Coordinate ascent | instr. only |
| OPRO | LLM-as-optimizer | instr. only |
| EvoPrompt | Evolutionary | instr. only |
| Plan-and-Solve | none (template) | — |
| Benchmark | # Datasets | Domains | Multi- step | Cross- domain | Insight Metric | Vision Judge |
| nvBench ( Luo et al., 2021 ) | 750 | Narrow | ✗ | ✗ | ✗ a | ✗ |
| Prompt4Vis ( Li et al., 2025a ) | subset | Narrow | ✗ | ✗ | ✗ | ✗ |
| Chart-to-Text ( Kantharaj et al., 2022 ) | 44k | – | ✗ | ✗ | ✗ b | ✗ |
| LIDA exemplars ( Dibia, 2023 ) | ad-hoc | Few | ✗ | ✗ | ✗ | Partial |
| InsightBench ( Sahu et al., 2025 ) | 100 | Mixed | Text-only | ✗ | Text | ✗ |
| InsightEval ( Zhu et al., 2026 ) | – | Mixed | Text-only | ✗ | Text | ✗ |
| Source | # | % |
| TidyTuesday (community-curated) | 55 | 19.3 |
| OpenML (keyword search per domain) | 53 | 18.6 |
| Other public CSV (Kaggle / project pages) | 130 | 45.6 |
| World Bank, FRED & other macro feeds | 11 | 3.9 |
| UCI ML Repository | 8 | 2.8 |
| Yfinance / equity feeds | 4 | 1.4 |
| Split | n | Source |
| Train | 95 | 5 train dom. 19 |
| Val | 20 | 5 train dom. 4 |
| In-domain test | 35 | 5 train dom. 7 |
| Cross-domain test | 135 | 5 hold-out dom. (all) |