TOA: Task-oriented Active VQA

Xiaoying Xing, Mingfu Liang, Ying Wu

Knowledge-based Visual Question Answering (VQA) requires models to combine image understanding with external world knowledge. Answering complex questions about images often requires open-world knowledge not present in the image itself (e.g., "Which of these appliances would you heat your noodles in?"). While Large Language Models (LLMs) like GPT-3 possess vast implicit world knowledge, they cannot natively "see" images without computationally expensive fine-tuning.

To bridge this gap, previous methods typically translate the image into a generic text caption or a list of detected objects for the LLM to read. However, this passive approach is flawed: generic captions often drop the specific, nuanced visual details needed to answer the question, while exhaustive object detection floods the LLM with irrelevant, noisy information.

To address this, researchers introduce Task-Oriented Active VQA (TOA), a framework where an LLM acts as an active reasoning agent that forms hypotheses and dynamically queries specialized vision models to gather specific visual evidence.

The TOA Framework: Mimicking Human Cognition

The authors propose a multi-round dialogue system that mimics human cognition: reasoning $\rightarrow$ hypothesis $\rightarrow$ verification. The system is split into two primary agents:

  1. Task Scheduler (LLM): Powered by an LLM (like gpt-3.5-turbo), the scheduler reads the question and a basic image caption. It uses its world knowledge to form an initial hypothesis. It then writes Python-like pseudo-code to request specific visual verification.
  2. Visual Executor (Vision Models): A suite of pre-trained, off-the-shelf vision models acts as the LLM's "eyes."
TOA Framework Overview

Instead of generating a single, monolithic script upfront, the Scheduler and Executor engage in a dynamic multi-round dialogue. If the Executor's visual feedback contradicts the LLM's initial hypothesis, the LLM can pivot, form a new hypothesis, and ask a new targeted visual question until it confidently arrives at a final answer.

The Visual Executor's Toolkit

The Visual Executor provides the LLM with a specific set of tools categorized into spatial and attribute attention, mimicking "where to look" and "what to look for." Tools include spatial operations (e.g., locate(object), crop(direction)) and attribute operations (e.g., filter(object, property), count(object)).

Visual Executor Tools

By forcing the LLM to explicitly state a hypothesis before querying these vision models, the system's reasoning becomes highly transparent. Users can see exactly why the model is looking for a specific object, and the step-by-step approach allows for course correction if an initial query fails.

Key Results and Performance

The TOA framework was evaluated primarily on OK-VQA (~14K image-question pairs requiring external knowledge) and A-OKVQA (~25K pairs including supporting facts).

  • State-of-the-Art Accuracy: On the OK-VQA dataset, TOA achieved 60.6% accuracy, outperforming the primary baseline (PromptCAP at 58.8%) and other methods relying on explicit knowledge retrieval.
  • Strong Open-Ended Performance: On A-OKVQA, TOA achieved 61.2% on Direct Answer (DA) and 63.1% on Multiple Choice (MC).
  • The Importance of Hypothesis: Ablation studies highlight that the cognitive framework is vital. Removing the explicit "hypothesis" step dropped accuracy massively to 52.5%. Furthermore, forcing a single-round program execution instead of a multi-round dialogue dropped accuracy to 57.8%.

Limitations and Future Work

While TOA presents a significant step forward in active visual reasoning, it has limitations:

  • Vision Model Bottleneck: The system's ultimate performance is bounded by the accuracy of the underlying Visual Executor models. If the object detector repeatedly fails, the LLM's reasoning is handicapped.
  • Subjective Prompt Design: The design of the prompt instructions and the selection of in-context examples are subjective, which can introduce uncertainty into the LLM's reasoning process.
  • Evaluation Metrics: Evaluating free-form text answers generated by LLMs remains a persistent challenge. The authors utilized custom keyword matching and GloVe-embedding projection, noting that better automated evaluation for open-ended VQA is a critical area for future work.

Summary updated

BibTeX
@inproceedings{xing2023toa,
  author = {Xiaoying Xing and Mingfu Liang and Ying Wu},
  title = {{TOA: Task-oriented Active VQA}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=yoAmURKDJi},
}
Figure