mlsanityData to 14 Oct 2026

Logic.py: Bridging the Gap between LLMs and Constraint Solvers

arXiv 2502.15776 ↗First posted 17 Feb 2025cs.AI cs.LOcited by 9

Not on the map. Why?

Abstract (arXiv)

We present a novel approach to formalise and solve search-based problems using large language models, which significantly improves upon previous state-of-the-art results. We demonstrate the efficacy of this approach on the logic puzzles benchmark ZebraLogicBench. Instead of letting the LLM attempt to directly solve the puzzles, our method prompts the model to formalise the problem in a logic-focused domain-specific language (DSL) called Logic.py. This formalised representation is then solved using a constraint solver, leveraging the strengths of both the language model and the solver. Our approach achieves a remarkable 65% absolute improvement over the baseline performance of Llama 3.1 70B on ZebraLogicBench, setting a new state-of-the-art with an accuracy of over 90%. This significant advancement demonstrates the potential of combining language models with domain-specific languages and auxiliary tools on traditionally challenging tasks for LLMs.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 4 of its 20 references that are in the map. First posted on arXiv 17 Feb 2025.

Builds on

4 of 20 references.

References · 4

  1. 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoningcited by 391
  2. 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 235
  3. 2023SatLM: Satisfiability-Aided Language Models Using Declarative Promptingcited by 102
  4. 2024Solving Zebra Puzzles Using Constraint-Guided Multi-Agent Systemscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 4.

9 papers.