Where to Look and How to Describe: Fashion Image Retrieval With an Attentional Heterogeneous Bilinear Network

Haibo Su, Peng Wang, Lingqiao Liu, Hui Li, Zhen Li, Yanning Zhang

TL;DR

Fashion image retrieval is notoriously difficult because products share high visual similarity but undergo massive appearance changes due to pose, lighting, and background. This paper introduces an Attentional Heterogeneous Bilinear Network (AHBN) that mimics human visual processing by using two distinct neural branches—one for localizing clothing parts and one for describing attributes—fused together with a novel co-attention mechanism to achieve highly accurate, state-of-the-art retrieval results.

What Problem Does This Paper Address?

If you are building a visual search engine for e-commerce, fashion products present a unique headache compared to generic objects. The differences between two items can be incredibly subtle (e.g., a V-neck vs. a crew neck), yet the visual appearance of the exact same item can look drastically different depending on how the model is posing, the camera angle, or the lighting.

To solve this, a retrieval system must answer two questions simultaneously:

  1. Where to look: How to localize specific, articulated object parts (like sleeves or collars) despite pose variations.
  2. How to describe: How to extract robust visual descriptors (like texture, fabric, or style) from those specific regions.

Previous methods either ignored this dual requirement or simply mashed different features together without modeling how location and appearance interact.

Methods

The authors propose a biologically inspired architecture called the Attentional Heterogeneous Bilinear Network (AHBN). It mimics the two-stream visual processing system of the human brain by utilizing two distinct, heterogeneous neural network branches:

  • The "How to Describe" Branch: An Inception-ResNet-v2 network trained on a multi-label attribute classification task to extract fine-grained visual descriptors.
  • The "Where to Look" Branch: A Stacked Hourglass network trained to predict spatial landmarks (e.g., collars, hems) to extract localization information.

To fuse these two streams, the authors introduce two key innovations:

  1. Channel-wise Co-Attention: Instead of each branch deciding which of its own feature channels are important (self-attention), the network builds a joint representation of both branches. This joint representation is then used to mutually guide and weight the feature channels for both streams.
  2. Spatial-wise Compact Bilinear Pooling (CBP): After attention is applied, the two feature maps are fused using CBP. Unlike simple concatenation, bilinear pooling calculates the outer product of the vectors, effectively capturing second-order, multiplicative interactions between "where" a feature is and "what" it looks like. CBP uses Count Sketch to do this without the massive computational explosion usually associated with bilinear pooling.

Datasets

The model was evaluated on two major, large-scale public datasets:

  • DeepFashion: The authors used two specific benchmarks from this dataset:
  • Consumer-to-Shop: A highly challenging cross-domain task matching everyday user photos to professional shop photos.
  • In-Shop: A slightly easier, same-domain task matching shop photos to other shop photos.
  • Exact Street2Shop: A dataset matching street photos to shop photos. Because this dataset lacks landmark and attribute annotations, the model's branches were pre-trained on DeepFashion before being evaluated here across six clothing categories.

Key Insights and Ideas

  • Heterogeneous beats Homogeneous: Explicitly assigning different architectures and auxiliary tasks (landmarks vs. attributes) to the two branches works significantly better than using two identical networks.
  • Latent parts are better than explicit landmarks: In an ablation study, the authors found that using the 256-channel feature map just before the final 8-landmark heatmap prediction yielded better retrieval results than using the explicit 8-channel heatmap itself. This suggests the deeper feature map captures useful "latent" clothing parts that humans didn't explicitly annotate.
  • Mutual attention is crucial: The proposed co-attention module, where both branches inform the channel weights of each other, outperformed isolated self-attention (like standard Squeeze-and-Excitation blocks). The streams need to talk to each other to know what is important.
  • Multiplicative fusion works: Using Compact Bilinear Pooling to fuse the branches vastly outperformed simple concatenation or element-wise addition, proving that the interaction between location and appearance is a vital signal.

Key Results

The AHBN model demonstrated exceptional performance across the board:

  • DeepFashion Consumer-to-Shop: Achieved a Top-20 retrieval accuracy of 0.603, absolutely crushing the standard FashionNet baseline (0.188) and remaining highly competitive with state-of-the-art graph-based methods.
  • DeepFashion In-Shop: Reached a Top-20 accuracy of 0.980, vastly outperforming FashionNet (0.764) and performing on par with specialized metric-learning approaches like FastAP (0.985).
  • Exact Street2Shop: Set new state-of-the-art results across all six evaluated categories. For example, on "Dresses," it achieved 0.712 Top-20 accuracy, beating the previous best of 0.642.

Limitations and Future Work

Limitation: The biggest bottleneck of the AHBN model is its reliance on dense human annotations. Because the two branches require explicit pre-training, the training data must have bounding boxes, attribute labels, and landmark coordinates. This makes it difficult to scale the model to massive, uncurated datasets.

Future Work: To bypass the need for expensive manual labeling, the authors suggest incorporating unsupervised contrastive representation learning. By pre-training the two branches using unsupervised techniques, the framework could maintain its powerful two-stream architecture while drastically reducing the requirement for labeled data.

Summary updated

BibTeX
@article{su2021where,
  author = {Haibo Su and Peng Wang and Lingqiao Liu and Hui Li and Zhen Li and Yanning Zhang},
  title = {{Where to Look and How to Describe: Fashion Image Retrieval With an Attentional Heterogeneous Bilinear Network}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2021},
  doi = {10.1109/tcsvt.2020.3034981},
}
Figure