Lune

ACL2021顶会

PlotCoder: Hierarchical Decoding for Synthesizing Visualization Code in Programmatic Context

Xinyun Chen, Linyuan Gong, Alvin Cheung, Dawn Song

摘要

Creating effective visualization is an important part of data analytics. While there are many libraries for creating visualizations, writing such code remains difficult given the myriad of parameters that users need to provide. In this paper, we propose the new task of synthesizing visualization programs from a combination of natural language utterances and code context. To tackle the learning problem, we introduce PLOTCODER, a new hierarchical encoder-decoder architecture that models both the code context and the input utterance. We use PLOTCODER to first determine the template of the visualization code, followed by predicting the data to be plotted. We use Jupyter notebooks containing visualization programs crawled from GitHub to train PLOTCODER. On a comprehensive set of test samples from those notebooks, we show that PLOTCODER correctly predicts the plot type of about 70% samples, and synthesizes the correct programs for 35% samples, performing 3-4.5% better than the baselines. 1

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Tasks 引用了 DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
  • VizSmith: Automated Visualization Synthesis by Mining Data-Science Notebooks 引用了 Falx: Synthesis-Powered Visualization Authoring
  • Contextualized Data-Wrangling Code Generation in Computational Notebooks 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Contextualized Data-Wrangling Code Generation in Computational Notebooks 引用了 VizSmith: Automated Visualization Synthesis by Mining Data-Science Notebooks
  • Contextualized Data-Wrangling Code Generation in Computational Notebooks 引用了 DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
  • TransRepair: Context-aware Program Repair for Compilation Errors 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Falx: Synthesis-Powered Visualization Authoring 引用了 Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data Scientists
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. DS-1000: A Natural and Reliable Benchmark for Data Science Code GenerationYuhang Lai, Chengxi Li, Yiming Wang, Tianyi Zhang 等ICML 2023 · 504 次引用
  2. Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle TasksLinyuan Gong, Sida Wang, Mostafa Elhoushi, Alvin CheungICML 2024 · 33 次引用
  3. TransRepair: Context-aware Program Repair for Compilation ErrorsXueyang Li, Shangqing Liu, Ruitao Feng, Guozhu Meng 等ASE 2022 · 31 次引用
  4. VizSmith: Automated Visualization Synthesis by Mining Data-Science NotebooksRohan Bavishi, Shadaj Laddad, Hiroaki Yoshida, Mukul R. Prasad 等ASE 2021 · 7 次引用
  5. Contextualized Data-Wrangling Code Generation in Computational NotebooksJunjie Huang, Daya Guo, Chenglong Wang, Jiazhen Gu 等ASE 2024 · 5 次引用

它引用的 Paper4

  1. CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan 等EMNLP Findings 2020 · 2,828 次引用
  2. Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data ScientistsIan Drosos, Titus Barik, Philip J. Guo, Robert DeLine 等CHI 2020 · 110 次引用
  3. RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL ParsersBailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov 等ACL 2020 · 39 次引用
  4. Falx: Synthesis-Powered Visualization AuthoringChenglong Wang, Yu Feng, Rastislav Bodík, Isil Dillig 等CHI 2021 · 35 次引用

相关 Paper

  1. PlotCraft: Pushing the Limits of LLMs for Complex and Interactive Data VisualizationJiajun Zhang, Jianke Zhang, Zeyu Cui, Jiaxi Yang 等ICML 2026
  2. Visualization by exampleChenglong Wang, Yu Feng, Rastislav Bodík, Alvin Cheung 等POPL 2020 · 36 次引用
  3. NL2Viz: natural language to visualization via constrained syntax-guided synthesisZhengkai Wu, Vu Le, Ashish Tiwari, Sumit Gulwani 等FSE 2022 · 10 次引用
  4. PlotGen-Bench: Evaluating VLMs on Generating Visualization Code from Diverse Plots across Multiple LibrariesYi Zhao, Zhen Yang, Shuaiqi Duan, Wenmeng Yu 等ACL Findings 2026
  5. Dashboard2Code: Evaluating Multimodal Models on Reconstructing Interactive DashboardsTianhao Niu, Ziyu Han, Qiguang Chen, Shiqi Zhou 等ACL 2026
黄昏的海面,两侧是细线勾勒的悬崖