Reproduce “Leveraging LLMs for Formal Software Requirements -- Challenges and Prospects” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Arshad Beg, Diarmuid O'Donoghue, Rosemary Monahan

Researchers at Maynooth University investigate leveraging Large Language Models to translate natural language software requirements into formal specifications, outlining a comprehensive research framework and conducting preliminary evaluations of SMT solver performance on LLM-augmented specifications. The work aims to bridge the gap between informal requirements and verifiable code, especially for safety-critical systems.

Key insights

  • LLMs demonstrate higher reliability for generating assertion-level specifications (over 50%, often >89% accuracy) compared to full formal contract synthesis, which frequently leads to SMT solver verification failures.
  • Iterative refinement, human intervention, and advanced prompting strategies are crucial for improving the quality and verifiability of LLM-generated formal specifications.
  • A neuro-symbolic reasoning approach, combining LLM flexibility with symbolic logic precision, is essential to address semantic ambiguity, ensure ground truth, and enable robust formalization pipelines.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.