VisCoder2: Building Multi-Language Visualization Coding Agents

Yuansheng Ni 1 , Songcheng Cai 1 , Xiangchao Chen 1 , Jiarong Liang 1 , Zhiheng Lyu 1 , Jiaqi Deng 3 , Ping Nie 5 , Kai Zou 4 , Fei Yuan 5 , Xiang Yue 2 , Wenhu Chen 1 1 University of Waterloo, 2 Carnegie Mellon University, 3 Korea Advanced Institute of Science & Technology, 4 Netmind.ai, 5 Independ · 2025

Read VisCoder2: Building Multi-Language Visualization Coding Agents by Yuansheng Ni 1 , Songcheng Cai 1 , Xiangchao Chen 1 , Jiarong Liang 1 , Zhiheng Lyu 1 , Jiaqi Deng 3 , Ping Nie 5 , Kai Zou 4 , Fei Yuan 5 , Xiang Yue 2 , Wenhu Chen 1 1 University of Waterloo, 2 Carnegie Mellon University, 3 Korea Advanced Institute of Science & Technology, 4 Netmind.ai, 5 Independ (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-23642.txt.

Introduction

Yuansheng Ni and ten co-authors build resources for AI agents that write code to draw charts and plots. Large language models can now generate, run, and revise such code, yet practical use suffers from narrow language coverage, unreliable execution, and no way to fix mistakes over several rounds. Datasets and benchmarks built for one-shot, single-language tasks have held the field back.

The team answers with three pieces. VisCode-Multi-679K is a training set of 679 thousand checked, runnable visualization samples with multi-turn correction dialogues across twelve programming languages. VisPlotBench grades agents on executable tasks with rendered outputs, for both first tries and self-debugging rounds. Their model family, VisCoder2, trained on that data, clearly beat strong open-source rivals and neared proprietary systems like GPT-4.1. With iterative self-debugging, the largest model passed about eighty-two percent of executions.

Catalog record

CREATORYuansheng Ni 1 , Songcheng Cai 1 , Xiangchao Chen 1 , Jiarong Liang 1 , Zhiheng Lyu 1 , Jiaqi Deng 3 , Ping Nie 5 , Kai Zou 4 , Fei Yuan 5 , Xiang Yue 2 , Wenhu Chen 1 1 University of Waterloo, 2 Carnegie Mellon University, 3 Korea Advanced Institute of Science & Technology, 4 Netmind.ai, 5 Independ
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE89 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2510-23642

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

VisCoder2: Building Multi-Language Visualization Coding Agents Yuansheng Ni 1 , Songcheng Cai 1 , Xiangchao Chen 1 , Jiarong Liang 1 , Zhiheng Lyu 1 , Jiaqi Deng 3 , Ping Nie 5 , Kai Zou 4 , Fei Yuan 5 , Xiang Yue 2 , Wenhu Chen 1 1 University of Waterloo, 2 Carnegie Mellon University, 3 Korea Advanced Institute of Science & Technology, 4 Netmind.ai, 5 Independent Researcher https://tiger-ai-lab.github.io/VisCoder2 Abstract Large language models (LLMs) have recently enabled coding agents capable of generating, executing, and revising visualization code. However, existing models often fail in practical workflows due to limited language coverage, unreliable execution, and lack of iterative correction mechanisms. Progress has been constrained by narrow datasets and benchmarks that emphasize single-round generation and single-language tasks. To address these challenges, we introduce three complementary resources for advancing visualization coding agents. VisCode-Multi-679K is a large-scale, supervised dataset containing 679K validated and executable visualization samples with multi-turn correction dialogues across 12 programming languages. VisPlotBench is a benchmark for systematic evaluation, featuring executable tasks, rendered outputs, and protocols for both initial generation and multi-round self-debug. Finally, we present VisCoder2 , a family of multi-language visualization models trained on VisCode-Multi-679K. Experiments show that VisCoder2 significantly outperforms strong open-source baselines and approaches the performance of proprietary models like GPT-4.1, with further gains from iterative self-debug, reaching 82.4% overall execution pass rate at the 32B scale, particularly in symbolic or compiler-dependent languages. Figure 1: Overview of VisCoder2. We present three components: 1) VisCode-Multi-679K: a dataset of 679K executable visualization code pairs with multi-round correction dialogues across 12 programming languages; 2) VisPlotBench : spanning 8 languages with natural language instructions, executable code, and rendered outputs; 3) VisCoder2 : a family of visualization coding agents that iteratively execute, render, and self-debug, approaching the performance of proprietary models. 1 Introduction Recent advances in large language models (LLMs) have enabled coding agents Jimenez et al. 2023 ; Yang et al. 2024b that can generate visualization code, execute it, and even revise their outputs in response to feedback ( Robeyns et al. 2025 ; Li et al. 2025 ) . These agents are increasingly applied to data analysis and reporting workflows, where producing plots and diagrams is a central task ( Galimzyanov et al. 2024 ) . While existing models can attempt these steps, they often fail in practice: generating code that crashes, produces incorrect visuals, or lacks flexibility across programming languages and libraries ( Goswami et al. 2025 ) . Building more reliable visualization coding agents requires resources that go beyond single-round generation, supporting multi‑language coverage, runtime validation, and iterative correction through execution feedback ( Yang et al. 2023 ) . However, current datasets and benchmarks lack these capabilities, limiting progress toward agents that can effectively assist in real‑world visualization workflows ( Ni et al. 2025 ) . Visualization presents a uniquely valuable setting for advancing these agents. Unlike general‑purpose code generation ( Li et al. 2022 ) , visualization tasks produce clear and interpretable outputs: the execution process and rendered figure provide an immediate signal of whether the code executed successfully and whether the output aligns with the intended result ( Ni et al. 2025 ) . Moreover, visualization requires cross‑domain reasoning, combining knowledge of data handling, plotting syntax, and design conventions ( Satyanarayan et al. 2016 ) . Crucially, real‑world workflows are inherently iterative — analysts rarely produce perfect visualizations on the first attempt, instead refining their code based on runtime behavior and visual inspection ( Goswami et al. 2025 ) . This natural feedback loop makes visualization tasks especially well‑suited for developing agents that can generate and self‑correct code ( Chen et al. 2023 ) . Despite this potential, existing resources for visualization code generation remain narrow in scope. Most datasets focus on single languages, such as Python or Vega‑Lite ( Galimzyanov et al. 2024 ; Luo et al. 2021 ) , and include many snippets that cannot be executed reliably ( Ni et al. 2025 ) . They lack validated, executable samples, and they do not provide the multi‑turn interactions needed to train models for iterative debugging ( Ni et al. 2025 ) . Existing benchmarks also have significant gaps: they emphasize single-round generation and do not support systematic evaluation across languages or multi‑round repair scenarios ( Yang et al. 2023 ) . As a result, current models are tested in settings that fail to capture the complexity of real‑world visualization development ( Goswami et al. 2025 ) . To address these limitations, we introduce two complementary resources. First, we present VisCode‑Multi‑679K , a large‑scale supervised instruction‑tuning dataset comprising 679K executable visualization and code‑correction samples across twelve programming languages. VisCode‑Multi‑679K combines validated visualization code extracted from diverse open‑source repositories ( Lozhkov et al. 2024 ; Yang et al. 2025a ; Rodriguez et al. 2025 ) with multi‑turn dialogues that teach models to revise faulty code based on execution feedback ( Zheng et al. 2024 ) . Second, we propose VisPlotBench , a benchmark for evaluating visualization coding agents across eight languages. VisPlotBench provides carefully curated, executable tasks with natural language instructions and rendered outputs, along with a standardized evaluation protocol for both initial generation and multi‑round self‑debug ( Galimzyanov et al. 2024 ) . Finally, we train VisCoder2 , a family of multi‑language visualization models built on VisCode‑Multi‑679K. VisCoder2 substantially outperforms size‑matched open‑source baselines ( Hui et al. 2024 ; Guo et al. 2024a ; Ni et al. 2025 ) and closes much of the performance gap with proprietary models such as GPT‑4.1 ( Fachada et al. 2025 ) . Experiments show that iterative self-debug yields further improvements, reaching 82.4% at the 32B scale, on par with GPT-4.1 and surpassing GPT-4.1-mini , particularly benefiting symbolic or compiler-dependent languages like LilyPond , LaTeX , and Asymptote . Together, VisCode‑Multi‑679K , VisPlotBench , and VisCoder2 establish a foundation for building and evaluating visualization coding agents that can operate reliably across diverse programming languages and real‑world visualization tasks. 2 Related Work LLMs for Visualization Code Generation Large language models have shown promising results in generating visualization code from natural language descriptions ( Yang et al. 2024c ; Chen et al. 2024 ; Galimzyanov et al. 2024 ) . Most existing approaches focus on single languages, particularly Python with matplotlib or plotly ( Wu et al. 2024 ; Yang et al. 2024a ) , while some explore specification-based methods using Vega-Lite ( Xie et al. 2024 ) . However, these systems face significant limitations: they typically support only one or two programming languages, lack systematic execution validation, and often generate code that fails to run reliably ( Ni et al. 2025 ) . Multi-language code generation efforts in broader domains ( Lozhkov et al. 2024 ; Muennighoff et al. 2023 ) provide extensive language coverage but lack the specialized knowledge required for visualization tasks, particularly for domain-specific languages like LaTeX for mathematical plots or LilyPond for musical notation. Our VisCode-Multi-679K dataset addresses these limitations by providing validated, executable visualization samples across twelve programming languages, enabling robust multi-language visualization code generation with systematic quality control and execution verification. Self-Debug and Coding Agents Recent advances in coding agents have emphasized iterative development capabilities, where models can generate, execute, and refine code through

Read the complete text