Category Query Learning for Human-Object Interaction Classification

Chi Xie, Fangao Zeng, Yue Hu, Shuang Liang, Yichen Wei

TL;DR

Category Query Learning (CQL) is a novel, lightweight plug-in for Human-Object Interaction (HOI) detection that replaces static classification weights with dynamic, image-adaptive "category queries." By learning these queries through an auxiliary image-level task and a transformer decoder, CQL achieves new state-of-the-art results on major benchmarks like HICO-DET and V-COCO across multiple baseline architectures.

What Problem Does This Paper Address?

Human-Object Interaction (HOI) detection is the task of identifying triplets in an image—specifically, a human, an object, and the interaction between them (e.g., "person riding a horse"). While finding the human and object is relatively standard, classifying the interaction is notoriously difficult.

The core challenge lies in semantic polysemy and appearance variation. As shown in Figure 1, the action "fly" looks completely different when the object is a kite versus an airplane. Similarly, "holding" an elephant involves a different pose and context than "holding" a fork.

Figure 1. Interaction classification is inherently challenging. In (a), “fly” is semantically polysemic, resulting in different objects, poses and relative positions. In (b), when “hold” is associated with different objects, the appearance, scene background, and human poses are largely different.

Most existing HOI methods focus on extracting better features for the human-object pair but rely on a simple linear classifier with static weights to categorize the interaction. This paper argues that a fixed weight vector is too rigid to capture the complex variations of interaction categories across different scenes.

Methods

The authors introduce Category Query Learning (CQL), a method that makes the classification process dynamic and image-specific. The architecture consists of two main components integrated into a baseline HOI detector:

  1. Image-level Category Query Learning: The model defines a set of learnable embedding vectors—one for each interaction category (e.g., "ride," "hold," "eat"). These queries are passed through a transformer decoder along with the global image features. The decoder allows each query to "attend" to relevant parts of the image, producing updated queries ($Q'_k$) that represent what a specific category looks like in that particular image. This process is supervised by an auxiliary image-level classification loss (Asymmetric Loss).
  2. Interaction Classification with Category Queries: Instead of using static weights, the model uses these updated, image-specific queries as the classifier weights. The final interaction score for a human-object pair is calculated as the cosine similarity between the pair's instance feature and the corresponding updated category query.
Figure 2. Overview of our method. It consists of two components (top and bottom right). It can be integrated with any baseline HOI method (bottom left) that provides image feature I and human-object instance features Fi. See Sec. 3 for details.

Additionally, the authors employ a Score Integration step, which uses the image-level classification probabilities to refine and boost the instance-level scores, helping to suppress false positives.

Datasets

The method was evaluated on two widely-used HOI benchmarks:

  • HICO-DET: A large-scale dataset containing 47,776 images and 600 HOI categories.
  • V-COCO: A smaller subset of MS-COCO with 10,346 images and 29 interaction categories.

Key Insights and Ideas

  • Adaptive Weights over Static Weights: The fundamental "aha" moment is that the classifier itself should be adaptive. By using attention, the category queries learn to highlight discriminative regions—for example, the query for "ride" might focus on the feet/legs, while "hold" focuses on the hands.
  • Global Context for Local Ambiguity: CQL is particularly effective in "dense" images containing many human-object instances. In these cases, individual instance features might be weak or occluded, but the global category query can aggregate information from across the image to provide a more robust representation.
  • Generalizability: CQL is a general framework. The authors demonstrated its effectiveness by plugging it into three very different baselines: QPIC (transformer-based), SCG (two-stage GNN-based), and GEN-VLKT (vision-language transformer). In all cases, performance improved significantly.
Visualization of attention maps showing how different category queries focus on relevant body parts for different actions.

Key Results

CQL achieved impressive quantitative gains across the board:

  • New State-of-the-Art: On HICO-DET, CQL reached 36.03 mAP (Full) using a ResNet101 backbone, surpassing all previous methods.
  • Consistent Improvements: It improved the QPIC baseline by 2.15 mAP, SCG by 1.46 mAP, and the previous SOTA (GEN-VLKT) by 1.67 mAP.
  • Efficiency: The module is lightweight, adding only about 5 million parameters and resulting in only a marginal decrease (~5-9%) in inference speed (FPS).
  • Qualitative Success: Qualitative analysis showed that CQL successfully suppresses false positives (e.g., correctly lowering the score for "person board bus" when the person is actually just sitting on it) by leveraging image-level context.

Limitations and Future Work

The authors note that their current work focuses strictly on the interaction classification sub-task. It does not directly improve the localization (bounding box detection) of humans and objects.

Future research directions include:

  • Extending the category query concept to improve the detection of humans and objects themselves within the HOI framework.
  • Exploring the application of category query modeling to other complex computer vision tasks beyond HOI.
  • Addressing potential social impacts, such as the misuse of such technology in unauthorized surveillance.

Summary updated

BibTeX
@misc{xie2023category,
  author = {Chi Xie and Fangao Zeng and Yue Hu and Shuang Liang and Yichen Wei},
  title = {{Category Query Learning for Human-Object Interaction Classification}},
  year = {2023},
  eprint = {2303.14005},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.14005},
}
Figure