Satisfiability-Aided Language Models Using Declarative Prompting

Xi Ye, Qiaochu Chen, Işıl Dillig, Greg Durrett
2/12/2026

No official code found. Best implementation: xiye17/SAT-LM (54 stars, MIT, last commit 2024-07-18).

Abstract

Prior work has combined chain-of-thought prompting in large language models (LLMs) with programmatic representations to perform effective and transparent reasoning. While such an approach works well for tasks that only require forward reasoning (e.g., straightforward arithmetic), it is less effective for constraint solving problems that require more sophisticated planning and search. In this paper, we propose a new satisfiability-aided language modeling (SatLM) approach for improving the reasoning capabilities of LLMs. We use an LLM to generate a declarative task specification rather than an imperative program and leverage an off-the-shelf automated theorem prover to derive the final answer. This approach has two key advantages. The declarative specification is closer to the problem description than the reasoning steps are, so the LLM can parse it out of the description more accurately. Furthermore, by offloading the actual reasoning task to an automated theorem prover, our approach can guarantee the correctness of the answer with respect to the parsed specification and avoid planning errors in the solving process. We evaluate SATLM on 8 different datasets and show that it consistently outperforms program-aided LMs in the imperative paradigm. In particular, SATLM outperforms program-aided LMs by 23% on a challenging subset of the GSM arithmetic reasoning dataset; SATLM also achieves a new SoTA on LSAT and BoardgameQA, surpassing previous models that are trained on the respective training sets.

View on arXivView PDF

Code Implementations(1)

xiye17/SAT-LMCommunity100%
MIT

SatLM: SATisfiability-Aided Language Models using Declarative Prompting (NeurIPS 2023)

5414Shell, PythonMay 15, 20232 years agoMIT

Similar Papers

Cite this paper

@article{ye2026satisfiabilityaided,
  title  = {Satisfiability-Aided Language Models Using Declarative Prompting},
  author = {Xi Ye and Qiaochu Chen and Işıl Dillig and Greg Durrett},
  year   = {2026},
  eprint = {2305.09656},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2305.09656},
  journal = {NEURIPS 2023 2023}
}

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

Discussion