Coupling Large Language Models with Logic Programming for Robust and General Reasoning from Text
Zhun Yang, Adam Ishay, Joohyung Lee

TL;DR
This paper introduces a hybrid approach combining large language models with logic programming, enabling robust, general reasoning from text across multiple NLP and planning tasks with minimal task-specific training.
Contribution
It presents a novel system that uses LLMs as semantic parsers for logic-based reasoning, achieving state-of-the-art results without retraining for each task.
Findings
Achieves state-of-the-art on NLP benchmarks like bAbI, StepGame, CLUTRR, gSCAN
Successfully solves robot planning tasks that LLMs alone cannot handle
Demonstrates robustness and generality across diverse reasoning tasks
Abstract
While large language models (LLMs), such as GPT-3, appear to be robust and general, their reasoning ability is not at a level to compete with the best models trained for specific natural language reasoning problems. In this study, we observe that a large language model can serve as a highly effective few-shot semantic parser. It can convert natural language sentences into a logical form that serves as input for answer set programs, a logic-based declarative knowledge representation formalism. The combination results in a robust and general system that can handle multiple question-answering tasks without requiring retraining for each new task. It only needs a few examples to guide the LLM's adaptation to a specific task, along with reusable ASP knowledge modules that can be applied to multiple tasks. We demonstrate that this method achieves state-of-the-art performance on several NLP…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Multimodal Machine Learning Applications
Methods{Dispute@FaQ-s}How to file a dispute with Expedia? · Multi-Head Attention · 15 Ways to Contact How can i speak to someone at Delta Airlines · Attention Is All You Need · Residual Connection · Adam · Cosine Annealing · Linear Layer · Dense Connections · Dropout
