Abstract
Multi-label learning (MLL) often struggles with the "semantic gap" between input features and output labels, leading to slow and inaccurate predictions on large datasets. This paper introduces Co-Hashing (CoH), a method that treats features and labels as two distinct "views" of the same data and maps them into a shared, compact Hamming space (binary codes). By aligning these views in a discrete latent space, CoH achieves state-of-the-art prediction accuracy while being orders of magnitude faster than existing methods.
Introduction
In multi-label learning (MLL), the objective is to predict a set of labels for a single instance, such as tagging an image with multiple descriptive terms. Modern approaches frequently utilize embedding methods to compress high-dimensional label spaces. However, these methods face two major hurdles:
- Misalignment: Most methods fail to effectively align input features with output labels in the latent space, which degrades prediction accuracy.
- Computational Cost: Predicting labels for new data often requires expensive "decoding" or slow $k$-Nearest Neighbor ($k$NN) searches in high-dimensional real-valued spaces.
As datasets scale to millions of instances and thousands of labels, these inefficiencies become prohibitive.
The Co-Hashing (CoH) Framework
The proposed Co-Hashing (CoH) re-imagines MLL through the lens of cross-view learning. Instead of mapping features to labels directly, CoH maps both the input ($X$) and the output ($Y$) into a shared, low-dimensional binary space.
Objective Function
The model minimizes a three-part loss function designed to maximize information density and alignment:
- Mapping Loss: Ensures binary codes can be accurately reconstructed from both features and labels.
- Manifold Regularization: Preserves the original similarity structure of the labels in the new binary space.
- Redundancy Reduction: Uses an orthogonal constraint to ensure bits in the hash code are mutually uncorrelated.
Optimization and Prediction
Since optimizing discrete binary codes is NP-hard, the authors use a "softened" formulation and an alternating optimization strategy. At test time, a new instance is hashed into the Hamming space. Prediction is then a simple cross-view $k$NN search. Because Hamming distance can be computed extremely quickly using bitwise XOR operations, this is significantly faster than traditional Euclidean distance searches.
Experimental Results
The researchers evaluated CoH on eight real-world datasets across different domains, including music (CAL500), images (COREL5K, NUS-WIDE), and text (DELICIOUS, EUR-LEX, WIKI10).
Qualitative Performance
The effectiveness of CoH in bridging the semantic gap is visible in qualitative results. On the NUS-WIDE dataset, CoH accurately identifies key semantic elements, though it occasionally struggles with very fine-grained or ambiguous labels.
Quantitative Comparison
CoH consistently outperformed state-of-the-art methods like SLEEC and LM-$k$NN across metrics like Hamming Loss and F1-scores. For example, on the NUS-WIDE-B dataset, CoH improved Example-F1 scores by over 10% compared to the next best baseline.
The efficiency gains are particularly noteworthy. On the NUS-WIDE-B dataset, CoH was 400x faster in training than LM-$k$NN and 200x faster than SLEEC. In testing, CoH was nearly 4x faster than SLEEC and 10x faster than other $k$NN-based methods.
Conclusion
Co-Hashing demonstrates that treating labels as a secondary "view" and utilizing compact binary codes can resolve the dual challenges of accuracy and efficiency in multi-label learning. By leveraging the speed of Hamming distance computations and the theoretical grounding of generalization error bounds, CoH provides a scalable solution for extreme classification tasks.
Summary updated