TL;DR
While Vision-Language Models (VLMs) excel at identifying visible objects, they struggle with non-visual or highly contextual attributes like weight and precise spatial relationships. This paper introduces a perception-action API that empowers Large Language Models (LLMs) to generate executable Python programs, combining vision models with robotic actions to actively interact with the environment and deduce these hidden attributes.
What Problem Does This Paper Address?
When a human asks a robot to "bring the second mug from the right" or asks "is this box too heavy to lift?", answering requires more than simple object recognition. It demands an understanding of contextual spatial relationships and non-visual physical properties like weight.
Current Open-Vocabulary Detection (OVD) and Vision-Language Models (VLMs) are typically evaluated in disembodied, static settings. As a result, they are often "myopic"—struggling to resolve linguistic ambiguity, handle occlusions, or infer abstract properties that cannot be directly seen. This paper addresses this gap by shifting from passive image analysis to active perception, where a robot uses visual reasoning to guide its physical actions to discover object attributes.
Methods
The authors propose an end-to-end framework that translates natural language instructions into executable Python programs.
The architecture consists of two main components bound together by an LLM (like GPT-4):
- Perception API: Wraps specialized vision models. It uses an OVD model (GLIP) for object localization (
find) and a VQA model (BLIP-2) for answering textual queries about image patches (visual_query). - Action API (Robot Control): Provides high-level robotic commands such as
go_to_object,pick_up, and sensor-driven functions likemeasure_distanceandmeasure_weight.
When given an instruction, the LLM generates a program that chains these API calls together. For example, to find the lighter of two objects, the generated script commands the robot to navigate to each object, lift it using a force/torque sensor, record the weight, and programmatically return the minimum value.
Datasets
The framework was evaluated across three distinct modalities:
- Spatial and Size Dataset: Manually curated by the authors using images from the Odd-One-Out ($O^3$) Dataset. It contains 200 challenging queries (100 location-based, e.g., "second umbrella from the left," and 100 size-based, using absolute and superlative adjectives).
- Non-Visual Weight Dataset: 100 triplets of objects generated by prompting GPT-4 to create monotonically decreasing weight sequences (e.g., bus $\rightarrow$ kangaroo $\rightarrow$ handbag), paired with corresponding web images to test zero-shot commonsense weight estimation.
- Embodied Simulation (AI2-THOR): A simulated household environment used to test active perception with 50 weight and 50 distance estimation queries.
Key Insights and Ideas
- Code Synthesis as a Cognitive Glue: Instead of training a massive end-to-end model to learn physics and spatial math, the authors leverage the LLM's code-generation capacity to orchestrate specialized tools (VLMs for sight, Python arithmetic for spatial sorting, and robot joints for feeling).
- Vision-Informed Language Reasoning: For non-visual attributes like weight, the framework creates an "internal dialogue." The VLM identifies the object textually ("a bus"), and passes this string to the LLM, which uses its internet-scale training to deduce that a bus is heavier than a handbag.
- Contextual Adaptation: LLMs can dynamically interpret adjectives based on image context. For instance, GPT-4 can figure out whether "long" refers to the horizontal or vertical axis depending on how an object is oriented in the frame.
Key Results
The programmatic approach significantly outperformed standalone foundation models across all tasks:
- Spatial & Size Reasoning: The OVD+GPT pipeline outperformed vanilla OVD (GLIP) by 134% on complex location queries and 67% on size queries.
- Embodied Physical Tasks: In AI2-THOR simulations, the active Perception-Action API achieved an outstanding 0.96 accuracy on weight estimation and 0.94 on distance estimation, leaving standalone VLM and OVD baselines far behind.
The authors also successfully validated the framework on a physical DJI RoboMaster EP robot, proving that the generated code can successfully drive real-world visual servoing and infrared distance sensors to resolve spatial queries.
Limitations and Future Work
The primary bottleneck of this architecture is error propagation. Because the system executes sequentially, if the initial VLM call fails to find an object or misidentifies it, the downstream code receives faulty parameters and ultimately fails.
Additionally, the current framework relies on a relatively sparse sensor suite. The authors note that future work will focus on integrating a wider array of robotic sensors (such as IMUs and temperature sensors) and developing closed-loop feedback mechanisms so the system can detect and recover from its own execution errors.
Summary updated