paper-with-me

홈 › Papers

Leveraging Large Language Models to Generate Answer Set Programs

2023-07-15 · Adam Ishay, Zhun Yang, Joohyung Lee

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.

📄 PDF Abstract BibTeX arXiv:2307.07699

Code (1)

azreasoners/gpt-asp-rules 공식 구현

Tasks

Formal LogicIn-Context Learning

Methods 이 논문이 사용한 방법론

{Dispute@FaQ-s}How to file a dispute with Expedia? How to file a dispute with Expedia? To file a complaint against Expedia, first try contacting their customer service directly. You can reach them by phone at…
Multi-Head Attention 설명 없음
15 Ways to Contact How can i speak to someone at Delta Airlines 설명 없음
Attention 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Residual Connection 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

Zero-Shot Video Question Answering with Procedural Programs

2023-12-01 · Rohan Choudhury, Koichiro Niinuma, Kris M. Kitani, László A. Jeni

We propose to answer zero-shot questions about videos by generating short procedural programs that derive a final answer from solving a sequence of visual subtasks. We present Procedural Video Querying (ProViQ), which us…

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model+8

SBSC: Step-By-Step Coding for Improving Mathematical Olympiad Performance

2025-02-23 · Kunal Singh, Ankan Biswas, Sayandeep Bhowmick, Pradeep Moturi 외

We propose Step-by-Step Coding (SBSC): a multi-turn math reasoning framework that enables Large Language Models (LLMs) to generate sequence of programs for solving Olympiad level math problems. At each step/turn, by leve…

Math

Can We Generate Visual Programs Without Prompting LLMs?

2024-12-11 · Michal Shlapentokh-Rothman, Yu-Xiong Wang, Derek Hoiem

Visual programming prompts LLMs (large language mod-els) to generate executable code for visual tasks like visual question answering (VQA). Prompt-based methods are difficult to improve while also being unreliable and co…

Data AugmentationQuestion AnsweringVisual Question AnsweringVisual Question Answering (VQA)

Natural Language Embedded Programs for Hybrid Language Symbolic Reasoning

2023-09-19 · Tianhua Zhang, Jiaxin Ge, Hongyin Luo, Yung-Sung Chuang 외

How can we perform computations over natural language representations to solve tasks that require symbolic and numeric reasoning? We propose natural language embedded programs (NLEP) as a unifying framework for addressin…

Instruction FollowingLanguage ModelingLanguage ModellingMath+4

Communicating Natural Programs to Humans and Machines

2021-06-15 · Samuel Acquaviva, Yewen Pu, Marta Kryven, Theodoros Sechopoulos 외

The Abstraction and Reasoning Corpus (ARC) is a set of procedural tasks that tests an agent's ability to flexibly solve novel problems. While most ARC tasks are easy for humans, they are challenging for state-of-the-art …

ARCProgram Synthesis