HackerPapers

arXiv:2212.10561cs.CL

Parsel: Algorithmic Reasoning with Language Models by Composing Decompositions

Eric Zelikman, Qian Huang, Gabriel Poesia, Noah D. Goodman, Nick Haber

Abstract

Despite recent success in large language model (LLM) reasoning, LLMs struggle with hierarchical multi-step reasoning tasks like generating complex programs. For these tasks, 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. With Parsel, we automatically decompose algorithmic tasks into hierarchical natural language function descriptions and then search over combinations of possible function implementations using tests. We show that Parsel can be used across domains requiring hierarchical reasoning, including program synthesis and robotic planning. We find that, using Parsel, LLMs solve more competition-level problems in the APPS dataset, resulting in pass rates over 75\% higher than prior results from directly sampling AlphaCode and Codex, while often using a smaller sample budget. Moreover, with automatically generated tests, we find that Parsel can improve the state-of-the-art pass@1 performance on HumanEval from 67\% to 85\%. We also find that LLM-generated robotic plans using Parsel are more than twice as likely to be considered accurate than directly generated plans. Lastly, we explore how Parsel addresses LLM limitations and discuss how Parsel may be useful for human programmers. We release our code at https://github.com/ezelikman/parsel

arXiv comments
humaneval results, clarity
Journal reference
DOI
Subjects
cs.CLComputation and Language cs.AIArtificial Intelligence cs.LGMachine Learning

On Hacker News

Linked by 2 identifiable commenters in 3 comments across 3 threads, from Mar 2023 to Mar 2023.

Comments linking this paper, per year.

Discussed in comments3 threads

    • Yep. >Despite recent success in large language model (LLM) reasoning, LLMs struggle with hierarchical multi-step reasoning tasks like generating complex programs. For these tasks, humans often start with a high-level algorithmic design and implement each part gradually. We…

      sbierwagenView on HNParent context

  1. ChatGPT-Linux-Assistant 1 comment
    • There are many projects in the works that are having success with writing somewhat formal English language specifications and generating working software. One of my favorite recent projects is called Parsel: Parsel: A (De-)compositional Framework for Algorithmic Reasoning with…

      williamcottonView on HNParent context

    • I agree. My goal, which seems very achievable from my current research, is to write formal specifications in English and generate functioning code. One of my favorite recent projects is called Parsel: Parsel : A (De-)compositional Framework for Algorithmic Reasoning with…

      williamcottonView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.