Abstract
Human-Object Interaction (HOI) detection aims to localize human-object pairs and recognize their interactions in images. Although DETR-based methods have recently emerged as the mainstream framework for HOI detection, they still suffer from a key limitation: Randomly initialized queries lack explicit semantics, leading to suboptimal detection performance. To address this challenge, we propose QueryCraft, a novel plug-and-play HOI detection framework that incorporates semantic priors and guided feature learning through transformer-based query initialization. Central to our approach is ACTOR (Action-aware Cross-modal TransfORmer), a cross-modal Transformer encoder that jointly attends to visual regions and textual prompts to extract action-relevant features. Rather than merely aligning modalities, ACTOR leverages language-guided attention to infer interaction semantics and produce semantically meaningful query representations. To further enhance object-level query quality, we introduce a Perceptual Distilled Query Decoder (PDQD), which distills object category awareness from a pre-trained detector to serve as object query initiation. This dual-branch query initialization enables the model to generate more interpretable and effective queries for HOI detection. Extensive experiments on HICO-Det and V-COCO benchmarks demonstrate that our method achieves state-of-the-art performance and strong generalization.
The Challenge of Random Initialization in HOI Detection
Human-Object Interaction (HOI) detection is a complex computer vision task that requires identifying humans, locating objects, and classifying the semantic relationship between them (e.g., <human, riding, bicycle>). Recently, DEtection TRansformer (DETR) architectures have become the standard for HOI detection by treating the problem as a set prediction task.
However, these models typically rely on randomly initialized queries to probe the image for relevant features. Because these queries start with no inherent understanding of "objects" or "actions," the model must learn complex semantic representations from scratch during training. This lack of grounding leads to slow convergence and suboptimal performance, particularly for rare interactions or zero-shot scenarios where data is insufficient to learn these concepts purely from visual patterns.
QueryCraft: Semantically Grounded Initialization
To bridge this semantic gap, QueryCraft introduces a plug-and-play framework that replaces random query initialization with semantically grounded priors. The architecture consists of two primary modules designed to initialize object and interaction queries respectively.
Perceptual Distilled Query Decoder (PDQD)
PDQD focuses on object-level semantics. Instead of starting with generic queries, it distills knowledge from a pre-trained YOLO object detector. By training on an auxiliary multi-label classification task, PDQD forces queries to develop object category awareness before they enter the main instance decoder. This ensures that the queries are already "looking" for specific object classes defined in the dataset.
Action-aware Cross-modal TransfORmer (ACTOR)
ACTOR addresses interaction-level semantics by leveraging vision-language models like CLIP. It uses an asymmetric cross-attention mechanism where visual features query a "semantic dictionary" of text prompts (e.g., "a person is [verb-ing] an [object]"). This process aligns visual regions with linguistic descriptions, producing queries that are inherently action-aware.
Experimental Results and Analysis
QueryCraft was evaluated on the HICO-DET and V-COCO benchmarks. HICO-DET is particularly challenging due to its long-tail distribution, containing 600 HOI categories across 80 objects and 117 verbs.
Performance Gains
When integrated into various state-of-the-art baselines (such as GEN-VLKT, RLIPv2, and TED-Net), QueryCraft yielded consistent improvements across all metrics. On HICO-DET, adding QueryCraft to the GEN-VLKT baseline improved the Full mAP by +1.12 and the Rare subset mAP by +1.72. These results demonstrate that semantic initialization is particularly effective when training data is scarce.
Zero-Shot and Efficiency
The framework also showed strong generalization in zero-shot settings, improving Unseen Object detection by +2.45 mAP. Furthermore, by providing a semantic "head start," QueryCraft accelerated training convergence by 12.6% to 18.6% across different architectures, significantly reducing the computational resources required for training.
Conclusion
QueryCraft demonstrates that explicit semantic grounding is a powerful tool for enhancing Transformer-based HOI detection. By replacing random queries with distilled object knowledge and language-guided action semantics, the framework achieves superior accuracy and faster convergence. Future work may explore extending this dual-branch initialization to video-based HOI or 3D scene understanding, where spatial and temporal priors could further refine query quality.
Summary updated