KE-RCNN: Unifying Knowledge-Based Reasoning Into Part-Level Attribute Parsing

Xuanhan Wang, Jingkuan Song, Xiaojia Chen, Lechao Cheng, Lianli Gao, Heng Tao Shen · DOI

TL;DR

KE-RCNN (Knowledge Embedded RCNN) is a novel framework that improves part-level attribute parsing by integrating both implicit relational context (how parts relate to each other) and explicit commonsense knowledge (statistical priors about which attributes belong to which parts). By moving beyond looking at isolated image crops, it achieves state-of-the-art results on fashion and action recognition benchmarks.

What Problem Does This Paper Address?

In computer vision, "part-level attribute parsing" means not just identifying a person, but localizing their individual body parts (like a sleeve or a skirt) and describing their specific traits (like "wrist-length" or "pleated").

The standard approach is to use a two-stage detector (like Mask R-CNN) and add a "head" that looks at a small, cropped box around a part to predict its attributes. However, this "local-only" view has two major flaws:

  1. Lack of Context: Whether a sleeve is "short" or "long" often depends on its visual relationship to the rest of the garment, not just the pixels inside the sleeve box itself.
  2. Ignoring Logic: Standard models often make "impossible" predictions because they don't "know" that a pair of shorts cannot have a "hoodie" attribute.

Methods

The authors propose KE-RCNN, a plug-and-play module that can be integrated into various RCNN-based detectors. It consists of two primary components:

  • Implicit Knowledge based Encoder (IK-En): This module enriches the representation of a part by looking at its surroundings. It uses visual context encoding (how the part looks compared to the whole person) and geometry context encoding (the relative position and scale of the part). This helps the model understand relational attributes like "above-the-hip."
  • Explicit Knowledge based Decoder (EK-De): This module acts as a "sanity check" using a knowledge graph. It leverages statistical priors—derived from dataset annotations or external sources like Wikipedia—to guide the attribute prediction. It uses an attention-based mechanism to filter out irrelevant attributes and focus only on those that are logically possible for a given part category.

Crucially, the authors also decouple attribute parsing from the initial detection branch. Instead of predicting attributes from raw region proposals, they use the refined, high-quality bounding boxes from the detector's second stage, which significantly reduces noise.

Datasets

The model was evaluated on two challenging benchmarks:

  • Fashionpedia: A massive dataset containing 48k images with 46 apparel categories and 294 attributes.
  • Kinetics-TPS: A dataset for part-level action parsing (e.g., identifying that a "hand" is "holding" or an "arm" is "swinging").

Key Insights and Ideas

  • Knowledge > Model Size: The authors show that adding knowledge is more effective than simply making the model bigger. Their IK-En variant outperformed a much larger "ASPP RCNN" model while using significantly fewer parameters.
  • Static vs. Dynamic Attributes: A fascinating finding was that different types of knowledge help different tasks. Explicit knowledge (commonsense) is most helpful for static fashion attributes (e.g., a "skirt" is likely "mini"). Implicit knowledge (relational context) is more critical for dynamic action attributes (e.g., an arm's "swinging" state depends on its movement relative to the body).
  • Decoupling is Key: Simply separating the attribute parsing task so it runs on refined boxes rather than raw proposals led to an immediate jump of ~6% in accuracy before any "knowledge" was even added.

Key Results

KE-RCNN consistently outperformed all baselines across multiple backbones (ResNet, HRNet, Swin Transformer):

  • Fashionpedia: Achieved an improvement of ~3% in $AP^{all}_{IoU+F1}$ over existing state-of-the-art methods.
  • Kinetics-TPS: Improved part-level action accuracy ($Acc_p$) by approximately 4%.
  • Efficiency: The model maintains a practical inference speed of around 10 frames per second, making it comparable to standard baseline models despite the added reasoning layers.

Limitations and Future Work

The authors acknowledge that the system's biggest bottleneck is still the initial part detection. If the detector fails to find a part or produces a very poor bounding box, the attribute parser—no matter how "smart"—cannot recover.

Future research directions suggested include:

  • Developing single-stage attribute parsing pipelines to reduce the dependency on multi-stage detection.
  • Exploring one-shot or few-shot learning to help the model recognize rare "long-tail" attributes that have very few examples in the training data.

Summary updated

BibTeX
@article{wang2023ke,
  author = {Xuanhan Wang and Jingkuan Song and Xiaojia Chen and Lechao Cheng and Lianli Gao and Heng Tao Shen},
  title = {{KE-RCNN: Unifying Knowledge-Based Reasoning Into Part-Level Attribute Parsing}},
  journal = {IEEE Trans. Cybernetics},
  year = {2023},
  doi = {10.1109/tcyb.2022.3209653},
}
Figure