VisCoder: Fine-Tuning LLMs for Executable Python Visualization Code Generation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) often struggle with visualization tasks like plotting diagrams, charts, where success depends on both code correctness and visual semantics. Existing instruction-tuning datasets lack execution-grounded supervision and offer limited support for iterative code correction, resulting in fragile and unreliable plot generation. We present VisCode-200K, a large-scale instruction tuning dataset for Python-based visualization and self-correction. It contains over 200K examples from two sources: (1) validated plotting code from open-source repositories, paired with natural language instructions and rendered plots; and (2) 45K multi-turn correction dialogues from Code-Feedback, enabling models to revise faulty code using runtime feedback. We fine-tune Qwen2.5-Coder-Instruct on VisCode-200K to create VisCoder, and evaluate it on PandasPlotBench. VisCoder significantly outperforms strong open-source baselines and approaches the performance of proprietary models like GPT-4o-mini. We further adopt a self-debug evaluation protocol to assess iterative repair, demonstrating the benefits of feedback-driven learning for executable, visually accurate code generation.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 12 of its 28 references that are in the map. First posted on arXiv 4 Jun 2025.
Builds on
12 of 28 references.
References · 12
- 2024SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuningcited by 355
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 151
- 2025CAD-Llama: Leveraging Large Language Models for Computer-Aided Design Parametric 3D Model Generationcited by 67
- 2025Scaling Text-Rich Image Understanding via Code-Guided Synthetic Multimodal Data Generationcited by 58
- 2024LeDex: Training LLMs to Better Self-Debug and Explain Codecited by 40
- 2024WaitGPT: Monitoring and Steering Conversational LLM Agent in Data Analysis with On-the-Fly Code Visualizationcited by 39
- 2025Multi-Turn Code Generation Through Single-Step Rewardscited by 28
- 2024Drawing Pandas: A Benchmark for LLMs in Generating Plotting Codecited by 23
- 2025Revisit Self-Debugging with Self-Generated Tests for Code Generationcited by 22
- 2024Vi(E)va LLM! A Conceptual Stack for Evaluating and Interpreting Generative AI-based Visualizationscited by 10
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Modelscited by 7
Built on by
Citing papers per year: 2025: 5; 2026: 12.
17 papers.
Sort:
By area:
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2026AI for Auto-Research: Roadmap & User Guidecited by 11
- 2025JanusCoder: Towards a Foundational Visual-Programmatic Interface for Code Intelligencecited by 9
- 2026Scientific Image Synthesis: Benchmarking, Methodologies, and Downstream Utilitycited by 8
- 2026VisPhyWorld: Probing Physical Reasoning via Code-Driven Video Reconstructioncited by 7
- 2025Code Aesthetics with Agentic Reward Feedbackcited by 6
- 2025VisCoder2: Building Multi-Language Visualization Coding Agentscited by 6
- 2026DiscoverLLM: From Executing Intents to Discovering Themcited by 6
- 2026Beyond NL2Code: A Structured Survey of Multimodal Code Intelligencecited by 6
- 2025InteractScience: Programmatic and Visually-Grounded Evaluation of Interactive Scientific Demonstration Code Generationcited by 4
- 2026RealChart2Code: Advancing Chart-to-Code Generation with Real Data and Multi-Task Evaluationcited by 4
- 2026Rubrics as Visual-Repair Context for Self-Evolving UI-to-Code Generationcited by 2
5 more
- 2026DV-World: Benchmarking Data Visualization Agents in Real-World Scenarioscited by 1
- 2026Dashboard2Code: Evaluating Multimodal Models on Reconstructing Interactive Dashboardscited by 1
- 2026EdiTikZ: Scientific Figure Editing from Revision Trajectoriescited by 1
- 2026Leum-VL Technical Reportcited by 0
- 2026PrismaCoder: Pushing the Boundaries of Open Multimodal Code Intelligence through Decomposed Rubric Synthesiscited by 0
- 2026PrismaCoder: Pushing the Boundaries of Open Multimodal Code Intelligence through Decomposed Rubric Synthesis14 Oct 2026
- 2026EdiTikZ: Scientific Figure Editing from Revision Trajectories1 Sep 2026
- 2026Rubrics as Visual-Repair Context for Self-Evolving UI-to-Code Generation25 Aug 2026
- 2026Dashboard2Code: Evaluating Multimodal Models on Reconstructing Interactive Dashboards6 Jul 2026
- 2026Beyond NL2Code: A Structured Survey of Multimodal Code Intelligence14 Jun 2026
- 2026AI for Auto-Research: Roadmap & User Guide18 May 2026
- 2026DV-World: Benchmarking Data Visualization Agents in Real-World Scenarios28 Apr 2026
- 2026RealChart2Code: Advancing Chart-to-Code Generation with Real Data and Multi-Task Evaluation26 Mar 2026
- 2026Leum-VL Technical Report20 Mar 2026
- 2026VisPhyWorld: Probing Physical Reasoning via Code-Driven Video Reconstruction9 Feb 2026
- 2026DiscoverLLM: From Executing Intents to Discovering Them3 Feb 2026
- 2026Scientific Image Synthesis: Benchmarking, Methodologies, and Downstream Utility17 Jan 2026
5 more
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025JanusCoder: Towards a Foundational Visual-Programmatic Interface for Code Intelligence27 Oct 2025
- 2025Code Aesthetics with Agentic Reward Feedback27 Oct 2025
- 2025VisCoder2: Building Multi-Language Visualization Coding Agents24 Oct 2025
- 2025InteractScience: Programmatic and Visually-Grounded Evaluation of Interactive Scientific Demonstration Code Generation10 Oct 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Code Aesthetics with Agentic Reward Feedbackcited by 6
- 2025VisCoder2: Building Multi-Language Visualization Coding Agentscited by 6
- 2026DV-World: Benchmarking Data Visualization Agents in Real-World Scenarioscited by 1
- 2026DV-World: Benchmarking Data Visualization Agents in Real-World Scenarios28 Apr 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Code Aesthetics with Agentic Reward Feedback27 Oct 2025
- 2025VisCoder2: Building Multi-Language Visualization Coding Agents24 Oct 2025
- 2026AI for Auto-Research: Roadmap & User Guidecited by 11
- 2025JanusCoder: Towards a Foundational Visual-Programmatic Interface for Code Intelligencecited by 9
- 2026DiscoverLLM: From Executing Intents to Discovering Themcited by 6
- 2026Beyond NL2Code: A Structured Survey of Multimodal Code Intelligencecited by 6
- 2025InteractScience: Programmatic and Visually-Grounded Evaluation of Interactive Scientific Demonstration Code Generationcited by 4
- 2026Dashboard2Code: Evaluating Multimodal Models on Reconstructing Interactive Dashboardscited by 1
- 2026Leum-VL Technical Reportcited by 0
- 2026PrismaCoder: Pushing the Boundaries of Open Multimodal Code Intelligence through Decomposed Rubric Synthesiscited by 0
- 2026PrismaCoder: Pushing the Boundaries of Open Multimodal Code Intelligence through Decomposed Rubric Synthesis14 Oct 2026
- 2026Dashboard2Code: Evaluating Multimodal Models on Reconstructing Interactive Dashboards6 Jul 2026
- 2026Beyond NL2Code: A Structured Survey of Multimodal Code Intelligence14 Jun 2026
- 2026AI for Auto-Research: Roadmap & User Guide18 May 2026
- 2026Leum-VL Technical Report20 Mar 2026
- 2026DiscoverLLM: From Executing Intents to Discovering Them3 Feb 2026
- 2025JanusCoder: Towards a Foundational Visual-Programmatic Interface for Code Intelligence27 Oct 2025
- 2025InteractScience: Programmatic and Visually-Grounded Evaluation of Interactive Scientific Demonstration Code Generation10 Oct 2025