atlas

Research map / Large language models / Agents, code and math

Lemur: Integrating Large Language Models in Automated Program Verification

ICLR 2024 · Large language models › Agents, code and math · approach: Execution-based code verification · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Lemur, a sound proof calculus that lets LLMs (GPT models) propose and repair program invariant sub-goals which automated verifiers (ESBMC, UAutomizer) check, and evaluates it on Code2Inv and hard SV-COMP benchmarks.

Problem

Automated program verification requires high-level abstract reasoning, such as decomposing a verification task into sub-goals/invariants, which conventional verifiers struggle to automate; prior LLM approaches lack formal soundness guarantees or require manual effort.

Approach

Formalize an interaction between LLM oracles (proposing and repairing sub-goal properties) and automated verifiers as a proof calculus with transition rules; LLM outputs are treated only as assumptions until verifiers prove implications, giving soundness, and an instantiated algorithm terminates.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add LLM-proposed proof goals and verifier-guided decompositionESBMC on the Code2Inv benchmarks · Code2Inv benchmarkssolved instances: 68 -> 107Helped
Add LLM-proposed proof goals and verifier-guided decompositionCode2Inv · Code2Inv benchmarkssolved instances: 92 -> 107Helped
Add LLM-proposed proof goals and verifier-guided decompositionESBMC on the 47 SV-COMP benchmarks · 47 SV-COMP benchmarkssolved instances: 1 -> 25Helped
Add LLM-proposed proof goals and verifier-guided decompositionUltimate Automizer on the 47 SV-COMP benchmarks · 47 SV-COMP benchmarkssolved instances: 1 -> 25Helped
Use GPT-4 instead of GPT-3.5 turbo as the LLM oracleLemur · Code2Inv benchmarkssolved instances: 103 -> 107Helped
Use GPT-4 instead of GPT-3.5 turbo as the LLM oracleLemur · 47 SV-COMP benchmarkssolved instances: 14 -> 25Helped
Use GPT-4 instead of GPT-3.5 turbo as the LLM oracleLemur · 47 SV-COMP benchmarksaverage time (s): 162.2 -> 234.5Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Code2Inv benchmarks (133) SV-COMP 2023 reachability benchmarks (47 selected)

Benchmarks: Code2Inv SV-COMP hard reachability benchmarks

Metrics: number of solved instances average time average number of proposals

Baselines: Code2Inv ESBMC UAutomizer GPT-3.5 turbo variant of Lemur

Builds on: Code2Inv k-induction predicate abstraction chain-of-thought

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy