[Paper Review] Efficient Two-Stage Detection of Human-Object Interactions with a Novel Unary-Pairwise Transformer
This paper proposes a novel two-stage Human-Object Interaction (HOI) detection model using a Unary-Pairwise Transformer that separately encodes individual instances (unary) and their interactions (pairwise), achieving state-of-the-art performance on HICO-DET and V-COCO with faster training, lower memory usage, and real-time inference on a single GPU, outperforming existing one-stage detectors despite using a lighter training paradigm.
Recent developments in transformer models for visual data have led to significant improvements in recognition and detection tasks. In particular, using learnable queries in place of region proposals has given rise to a new class of one-stage detection models, spearheaded by the Detection Transformer (DETR). Variations on this one-stage approach have since dominated human-object interaction (HOI) detection. However, the success of such one-stage HOI detectors can largely be attributed to the representation power of transformers. We discovered that when equipped with the same transformer, their two-stage counterparts can be more performant and memory-efficient, while taking a fraction of the time to train. In this work, we propose the Unary-Pairwise Transformer, a two-stage detector that exploits unary and pairwise representations for HOIs. We observe that the unary and pairwise parts of our transformer network specialise, with the former preferentially increasing the scores of positive examples and the latter decreasing the scores of negative examples. We evaluate our method on the HICO-DET and V-COCO datasets, and significantly outperform state-of-the-art approaches. At inference time, our model with ResNet50 approaches real-time performance on a single GPU.
Motivation & Objective
- To address the inefficiency and high memory cost of one-stage HOI detectors that rely heavily on large transformer decoders.
- To investigate whether two-stage HOI detectors with modern backbones like DETR can outperform one-stage models in accuracy and efficiency.
- To design a novel transformer architecture that leverages complementary unary and pairwise representations for improved HOI detection.
- To analyze the role of attention mechanisms in unary and pairwise layers for boosting positive predictions and suppressing false positives.
- To demonstrate that a two-stage design with frozen object detector weights enables faster, more memory-efficient training while maintaining high performance.
Proposed method
- The model uses a two-stage pipeline: first, a DETR backbone detects human and object instances, then a novel Unary-Pairwise Transformer processes their features.
- Unary tokens represent individual human and object instances, with self-attention within this stream enhancing scores for positive HOI pairs.
- Pairwise tokens represent all human-object pairs, with self-attention across these tokens acting as a soft non-maximum suppression to reduce false positives.
- The model employs bipartite matching loss to align training with evaluation, resolving misalignment issues common in one-stage detectors.
- Attention maps are visualized and ablated to validate that unary attention boosts positive pair scores and pairwise attention suppresses negative ones.
- The method uses pre-trained DETR weights and fine-tunes only the interaction head, reducing computational cost and environmental impact.
Experimental results
Research questions
- RQ1Can a two-stage HOI detector with a modern transformer backbone outperform state-of-the-art one-stage detectors in accuracy and efficiency?
- RQ2How do unary and pairwise attention mechanisms in a transformer contribute differently to HOI detection performance?
- RQ3To what extent does attention in the unary stream enhance scores for positive human-object interaction pairs?
- RQ4How does attention in the pairwise stream act as a soft non-maximum suppression mechanism to suppress negative pairs?
- RQ5Does decoupling the object detector from the interaction head enable faster, more memory-efficient training without sacrificing accuracy?
Key findings
- The proposed two-stage model achieves 31.66 mAP on HICO-DET with ResNet-50 and 32.31 mAP with ResNet-101, significantly outperforming state-of-the-art one-stage detectors.
- The model reaches real-time inference speed on a single GPU, demonstrating strong efficiency despite high accuracy.
- Ablation studies show that disabling attention between positive unary pairs reduces interaction scores by 8%, confirming their role in boosting true positives.
- Zeroing out attention from negative pairs to dominant positive pairs reduces their scores by 11%, validating the competitive layer’s suppression behavior.
- The model trains significantly faster and uses less memory than one-stage detectors, even when using the same transformer backbone.
- Performance degrades under occlusion and in low-data scenarios, highlighting limitations in generalization to rare or ambiguous actions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.