Iwin: Human-Object Interaction Detection via Transformer with Irregular Windows

Danyang Tu, Xiongkuo Min, Huiyu Duan, Guodong Guo, Guangtao Zhai, Wei Shen

Introduction

Human-Object Interaction (HOI) detection is a complex task that requires localizing humans and objects while simultaneously recognizing the semantic relationships between them. While Vision Transformers (ViTs) have revolutionized this field, they typically rely on attention mechanisms with significant drawbacks. Global attention, as seen in models like DETR, is computationally expensive and often processes redundant background information. Conversely, fixed window attention, such as in Swin Transformers, uses rigid rectangular grids that often "slice" through objects or mix human features with irrelevant background pixels. These rigid structures fail to capture the high-level object abstractions necessary for recognizing complex interactions like "riding a bicycle."

Methods: Irregular Window Partitioning

The core innovation of this work is the Iwin Transformer, a hierarchical architecture featuring Multi-scale Irregular Window Partitioning (MS-IWP). Instead of a fixed grid, the model learns "offsets" for each window location using a simple 3x3 convolution. This allows the model to predict how to shift its sampling points so that windows "warp" to align with the actual shapes of humans and objects in the scene.

Comparison of regular vs. irregular window partitioning. Irregular windows adapt to object shapes, reducing semantic noise.

Within these irregular windows, the model employs Agglomerative Tokenization, progressively merging tokens to ensure that each remaining token represents a semantically meaningful part of an object. This content-aware reduction makes global self-attention computationally feasible in the final stages, allowing the model to link distant humans and objects effectively.

Experimental Results

The Iwin Transformer was evaluated on the gold-standard HICO-DET and V-COCO benchmarks.

Performance and Efficiency

Iwin sets a new state-of-the-art for HOI detection. On HICO-DET, it achieved 32.79 mAP, outperforming the previous state-of-the-art (QPIC) by 3.7 points. On V-COCO, it achieved 60.85 $AP_{role}$, a 2.0 point improvement.

Crucially, the model achieves these results with significantly higher efficiency. As shown in the training curves, Iwin reaches superior performance in just 150 epochs, whereas previous models like QPIC require 300+ epochs to reach lower performance levels.

mAP on HICO-DET over training epochs. Iwin (Ours) demonstrates significantly faster convergence and higher peak performance compared to Swin-based, QPIC, and Deformable DETR models.

Key Insights

Ablation studies confirmed that the inclusion of Irregular Window Partitioning (IWP) alone accounted for a 3.1 mAP boost compared to standard rectangular windows. The model's hybrid approach—local irregular windows followed by global attention—provides resilience to distance, effectively capturing both near and far interactions.

Conclusion

The Iwin Transformer demonstrates that shape-aware attention windows significantly improve the performance and training speed of HOI detection models. By eliminating semantic noise from the background and focusing on object contours, Iwin provides a more effective inductive bias for understanding human-object relationships. Future work will investigate the generalization of irregular windows to other dense prediction tasks like instance segmentation.

Summary updated

BibTeX
@inproceedings{tu2022iwin,
  author = {Danyang Tu and Xiongkuo Min and Huiyu Duan and Guodong Guo and Guangtao Zhai and Wei Shen},
  title = {{Iwin: Human-Object Interaction Detection via Transformer with Irregular Windows}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19772-7\_6},
}
Figure