Introduction
Traditional object detection systems are primarily category-driven, trained to identify specific classes such as "knife," "bottle," or "fork." However, in real-world scenarios—particularly in robotics—the requirement is often task-driven: "Find an object to open this parcel." This task-driven detection is challenging because the set of suitable objects is nearly infinite and context-dependent. A knife is a standard choice, but a sharp key or a sturdy shard of plastic can serve the same function.
Previous approaches to task-driven detection often failed by either mapping tasks directly to rigid categories or relying solely on visual context, which leads to confusion when objects share visual similarities but lack functional attributes (e.g., a vegetable stem vs. a tool). CoTDet (Chain-of-Thought Detector) addresses this by shifting the focus from "what an object is" to "what an object can do"—its visual affordances. By leveraging the common-sense reasoning of Large Language Models (LLMs), CoTDet bridges the gap between abstract task requirements and concrete visual features.
Methodology
The CoTDet framework consists of two primary components: a novel prompting strategy to extract affordance knowledge and a transformer-based architecture that utilizes this knowledge for detection.
Multi-Level Chain-of-Thought (MLCoT) Prompting
Instead of simple zero-shot queries, the authors propose a three-step MLCoT strategy to extract deep functional knowledge from LLMs:
- Object-level Brainstorming: The LLM lists common objects suitable for a given task (e.g., "Which objects can open a parcel?").
- Affordance-level Rationales: The model explains why these objects are suitable, identifying functional properties (e.g., "A knife has a sharp blade to cut paper").
- Visual Attribute Summary: These rationales are distilled into concrete visual features that a vision model can recognize, such as "sharp blade" or "handle."
CoTDet Architecture
The detection backbone is built upon Deformable-DETR, enhanced with two "knowledge-conditional" modules that integrate the LLM-derived affordances:
- Knowledge-Conditional Query Generation: Rather than initializing with random queries, the model uses affordance descriptions to scan image features. It identifies regions that match the visual attributes of the required affordances to seed the transformer's search.
- Knowledge-Conditional Denoising Training: During the training phase, the decoder is explicitly conditioned on specific affordance units associated with ground-truth objects, teaching the model to associate functional attributes with spatial bounding boxes.
Experimental Evaluation
The model was evaluated on the COCO-Tasks benchmark, which repurposes MS-COCO images for 14 distinct functional tasks. Unlike standard detection datasets, COCO-Tasks only labels objects that are functionally appropriate for a task within a specific scene context.
Key Results
CoTDet achieved a significant performance leap over previous state-of-the-art methods:
- Detection Performance: Reached 56.9 [email protected], a massive +15.6 AP improvement over the previous best model, TOIST.
- Segmentation Performance: Achieved 53.6 [email protected], outperforming prior methods by 14.8 points.
- Task-Specific Gains: The model showed exceptional strength in complex tasks with high tool variety, such as "get potatoes out of fire" (+25.4 AP) and "dig hole" (+24.1 AP).
Qualitative analysis demonstrates that CoTDet can identify unconventional tools—such as a temperature probe for opening a box—by recognizing the necessary affordances (sharpness and grip) rather than relying on category labels.
Conclusion and Future Work
CoTDet demonstrates that affordances are a universal language for task-driven vision. By using LLMs as visual reasoners to provide functional rationales, the model translates high-level human intent into detectable visual features. While the current work focuses on 14 tasks, future research will aim to scale this knowledge base to the thousands of tasks encountered in open-world robotics and address potential biases inherent in LLM common-sense reasoning.
Summary updated