Two-Stage Label Embedding via Neural Factorization Machine for Multi-Label Classification

Chen Chen 0043, Haobo Wang, Weiwei Liu, Xingyuan Zhao, Tianlei Hu, Gang Chen 0001

Introduction

In multi-label classification (MLC), the primary objective is to assign multiple relevant labels to a single data instance. A critical challenge in this domain is capturing label dependency—the inherent relationships between categories, such as the high likelihood of "ocean" appearing alongside "sand."

Traditional approaches often fall into two camps: simple linear embeddings that fail to capture complex hierarchies, or deep neural networks (DNNs) that struggle with the extreme sparsity typical of high-dimensional label data. This paper introduces Two-Stage Label Embedding (TSLE), a framework that utilizes Neural Factorization Machines (NFM) to bridge the gap between these methods, effectively modeling both pairwise interactions and high-order non-linear correlations.

The TSLE Framework

The core of the TSLE paradigm is the Twin Encoding Network (TEN), which projects features ($x$) and labels ($y$) into a shared latent space to generate discriminative "codewords."

Methodology

  1. The Twin Architecture: The model employs two identical network branches for features and labels, ensuring that feature representations align with the intrinsic structure of label correlations.
  2. Stage 1: The Factorization Layer: Inspired by Factorization Machines, this layer explicitly calculates all pairwise interactions. This design is specifically tailored to handle data sparsity, allowing the model to find patterns that standard DNNs might overlook.
  3. Stage 2: Deep Layers: The pairwise outputs are passed through a stack of fully connected layers to learn higher-order, non-linear dependencies.
  4. Decoding Network: A separate network maps the feature codewords back into the original label space for final prediction.
The architecture of the Two-Stage Label Embedding (TSLE) framework, featuring the Twin Encoding Network (TEN) and the Decoding Network.

Optimization

The model is trained using a hybrid loss function that combines a Max-Margin Encoding Loss (to align feature and label codewords) with a Label-Correlation Aware Decoding Loss (a ranking-based loss that penalizes misordered label predictions).

Experimental Setup

The authors evaluated TSLE against five state-of-the-art baselines, including C2AE and LM-kNN, across seven diverse datasets:

  • Music: Cal500 and Emotions.
  • Biology: Yeast.
  • Text/Legal: Eurlex (desc, dc, and sm subsets).
  • Images: NUS-WIDE (81 concepts).

Results and Analysis

TSLE consistently outperformed all baselines across metrics such as Micro-F1, Macro-F1, and Precision@K.

Key Performance Gains

  • Superior Accuracy: On the Emotions dataset, TSLE achieved a 7.82% improvement in Micro-F1 and a 14.15% improvement in Macro-F1 over the best baseline.
  • Precision at Scale: As shown in the Precision@K benchmarks, TSLE maintains a clear lead even as $K$ increases, demonstrating its robustness in complex datasets like NUS-WIDE and Eurlex.
Precision@K performance of TSLE compared to state-of-the-art baselines across five diverse datasets.

Theoretical Insights

  • NFM as a Bridge: By combining the pairwise strengths of Factorization Machines with the high-order modeling of DNNs, TSLE provides a more complete representation of label dependencies.
  • The Kernel Perspective: The authors demonstrate that the factorization layer acts as a polynomial kernel. This theoretical grounding explains why TSLE functions as a powerful "kernelized" version of traditional label embedding methods.

Conclusion and Future Work

TSLE represents a significant advancement in multi-label classification by effectively addressing label sparsity and complex dependencies. While the model introduces additional hyperparameters and computational complexity compared to linear methods, its performance gains are substantial. Future research may explore incorporating attention mechanisms or alternative factorization techniques to further refine feature-label interactions.

Summary updated

BibTeX
@inproceedings{chen2019two,
  author = {Chen Chen and Haobo Wang and Weiwei Liu and Xingyuan Zhao and Tianlei Hu and Gang Chen},
  title = {{Two-Stage Label Embedding via Neural Factorization Machine for Multi-Label Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013304},
}
Figure