Prototypical Networks for Multi-Label Learning

Zhuo Yang, Yufei Han, Guoxian Yu, Xiangliang ZhangarXiv 2019

Abstract

Multi-label learning (MLL) requires capturing complex dependencies between labels to accurately classify instances belonging to multiple categories. Traditional methods often treat labels independently or assume simplistic linear relationships. This paper presents Prototypical Networks for Multi-Label Learning (PNML), a framework that models MLL as a distribution estimation problem within a shared non-linear embedding space. PNML utilizes both positive and negative prototypes for each label and learns label-specific distance metrics to capture intricate, non-linear dependencies. Experimental results across 15 benchmark datasets demonstrate that PNML significantly outperforms state-of-the-art baselines in accuracy and robustness.

Introduction

In multi-label learning, the primary objective is to assign a set of relevant labels to each data instance. A critical challenge in this domain is effectively capturing label dependency—the inherent correlations where certain labels frequently co-occur (e.g., "beach" and "ocean") while others are mutually exclusive.

Existing approaches typically fall into two categories: Binary Relevance (BR), which ignores dependencies by treating each label as an independent binary task, and methods that assume low-rank linear structures for label relationships. However, real-world data often exhibits complex, non-linear dependencies that these methods fail to capture. PNML addresses this by creating an embedding space where feature-label relationships and inter-label dependencies are encoded through the spatial distribution of data points.

Conceptual illustration of shared mapping and label dependencies in the embedding space.

Methodology

The PNML architecture is divided into two primary components: an Embedding Module and a Classification Module.

Embedding Module

A shared neural network maps input features into a non-linear embedding space. By using a shared mapping across all labels, the model is forced to find a common representation that satisfies the requirements of all labels simultaneously. This shared bottleneck naturally encourages the network to co-locate instances with similar label sets, thereby capturing label correlations implicitly.

Classification Module

Unlike standard linear classifiers, PNML employs a prototype-based approach:

  • Positive and Negative Prototypes: For each label, the model identifies a "positive component" (representing instances with the label) and a "negative component" (representing instances without it). Explicitly modeling the negative space helps refine the decision boundaries.
  • PNML-single vs. PNML-multiple: The framework supports two modes: PNML-single, which uses one prototype per component for efficiency, and PNML-multiple, which utilizes adaptive clustering to represent components with multiple prototypes for higher fidelity.
  • Label-Wise Distance Metric: Instead of standard Euclidean distance, PNML learns a label-specific Bregman divergence (specifically a Mahalanobis distance). This allows the model to adapt to the specific "shape" of each label's distribution in the embedding space.
The PNML architecture, featuring the shared embedding network and the label-specific distance networks.

Training is further regularized by a Label Correlation Regularizer, which penalizes large distances between the positive prototypes of highly correlated labels.

Experimental Evaluation

The authors evaluated PNML on 15 benchmark datasets spanning text, image, music, and biology domains. These datasets range in size from 593 to over 120,000 instances and cover between 5 and 374 labels.

Key Results

PNML was compared against six major baselines, including high-order methods (CAMEL) and extreme classification methods (Parabel).

  • Performance: PNML-multiple achieved the best average rank across nearly all metrics, including Accuracy, Micro-F1, and Macro-F1. Pairwise comparisons showed it outperformed baselines in approximately 73% of cases.
  • Robustness: The model showed particularly strong performance on Macro-averaging F1, indicating its effectiveness in handling rare labels.
  • Efficiency: While PNML-multiple is the most accurate, PNML-single offers a competitive and faster alternative suitable for large-scale applications.

Discussion and Conclusion

PNML demonstrates that modeling multi-label learning through shared non-linear embeddings and dual-prototype distributions is a powerful approach for capturing label dependencies. By explicitly modeling "what a class is not" via negative prototypes and allowing for non-spherical cluster shapes through learned metrics, PNML moves beyond the limitations of traditional prototypical networks.

Future work includes optimizing the adaptive clustering process for extreme multi-label scenarios with thousands of labels and extending the framework to handle weakly labeled or positive-unlabeled data.

Summary updated

BibTeX
@misc{yang2019prototypical,
  author = {Zhuo Yang and Yufei Han and Guoxian Yu and Xiangliang Zhang},
  title = {{Prototypical Networks for Multi-Label Learning}},
  year = {2019},
  eprint = {1911.07203},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.07203},
}
Figure