Understanding Formal Reasoning Failures in LLMs as Abstract Interpreters

Jacqueline L. Mitchell, Brian Hyeongseok Kim, Chenyu Zhou, Chao Wang
3/16/2025
cs.LGcs.PLcs.SE

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) are increasingly used for program verification, and yet little is known about \emph{how} they reason about program semantics during this process. In this work, we focus on abstract interpretation based-reasoning for invariant generation and introduce two novel prompting strategies that aim to elicit such reasoning from LLMs. We evaluate these strategies across several state-of-the-art LLMs on 22 programs from the SV-COMP benchmark suite widely used in software verification. We analyze both the soundness of the generated invariants and the key thematic patterns in the models' reasoning errors. This work aims to highlight new research opportunities at the intersection of LLMs and program verification for applying LLMs to verification tasks and advancing their reasoning capabilities in this application.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mitchell2025understanding,
  title  = {Understanding Formal Reasoning Failures in LLMs as Abstract Interpreters},
  author = {Jacqueline L. Mitchell and Brian Hyeongseok Kim and Chenyu Zhou and Chao Wang},
  year   = {2025},
  eprint = {2503.12686},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.12686v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.12686.svg)](https://codeofpaper.com/paper/2503.12686)

Discussion