scimeatlas

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

Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inference

Thanh Le-Cong, Bach Le, Toby Murray

ACL 2025Large language models › Agents, code and mathapproach: Code generation benchmarksopen problems in this approach40 citations (OpenAlex)

University of Melbourne

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
7improved
1no clear effect
4hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

This paper tried a common change: Chain-of-thought prompting

add chain-of-thought prompting on top of few-shot · FormalBench-Base · success rate (%): DeepSeek-V3 15.5 -> 16.2; GPT-4o 13.4 -> 13.4; Claude 14.7 -> 14.2 Mixed

What 2,675 accepted papers report for this change

See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add few-shot prompt with JML syntax instructions (ablation)DeepSeek-V3-671B · FormalBench-Basesuccess rate (%): 8.4 -> 15.5Improved
add few-shot prompt (ablation)LLMs · FormalBench-Basecompleteness rate (%): e.g. GPT-4o 80.4 -> 77.6Hurt
add least-to-most prompting on top of few-shot (ablation)DeepSeek-V3-671B · FormalBench-Basesuccess rate (%): 15.5 -> 16.6Improved
add least-to-most prompting on top of few-shot (ablation)GPT-4o · FormalBench-Basesuccess rate (%): 13.4 -> 15.0Improved
add least-to-most prompting on top of few-shot (ablation)CodeQwen-2.5-32B · FormalBench-Basesuccess rate (%): 11.4 -> 12.0Improved
add chain-of-thought prompting on top of few-shot (ablation)DeepSeek-V3-671B / GPT-4o / Claude-3.5-Sonnet · FormalBench-Basesuccess rate (%): DeepSeek-V3 15.5 -> 16.2; GPT-4o 13.4 -> 13.4; Claude 14.7 -> 14.2Mixed
add chain-of-thought prompting on top of few-shot (ablation)GPT-4o · FormalBench-Basefailure rate (%): 56.4 -> 61.5Hurt
activate high reasoning mode (ablation)o3-mini · FormalBench-Basecompleteness rate (%): 83.5 -> 97.2Improved
activate high reasoning mode (ablation)o3-mini · FormalBench-Basesuccess rate (%): 10.0 -> 10.6No clear effect
apply semantic-preserving transformations to programsDeepSeek-V3 / Claude-3.5-Sonnet / GPT-4o · FormalBench-Diverse-Nsuccess rate (%): DeepSeek-V3 9.3 -> 7.8; Claude 10.0 -> 8.3; GPT-4o 11.9 -> 10.9Hurt
use programs with loops instead of sequential/branchingLLMs · FormalBench-Basesuccess rate (%): success below 10%, failure above 50% for loop programsHurt
add failure-specific self-repair prompts (ablation)Claude-3.5-Sonnet / GPT-4o / DeepSeek-V3 · FormalBench-Basesuccess rate (%): 16% -> 20%Improved

Open problems this paper states

Open problems in code generation benchmarks

Do code benchmarks and methods hold beyond Python, small test sets and leaked data?

All 5 open problems and what was already tried →

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