Skip to main content
QUICK REVIEW

[Paper Review] Multi-label classification: do Hamming loss and subset accuracy really conflict with each other?

Guoqiang Wu, Jun Zhu|arXiv (Cornell University)|Nov 16, 2020
Text and Document Classification TechnologiesComputer Science25 references12 citations
TL;DR

This paper resolves the apparent contradiction in multi-label classification where Hamming Loss (HL)-optimized models often perform well on Subset Accuracy (SA) despite theoretical claims of conflict. Using Rademacher complexity and vector-contraction inequalities, it shows that HL-optimized algorithms have generalization bounds independent of label count $c$ for HL and $O(c)$ for SA, while SA-optimized models have $O(\sqrt{c})$ bounds for both, explaining superior SA performance in small label spaces. Experimental results validate the theoretical findings.

ABSTRACT

Various evaluation measures have been developed for multi-label classification, including Hamming Loss (HL), Subset Accuracy (SA) and Ranking Loss (RL). However, there is a gap between empirical results and the existing theories: 1) an algorithm often empirically performs well on some measure(s) while poorly on others, while a formal theoretical analysis is lacking; and 2) in small label space cases, the algorithms optimizing HL often have comparable or even better performance on the SA measure than those optimizing SA directly, while existing theoretical results show that SA and HL are conflicting measures. This paper provides an attempt to fill up this gap by analyzing the learning guarantees of the corresponding learning algorithms on both SA and HL measures. We show that when a learning algorithm optimizes HL with its surrogate loss, it enjoys an error bound for the HL measure independent of $c$ (the number of labels), while the bound for the SA measure depends on at most $O(c)$. On the other hand, when directly optimizing SA with its surrogate loss, it has learning guarantees that depend on $O(\\sqrt{c})$ for both HL and SA measures. This explains the observation that when the label space is not large, optimizing HL with its surrogate loss can have promising performance for SA. We further show that our techniques are applicable to analyze the learning guarantees of algorithms on other measures, such as RL. Finally, the theoretical analyses are supported by experimental results.

Motivation & Objective

  • To resolve the discrepancy between empirical observations and theoretical claims that Hamming Loss (HL) and Subset Accuracy (SA) are conflicting measures in multi-label classification.
  • To provide generalization error bounds for learning algorithms on HL, SA, and Ranking Loss (RL), addressing limitations of prior work that assumed unconstrained hypothesis spaces and known conditional distributions.
  • To explain why algorithms optimizing HL often achieve strong SA performance in small label spaces, contrary to theoretical expectations.
  • To extend the analysis to other measures like RL and validate the findings with experiments.

Proposed method

  • The authors use Rademacher complexity and the vector-contraction inequality to derive generalization bounds for kernel-based learning algorithms on HL, SA, and RL.
  • They propose a new convex surrogate loss function for SA, named $L_s$, which is computationally efficient and incorporates label dependencies.
  • The analysis focuses on two algorithms: one optimizing HL via its surrogate loss ($\mathcal{A}^h$), and another directly optimizing SA via $L_s$ ($\mathcal{A}^s$).
  • Theoretical bounds are derived for both algorithms, showing that $\mathcal{A}^h$ has $O(c)$ dependence on $c$ for SA, while $\mathcal{A}^s$ has $O(\sqrt{c})$ dependence for both HL and SA.
  • The framework is extended to analyze Ranking Loss (RL) using a surrogate loss, yielding $O(\sqrt{c})$ bounds for RL.
  • Theoretical results are supported by empirical experiments on multi-label datasets.

Experimental results

Research questions

  • RQ1Why do algorithms optimizing Hamming Loss (HL) often achieve strong performance on Subset Accuracy (SA) in small label spaces, despite theoretical claims of conflict between the two measures?
  • RQ2How do generalization error bounds for HL and SA depend on the number of labels $c$ in realistic learning settings with constrained hypothesis spaces?
  • RQ3Can a surrogate loss for SA be designed that provides tighter generalization bounds than existing approaches while maintaining computational efficiency?
  • RQ4How do the learning guarantees for HL, SA, and RL compare when derived using Rademacher complexity and vector-contraction inequalities?

Key findings

  • The generalization bound for Hamming Loss (HL) when optimized via its surrogate loss is independent of the number of labels $c$, indicating robustness to label space size.
  • The generalization bound for Subset Accuracy (SA) under HL-optimization depends on $O(c)$, which remains favorable in small label spaces.
  • In contrast, direct optimization of SA via its surrogate loss yields bounds of $O(\sqrt{c})$ for both HL and SA, making it more scalable in large label spaces.
  • Theoretical analysis explains why HL-optimized models can outperform SA-optimized models on SA in small label settings, resolving a long-standing empirical paradox.
  • The proposed surrogate loss $L_s$ for SA is computationally efficient and incorporates label dependencies, offering a practical alternative to structured SVMs.
  • Experimental results support the theoretical findings, confirming that HL-optimized models achieve strong SA performance when $c$ is small.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.