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
Read the paperPlace an idea next to itCheck your own paper ↗
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 |
|---|---|---|---|
| fine-tune PaLM 62B on Python code (ablation) | PaLM 62B · ARCADE New Tasks | pass@30: 26.0 -> 39.8 | Improved |
| continue fine-tuning on Jupyter notebooks (ablation) | Python-finetuned PaLM 62B · ARCADE New Tasks | pass@30: 39.8 -> 48.6 | Improved |
| continue fine-tuning on Jupyter notebooks (ablation) | Python-finetuned PaLM 62B · ARCADE Existing Tasks | pass@30: 74.7 -> 78.3 | Improved |
| add NL schema description of DataFrames to prompt (ablation) | Notebook-tuned PaLM 62B · ARCADE New Tasks | pass@30: 37.2 -> 48.6 | Improved |
| add NL schema description of DataFrames to prompt (ablation) | Notebook-tuned PaLM 62B · ARCADE Existing Tasks | pass@30: 75.5 -> 78.3 | Improved |
| 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 · ARCADE | pass@30 | No clear effect |
| add step-by-step (SbS) few-shot exemplars (ablation) | Notebook-tuned PaLM 62B · ARCADE New Tasks | pass@30: 6% absolute for first two problem rounds | Improved |
| add vanilla-style few-shot exemplars (ablation) | Notebook-tuned PaLM 62B · ARCADE New Tasks | pass@k | No clear effect |
| add NL explanations on top of SbS with preamble (ablation) | Notebook-tuned PaLM 62B · ARCADE New Tasks | pass@30 | No clear effect |
| use SbS prompting with explanations for self-consistency reranking | Notebook-tuned PaLM 62B · ARCADE New Tasks | self-consistency accuracy (1 sample) | Improved |
| add SbS exemplars (more diverse solutions) | Notebook-tuned PaLM 62B · ARCADE New Tasks | unique API sequences / output clusters | Improved |
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.
- PaLM 62B — PALM: Pre-training an Autoencoding&Autoregressive Language Model for Context-conditioned Generation (EMNLP 2020) · better on 4 of 4 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?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- MapCoder: Multi-Agent Code Generation for Competitive Problem Solving (ACL 2024 · similarity 0.87)
- DA-Code: Agent Data Science Code Generation Benchmark for Large Language Models (EMNLP 2024 · similarity 0.87)
- DSCodeBench: A Realistic Benchmark for Data Science Code Generation (AAAI 2026 · similarity 0.87)
- SciCode: A Research Coding Benchmark Curated by Scientists (NeurIPS 2024 · similarity 0.86)
- BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions (ICLR 2025 · similarity 0.86)
- CodeSteer: Symbolic-Augmented Language Models via Code/Text Guidance (ICML 2025 · similarity 0.85)
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.