Abstract
The advancement in large language models (LLMs) and large vision models has fueled the rapid progress in multi-modal vision-language reasoning capabilities. However, existing vision-language models (VLMs) remain challenged by compositional visual reasoning. This paper presents VLAgent, a neuro-symbolic approach to developing a Vision-Language Agent system for efficient compositional visual reasoning with three novel features. First, VLAgent develops an interpretable visualization-enhanced two-stage neuro-symbolic reasoning system. The first stage generates a structured visual reasoning plan (symbolic program script) utilizing a pre-trained LLM. The second stage transforms the planning script into executable code based on visual input. Second, VLAgent introduces the SS-parser, which examines the syntax and semantic correctness of the planning script, detecting and repairing logic errors. Third, VLAgent introduces an execution verifier in critical reasoning steps to validate and refine results. Extensive experiments on six visual benchmarks show that VLAgent outperforms existing representative approaches to compositional visual reasoning.
Introduction
While Large Vision-Language Models (VLMs) have made massive strides, they still struggle with compositional visual reasoning. These are tasks that require multiple logical steps—for example, determining if two people in a background are wearing the same color shirt. To answer such questions, a model must locate both subjects, crop the images, identify colors independently, and then perform a logical comparison.
Current "monolithic" models often hallucinate or lose track of logic in these multi-step chains. Previous modular approaches, which use an LLM to write a plan and vision models to execute it, often fail because they blindly trust the LLM's code. If the LLM generates a non-existent function or a logically flawed step, the system typically fails or provides an incorrect answer with high confidence.
Methods
VLAgent employs a two-stage neurosymbolic architecture designed to bridge the gap between high-level planning and low-level execution.
The Front-End (The Planner)
The system uses an LLM (such as GPT-3.5 or Llama-3) with few-shot Chain-of-Thought prompting to translate a natural language question into a structured "symbolic program script." This script acts as a blueprint for the reasoning process.
The Back-End (The Executor & Auditor)
The core innovation of VLAgent lies in its execution and auditing pipeline:
- SS-Parser (Syntax-Semantic Parser): This module acts as a "debugger." It checks for syntax errors (hallucinated module names) and semantic logic (e.g., ensuring that if a question asks about "people," the localization module is set to
plural=True). It can automatically repair these scripts before execution. - Execution Verifier: During runtime, if a vision module returns a low-confidence result, VLAgent triggers a "Caption Verifier" or an "Ensemble Verifier" to ensure accuracy.
- Long Video Optimization: For video tasks, it chunks the video and uses an LLM to identify which segments are actually relevant to the question, saving compute and reducing noise.
Experimental Results
The researchers evaluated VLAgent across six diverse benchmarks, including GQA (spatial/logical reasoning), NLVR2 (visual grounding), VQAv2, MME, NeXT-QA (temporal/causal actions), and HC-RefLOCO.
VLAgent consistently outperformed both general-purpose VLMs and previous modular agents:
- Image Benchmarks: On NLVR2 and MME, VLAgent achieved superior performance, outperforming existing zero-shot methods by 3% to 40%.
- Video Benchmarks: On NeXT-QA, it surpassed representative zero-shot methods by a margin of 7% to 19%, achieving an overall accuracy of 76.0%.
- Ablation Success: Adding the SS-Parser and Verifiers improved the baseline "naive" agent's accuracy on the GQA benchmark by roughly 7.5%.
Discussion and Conclusion
A key insight from this work is that LLMs are better architects than builders; they excel at high-level planning but frequently hallucinate API calls. The SS-Parser addresses this by treating LLM output as a draft that needs formal verification. Furthermore, the neurosymbolic nature of VLAgent makes it inherently debuggable, providing a visual trace of its reasoning that black-box models lack.
While the multi-step process introduces higher latency (~5.1 seconds per sample), the gains in reasoning accuracy and interpretability are significant. Future work will focus on reducing this latency and expanding the semantic depth of the SS-Parser to handle even more nuanced queries.
Summary updated