atlas

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

Towards General Loop Invariant Generation: A Benchmark of Programs with Memory Manipulation

NeurIPS 2024 · Large language models › Agents, code and math · approach: Execution-based code verification · 6 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.

Introduces LIG-MM, a 312-program benchmark of loop invariant generation for memory-manipulating programs, and LLM-SE, which fine-tunes CodeGen-350M with self-supervised predicate recovery and couples it with symbolic execution and an entailment solver.

Problem

Loop invariant generation has been limited to numerical programs; programs with linked data structures and memory manipulation (shape and memory safety verification) lack benchmarks and effective automated methods.

Approach

Self-supervised fine-tuning of an LLM on synthetic predicate-recovery tasks built by splitting inductive separation-logic predicate definitions (with augmentation and mix-up), then an interactive loop where the LLM proposes separating conjuncts that are checked by symbolic execution and an entailment solver.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LLM-SE instead of SLINGLoop invariant generation on LIG-MM · LIG-MM (312 programs), Pass Rate @ 1pass rate: 12.82% -> 38.78%Helped
Use LLM-SE instead of SLINGLoop invariant generation on LIG-MM · LIG-MM (312 programs), Pass Rate @ 8pass rate: 21.79% -> 42.95%Helped

Surprising findings

Limitations

Experimental setup

Datasets: LIG-MM SV-COMP 2022 programs SLING benchmarks Linux Kernel programs GlibC programs LiteOS programs Zephyr programs course homework programs

Benchmarks: LIG-MM

Metrics: Pass Rate @ 1 Pass Rate @ 8

Baselines: SLING AutoSpec GPT-4

Builds on: CodeGen SLING LoopInvGen AutoSpec

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