scimeatlas

Research map / Large language models / Language, safety and interpretability

Natural Language to Code Generation in Interactive Data Science Notebooks

Pengcheng Yin, Wen-Ding Li, Kefan Xiao, Abhishek Rao, Yeming Wen, Kensen Shi, Joshua Howland, Paige Bailey, Michele Catasta, Henryk Michalewski, Alex Polozov, Charles Sutton

ACL 2023Large language models › Language, safety and interpretabilityapproach: Controlled text generationopen problems in this approach140 citations (OpenAlex)

Google

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
9improved
3no clear effect

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 changedWhereMeasuredEffect
fine-tune PaLM 62B on Python code (ablation)PaLM 62B · ARCADE New Taskspass@30: 26.0 -> 39.8Improved
continue fine-tuning on Jupyter notebooks (ablation)Python-finetuned PaLM 62B · ARCADE New Taskspass@30: 39.8 -> 48.6Improved
continue fine-tuning on Jupyter notebooks (ablation)Python-finetuned PaLM 62B · ARCADE Existing Taskspass@30: 74.7 -> 78.3Improved
add NL schema description of DataFrames to prompt (ablation)Notebook-tuned PaLM 62B · ARCADE New Taskspass@30: 37.2 -> 48.6Improved
add NL schema description of DataFrames to prompt (ablation)Notebook-tuned PaLM 62B · ARCADE Existing Taskspass@30: 75.5 -> 78.3Improved
increase notebook context from 1 cell to 3 cells (ablation)Notebook-tuned PaLM 62B · ARCADE (Existing / New Tasks)pass@30: 44% -> 72% (existing), 17% -> 36% (new)Improved
increase notebook context beyond 5-7 cells (ablation)Notebook-tuned PaLM 62B · ARCADEpass@30No clear effect
add step-by-step (SbS) few-shot exemplars (ablation)Notebook-tuned PaLM 62B · ARCADE New Taskspass@30: 6% absolute for first two problem roundsImproved
add vanilla-style few-shot exemplars (ablation)Notebook-tuned PaLM 62B · ARCADE New Taskspass@kNo clear effect
add NL explanations on top of SbS with preamble (ablation)Notebook-tuned PaLM 62B · ARCADE New Taskspass@30No clear effect
use SbS prompting with explanations for self-consistency rerankingNotebook-tuned PaLM 62B · ARCADE New Tasksself-consistency accuracy (1 sample)Improved
add SbS exemplars (more diverse solutions)Notebook-tuned PaLM 62B · ARCADE New Tasksunique API sequences / output clustersImproved

Earlier methods this paper compares with

Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.

Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.

Open problems in controlled text generation

How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy