Abstract
Visual Question Answering (VQA) requires a sophisticated integration of visual perception and logical reasoning. While deep learning models excel at pattern recognition, they often struggle with complex multi-step reasoning and lack transparency. Conversely, traditional neuro-symbolic models face computational bottlenecks when handling perceptual uncertainty. This paper presents a robust neuro-symbolic framework that combines YOLOv3-based object detection with Answer Set Programming (ASP). By implementing non-deterministic choice rules and statistical filtering, the pipeline allows the symbolic reasoner to compensate for neural perception errors. Evaluated on the CLEVR dataset, the system demonstrates significant improvements in accuracy under high-uncertainty conditions and achieves execution speeds orders of magnitude faster than existing neuro-symbolic alternatives.
Introduction
Modern Artificial Intelligence often bifurcates into two paradigms: the "connectionist" approach of deep learning, which excels at sensory perception, and the "symbolic" approach, which excels at structured logic. Visual Question Answering (VQA) sits at the intersection of these fields, requiring a system to identify objects in an image and reason about their relationships to answer natural language queries.
Existing end-to-end neural models often function as "black boxes," providing answers without traceable logic, which can lead to brittle performance in complex scenes. Neuro-symbolic hybrids aim to solve this by using neural networks as "eyes" and logic engines as the "brain." However, these hybrids often suffer from a performance bottleneck; if a neural network provides multiple probabilistic labels for objects, the symbolic engine may face an exponential explosion of possible combinations. This research proposes a pipeline that bridges this gap through efficient statistical filtering and non-deterministic ASP encoding.
Problem Statement
The primary challenge in VQA is the dual requirement of perception (identifying shapes, colors, and positions) and reasoning (counting, comparing, and spatial logic). Purely neural models may achieve high accuracy on simple datasets but often fail when a scene requires precise multi-step logic, such as: "How many large green things are behind the small cyan metallic cylinder?"
Furthermore, when neural networks are uncertain, they produce a distribution of possible labels. Traditional neuro-symbolic systems like NeurASP or DeepProbLog often attempt to process all possible permutations, leading to massive computational overhead. The authors seek a method that maintains logical transparency and robustness to error without sacrificing computational efficiency.
Methodology
The proposed framework utilizes a three-stage pipeline designed to transition from raw pixels to a logical conclusion.
1. Object Detection
The system employs YOLOv3 to identify objects within the image. For every detected object, the network generates bounding boxes and confidence scores for various attributes, including shape, color, size, and material.
2. Statistical Filtering
To avoid the pitfalls of arbitrary confidence thresholds, the authors implement a dynamic statistical filter. By calculating the mean ($\mu$) and standard deviation ($\sigma$) of the network's predictions, the system sets a threshold relative to the network's current performance. This allows the pipeline to adapt to the quality of the underlying neural model, filtering out low-confidence "noise" while retaining viable candidates for reasoning.
3. ASP Encoding and Non-Determinism
The core innovation lies in how the scene is translated into Answer Set Programming (ASP). The researchers compare two distinct approaches:
- Deterministic Encoding: The system only considers the single highest-confidence prediction for each object attribute.
- Non-Deterministic Encoding: The system utilizes ASP "choice rules" to consider all predictions that pass the statistical threshold.
In the non-deterministic mode, if a neural network is split between labeling an object as "red" (35% confidence) or "blue" (40% confidence), the ASP solver can effectively "correct" a perception error. If the logic of the question requires a red object to exist in a specific location to satisfy the query, the solver can select the "red" label, overriding the slightly higher-confidence "blue" guess.
Experimental Results
The pipeline was evaluated using the CLEVR dataset, a benchmark consisting of synthetic 3D shapes designed specifically to test complex spatial and attribute-based reasoning.
Robustness to Perception Errors
The value of non-determinism is most apparent when the neural network is sub-optimally trained. When using a network trained for only 25 epochs, the deterministic approach achieved an accuracy of 64.39%. However, the non-deterministic approach, using the exact same "weak" network, reached 84.09% accuracy. This demonstrates that logical constraints can successfully compensate for perceptual uncertainty.
Computational Efficiency
The proposed pipeline showed massive speed advantages over established competitors. In a test involving 15,000 questions, the results were as follows:
- NeurASP: >9,000 seconds
- Proposed Deterministic: 84 seconds
- Proposed Non-Deterministic: ~150 seconds
By pruning the search space through statistical filtering rather than considering every possible label, the authors achieved a system that is nearly 60 times faster than existing state-of-the-art neuro-symbolic models while maintaining comparable accuracy.
Discussion and Limitations
While the results are promising, the authors identify several areas for future development. Currently, the pipeline is uni-directional, meaning information flows from the neural network to the logic engine but not back. A "closed-loop" system where the logic engine helps the neural network learn from its mistakes is a primary goal for future research.
Additionally, the use of the CLEVR dataset, while standard for reasoning tasks, involves clean, synthetic images. Real-world images with complex lighting, occlusions, and textures will require more sophisticated statistical thresholding. Finally, the current system relies on structured logic representations of questions; a fully autonomous version would require an integrated Natural Language Processing (NLP) component to translate raw English into ASP facts.
Conclusion
This research demonstrates that non-determinism in symbolic reasoning is a powerful tool for overcoming the limitations of neural perception. By combining statistical pruning with the flexibility of ASP choice rules, the authors have created a VQA framework that is both robust to error and computationally viable for large-scale reasoning tasks.
Summary updated