Abstract
Verifying a question’s validity before answering is crucial in real-world applications, where users may provide imperfect instructions. In this scenario, an ideal model should address the discrepancies in the query and convey them to the users rather than generating the best possible answer. Addressing this requirement, we introduce a new compositional visual question-answering dataset, VisReas, that consists of answerable and unanswerable visual queries formulated by traversing and perturbing commonalities and differences among objects, attributes, and relations. VisReas contains 2.07M semantically diverse queries generated automatically using Visual Genome scene graphs. The unique feature of this task, validating question answerability with respect to an image before answering, and the poor performance of state-of-the-art models inspired the design of a new modular baseline, Logic2Vision that reasons by producing and executing pseudocode without any external modules to generate the answer. Logic2Vision outperforms generative models in VisReas (+4.82% over LLaVA-1.5; +12.23% over InstructBLIP) and achieves a significant gain in performance against the classification models.
Introduction: Beyond the Closed-World Assumption
Most Visual Question Answering (VQA) systems operate under a "closed-world" assumption, presuming that every question has a valid answer within the image. However, real-world interactions are often messy; users may provide instructions based on false premises. For instance, asking a robot to "pick up the blue mug" when only a red one is present should ideally trigger a clarification rather than a hallucinated "best guess."
Current benchmarks often focus on simple, single-object attributes or one-hop relations, failing to test a model's ability to reason over complex object clusters or reject "problematic" queries. VISREAS addresses this gap by requiring models to verify a question's validity before attempting to solve it.
The VISREAS Dataset
The primary contribution of this work is the VISREAS (Visual Reasoning) dataset, a massive collection of 2.07 million semantically diverse queries derived from 113,000 images in the Visual Genome project.
VISREAS is distinguished by several key features:
- Complexity: It covers 14 attributes and 114 relations, emphasizing "Star Relations" (one object related to many) and "Chain Relations" (multi-hop dependencies).
- Compositionality: Questions are significantly longer (averaging 19.4 words) than those in GQA or VQA, requiring deeper compositional reasoning.
- The "Problematic" Split: A significant portion of the dataset consists of unanswerable questions created by perturbing scene graphs. This forces models to identify missing objects or incorrect spatial relations.
The Logic2Vision Framework
To tackle the challenges of VISREAS, we propose LOGIC2VISION, a two-stage modular framework designed for explicit and verifiable reasoning.
The framework operates as follows:
- Pseudocode Generation: A fine-tuned Vicuna-13B translates natural language questions into logical steps (e.g.,
select(bag),filter_color(green, bush)). - Pseudocode-Guided Reasoning: A Vision-Language Model (LLaVA-1.5) executes these steps. If a step refers to a non-existent object, the system logs
NONE, and the final output correctly identifies the question as "problematic."
This modular approach moves away from "black-box" reasoning, providing explainable logs that pinpoint exactly where a reasoning chain fails.
Key Insights and Results
Our experiments reveal that standard generative models are prone to the "hallucination trap," often ignoring discrepancies in problematic questions to provide a guessed answer. LOGIC2VISION mitigates this, achieving 66.20% accuracy on VISREAS—a significant improvement over LLaVA-1.5 (+4.82%) and InstructBLIP (+12.23%).
Further analysis shows:
- Verification is Essential: True reasoning requires first verifying the premises. Models that skip this step struggle with the "problematic" split.
- The Reasoning Gap: While GPT-4V is proficient at identifying missing objects, it still struggles with complex spatial relations. Humans maintain a substantial lead (~87% accuracy), highlighting a clear area for future AI development.
- Scaling Limits: Increasing LLM parameters improves performance on long, complex questions but does little for verification, suggesting that better vision-language alignment is more critical than raw model size.
Conclusion
VISREAS and the LOGIC2VISION framework represent a step toward more robust and honest AI systems. By forcing models to acknowledge what they don't know or what isn't there, we move closer to systems that can safely and effectively navigate the ambiguities of the real world. Future work will focus on generalizing these modular operations to more open-ended visual tasks.
Summary updated