paper-with-me

Papers

ALGO: Synthesizing Algorithmic Programs with LLM-Generated Oracle Verifiers

2023-05-24 · NeurIPS 2023 11 · Kexun Zhang, Danqing Wang, Jingtao Xia, William Yang Wang, Lei LI

Large language models (LLMs) excel at implementing code from functionality descriptions but struggle with algorithmic problems that require not only implementation but also identification of the suitable algorithm. Moreover, LLM-generated programs lack guaranteed correctness and require human verification. To address these challenges, we propose ALGO, a framework that synthesizes Algorithmic programs with LLM-Generated Oracles to guide the generation and verify their correctness. ALGO first generates a reference oracle by prompting an LLM to exhaustively enumerate all the combinations of relevant variables. This oracle is then utilized to guide an arbitrary search strategy in exploring the algorithm space and to verify the synthesized algorithms. Our study shows that the LLM-generated oracles are correct for 88% of the cases. With the oracles as verifiers, ALGO can be integrated with any existing code generation model in a model-agnostic manner to enhance its performance. Experiments show that when equipped with ALGO, we achieve an 8x better one-submission pass rate over the Codex model and a 2.6x better one-submission pass rate over CodeT, the current state-of-the-art model on CodeContests. We can also get 1.3x better pass rate over the ChatGPT Code Interpreter on unseen problems. The problem set we used for testing, the prompts we used, the verifier and solution programs, and the test cases generated by ALGO are available at https://github.com/zkx06111/ALGO.

📄 PDF Abstract BibTeX arXiv:2305.14591

Code (1)

zkx06111/algo 공식 구현

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Estimating Correctness Without Oracles in LLM-Based Code Generation

2025-06-26 · Thomas Valentin, Ardi Madadi, Gaetano Sapia, Marcel Böhme

Generating code from natural language specifications is one of the most successful applications of Large Language Models (LLMs). Yet, they hallucinate: LLMs produce outputs that may be grammatically correct but are factu…

Code Generation

Synthesizing Machine Learning Programs with PAC Guarantees via Statistical Sketching

2021-10-11 · Osbert Bastani

We study the problem of synthesizing programs that include machine learning components such as deep neural networks (DNNs). We focus on statistical properties, which are properties expected to hold with high probability …

BIG-bench Machine LearningClassificationimage-classificationImage Classification+1

Marginals-to-Models Reducibility

2013-12-01 · NeurIPS 2013 12 · Tim Roughgarden, Michael Kearns

We consider a number of classical and new computational problems regarding marginal distributions, and inference in models specifying a full joint distribution. We prove general and efficient reductions between a number …

Zeta Distribution and Transfer Learning Problem

2018-06-23 · Eray Özkural

We explore the relations between the zeta distribution and algorithmic information theory via a new model of the transfer learning problem. The program distribution is approximated by a zeta distribution with parameter n…

Transfer Learning

PAC Synthesis of Machine Learning Programs

2021-10-08 · NeurIPS Workshop AIPLANS 2021 12 · Osbert Bastani

We study the problem of synthesizing programs that include machine learning components such as deep neural networks (DNNs). We focus on statistical properties, which are properties expected to hold with high probability-…

BIG-bench Machine Learningimage-classificationImage ClassificationLearning Theory