Toward Reliable Scientific Visualization Pipeline Construction with Structure-Aware Retrieval-Augmented LLMs
On the map: Retrieval-augmented generation → RAG for code
Abstract (arXiv)
Scientific visualization pipelines encode domain-specific procedural knowledge with strict execution dependencies, making their construction sensitive to missing stages, incorrect operator usage, or improper ordering. Thus, generating executable scientific visualization pipelines from natural-language descriptions remains challenging for large language models, particularly in web-based environments where visualization authoring relies on explicit code-level pipeline assembly. In this work, we investigate the reliability of LLM-based scientific visualization pipeline generation, focusing on vtk.js as a representative web-based visualization library. We propose a structure-aware retrieval-augmented generation workflow that provides pipeline-aligned vtk.js code examples as contextual guidance, supporting correct module selection, parameter configuration, and execution order. We evaluate the proposed workflow across multiple multi-stage scientific visualization tasks and LLMs, measuring reliability in terms of pipeline executability and human correction effort. To this end, we introduce correction cost as metric for the amount of manual intervention required to obtain a valid pipeline. Our results show that structured, domain-specific context substantially improves pipeline executability and reduces correction cost. We additionally provide an interactive analysis interface to support human-in-the-loop inspection and systematic evaluation of generated visualization pipelines.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in RAG for code, one of 15 directions in Retrieval-augmented generation. Builds on 18 of its 40 references that are in the map. First posted on arXiv 17 Mar 2026.
Builds on
18 of 40 references.
References · 18
- 2025Qwen3 Technical Reportcited by 8,195
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2025OpenAI GPT-5 System Cardcited by 910
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2023ChartLlama: A Multimodal LLM for Chart Understanding and Generationcited by 158
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
- 2024MatPlotAgent: Method and Evaluation for LLM-Based Agentic Scientific Data Visualizationcited by 98
- 2023LIDA: A Tool for Automatic Generation of Grammar-Agnostic Visualizations and Infographics using Large Language Modelscited by 80
- 2023Data-Copilot: Bridging Billions of Data and Humans with Autonomous Workflowcited by 76
- 2023Chat2VIS: Generating Data Visualisations via Natural Language using ChatGPT, Codex and GPT-3 Large Language Modelscited by 58
6 more
- 2018Data2Vis: Automatic Generation of Data Visualizations Using Sequence to Sequence Recurrent Neural Networkscited by 47
- 2023Data Formulator: AI-powered Concept-driven Visualization Authoringcited by 31
- 2025NLI4VolVis: Natural Language Interaction for Volume Visualization via LLM Multi-Agents and Editable 3D Gaussian Splattingcited by 19
- 2024ChatVis: Automating Scientific Visualization with a Large Language Modelcited by 11
- 2025VizGenie: Toward Self-Refining, Domain-Aware Workflows for Next-Generation Scientific Visualizationcited by 8
- 2025AuraGenome: An LLM-Powered Framework for On-the-Fly Reusable and Scalable Circular Genome Visualizationscited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Toward Automated and Trustworthy Scientific Analysis and Visualization with LLM-Generated Code
- 2025ChatVis: Large Language Model Agent for Generating Scientific Visualizations
- 2025PlotGen-Bench: Evaluating VLMs on Generating Visualization Code from Diverse Plots across Multiple Libraries
- 2025Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimization
- 2026Beyond Static Charts: Can Language and Vision Language Models Generate Interactive Data Visualization Interfaces?
- 2026Figures as Interfaces: Toward LLM-Native Artifacts for Scientific Discovery
- 2026Do Large Language Models Understand Data Visualization Principles?
- 2026SciVisAgentBench: A Benchmark for Evaluating Scientific Data Analysis and Visualization Agents