Explainable Zero-Shot Visual Question Answering Logic-Based Reasoning (Extended Abstract)

Thomas Eiter, Jan Hadl, Nelson Higuera, Lukas Lange, Johannes Oetsch, Bileam Scheuvens, Jannik StrötgenSEMANTiCS (Posters, Demos, Workshops & Tutorials) 2025

Abstract

GS-VQA is a neurosymbolic system designed to address the "black-box" nature of modern Visual Question Answering (VQA) models. By integrating zero-shot vision models with Answer Set Programming (ASP), GS-VQA constructs question-conditioned scene graphs and generates transparent, human-readable logical traces for its answers. While currently facing a performance gap compared to end-to-end neural models, it offers superior diagnostic capabilities and formal explainability.

Introduction

Most state-of-the-art VQA systems rely on end-to-end neural architectures. While these models achieve high accuracy, they function as "black boxes," making it difficult to interpret their reasoning or identify the root causes of failure. Existing modular or zero-shot approaches often use general-purpose languages like Python for reasoning, which lack formal semantics and step-by-step logical proofs. Furthermore, standard computer vision models often produce cluttered scene graphs that introduce noise into the reasoning process.

GS-VQA (Grounded-Scene Visual Question Answering) addresses these challenges by decoupling perception from reasoning and utilizing formal logic to ensure transparency.

Methodology: The GS-VQA Pipeline

The GS-VQA architecture consists of four primary components that bridge the gap between neural perception and symbolic reasoning.

The GS-VQA Pipeline combining neural vision modules with symbolic reasoning.
  1. Language Module: Utilizing GPT-4o, the system parses natural language questions into structured symbolic representations, identifying required object classes, attributes, and spatial relations.
  2. Vision Module: This module is "question-conditioned." It uses the symbolic query to prompt OWL-ViT for targeted object detection. Detected objects are then classified and assigned attributes via CLIP, while spatial relations are determined through heuristics, resulting in a lean, task-specific knowledge graph.
  3. Reasoning Module: The scene graph and symbolic query are translated into Answer Set Programming (ASP) facts and rules. The clingo solver is then used to derive the final answer.
  4. Explainability Module: Using xclingo, the system generates derivation trees that provide a step-by-step logical proof for every answer, showing exactly which objects and rules were used.

Key Insights

Question-Conditioned Materialization

A significant innovation in GS-VQA is the materialization of scene graphs based specifically on the question. By ignoring irrelevant entities—such as background elements not mentioned in the query—the system minimizes the noise that typically hinders symbolic reasoning performance.

Logic as a Diagnostic Tool

The use of ASP allows researchers to treat the system as a diagnostic tool. If an incorrect answer is produced, the xclingo trace reveals whether the error stemmed from a vision-level misclassification (e.g., CLIP misidentifying an attribute) or a failure in spatial reasoning.

An example of a human-readable derivation trace generated by xclingo for a VQA task.

Evaluation and Results

The system was evaluated on a subset of 500 questions from the GQA benchmark, a standard for compositional visual reasoning. GS-VQA achieved an overall accuracy of 36.2%. While this is lower than some Python-based zero-shot systems like ViperGPT (48.1%), the language module demonstrated high efficacy, correctly parsing questions into symbolic programs with 84.4% accuracy.

The primary bottleneck remains the underlying vision models (OWL-ViT and CLIP). However, the authors emphasize that GS-VQA provides a level of formal transparency and "diagnostic power" that non-logical executors cannot provide.

Conclusion and Future Work

GS-VQA demonstrates the potential of neurosymbolic AI for explainable VQA. Future work will focus on closing the accuracy gap by integrating more advanced vision-language models and refining the handling of logical ambiguities (e.g., multiple stable models). As foundation models for detection and classification improve, the accuracy of the symbolic reasoning layer is expected to scale accordingly.

Summary updated

BibTeX
@inproceedings{eiter2025explainable,
  author = {Thomas Eiter and Jan Hadl and Nelson Higuera and Lukas Lange and Johannes Oetsch and Bileam Scheuvens and Jannik Strötgen},
  title = {{Explainable Zero-Shot Visual Question Answering Logic-Based Reasoning (Extended Abstract)}},
  booktitle = {SEMANTiCS (Posters, Demos, Workshops \& Tutorials)},
  year = {2025},
}
Figure