paper-with-me

Papers

SPoC: Search-based Pseudocode to Code

2019-06-12 · NeurIPS 2019 12 · Sumith Kulal, Panupong Pasupat, Kartik Chandra, Mina Lee, Oded Padon, Alex Aiken, Percy Liang

We consider the task of mapping pseudocode to long programs that are functionally correct. Given test cases as a mechanism to validate programs, we search over the space of possible translations of the pseudocode to find a program that passes the validation. However, without proper credit assignment to localize the sources of program failures, it is difficult to guide search toward more promising programs. We propose to perform credit assignment based on signals from compilation errors, which constitute 88.7% of program failures. Concretely, we treat the translation of each pseudocode line as a discrete portion of the program, and whenever a synthesized program fails to compile, an error localization method tries to identify the portion of the program responsible for the failure. We then focus search over alternative translations of the pseudocode for those portions. For evaluation, we collected the SPoC dataset (Search-based Pseudocode to Code) containing 18,356 programs with human-authored pseudocode and test cases. Under a budget of 100 program compilations, performing search improves the synthesis success rate over using the top-one translation of the pseudocode from 25.6% to 44.7%.

📄 PDF Abstract BibTeX arXiv:1906.04908

Code (1)

sumith1896/spoc pytorch

Tasks

Program SynthesisTranslation

Similar Papers 제목 키워드 기반

Semantic Scaffolds for Pseudocode-to-Code Generation

2020-05-12 · ACL 2020 6 · Ruiqi Zhong, Mitchell Stern, Dan Klein

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…

Code Generation

Simplifying Models with Unlabeled Output Data

2020-09-28 · Sang Michael Xie, Tengyu Ma, Percy Liang

We focus on prediction problems with high-dimensional outputs that are subject to output validity constraints, e.g. a pseudocode-to-code translation task where the code must compile. For these problems, labeled input-out…

Code TranslationImage GenerationTranslationvalid

Converting Epics/Stories into Pseudocode using Transformers

2023-12-08 · Gaurav Kolhatkar, Akshit Madan, Nidhi Kowtal, Satyajit Roy 외

The conversion of user epics or stories into their appropriate representation in pseudocode or code is a time-consuming task, which can take up a large portion of the time in an industrial project. With this research pap…

Machine Translation

Scaling Automatic Extraction of Pseudocode

2024-06-07 · Levent Toksoz, Gang Tan, C. Lee Giles

Pseudocode in a scholarly paper provides a concise way to express the algorithms implemented therein. Pseudocode can also be thought of as an intermediary representation that helps bridge the gap between programming lang…

Code GenerationOptical Character RecognitionOptical Character Recognition (OCR)

PseudoSeer: a Search Engine for Pseudocode

2024-11-19 · Levent Toksoz, Mukund Srinath, Gang Tan, C. Lee Giles

A novel pseudocode search engine is designed to facilitate efficient retrieval and search of academic papers containing pseudocode. By leveraging Elasticsearch, the system enables users to search across various facets of…