Hyperbolic Capsule Networks for Multi-Label Classification

Boli Chen, Xin Huang, Lin Xiao, Liping Jing

Abstract

Multi-label classification (MLC) involves assigning multiple, often correlated, labels to a single document. Traditional Euclidean-based models often struggle with the hierarchical nature of labels and the prevalent power-law distribution where a few "head labels" dominate while many "tail labels" are rarely seen. We present HYPERCAPS, a novel architecture that utilizes hyperbolic geometry—specifically the Poincaré ball—to represent document features as capsules. By leveraging hyperbolic dynamic routing and parallel feature extraction, HYPERCAPS effectively captures complex label relationships and significantly improves performance on infrequent tail labels.

The Multi-Label Challenge

Multi-label classification is fundamentally more complex than single-label tasks due to two primary factors:

  1. The "One-Vector" Limitation: Standard deep learning models typically compress a document into a single fixed-length vector. This approach often fails to capture the distinct, fine-grained concepts necessary to justify multiple diverse labels.
  2. The Power-Law Distribution: Real-world datasets exhibit a sharp imbalance between frequently occurring "head labels" and a vast number of rare "tail labels."
The power-law distribution of training instances across label ranks, highlighting the distinction between head and tail labels.

Hyperbolic space, which expands exponentially as one moves away from the origin, provides a natural mathematical framework for embedding such hierarchical and power-law structures with minimal distortion compared to flat Euclidean space.

The HYPERCAPS Architecture

To address these challenges, the HYPERCAPS model introduces several key innovations designed to operate within the Poincaré ball:

  • Parallel Feature Extraction: The model employs a CNN to capture local n-gram patterns and a Bi-GRU to extract global context. These features are mapped into hyperbolic space to preserve their inherent structural relationships.
  • Hyperbolic Capsules and Routing: Features are represented as vectors (capsules) in hyperbolic space. The model utilizes Hyperbolic Dynamic Routing (HDR), which iteratively determines the optimal flow of information from lower-level features to high-level label capsules using Möbius operations. Unlike Euclidean capsule networks, the natural boundaries of the Poincaré ball eliminate the need for complex "squashing" functions.
  • Adaptive Routing: For datasets with thousands of labels, an adaptive gating mechanism identifies a subset of candidate labels for each document, ensuring the routing process remains computationally efficient.
The HYPERCAPS architecture featuring parallel feature extraction, hyperbolic capsules, and dynamic routing.

Experimental Results

HYPERCAPS was evaluated on four benchmark datasets: AAPD, RCV1, ZHIHU (1,999 labels), and EUR-LEX57K (4,271 labels). The model achieved state-of-the-art results across all metrics:

  • Superior Accuracy: On the large-scale EUR-LEX57K dataset, HYPERCAPS reached a P@1 of 91.42, outperforming existing capsule-based methods like NLP-CAP (90.83).
  • Tail Label Excellence: The model's strength is most evident in tail-label prediction. On the AAPD dataset, HYPERCAPS achieved an nDCG@3 of approximately 73, significantly higher than competing models like XML-CNN and SGM which hovered between 65 and 68.
  • Ablation Insights: Studies confirmed that the combination of local (CNN) and global (RNN) features, along with the hyperbolic component, is essential for peak performance.

Conclusion and Future Directions

HYPERCAPS demonstrates that hyperbolic geometry is a powerful tool for multi-label classification, particularly for handling hierarchical label structures and the long-tail distribution problem. While the model scales well to thousands of labels, future work will explore extreme multi-label classification (XMC) with millions of labels. Additionally, integrating pre-trained hyperbolic word embeddings and applying this framework to other hierarchical NLP tasks remain promising avenues for research.

Summary updated

BibTeX
@inproceedings{chen2020hyperbolic,
  author = {Boli Chen and Xin Huang and Lin Xiao and Liping Jing},
  title = {{Hyperbolic Capsule Networks for Multi-Label Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.283},
}
Figure