Enhancing Multi-Label Classification via Dynamic Label-Order Learning

Jiangnan Li, Yice Zhang, Shiwei Chen, Ruifeng Xu

Abstract

Generative Multi-Label Classification (MLC) models often rely on static label orderings, leading to rote memorization and poor recall for labels appearing late in sequences. This paper introduces Dynamic Label-Order Learning (DLOL), a novel approach that adaptively determines label sequences by prioritizing difficult labels. By front-loading high-perplexity tags, DLOL mitigates "shortcut learning" and improves overall classification performance across multiple benchmarks. Experimental results demonstrate that DLOL consistently outperforms static ordering methods, particularly in improving recall for difficult labels.

Introduction

Multi-Label Classification (MLC) involves assigning multiple relevant tags to a single piece of data, such as tagging a news article with both "Politics" and "Economics." Modern approaches treat this as a sequence-to-sequence (Seq2Seq) translation task, where the model takes text as input and generates a sequence of labels. However, unlike natural language, labels in MLC do not have an inherent sequence. Most existing models use a static order (e.g., alphabetical or frequency-based), which introduces significant biases into the learning process.

The Problem of Static Ordering

The authors identify two major flaws with static label sequences: rote memorization and shortcut learning.

  1. Rote Memorization: Models become overly reliant on the fixed order. If a model fails to generate a label at its "assigned" position, it often fails to generate it at all, leading to low recall.
  2. Shortcut Learning: Labels at the end of a sequence are easier to predict because the model can "cheat" by conditioning on the labels it has already generated. Consequently, the model relies less on the actual input text for later labels, hurting performance on inherently difficult tags.
Conceptual illustration of how fixed label order leads to missed labels in Seq2Seq models.

Dynamic Label-Order Learning (DLOL)

To address these issues, the authors propose the Difficulty-Prioritized Principle. Instead of a fixed order, the model learns to put the most "difficult" labels for a specific sample at the start of the sequence.

Key Components

  • Perplexity as Difficulty: The model uses perplexity—a measure of predictive uncertainty—to estimate difficulty. High perplexity indicates a label is hard to predict given the current context.
  • Iterative Construction: The model builds the label sequence step-by-step. At each step, it calculates the perplexity for all remaining labels and selects the one with the highest uncertainty to appear next.
  • Joint Optimization: To maintain efficiency, a single Seq2Seq model (BART-base) is used for both determining the order and performing the classification. A unified loss function balances uniformity (treating sequences equally) and diversity (exploring different orders).
  • EOS Penalty: During inference, an additional penalty is applied to the <eos> (End of Sentence) token to prevent the model from stopping prematurely before all relevant labels are identified.

Experimental Evaluation

The researchers evaluated DLOL on four standard MLC benchmarks: Reuters-21578, RCV1-V2, Slashdot, and GoEmotions. The method consistently achieved state-of-the-art (SOTA) performance, with an average improvement of 2% in F1-score over both discriminative and generative baselines.

Performance comparison showing the superiority of difficulty-prioritized ordering over ease-prioritized and random baselines.

As shown in the experimental results, the difficulty-prioritized approach significantly outperforms ease-prioritized or random ordering, particularly on "Difficult-labels." The most notable improvement was in Recall, confirming that dynamic ordering helps the model recover labels that static models typically overlook. For instance, on the Slashdot dataset, recall improved from approximately 36% to 42%.

Conclusion

DLOL effectively breaks the "rote memorization" cycle in generative MLC by forcing models to focus on complex associations early in the generation process. While the method introduces some computational complexity ($O(n^3)$ relative to the number of labels), the performance gains in recall and F1-score make it a compelling alternative to static ordering. Future work may focus on reducing the time complexity of the label-ordering process through more efficient uncertainty estimation.

Summary updated

BibTeX
@inproceedings{li2024enhancing,
  author = {Jiangnan Li and Yice Zhang and Shiwei Chen and Ruifeng Xu},
  title = {{Enhancing Multi-Label Classification via Dynamic Label-Order Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i17.29814},
}
Figure