Label Embedding with Partial Heterogeneous Contexts

Yaxin Shi, Donna Xu, Yuangang Pan, Ivor W. Tsang, Shirui Pan

Abstract

Label embeddings are essential for bridging the gap between visual features and semantic categories in tasks like zero-shot learning. However, existing methods often struggle with heterogeneous data sources and incomplete information. This paper presents the Partial Heterogeneous Context Label Embedding (PHCLE) framework, which integrates relational (taxonomic) and descriptive (attribute-based) contexts into a unified embedding space. By employing a joint matrix factorization approach with an indicator mechanism, PHCLE effectively handles "partial contexts" where descriptive attributes may be missing for a subset of labels, outperforming traditional alignment methods in classification and interpretability.

Introduction

In machine learning, label embeddings represent categories as numerical vectors that capture semantic relationships. These relationships typically derive from two distinct sources: Relational Context, such as hierarchical links in WordNet (e.g., a "weasel" related to a "skunk"), and Descriptive Context, consisting of specific attributes (e.g., "has fur," "is small").

Overview of the PHCLE framework showing the integration of relational and descriptive contexts into a shared embedding space.

A significant challenge in this field is that these sources are mathematically heterogeneous—graphs versus matrices—and often incomplete. Real-world datasets frequently provide a full hierarchy for thousands of labels but descriptive attributes for only a small fraction. Traditional methods like Canonical Correlation Analysis (CCA) often fail when faced with such "partial correspondence," either discarding incomplete data or failing to align the spaces correctly.

Methodology

PHCLE addresses these challenges by treating label embedding as a joint matrix factorization problem. The framework is built on three core strategies:

  1. Tailor-made Formulations: The model uses different mathematical representations for different contexts. Relational data is modeled using Explicit Matrix Factorization (EMF), while descriptive data is handled via standard matrix factorization ($A \approx W^TU$).
  2. Shared Embedding Principle: The central innovation is a shared variable $W$, representing the label embedding, which is optimized across both context formulas. This forces the model to find a single vector space that satisfies both relational and descriptive constraints simultaneously.
  3. Handling Missing Data: To manage partial contexts, PHCLE introduces an indicator matrix ($I$) into the objective function. This allows the model to ignore missing attributes for specific labels during training without losing the valuable relational data available for those same labels.
  4. Discriminative Selection: The model applies $L_1$ regularization (sparsity constraints) to attribute embeddings, helping it ignore noisy or redundant human-provided tags and focus on the most informative features for alignment.

Experimental Results

The researchers evaluated PHCLE on standard benchmarks including Animals with Attributes (AwA) and Attribute Pascal and Yahoo (aPY), using ImageNet and WordNet to construct the relational backbone.

Zero-Shot Learning Performance

PHCLE consistently outperformed baselines such as Word2Vec, ALE, and CCA. On the aPY dataset, PHCLE achieved a top-1 accuracy of 54.61%, surpassing the next best baseline, ALE (52.60%). Notably, when compared to TADW—a popular attributed graph embedding method—on labels with full context, PHCLE nearly doubled the accuracy (50.56% vs. 28.13%).

Interpretability and Clustering

Qualitative analysis demonstrates that PHCLE produces significantly cleaner semantic clusters than competing methods. By leveraging the shared embedding space, labels without attributes benefit from "information flow" from well-described labels via the relational hierarchy.

Comparison of similarity matrices across different embedding methods. PHCLE exhibits a clearer block-diagonal structure, indicating superior label clustering and semantic alignment.

As shown in the similarity matrix visualizations, PHCLE (center) maintains distinct groupings that reflect both taxonomic and visual similarities, whereas methods like CCA or CNC often produce noisier results. For instance, PHCLE correctly groups the "weasel" with the "skunk" due to hierarchy while maintaining its attribute-based relationship to other small mammals.

Conclusion

PHCLE provides a robust framework for learning label embeddings from partial and heterogeneous data. By successfully integrating relational and descriptive contexts through joint factorization, it enables more accurate zero-shot classification and more interpretable semantic spaces. Future work will explore methods to handle extreme sparsity where both relational and descriptive contexts are limited.

Summary updated

BibTeX
@inproceedings{shi2019label,
  author = {Yaxin Shi and Donna Xu and Yuangang Pan and Ivor W. Tsang and Shirui Pan},
  title = {{Label Embedding with Partial Heterogeneous Contexts}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33014926},
}
Figure