Research map / Large language models / Agents, code and math
Semantic Scaffolds for Pseudocode-to-Code Generation
Ruiqi Zhong, Mitchell Stern, Dan Klein
University of California, Berkeley
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
7improved
2no clear effect
1hurt
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 syntactic constraints (ablation) | best-first search without constraints · SPoC test, unseen workers (B=100) | fraction solved: 29.2% -> 59.3% | Improved |
| add symbol table constraints on top of syntactic (ablation) | Syntactic search · SPoC test, unseen workers (B=100) | fraction solved: 59.3% -> 62.6% | Improved |
| back off to syntactic constraints when SymTable finds no valid scaffold (ablation) | SymTable search · SPoC test, unseen workers (B=100) | fraction solved: 62.6% -> 62.8% | Improved |
| add scaffold-based constrained search | previous state of the art · SPoC test, unseen workers (B=100) | fraction solved: 53.7% -> 62.8% | Improved |
| hierarchical instead of regular beam search (Syntactic) (ablation) | beam width 200 regular · SPoC test, unseen workers (B=100) | fraction solved: 58.2% -> 59.3% | Improved |
| reduce hierarchical scaffold beam width from 50 to 10 under Syntactic (ablation) | hierarchical search · SPoC test, unseen workers (B=100) | fraction solved: 59.3% -> 59.1% | No clear effect |
| reduce hierarchical scaffold beam width from 25 to 10 under SymTable (ablation) | hierarchical search · SPoC test, unseen workers (B=100) | fraction solved: 61.9% -> 61.0% | Hurt |
| hierarchical (W=25) vs regular (W=200) beam search under SymTable (ablation) | SymTable search · SPoC test, unseen workers (B=100) | fraction solved: 61.9% vs 61.9% | No clear effect |
| hierarchical instead of regular beam search for program variation (ablation) | beam search · SPoC | fraction of divergences in first half: e.g. 56.8% -> 63.6% (length 20-30) | Improved |
| use scaffold search instead of brute-force reject-sampling (ablation) | unconstrained best-first search · SPoC | verifier-call-adjusted lead | Improved |
Open problems in execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- SPoC: Search-based Pseudocode to Code (NeurIPS 2019 · similarity 0.88)
- Abstract Syntax Networks for Code Generation and Semantic Parsing (ACL 2017 · similarity 0.88)
- Synchromesh: Reliable Code Generation from Pre-trained Language Models (ICLR 2022 · similarity 0.87)
- Language Models as Compilers: Simulating Pseudocode Execution Improves Algorithmic Reasoning in Language Models (EMNLP 2024 · similarity 0.87)
- LILO: Learning Interpretable Libraries by Compressing and Documenting Code (ICLR 2024 · similarity 0.87)
- Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs (NeurIPS 2025 · similarity 0.86)
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.