Parsel: A Unified Natural Language Framework for Algorithmic Reasoning
Authors:
- Eric ZelikmanEZEric Zelikman
- Qian HuangQHQian Huang
- Gabriel PoesiaGPGabriel Poesia
- Noah D. GoodmanNGNoah D. Goodman
- Nick HaberNHNick Haber
Preprint
Abstract
Despite recent success in large language model (LLM) reasoning, LLMs still struggle with hierarchical multi-step reasoning like generating complex programs. In these cases, humans often start with a high-level algorithmic design and implement each part gradually. We introduce Parsel, a framework enabling automatic implementation and validation of complex algorithms with code LLMs, based on hierarchical function descriptions in natural language. Parsel can be used across domains requiring hierarchical reasoning, e.g. code synthesis, theorem proving, and robotic planning. We demonstrate Parsel's capabilities by using it to generate complex programs that cannot currently be automatically implemented from one description and backtranslating Python programs in the APPS dataset. Beyond modeling capabilities, Parsel allows problem-solving with high-level algorithmic designs, benefiting both students and professional programmers.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Prompting Is Programming: A Query Language for Large Language ModelsProceedings of the ACM on Programming Languages, 2023
- ProgPrompt: Generating Situated Robot Task Plans using Large Language Models2023
- Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems Using Natural Language2023
- Top-Down Synthesis for Library LearningProceedings of the ACM on Programming Languages, 2023
- Successive Prompting for Decomposing Complex Questions2022
- Provable Limitations of Acquiring Meaning from Ungrounded Form: What Will Future Language Models Understand?Transactions of the Association for Computational Linguistics, 2021
- Unsupervised Commonsense Question Answering with Self-Talk2020
- The status of the P versus NP problemCommunications of the ACM, 2009
- An algorithm for reduction of operator strengthCommunications of the ACM, 1977
- Human problem solving: The state of the theory in 1970.American Psychologist, 1971