Multi-Label Prediction via Compressed Sensing

Daniel J. Hsu, Sham Kakade, John Langford, Tong Zhang

TL;DR

This paper tackles multi-label prediction problems with extremely large output spaces by leveraging the assumption that the true labels are sparse. They propose a novel approach that combines error-correcting output codes with compressed sensing techniques, reducing the number of required predictions to be logarithmic in the total number of labels, making it significantly more efficient for large-scale applications.

What Problem Does This Paper Address?

Imagine you're building a system to tag images with objects or concepts. For a large collection of images, the total number of possible labels (e.g., "dog," "car," "sky," "person," "tree," etc.) can be enormous, potentially tens of thousands. A common approach is to train a separate classifier for each label (one-against-all). However, this becomes computationally prohibitive during both training and testing when the label space is so vast.

The core challenge this paper addresses is how to efficiently learn and predict labels in these high-dimensional output spaces. They observe that while the potential number of labels is huge, any single image or data point typically only has a small subset of these labels present. This property is called "output sparsity." The paper aims to exploit this output sparsity to develop a more scalable and efficient multi-label prediction method.

Methods

The paper's central idea is to adapt the "error-correcting output code" (ECOC) framework by incorporating principles from compressed sensing. Here's a breakdown:

  1. Output Coding: ECOC methods typically break down a multi-class or multi-label problem into a set of simpler binary classification subproblems. For example, instead of predicting "cat" or "dog," you might ask "is it an animal?" and "is it furry?". The final prediction is made by combining the results of these subproblems.
  2. Compressed Sensing Integration: The authors introduce a linear "compression function" (represented by a matrix $A$) that maps the high-dimensional label space to a much lower-dimensional space. They then train predictors ($H$) for these compressed labels. The key insight is that if the original labels are sparse, the compressed labels can still retain enough information to reconstruct the original sparse labels.
  3. Reconstruction Algorithm: After predicting the compressed labels, a "reconstruction algorithm" ($R$) is used to recover the sparse labels in the original high-dimensional space. These algorithms are inspired by compressed sensing techniques, which are designed to recover sparse signals from a limited number of measurements.

The paper formalizes the requirements for a "valid reconstruction algorithm" and shows that their approach, by reducing the number of subproblems to be logarithmic in the total number of labels ($m = O(k \log d)$), is significantly more efficient than traditional ECOC methods. They also provide theoretical guarantees on the robustness of their method.

Datasets

The paper uses two publicly available datasets for experimental validation:

  • Image Data: Collected from the ESP Game, containing approximately 68,000 images with about 22,000 unique labels. For their experiments, they focused on the 1000 most frequent labels. Images were represented as bag-of-features vectors.
  • Text Data: Collected from del.icio.us, containing about 16,000 labeled web pages with 983 unique labels. Web pages were represented as boolean bag-of-words vectors.

Key Insights and Ideas

  • Output Sparsity is Key: The paper highlights that exploiting the sparsity of the expected label vector $E[y|x]$ is crucial, not just the sparsity of the actual observed label $y$. This distinction is important when dealing with noisy data.
  • Compressed Sensing as a Reduction: The core innovation is viewing compressed sensing not just for data compression, but as a powerful tool to reduce the complexity of multi-label learning problems by creating fewer, more informative subproblems.
  • Logarithmic Number of Subproblems: The most significant practical implication is that the number of binary classifiers needed scales logarithmically with the total number of labels ($m \propto k \log d$), rather than linearly or exponentially. This makes the approach feasible for extremely large label spaces.
  • Robustness Guarantees: The authors provide theoretical bounds (regret transform bounds) showing that their method is robust to noise and prediction errors, even when the underlying reconstruction algorithm is not perfectly accurate.

Key Results

  • The proposed method, when combined with reconstruction algorithms like Orthogonal Matching Pursuit (OMP), FoBa, and CoSaMP, matches or outperforms baseline methods (like correlation decoding) on mean-squared-error for multi-label prediction tasks.
  • The number of required subproblems (compression function rows, $m$) is significantly reduced, scaling logarithmically with the total number of labels ($d$), making it practical for very large label sets.
  • The paper demonstrates that even a relatively small number of compressed label predictions ($m$) can be sufficient to recover an accurate sparse label vector.
  • Theoretical analysis shows that for linear prediction settings, the errors of the compressed predictor are not significantly magnified compared to the original problem.

Limitations and Future Work

  • Sparsity Error: The paper acknowledges that the "sparsity error" (how well the target vector can be approximated by a sparse vector) can impact performance. In their experiments, the target vectors exhibited a decay that was somewhat slower than ideal for standard sparse recovery, meaning reconstruction algorithms had to contend with this error.
  • Parameter Tuning: The experimental setup did not involve extensive parameter tuning, suggesting that further optimization could potentially yield even better results.
  • Choice of Reconstruction Algorithm: While OMP, FoBa, and CoSaMP are shown to work well, the paper notes that the choice of reconstruction algorithm and its properties (e.g., handling correlated columns) can influence performance, especially in low-dimensional compression regimes.
  • Future Work: The authors suggest that their framework can naturally extend to other notions of sparsity, such as group sparsity, and that further theoretical analysis could explore more complex relationships between compression and reconstruction. The paper also points to the potential for deriving sample complexity bounds for achieving specific error rates relative to the best linear predictor.

Summary updated

BibTeX
@inproceedings{hsu2009multi,
  author = {Daniel J. Hsu and Sham Kakade and John Langford and Tong Zhang},
  title = {{Multi-Label Prediction via Compressed Sensing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2009},
  url = {https://openreview.net/forum?id=B1b28wbdWr},
}
Figure