TL;DR
Current transformer-based models for Human-Object Interaction (HOI) detection leave performance on the table by initializing their object queries with zeros. The Category-Aware Transformer Network (CATN) fixes this by seeding these queries with semantic category priors from an external detector, achieving new state-of-the-art results on major benchmarks with minimal computational overhead.
What Problem Does This Paper Address?
Human-Object Interaction (HOI) detection is the task of identifying <human, object, verb> triplets in an image (e.g., "person-riding-bicycle"). While Transformer-based architectures like DETR have revolutionized this field, they share a common inefficiency: the Object Query—the set of learnable vectors that "ask" the decoder where instances are—is typically initialized as all zeros.
The authors argue that this "blank slate" approach forces the model to learn everything from scratch for every image, ignoring the rich semantic relationships between objects and actions (like the fact that humans usually "ride" bicycles but "eat" apples). By providing the model with a "hint" about what objects are present in the image before it starts decoding, the detection process becomes significantly more accurate and efficient.
Methods
The authors introduce the Category-Aware Transformer Network (CATN), which consists of three main innovations:
- Category Aware Module (CAM): This module uses a pre-trained external object detector (like Faster R-CNN) to identify candidate object categories in the image. These categories are converted into semantic word embeddings using models like fastText, BERT, or CLIP. These embeddings are then used to initialize the Object Queries of the Transformer decoder, replacing the standard zero-initialization.
- Category-Level Attention Module (CLAM): Beyond just initialization, CATN uses these category priors to refine the visual features coming out of the CNN backbone. By applying an attention mechanism between the visual features and the word embeddings, the model can highlight regions of the image most relevant to the detected categories.
- Modified Matching Cost: During training, the authors adjust the bipartite matching algorithm (which pairs ground-truth labels with model predictions). They add an "external cost" that penalizes the model if it tries to match a ground-truth object to a query that was initialized with a different category prior, effectively shrinking the search space for the optimizer.
Datasets
The model was evaluated on two primary HOI detection benchmarks:
- HICO-DET: The largest HOI dataset, containing 600 interaction categories across 80 object types.
- V-COCO: A subset of the COCO dataset focused on 29 common action classes.
Key Insights and Ideas
- The "Oracle" Proof: To prove their hypothesis, the authors ran an "Oracle" experiment where they initialized queries using ground-truth category information. This led to a massive jump in mAP (from 29.07 to 37.17), confirming that query initialization is a major bottleneck in current architectures.
- Initialization vs. Feature Injection: The authors tested whether it was better to use category priors as query initializations or as additional inputs to the prediction heads. As shown in Figure 4, using them for initialization yielded significantly better performance (31.62 mAP vs ~29.2 mAP).
- Plug-and-Play Efficiency: Despite adding an external detector, the system is efficient. By using a lightweight detector like YOLOv5 in parallel with the main backbone, the inference time only increases by about 2.4ms per image.
Key Results
CATN achieved new state-of-the-art (SOTA) performance across both major datasets:
- HICO-DET: Reached 31.86 mAP (using BERT embeddings), outperforming the previous best model (QPIC) which sat at 29.07 mAP.
- V-COCO: Achieved 60.1 AP-role, a 1.3-point improvement over the previous SOTA.
- Qualitative Improvement: Visualization shows that CATN produces much more accurate attention maps, focusing tightly on the interacting human and object rather than drifting to irrelevant background elements.
Limitations and Future Work
The primary limitation is the reliance on an external object detector. If the initial detector fails to recognize an object in the image, the CAM will provide a "None" or "Background" prior, potentially limiting the performance gains for that specific instance.
Future work could involve exploring end-to-end ways to generate these category priors without a separate detection stage, or investigating how to better handle "Rare" interaction categories where semantic priors might be less reliable due to data scarcity.
Summary updated