Research map / Large language models / Language, safety and interpretability
PlotCoder: Hierarchical Decoding for Synthesizing Visualization Code in Programmatic Context
Xinyun Chen, Linyuan Gong, Alvin Cheung, Dawn Song
University of California, Berkeley
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
5improved
2no clear effect
3hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add hierarchical decoding (sketch then data) (ablation) | PlotCoder · Test (hard) program accuracy | program accuracy: 30.20% -> 34.79% | Improved |
| add NL-code linking (ablation) | PlotCoder · Test (hard) program accuracy | program accuracy: 29.98% -> 30.20% | Improved |
| add copy mechanism, linking and hierarchy over plain LSTM (ablation) | LSTM baseline · Test (hard) plotted data accuracy | plotted data accuracy: 29.87% -> 40.16% | Improved |
| train on canonicalized target code (ablation) | PlotCoder · Test (hard) program accuracy | program accuracy: 20.58% -> 34.79% | Improved |
| replace LSTM encoder with pre-trained RoBERTa (ablation) | PlotCoder · Test (hard) program accuracy | program accuracy: 34.79% -> 32.77% | Hurt |
| replace LSTM encoder with pre-trained CodeBERT (ablation) | PlotCoder · Test (hard) program accuracy | program accuracy: 34.79% -> 33.11% | Hurt |
| replace LSTM encoder with pre-trained RoBERTa (ablation) | PlotCoder · Test (hard) plot type accuracy | plot type accuracy: 70.58% -> 65.21% | Hurt |
| add natural language description to input (ablation) | PlotCoder · Test (hard) program accuracy | program accuracy: 27.52% -> 34.79% | Improved |
| add distant dataframe code context (ablation) | PlotCoder · Test (hard) program accuracy | program accuracy: 34.34% -> 34.79% | No clear effect |
| add hierarchical decoding (sketch then data) (ablation) | PlotCoder · Dev (gold) program accuracy | program accuracy: 47.37% -> 47.37% | No clear effect |
Open problems in data and evaluation methodology
Do LLM-based data and evaluation methods hold beyond English, one domain and a few models?
- Results come from one narrow domain and may not carry over. · 25 papers state it
- Larger and closed models are untested. · 20 papers state it
- Data and tests are in English or one other language only. · 19 papers state it
Closest papers by meaning
- Plot2Code: A Comprehensive Benchmark for Evaluating Multi-modal Large Language Models in Code Generation from Scientific Plots (NAACL 2025 · similarity 0.90)
- PlotGen-Bench: Evaluating VLMs on Generating Visualization Code from Diverse Plots across Multiple Libraries (ACL 2026 · similarity 0.90)
- VisCoder2: Building Multi-Language Visualization Coding Agents (ICLR 2026 · similarity 0.89)
- PlotCraft: Pushing the Limits of LLMs for Complex and Interactive Data Visualization (ICML 2026 · similarity 0.89)
- VisCoder: Fine-Tuning LLMs for Executable Python Visualization Code Generation (EMNLP 2025 · similarity 0.88)
- JanusCoder: Towards a Foundational Visual-Programmatic Interface for Code Intelligence (ICLR 2026 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.