mlsanityData to 7 Oct 2026

Leveraging Large Language Models to Generate Answer Set Programs

arXiv 2307.07699 ↗First posted 15 Jul 2023cs.AI cs.CL cs.SCcited by 33

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs), such as GPT-3 and GPT-4, have demonstrated exceptional performance in various natural language processing tasks and have shown the ability to solve certain reasoning problems. However, their reasoning capabilities are limited and relatively shallow, despite the application of various prompting techniques. In contrast, formal logic is adept at handling complex reasoning, but translating natural language descriptions into formal logic is a challenging task that non-experts struggle with. This paper proposes a neuro-symbolic method that combines the strengths of large language models and answer set programming. Specifically, we employ an LLM to transform natural language descriptions of logic puzzles into answer set programs. We carefully design prompts for an LLM to convert natural language descriptions into answer set programs in a step by step manner. Surprisingly, with just a few in-context learning examples, LLMs can generate reasonably complex answer set programs. The majority of errors made are relatively simple and can be easily corrected by humans, thus enabling LLMs to effectively assist in the creation of answer set programs.

Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). Builds on 7 of its 45 references that are in the map. First posted on arXiv 15 Jul 2023.

Builds on

7 of 45 references.

References · 7

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  4. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
  5. 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Changecited by 372
  6. 2022Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoningcited by 331
  7. 2021Improving Coherence and Consistency in Neural Sequence Models with Dual-System, Neuro-Symbolic Reasoningcited by 85

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 8; 2025: 14; 2026: 10.

33 papers.

Sort:

By area:

  1. 2024Argumentative Large Language Models for Explainable and Contestable Claim Verificationcited by 36
  2. 2025NeSyC: A Neuro-symbolic Continual Learner For Complex Embodied Tasks In Open Domainscited by 15
  3. 2024BlendRL: A Framework for Merging Symbolic and Neural Policy Learningcited by 14
  4. 2025VERUS-LM: a Versatile Framework for Combining LLMs with Symbolic Reasoningcited by 12
  5. 2024The Role of Foundation Models in Neuro-Symbolic Learning and Reasoningcited by 11
  6. 2025FINEREASON: Evaluating and Improving LLMs' Deliberate Reasoning through Reflective Puzzle Solvingcited by 10
  7. 2024DeiSAM: Segment Anything with Deictic Promptingcited by 9
  8. 2025A Neurosymbolic Approach to Natural Language Formalization and Verificationcited by 8
  9. 2024Towards Automatic Composition of ASP Programs from Natural Language Specificationscited by 7
  10. 2024Dspy-based Neural-Symbolic Pipeline to Enhance Spatial Reasoning in LLMscited by 6
  11. 2025NeSyPr: Neurosymbolic Proceduralization For Efficient Embodied Reasoningcited by 5
  12. 2025Question Answering with LLMs and Learning from Answer Setscited by 4
21 more
  1. 2024Organizing a Society of Language Models: Structures and Mechanisms for Enhanced Collective Intelligencecited by 3
  2. 2025DCP-Bench-Open: Evaluating LLMs for Constraint Modelling of Discrete Combinatorial Problemscited by 3
  3. 2024TIC: Translate-Infer-Compile for accurate "text to plan" using LLMs and Logical Representationscited by 2
  4. 2025Visual Graph Question Answering with ASP and LLMs for Language Parsingcited by 2
  5. 2025Neuro-Symbolic Frameworks: Conceptual Characterization and Empirical Comparative Analysiscited by 2
  6. 2025Predicate Renaming via Large Language Modelscited by 2
  7. 2023Extending Answer Set Programming with Rational Numberscited by 0
  8. 2025textttSEM-CTRL: Semantically Controlled Decodingcited by 0
  9. 2025Towards a Neurosymbolic Reasoning System Grounded in Schematic Representationscited by 0
  10. 2025Interpretability Framework for LLMs in Undergraduate Calculuscited by 0
  11. 2025Bridging Natural Language and ASP: A Hybrid Approach Using LLMs and AMR Parsingcited by 0
  12. 2026Modeling Next-Token Prediction as Left-Nested Intuitionistic Implicationcited by 0
  13. 2026ASP-Bench: From Natural Language to Logic Programscited by 0
  14. 2026Cross-Domain Demo-to-Code via Neurosymbolic Counterfactual Reasoningcited by 0
  15. 2026Streamliners for Answer Set Programmingcited by 0
  16. 2026Early-Stage Product Line Validation Using LLMs: A Study on Semi-Formal Blueprint Analysiscited by 0
  17. 2026Distilling Answer-Set Programming Rules from LLMs for Neurosymbolic Visual Question Answeringcited by 0
  18. 2026Driving, Fast or Slow? Neuro-Symbolic Guidance for Motion Prediction in Multi-Modal Ground Mobilitycited by 0
  19. 2026Logic-Guided Data Extraction with Answer Set Programming and Large Language Modelscited by 0
  20. 2026Distilling Answer Set Programming Theories from Large Language Modelscited by 0
  21. 2026Automatic Conversion of NICE Guidelines to an Executable Computational Model Using Large Language Modelscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026LLMs as ASP Programmers: Self-Correction Enables Task-Agnostic Nonmonotonic Reasoning
  2. 2023Reliable Natural Language Understanding with Large Language Models and Answer Set Programming
  3. 2025Probing Large Language Models in Reasoning and Translating Complex Linguistic Puzzles
  4. 2025Logic-of-Thought: Empowering Large Language Models with Logic Programs for Solving Puzzles in Natural Language
  5. 2023Coupling Large Language Models with Logic Programming for Robust and General Reasoning from Text
  6. 2025Advancing Reasoning in Large Language Models: Promising Methods and Approaches
  7. 2025Neuro-Symbolic Artificial Intelligence: Towards Improving the Reasoning Abilities of Large Language Models
  8. 2024Leveraging LLMs for Hypothetical Deduction in Logical Inference: A Neuro-Symbolic Approach