CLPLMay 12, 2020

Semantic Scaffolds for Pseudocode-to-Code Generation

arXiv:2005.05927v11004 citations
AI Analysis

This addresses program synthesis from natural language for developers, offering incremental efficiency gains.

The paper tackles pseudocode-to-code generation by introducing semantic scaffolds to guide program search, achieving a 10% absolute improvement in top-100 accuracy and requiring only 11 candidates to match previous top-3000 performance on the SPoC dataset.

We propose a method for program generation based on semantic scaffolds, lightweight structures representing the high-level semantic and syntactic composition of a program. By first searching over plausible scaffolds then using these as constraints for a beam search over programs, we achieve better coverage of the search space when compared with existing techniques. We apply our hierarchical search method to the SPoC dataset for pseudocode-to-code generation, in which we are given line-level natural language pseudocode annotations and aim to produce a program satisfying execution-based test cases. By using semantic scaffolds during inference, we achieve a 10% absolute improvement in top-100 accuracy over the previous state-of-the-art. Additionally, we require only 11 candidates to reach the top-3000 performance of the previous best approach when tested against unseen problems, demonstrating a substantial improvement in efficiency.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes