Introduction
Human-Object Interaction (HOI) detection is a fundamental computer vision task that involves identifying and localizing triplets of (human, verb, object) within an image. Understanding these relationships—such as a person riding a motorcycle or carrying a surfboard—is crucial for applications ranging from autonomous robotics to video surveillance.
In recent years, the field has seen a shift toward "one-stage" detectors, primarily those based on the Detection Transformer (DETR) architecture. While these models achieve high accuracy by treating HOI detection as a set-prediction problem, they are computationally expensive to train and require significant memory. Traditional two-stage models, which first detect objects and then classify interactions, offered better efficiency but had fallen behind in performance. This paper introduces the Unary-Pairwise Transformer (UPT), a novel two-stage framework that reclaims the performance lead while maintaining the efficiency advantages of the two-stage approach.
Methodology: The Unary-Pairwise Transformer
The UPT framework leverages a pre-trained, frozen object detector (specifically DETR) to generate initial object proposals. The core innovation is the Interaction Head, which processes these proposals through a series of specialized transformer layers designed to reason about both individual objects and their potential interactions.
The Interaction Head consists of two primary components:
- The Cooperative (Unary) Layer: This layer operates on individual object detections (unary tokens). It uses a modified attention mechanism that incorporates pairwise spatial information, such as relative bounding box positions and Intersection over Union (IoU). This layer acts "cooperatively" by enhancing the features of objects likely to be involved in positive interactions.
- The Competitive (Pairwise) Layer: This layer focuses on human-object pairs. By comparing different interaction candidates, it "competitively" suppresses the scores of negative or non-interactive pairs. This dual-layer approach effectively widens the gap between true interactions and background noise.
Finally, a Multi-branch Fusion (MBF) module combines visual appearance features from the transformer with explicit geometric features derived from bounding box coordinates to produce the final interaction classification.
Performance and Efficiency
The UPT model was evaluated on the HICO-DET and V-COCO benchmarks. On HICO-DET, UPT achieved a state-of-the-art 32.62 mAP, a significant improvement over the previous leading one-stage model, QPIC (29.90 mAP).
Beyond raw accuracy, UPT demonstrates remarkable efficiency. Because the first-stage object detector is frozen, the model requires far fewer training epochs and hours to converge compared to end-to-end one-stage models.
As shown in the performance plots, UPT (Ours) reaches higher mAP scores in a fraction of the training time required by models like QPIC. Furthermore, the model achieves near real-time performance, running at 24 FPS on a single GPU with a ResNet50 backbone.
Conclusion
The Unary-Pairwise Transformer demonstrates that two-stage HOI detection remains highly competitive when paired with modern transformer-based reasoning. By specializing layers for unary and pairwise analysis and explicitly incorporating spatial cues, UPT achieves state-of-the-art results with significantly lower training costs than one-stage alternatives. Future work will focus on addressing challenges in crowded scenes and improving the handling of rare or ambiguous interaction classes.
Summary updated