Abstract
Human-Object Interaction (HOI) detection is a fundamental task in computer vision that involves localizing humans and objects while identifying their specific interactions. While Transformer-based architectures have recently set new benchmarks in this field, they often suffer from a "cold start" problem where the Object Queries in the decoder are initialized as zeros. This paper introduces the Category-Aware Transformer Network (CATN), a novel framework that leverages semantic category priors from an external detector to initialize these queries. By injecting category-aware information and utilizing a specialized attention mechanism, CATN significantly enhances the representation ability of the model, achieving state-of-the-art results on major benchmarks like HICO-DET and V-COCO.
Introduction
Human-Object Interaction (HOI) detection aims to parse an image into a set of triplets: <human, object, verb>. Recent advancements have been driven by Transformer-based models such as QPIC and HOTR, which treat HOI detection as a set prediction problem. However, a critical limitation in these models is the initialization of Object Queries. Typically, these queries are initialized as vectors of zeros, forcing the model to learn spatial and semantic relationships from scratch for every image.
As shown in Figure 1, initializing queries with semantic information (Category-Aware Query) leads to faster convergence and higher overall mAP compared to the standard zero-initialization. The authors argue that if the model is aware of the objects present in an image (e.g., a "dog" and a "person"), it can more effectively focus its attention on relevant regions to identify interactions like "walking" or "holding."
The CATN Framework
To address the limitations of zero-initialization, the Category-Aware Transformer Network (CATN) introduces three core components designed to integrate semantic knowledge into the visual pipeline.
1. Category-Aware Module (CAM)
The CAM replaces the standard zero-initialization with semantic priors. It utilizes an external object detector (e.g., YOLOv5 or Faster R-CNN) to identify candidate object categories in the input image. These categories are then mapped to high-dimensional word embeddings using pre-trained language models like BERT, CLIP, or fastText. These embeddings serve as the initial state for the Object Queries in the Transformer decoder, providing a semantic "warm start."
2. Category-Level Attention Module (CLAM)
Beyond query initialization, CATN enhances the visual features themselves. The CLAM uses a cross-attention mechanism where visual features from the CNN backbone attend to the category priors. This ensures that the features passed into the Transformer encoder are already enriched with semantic context, making the subsequent interaction decoding more robust.
3. Modified Matching Cost (MMC)
During training, Transformer models use the Hungarian Algorithm for bipartite matching between predictions and ground truth. CATN introduces a Modified Matching Cost that incorporates category consistency. By penalizing matches between mismatched categories (e.g., matching a "dog" query to a "bicycle" ground truth), the model constrains the search space, leading to more efficient training and higher precision.
Experimental Results
The authors validated CATN through extensive experiments on the HICO-DET and V-COCO datasets.
- Oracle Experiment: To test the theoretical upper bound, the authors initialized queries with ground-truth category information. This resulted in a massive jump from 29.07 mAP to 37.17 mAP on HICO-DET, proving that query initialization is indeed a major bottleneck.
- Benchmark Performance: CATN achieved a new state-of-the-art on HICO-DET with 31.86 mAP (using BERT embeddings) and 60.1 $AP_{role}$ on V-COCO. This represents a significant improvement over the QPIC baseline (+2.79 mAP on HICO-DET).
- Efficiency: Despite the addition of an external detector, the parallel architecture of CATN remains highly efficient. Using a YOLOv5m detector adds only approximately 2.4ms of latency per image, making the model suitable for real-time applications.
Conclusion
The Category-Aware Transformer Network (CATN) demonstrates that semantic priors are a powerful tool for improving Transformer-based HOI detectors. By bridging the gap between computer vision and natural language processing through category-aware query initialization and attention, CATN overcomes the "cold start" problem of previous models. Future work may involve tighter integration of the object detection and interaction recognition stages to further optimize the vision-language synergy.
Summary updated