Distilling Answer-Set Programming Rules from LLMs for Neurosymbolic Visual Question Answering
cs.AI
Submitted: 2026-06-02
Updated: 2026-06-26
Comments: Under consideration in Theory and Practice of Logic Programming (TPLP)
DOI: 10.1017/S1471068426100684
Code: https://github.com/pudumagico/KDASP
License: http://creativecommons.org/licenses/by/4.0/
The gist: Visual Question Answering (VQA) is the task of answering questions about images, requiring the integration of multimodal input and reasoning.
Terminology
Abstract
Visual Question Answering (VQA) is the task of answering questions about images, requiring the integration of multimodal input and reasoning. Modular approaches that incorporate logic-based representations into the reasoning component offer clear advantages over end-to-end trained systems, particularly in terms of interpretability. However, adapting or extending these representations when task requirements change can place a significant burden on developers. To address this challenge, we present an approach for distilling rules from Large Language Models (LLMs). Our method prompts an LLM to extend an initial VQA reasoning theory, expressed as an answer-set program, to meet new requirements of the task. Examples from VQA datasets guide the LLM, validate the results, and help correct erroneous rules by leveraging feedback from the ASP solver. We demonstrate that our approach is effective across diverse VQA datasets. Notably, only a few examples are needed to elicit correct rules from LLMs. Our experiments suggest that rule distillation from LLMs is a promising alternative to traditional data-driven rule learning approaches. Under consideration in Theory and Practice of Logic Programming (TPLP).
Sources
- The ILASP system for Inductive Learning of Answer Set Programs
- Hypothesis Generation via LLM-Automated Language Bias for ILP
- A Survey of Large Language Models
- Large Language Models can Learn Rules
Related papers
- Beyond Moral Performance: Empirical Assessment of LLMs' Moral Competence Through Judgment Stability
- K12Vista: Exploring the Boundaries of MLLMs in K-12 Education
- A Matter of TASTE: Improving Coverage and Difficulty of Agent Benchmarks
- FlowSteer: Towards Agents Designing Agentic Workflows via Reinforced Progressive Canvas Editing
- Tokengeist: Multi-Turn Attribution Tracing in Agentic Conversations
- VESTA: Visual Exploration with Statistical Tool Agents