Affordance Perception by a Knowledge-Guided Vision-Language Model with Efficient Error Correction

Gertjan J. Burghouts, Marianne Schaaphok, Michael van Bekkum, Wouter Meijer, Fieke Hillerström, Jelle van MilICPRAI 2024

Introduction

For robots to operate effectively in unstructured human environments, they must understand more than just object names; they must understand "affordances." An affordance is the relationship between an object and the actions an agent can perform on it. For instance, a door opener is not merely a visual entity; it is a functional one that requires a specific interaction—turning a knob, pushing a handle, or pressing a button.

While modern Vision-Language Models (VLMs) like GLIP have revolutionized general object detection, they frequently struggle with the fine-grained semantic distinctions required for robotic manipulation. A robot that identifies a push-bar as a twistable knob will experience a "critical failure" when attempting to open a door. This paper presents a hybrid system that combines the broad capabilities of VLMs with structured knowledge bases and efficient human-in-the-loop correction to bridge this gap.

The Modular Architecture

The proposed system addresses the limitations of pure deep learning through a four-part modular architecture designed for precision and robustness.

1. Knowledge Representation (TypeDB)

Rather than relying on the implicit and often inconsistent "common sense" of a pre-trained model, the system utilizes TypeDB, a formal knowledge base. This component defines explicit relationships between objects and actions. For example, it encodes that a "handle" is a direct object for the action "push down," which results in the effect of "accessibility."

2. Object Localization (GLIP)

The system employs GLIP, a state-of-the-art VLM, to perform initial object localization. GLIP uses the labels provided by the knowledge base to scan the environment for potential candidates, such as doors and various types of openers.

3. Fine-grained Discrimination and Human-in-the-Loop

Because VLMs often confuse visually similar objects (e.g., mistaking a horizontal handle for a push-bar), the researchers introduced a "secret sauce" for error correction. The system extracts visual features from detected objects using CLIP and projects these features onto a 2D map using t-SNE visualization.

A human user can then view this map and provide labels for a very small number of characteristic examples. A nearest-neighbor algorithm then propagates these corrections across the entire dataset, allowing the robot to correct hundreds of misclassifications with minimal human effort.

4. Spatial Reasoning (Scallop)

To mitigate "hallucinations"—such as mistaking a hallway handrail for a door handle—the system incorporates Scallop, a neuro-symbolic programming language. Scallop applies first-order logic to ensure that detected affordances make sense in context. For example, a door handle must be spatially proximate to a detected door. If an object looks like a handle but is located in the middle of a wall with no door, the system filters it out as a false positive.

Experimental Evaluation

The researchers evaluated the system using a custom dataset captured in a real-world office environment. The dataset consisted of a training/feedback set of 1,553 video frames and a test set of 1,370 frames featuring diverse viewpoints and distances.

Crucially, the human-in-the-loop component only required feedback on three specific frames to calibrate the model for the entire environment.

Key Results

The performance was measured using Mean Average Precision (mAP), showing dramatic improvements over baseline VLMs:

  • Handles: The baseline VLM mAP was near zero due to constant mislabeling. The proposed method increased this to approximately 0.45.
  • Push Bars: Performance improved from ~0.10 to ~0.50.
  • False Positive Reduction: The spatial reasoning module was particularly effective at filtering out elongated background objects that mimicked the appearance of handles.

Insights and Discussion

The study highlights a significant discrepancy in current AI: while Large Language Models (LLMs) can describe the functional differences between objects perfectly in text, VLMs often fail to distinguish them visually. This suggests that "visual common sense" is not yet fully integrated into standard vision-language pipelines.

Furthermore, the research demonstrates that sparse feedback is incredibly powerful. Rather than retraining a massive model, visualizing internal features allows a human to provide high-leverage corrections that significantly boost robotic reliability. Logic-based filtering (Scallop) serves as a necessary safety layer, providing the "spatial common sense" that deep learning models currently lack.

Conclusion and Future Work

This hybrid approach demonstrates that combining the strengths of VLMs, symbolic logic, and human intuition can solve complex perception tasks that are currently out of reach for end-to-end neural networks. While the current study was limited to a single office environment, it provides a roadmap for more robust, open-world robotics. Future work will focus on automating the extraction of affordance relations directly from LLMs and testing the system in more diverse, high-variance settings.

Summary updated

BibTeX
@inproceedings{burghouts2024affordance,
  author = {Gertjan J. Burghouts and Marianne Schaaphok and Michael van Bekkum and Wouter Meijer and Fieke Hillerström and Jelle van Mil},
  title = {{Affordance Perception by a Knowledge-Guided Vision-Language Model with Efficient Error Correction}},
  booktitle = {ICPRAI},
  year = {2024},
}
Figure