Conditional Cross Attention Network for Multi-Space Embedding without Entanglement in Only a SINGLE Network

Chull Hwan Song, Taebaek Hwang, Jooyoung Yoon, Shunghyun Choi, Yeong Hyeon Gu

Abstract

Traditional multi-attribute embedding methods often struggle with a trade-off between computational efficiency and feature entanglement. This paper presents the Conditional Cross Attention Network (CCA), a novel architecture that utilizes a single Vision Transformer (ViT) backbone to embed multiple distinct object attributes into separate subspaces. By introducing a conditional cross-attention mechanism in the final layer, CCA achieves state-of-the-art performance on major fashion benchmarks while remaining significantly more memory-efficient than multi-network ensembles.

Introduction

In computer vision, objects are rarely defined by a single label; a vehicle, for instance, is characterized by its category, color, and size. Ideally, an AI model should extract these specific features independently. However, traditional models face a "Goldilocks" problem: training a separate network for every attribute is accurate but computationally expensive, while training a single network for everything often leads to feature entanglement, where features from different attributes bleed into one another.

Comparison between general multi-network methods and the proposed single-network CCA approach.

The authors propose CCA to solve this by creating a single network that can "switch" its focus based on a specific condition (the attribute of interest) to produce clean, disentangled embeddings.

Methodology

The CCA architecture is built on three main pillars:

  • Vision Transformer (ViT) Backbone: Unlike previous attempts using Convolutional Neural Networks (CNNs), CCA uses a ViT. The authors argue that ViT’s higher layers are better at preserving spatial locality, which is crucial for identifying attributes located in specific regions (like a shirt's collar).
  • Conditional Token Embedding: To direct the network, the "condition" (e.g., "sleeve length") is converted into a query vector ($Q_c$). The researchers tested two types: a simple fully connected layer (Type-1) and a learnable mask-based approach (Type-2), with the latter generally showing superior performance.
  • Conditional Cross Attention: This is the core innovation. In the final layer of the transformer, the attribute query ($Q_c$) performs cross-attention with the image patches. This allows the network to dynamically "fuse and switch" its attention to the relevant parts of the image for that specific attribute.

Key Results and Insights

The CCA model achieved State-of-the-Art (SOTA) results across four large-scale benchmarks: FashionAI, DARN, DeepFashion, and Zappos50K. On the DARN dataset, the model showed a massive +12.15% improvement in mean Average Precision (mAP) over previous methods.

Spatial Interpretability

Visualization via heatmaps shows that the CCA naturally learns to look at the correct parts of an object. When asked about "neck design," the attention maps glow around the collar; for "skirt length," they focus on the hemline.

Heatmap visualizations showing the model's ability to focus on attribute-specific regions based on the input condition.

Extreme Efficiency

While a naive ensemble would require $N$ times the parameters (where $N$ is the number of attributes), CCA adds fewer than 0.1M parameters to a standard 98M parameter ViT. It achieves better results with a fraction of the memory footprint by using a shared "knowledge base" (the backbone) and applying a specific "filter" (the CCA) at the end.

Conclusion

The Conditional Cross Attention Network successfully addresses the challenge of multi-attribute learning without entanglement. By leveraging the spatial strengths of ViT and a novel attention mechanism, it provides a scalable and efficient solution for complex object characterization. Future work may explore the model's performance on non-transformer architectures and its ability to handle global attributes not tied to specific spatial regions.

Summary updated

BibTeX
@inproceedings{song2023conditional,
  author = {Chull Hwan Song and Taebaek Hwang and Jooyoung Yoon and Shunghyun Choi and Yeong Hyeon Gu},
  title = {{Conditional Cross Attention Network for Multi-Space Embedding without Entanglement in Only a SINGLE Network}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure