Multi-label Text Categorization with Model Combination based on F1-score Maximization

Akinori Fujino, Hideki Isozaki, Jun Suzuki

Abstract

Multi-label text categorization is a challenging task where documents are assigned to multiple categories simultaneously. Traditional binary relevance methods often fail to optimize for the evaluation metric of interest, typically the $F_1$-score. This paper presents a framework that combines multiple base classifiers and optimizes their combination weights to directly maximize the $F_1$-score. Experimental results on diverse datasets, including the highly complex Japanese Patent (JPAT) collection, demonstrate that this approach significantly outperforms standard binary classification and more complex direct label-mapping techniques.

Introduction

In real-world applications such as news tagging and patent classification, documents frequently belong to multiple categories. The standard approach, "binary relevance," decomposes this into independent binary classification problems. However, this approach suffers from two primary issues: a mismatch between training objectives (e.g., likelihood) and evaluation metrics ($F_1$-score), and a failure to account for label dependencies. While direct label-mapping methods attempt to model these dependencies, they often overfit when the number of label combinations is large relative to the available data.

Methodology

The proposed framework utilizes a two-step "Model Combination" (MC) approach:

  1. Base Model Training: For each category, multiple base models—specifically Logistic Regression (LRM) and Support Vector Machines (SVM)—are trained independently.
  2. $F_1$-Optimized Combination: These models are integrated using a weighted linear formula: $f_k(x) = \sum w_j f_{jk}(x) + w_0$. The weights are estimated by maximizing an approximate, differentiable version of the $F_1$-score on the training data using n-fold cross-validation to prevent overfitting.

The framework offers three variants tailored to different evaluation needs: MC-$F_\mu$ (micro-averaged), MC-$F_M$ (macro-averaged), and MC-$F_L$ (average labeling $F_1$).

Experimental Evaluation

Datasets

The performance of the MC framework was evaluated on three distinct datasets: Reuters-21578, WIPO-alpha, and the Japanese Patent (JPAT) dataset. As shown in the dataset characteristics, JPAT represents the most significant challenge due to its high label density and massive number of unique label combinations.

Dataset characteristics for Reuters, WIPO, and JPAT.

Results and Discussion

The proposed model combination methods consistently outperformed individual classifiers and standard $F_1$-optimized models. The advantage of metric-aware training was most evident on the complex JPAT dataset. While direct mapping methods like Maximal Margin Labeling (MML) struggled with the high dimensionality of label combinations, the MC approach remained robust by building upon stable per-category classifiers.

Performance comparison on the JPAT dataset showing the superiority of MC methods.

On JPAT, MC-$F_\mu$ achieved a micro-$F_1$ of 41.8%, significantly higher than the baseline SVM-L (33.3%) and MML (32.7%). Similar trends were observed on the WIPO dataset, where the method achieved a micro-$F_1$ of 51.4%, a substantial improvement over the 40.5% achieved by the baseline LRM-L.

Conclusion

Optimizing specifically for the $F_1$-score during the model combination phase provides a significant performance boost in multi-label text classification. By leveraging the strengths of multiple base models and aligning the training objective with the evaluation metric, the proposed framework offers a robust solution for complex, high-dimensional categorization tasks. Future work may explore the integration of more diverse base models and the use of unlabeled data to further refine weight estimation.

Summary updated

BibTeX
@inproceedings{fujino2008multi,
  author = {Akinori Fujino and Hideki Isozaki and Jun Suzuki},
  title = {{Multi-label Text Categorization with Model Combination based on F1-score Maximization}},
  booktitle = {IJCNLP},
  year = {2008},
}
Figure