NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Visual Agentic AI for Spatial Reasoning with a Dynamic API

Damiano Marsili, Rohun Agrawal, Yisong Yue, Georgia Gkioxari

Introduction: Breaking the API Ceiling

Modern Vision-Language Models (VLMs) like GPT-4o excel at object identification and scene description but often struggle with precise 3D spatial reasoning. Tasks requiring multi-step geometric calculations—such as estimating relative heights or depth-aware positioning—expose the limitations of current architectures. While modular approaches like ViperGPT and VisProg attempt to solve this by synthesizing programs that call fixed vision tools, they are constrained by a static API. If a query requires a relationship or calculation not pre-defined by developers, these systems fail.

To overcome this, researchers have introduced VADAR (Visual, Agentic, Dynamic AI for Reasoning), a training-free framework that allows LLM agents to dynamically generate their own Pythonic API tailored to specific problems. By "inventing" the tools it needs, VADAR achieves state-of-the-art results in interpretable 3D reasoning.

Methodology: Dynamic API Generation

VADAR operates through an agentic workflow that mirrors software engineering practices. The process occurs in two primary stages:

  1. API Generation: A Signature Agent examines query batches to propose general Python function signatures. An Implementation Agent writes the actual code, which is then verified by a Test Agent using placeholder inputs to catch syntax or logic errors.
  2. Program Synthesis: Once the custom API is built, a Program Agent writes a Python script leveraging these tools to solve a specific query. An Execution Agent runs the code, calling "Vision Specialists" (off-the-shelf models like Molmo, GroundingDINO, UniDepth, and SAM) for low-level tasks like localization and depth estimation.
VADAR's dynamic program synthesis allows it to generate interpretable, multi-step solutions for complex 3D queries by defining its own domain-specific language on the fly.

Experimental Results and Benchmarks

The framework was evaluated on three benchmarks: CLEVR (synthetic spatial reasoning), GQA (2D relationships), and the newly introduced OMNI3D-BENCH, which features 500 complex, real-world 3D queries involving relative sizes and stacking.

VADAR demonstrated significant performance gains over prior program-synthesis methods. On OMNI3D-BENCH, it achieved 40.4% accuracy, substantially outperforming ViperGPT (26.7%) and VisProg (13.5%). On CLEVR, it reached 53.6% accuracy, rivaling the best monolithic VLMs while maintaining full transparency.

A comparison of VADAR against GPT-4o, ViperGPT, and VisProg on a complex 3D spatial query. VADAR's agentic approach correctly solves the problem where others fail, providing a clear execution trace.

Key Insights: The Vision Bottleneck

A major advantage of VADAR is its interpretability. Unlike "black-box" VLMs, VADAR provides a full Python execution trace, allowing users to pinpoint whether a failure occurred due to a vision specialist's error or a logic error in the synthesized code.

Interestingly, "Oracle" experiments revealed that when VADAR is provided with perfect vision data (perfect depth and bounding boxes), its accuracy on OMNI3D-BENCH jumps to 94.4%. This suggests that the LLM's reasoning and code generation capabilities are already highly advanced; the primary limitation for 3D AI today is the accuracy of underlying vision specialists like depth estimators.

Future Directions

While VADAR represents a leap forward, it still faces challenges with extremely long reasoning chains (5+ steps). Future work will focus on incorporating visual features directly into the code-generation phase and enabling the system to dynamically choose between different vision modules using reinforcement learning to optimize for specific scene types.

Summary updated

BibTeX
@inproceedings{marsili2025visual,
  author = {Damiano Marsili and Rohun Agrawal and Yisong Yue and Georgia Gkioxari},
  title = {{Visual Agentic AI for Spatial Reasoning with a Dynamic API}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01811},
}
Figure