Abstract
Detecting human-object interactions (HOI) has traditionally relied on complex multi-stage pipelines that involve separate object detection and interaction classification steps. We present the HOI Transformer, a streamlined, end-to-end framework that treats HOI detection as a set prediction problem. By leveraging a Transformer-based architecture with global context, our model directly predicts "quintuples"—comprising human and object bounding boxes along with their respective classes and interactions. This approach eliminates the need for hand-crafted components like interaction points or non-maximum suppression (NMS), achieving state-of-the-art performance on HICO-DET and V-COCO benchmarks while maintaining high efficiency.
Introduction
Human-Object Interaction (HOI) detection is a fundamental task in scene understanding, requiring the localization of humans and objects and the identification of the verbs connecting them. Previous approaches generally fall into two categories: two-stage and one-stage methods. Two-stage methods first detect all objects and then classify all possible pairs, which is computationally expensive. One-stage methods attempt to detect interaction points or union boxes but often require complex post-processing to associate these detections with the correct human-object pairs.
The HOI Transformer addresses these limitations by proposing a unified architecture that reasons about the entire scene simultaneously, avoiding the fragmentation of earlier pipelines.
The HOI Transformer Architecture
The HOI Transformer is built upon the Detection Transformer (DETR) paradigm. It consists of three primary stages: feature extraction, global context modeling, and quintuple prediction.
1. Feature Extraction
A standard Convolutional Neural Network (CNN) backbone, such as ResNet-50 or ResNet-101, extracts high-level visual features from the input image. These features are then reduced in dimensionality and flattened to be processed by the Transformer.
2. Transformer Encoder-Decoder
The Encoder applies self-attention to the flattened features, allowing the model to aggregate global context. This is crucial for HOI detection, as interactions often involve long-range spatial relationships (e.g., a person flying a kite). The Decoder then takes a set of learnable "HOI queries" and transforms them into output embeddings by attending to the encoder's global memory.
3. Quintuple Prediction
Each output embedding from the decoder is passed through parallel Multi-Layer Perceptrons (MLPs) to directly predict a "quintuple":
- Human Bounding Box ($h_{bbox}$): Coordinates for the person.
- Object Bounding Box ($o_{bbox}$): Coordinates for the object.
- Human Class: Typically "person".
- Object Class: The category of the object (e.g., "sports-ball").
- Interaction Class: The verb describing the action (e.g., "kick").
Training via Set Prediction
To train the network end-to-end, the authors introduce a quintuple matching loss. Using the Hungarian algorithm, the model finds an optimal one-to-one assignment between the predicted HOI set and the ground truth. This formulation forces the model to produce unique predictions for each interaction in the scene, effectively removing the need for traditional post-processing steps like Non-Maximum Suppression (NMS).
Key Insights and Results
The HOI Transformer demonstrates that global context is a powerful substitute for hand-crafted heuristics. By "looking" at the entire image, the model can resolve ambiguities that local-crop methods might miss.
Performance Benchmarks
The model was evaluated on the HICO-DET and V-COCO datasets:
- HICO-DET: Achieved 26.61% AP on Full categories, a significant improvement over the previous best one-stage method (PPDM) by 4.88 points.
- V-COCO: Reached 52.9% $AP_{role}$, outperforming prior methods without requiring additional inputs like human pose or linguistic priors.
- Efficiency: The model operates at 24 FPS on an NVIDIA 2080Ti, making it suitable for real-time applications.
Conclusion
The HOI Transformer represents a significant shift in HOI detection, moving away from fragmented, multi-stage pipelines toward a unified, end-to-end architecture. By leveraging the global reasoning capabilities of Transformers and formulating detection as a set prediction problem, it achieves superior accuracy and simplicity. Future work will focus on addressing the long-tail distribution of rare interactions and improving the detection of small objects within complex scenes.
Summary updated