Combining LLM Code Generation with Formal Specifications and Reactive Program Synthesis

William Murphy, Nikolaus Holzer, Feitong Qiao, Leyi Cui, Raven Rothkopf +2 more
9/18/2024
cs.SEcs.LGcs.LO

No confident code implementation found for this paper.

Abstract

In the past few years, Large Language Models (LLMs) have exploded in usefulness and popularity for code generation tasks. However, LLMs still struggle with accuracy and are unsuitable for high-risk applications without additional oversight and verification. In particular, they perform poorly at generating code for highly complex systems, especially with unusual or out-of-sample logic. For such systems, verifying the code generated by the LLM may take longer than writing it by hand. We introduce a solution that divides the code generation into two parts; one to be handled by an LLM and one to be handled by formal methods-based program synthesis. We develop a benchmark to test our solution and show that our method allows the pipeline to solve problems previously intractable for LLM code generation.

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{murphy2024combining,
  title  = {Combining LLM Code Generation with Formal Specifications and Reactive Program Synthesis},
  author = {William Murphy and Nikolaus Holzer and Feitong Qiao and Leyi Cui and Raven Rothkopf and Nathan Koenig and Mark Santolucito},
  year   = {2024},
  eprint = {2410.19736},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.19736v1}
}

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/2410.19736.svg)](https://codeofpaper.com/paper/2410.19736)

Discussion