paper-with-me

홈 › Papers

VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Search

2024-02-13 · David Brandfonbrener, Simon Henniger, Sibi Raja, Tarun Prasad, Chloe Loughridge, Federico Cassano, Sabrina Ruixin Hu, Jianang Yang, William E. Byrd, Robert Zinkov, Nada Amin

Large Language Models (LLMs) can generate useful code, but often the code they generate cannot be trusted to be sound. In this paper, we present VerMCTS, an approach to begin to resolve this issue by generating verified programs in Dafny and Coq. VerMCTS uses a logical verifier in concert with an LLM to guide a modified Monte Carlo Tree Search (MCTS). This approach leverages the verifier to gain intermediate feedback inside the search algorithm by checking partial programs at each step to estimate an upper bound on the value function. To measure the performance of VerMCTS, we develop a new suite of multi-step verified programming problems in Dafny and Coq. In terms of pass@T, a new metric which computes the pass rate given a budget of T tokens sampled from the LLM, VerMCTS leads to more than a 30% absolute increase in average pass@5000 across the suite over repeated sampling from the base language model. Our code and benchmarks are available at https://github.com/namin/llm-verified-with-monte-carlo-tree-search .

📄 PDF Abstract BibTeX arXiv:2402.08147

Code (1)

namin/llm-verified-with-monte-carlo-tree-search 공식 구현

Tasks

Language ModelingLanguage ModellingLarge Language Model

Methods 이 논문이 사용한 방법론

BASE 설명 없음

Similar 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 외

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. Moreo…

Code Generation

Ranking LLM-Generated Loop Invariants for Program Verification

2023-10-13 · Saikat Chakraborty, Shuvendu K. Lahiri, Sarah Fakhoury, Madanlal Musuvathi 외

Synthesizing inductive loop invariants is fundamental to automating program verification. In this work, we observe that Large Language Models (such as gpt-3.5 or gpt-4) are capable of synthesizing loop invariants for a c…

Re-Ranking

Show Your Work: Scratchpads for Intermediate Computation with Language Models

2021-11-30 · Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski 외

Large pre-trained language models perform remarkably well on tasks that can be done "in one pass", such as generating realistic text or synthesizing computer programs. However, they struggle with tasks that require unbou…

MM-Verify: Enhancing Multimodal Reasoning with Chain-of-Thought Verification

2025-02-19 · Linzhuang Sun, Hao Liang, Jingxuan Wei, Bihui Yu 외

According to the Test-Time Scaling, the integration of External Slow-Thinking with the Verify mechanism has been demonstrated to enhance multi-round reasoning in large language models (LLMs). However, in the multimodal (…

Multimodal Reasoning

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