Abstract
Multi-label classification (MLC) in domains like ecology and natural language processing often involves hundreds of labels with complex, high-order dependencies. Traditional methods frequently rely on static, pairwise correlations, which fail to capture the dynamic nature of real-world interactions. We introduce HOT-VAE, an attention-based Variational Autoencoder that utilizes neural message passing to learn adaptive, high-order label correlations conditioned on input features. HOT-VAE achieves state-of-the-art performance across eight diverse datasets, particularly excelling in joint species distribution modeling where it captures intricate ecological relationships.
Introduction
Multi-label classification (MLC) faces significant hurdles when dealing with massive output spaces. In applications such as Joint Species Distribution Modelling (JSDM), researchers aim to predict species assemblages based on environmental features. This task is complicated by high-dimensional interactions—where modeling all possible species subsets is computationally intractable—and dynamic relationships, as species interactions vary across different environments. Existing models often simplify these dependencies to static pairwise correlations, missing the nuanced, high-order structures present in natural systems.
Methodology
HOT-VAE (High-Order Tie-in Variational Autoencoder) addresses these challenges through a two-branch VAE architecture with a shared decoder.
The model employs domain-specific encoders to map input features ($x$) and labels ($y$) into probabilistic latent Gaussian subspaces. These spaces are aligned using Kullback–Leibler (KL) divergence, ensuring feature embeddings are "label-aware." To accommodate diverse encoder architectures, a subspace compression technique is used to unify multiple Gaussian outputs into a single latent representation.
The core innovation lies in the Attention-Based Shared Decoder, structured as a Message Passing Neural Network (MPNN). Each label is represented as a node in a graph. By stacking $n$ masked multi-head self-attention layers, the model performs $n$ steps of message passing, effectively capturing $(n+1)$-order correlations. Crucially, the initial state of label nodes is seeded by feature embeddings, making the learned correlations dynamic and context-dependent.
Experiments and Results
The model was evaluated on eight real-world datasets spanning ecology (eBird), NLP (bookmarks, bibtex, reuters), image recognition (mirflickr, scene), and biology (sider, yeast). HOT-VAE consistently outperformed strong baselines, including SLEEC, C2AE, and MPVAE. On the eBird dataset, it surpassed the previous state-of-the-art on 11 out of 12 ecological metrics.
Ablation studies on decoder depth (Figure 3) show that increasing the number of layers—and thus the order of modeled correlations—steadily improves performance on label-dense datasets like eBird. This high-order modeling is particularly beneficial for rare labels, as it allows the model to leverage complex network paths for context. Additionally, incorporating prior knowledge by pruning the label graph (removing edges for labels that never co-occur) further refined predictive accuracy.
Conclusion
While HOT-VAE provides a powerful framework for high-order MLC, increasing decoder depth beyond a certain point can lead to overfitting. Furthermore, while it excels at capturing broad structures, it may show slightly lower precision on metrics specifically optimized for pairwise co-occurrences. Future work involves integrating more complex domain-specific structures, such as phylogenetic trees, into the label graph to further enhance the message-passing process.
Summary updated