A Plug-and-Play Method for Rare Human-Object Interactions Detection by Bridging Domain Gap

Lijun Zhang, Wei Suo, Peng Wang, Yanning Zhang

Introduction

Detecting Human-Object Interactions (HOI) is a fundamental task in computer vision that involves identifying triplets of <human, verb, object> within an image. While modern deep learning models have achieved significant success in recognizing common interactions, they frequently falter when encountering "rare" categories. This performance drop is primarily due to the extreme long-tail distribution of real-world datasets, where common actions like "riding a bicycle" have thousands of examples, while rare actions like "riding a giraffe" may have fewer than ten.

A promising solution to this data scarcity is the use of generative AI, such as Stable Diffusion, to create synthetic training data for these rare classes. However, a significant obstacle remains: the domain gap. Synthetic images possess distinct statistical properties compared to real-world photographs. Simply augmenting training sets with generated images often fails because the model struggles to reconcile these two different data distributions. This paper introduces CEFA (Context-Enhanced Feature Alignment), a model-agnostic module designed to bridge this gap and effectively leverage synthetic data for HOI detection.

The CEFA Framework

The authors propose CEFA as a "plug-and-play" enhancement that can be integrated into existing state-of-the-art HOI models. The framework addresses the domain gap through two specialized components: the Prototype Instance Alignment Module (PIAM) and the Context Enhancement Module (CEM).

1. Prototype Instance Alignment Module (PIAM)

Traditional domain alignment methods often attempt to align features across entire images. However, HOI detection is inherently local, focusing on the relationship between specific human and object instances. PIAM addresses this by selecting high-scoring "prototype" tokens from the model's decoder. These tokens represent the most relevant features for the interaction. By employing a Graph Convolutional Network (GCN), PIAM aggregates information about these specific human-object pairs, ensuring that the alignment process focuses on the interaction features rather than global image style. This targeted alignment helps the model transfer knowledge from synthetic interactions to real-world scenarios more effectively.

2. Context Enhancement Module (CEM)

Aggressive feature alignment can inadvertently lead to the loss of important background details, a phenomenon known as "washing out" context. In HOI detection, context is vital; for instance, the presence of snow is a strong cue for the action "skiing." To mitigate this, the authors developed the CEM, which incorporates a masked image reconstruction task inspired by Masked Autoencoders (MAE). The model is tasked with reconstructing a masked version of a synthetic image using features from a real image as a guide. This auxiliary task forces the model to remain sensitive to contextual cues, acting as an anchor that preserves environmental information during the alignment process.

Experimental Results

The researchers evaluated CEFA on two benchmark datasets: HICO-Det, which contains 600 HOI triplets (138 of which are rare), and V-COCO. Synthetic data was generated using Blip-diffusion with simple prompts like "a photo of a human [verb]ing [object]."

The results demonstrate that CEFA consistently improves performance across various baseline models, particularly in rare categories:

  • HICO-Det: When integrated with the HOICLIP model, CEFA improved the Mean Average Precision (mAP) for rare categories by 1.59 points (increasing from 30.71 to 32.30).
  • V-COCO: On the CDN baseline, the module provided a significant 2.23 point mAP boost for rare interactions.
  • Qualitative Analysis: Visual evaluations showed that while baseline models often "hallucinate" incorrect verbs (e.g., misidentifying "kissing" an animal as "petting"), the CEFA-enhanced models correctly identified the interaction and localized the objects with higher precision.

Key Insights

Through t-SNE visualizations, the authors confirmed that even high-quality synthetic images occupy a distinct cluster in the feature space compared to real images, justifying the need for specialized alignment. The success of CEFA highlights the importance of balancing alignment with context preservation. By using graph-based prototypes and reconstruction tasks, the framework ensures that the model learns the underlying logic of the interaction rather than just the stylistic elements of the training data.

Limitations and Future Directions

While CEFA represents a significant step forward, its effectiveness is partially dependent on the quality of the generative model used to create synthetic samples. Highly distorted synthetic images can still pose challenges for feature extraction. Additionally, the inclusion of a GCN and an auxiliary reconstruction decoder increases computational overhead during training, though it does not impact inference speed. Future research may explore automated prompt engineering to generate more diverse and complex synthetic scenarios to further challenge and refine the model's detection capabilities.

Summary updated

BibTeX
@inproceedings{zhang2024plug,
  author = {Lijun Zhang and Wei Suo and Peng Wang and Yanning Zhang},
  title = {{A Plug-and-Play Method for Rare Human-Object Interactions Detection by Bridging Domain Gap}},
  booktitle = {ACM Multimedia},
  year = {2024},
  url = {https://openreview.net/forum?id=BUz2VHLCfm},
}
Figure