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

Leverage Task Context for Object Affordance Ranking

Haojie Huang, Hongchen Luo, Wei Zhai, Yang Cao, Zheng-Jun ZhaarXiv 2024 · DOI

Abstract

Traditional object affordance detection identifies potential actions an object supports but fails to prioritize them based on specific situational needs. This paper introduces the Task-oriented Affordance Ranking (TAR) task, which requires agents to rank objects by their suitability for a given task context. We propose the Context-embed Group Ranking (CGR) framework, which utilizes textual task descriptions to guide visual attention and functional grouping. To support this research, we present the TAR dataset, containing over 50,000 images with hierarchical priority annotations. Our results demonstrate that CGR significantly outperforms existing multimodal detection and saliency ranking models, providing a more nuanced understanding of object utility for intelligent agents.

Introduction

In robotics and computer vision, "affordance" refers to the potential actions an object supports—for example, a chair is for sitting and a cup is for containing. While current AI models can identify these labels, they typically treat all objects within a category as equal. However, affordance is inherently context-dependent. If a user needs to "contain hot water," a ceramic mug is a high-priority choice, while a thin plastic bottle is low-priority or even dangerous, despite both being valid "containers."

Conceptual overview of task-oriented affordance ranking vs. general affordance detection.

Existing datasets lack the nuance to rank objects based on these specific task requirements. This gap hinders the decision-making of intelligent agents in complex environments where they must choose the best tool for a job, not just any tool. This paper addresses this by formalizing affordance as a relative, context-driven property.

The Context-embed Group Ranking (CGR) Framework

To solve the ranking problem, we developed the CGR framework, which integrates textual task descriptions with visual scenes through two primary novel components:

Task Relation Mining (TRM) Module

The TRM module uses bidirectional cross-attention to fuse visual features from an image with textual features from a task description (e.g., "I want to contain hot water"). It leverages textual cues to guide "query selection," focusing the model's attention on regions of the image most relevant to the specific affordance and context. This allows the model to ignore irrelevant objects that might share the same general affordance but fail the specific task criteria.

Graph Group Update (GGU) Strategy

Instead of ranking every object individually—which is computationally expensive and ignores functional similarities—the GGU groups objects into functional tiers using Gumbel-Softmax. It then employs a fully connected graph to perform "global message passing," allowing objects to "compete" for priority based on the task context. The framework is trained using a specialized grouping ranking loss that penalizes the model for both incorrect ranks and incorrect functional groupings.

The Context-embed Group Ranking (CGR) framework architecture, detailing the flow from feature extraction to ranking.

The Task-oriented Affordance Ranking (TAR) Dataset

Because existing affordance datasets (like ADE-Aff or COCO-Task) lacked ranking annotations, we curated the TAR dataset. It consists of 50,404 real-world images and over 661,000 object instances. The dataset covers 25 unique tasks across 11 common affordance verbs (e.g., "contain," "cut," "sit"). Crucially, each image includes hierarchical priority ranks (from Rank 1 to Rank 5+) based on how well objects fit a specific task context, mirroring human cognitive grouping.

Experimental Results

The CGR model significantly outperformed state-of-the-art baselines in both saliency ranking and multimodal object detection:

  • Saliency Ranking: On the SOR (Saliency Object Ranking) metric, the model achieved a 34% improvement over previous top-performing saliency models.
  • Detection Accuracy: It achieved a 40.2 mAP@50, outperforming advanced multimodal detectors like OpenSeeD and OVDetr by over 30% in task-relevant object extraction.
  • Qualitative Performance: In practical tests, the model correctly identified that while both a broom and a towel can "clean the ground," the broom is Rank 1 and the towel is Rank 2. Other models often failed to distinguish this priority or hallucinated irrelevant objects.

Conclusion and Future Work

By formalizing affordance as a dynamic, context-aware property, we provide a path for more intelligent robotic decision-making. While the current two-step pipeline (detection followed by ranking) is effective, future work will focus on developing a unified, single-step end-to-end model to improve speed and reduce error propagation from the initial detection phase. Additionally, we aim to expand the dataset to include thousands of more nuanced task contexts found in human environments.

Summary updated

BibTeX
@misc{huang2024leverage,
  author = {Haojie Huang and Hongchen Luo and Wei Zhai and Yang Cao and Zheng-Jun Zha},
  title = {{Leverage Task Context for Object Affordance Ranking}},
  year = {2024},
  eprint = {2411.16082},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.16082},
}
Figure