Skip to main content
QUICK REVIEW

[Paper Review] Multilabel Classification with R Package mlr

Philipp Probst, Quay Au|arXiv (Cornell University)|Mar 27, 2017
Text and Document Classification TechnologiesComputer Science32 references7 citations
TL;DR

This paper presents an implementation of multilabel classification algorithms in the R package mlr, enabling standardized use of problem transformation methods—binary relevance, classifier chains, nested stacking, dependent binary relevance, and stacking—along with algorithm adaptation methods like randomForestSRC and rFerns. The benchmark shows that dependent binary relevance and classifier chains achieve the best performance on F1 and subset 0/1 loss, respectively, with strong reproducibility and extensibility in the mlr framework.

ABSTRACT

We implemented several multilabel classification algorithms in the machine learning package mlr. The implemented methods are binary relevance, classifier chains, nested stacking, dependent binary relevance and stacking, which can be used with any base learner that is accessible in mlr. Moreover, there is access to the multilabel classification versions of randomForestSRC and rFerns. All these methods can be easily compared by different implemented multilabel performance measures and resampling methods in the standardized mlr framework. In a benchmark experiment with several multilabel datasets, the performance of the different methods is evaluated.

Motivation & Objective

  • To provide a unified, standardized interface for multilabel classification in R using the mlr framework.
  • To implement and integrate multiple multilabel classification algorithms, including problem transformation and algorithm adaptation methods.
  • To enable comparison of methods using consistent performance measures and resampling techniques across diverse multilabel datasets.
  • To address the lack of a comprehensive R package supporting diverse multilabel learners with a common interface.
  • To benchmark performance across methods and identify top-performing approaches under standard evaluation metrics.

Proposed method

  • Problem transformation methods are used to convert multilabel problems into binary or multiclass problems using base learners accessible in mlr.
  • Binary relevance trains one binary classifier per label independently; classifier chains train a chain of binary classifiers where each incorporates previous labels as features.
  • Nested stacking and stacking use meta-learners to combine predictions from base models, improving generalization.
  • Dependent binary relevance extends binary relevance by modeling label dependencies through label order permutations.
  • Algorithm adaptation methods such as randomForestSRC and rFerns are integrated directly, allowing multilabel learning without transformation.
  • All methods are evaluated using standardized performance measures (e.g., Hamming loss, F1, subset 0/1 loss) and resampling techniques within the mlr framework.
Figure 1: Results for hamming loss and F 1 -index. The best performing algorithms are highlighted on the plot.
Figure 1: Results for hamming loss and F 1 -index. The best performing algorithms are highlighted on the plot.

Experimental results

Research questions

  • RQ1Which multilabel classification method performs best across diverse datasets in terms of F1 score and Hamming loss?
  • RQ2How do problem transformation methods like classifier chains and nested stacking compare to algorithm adaptation methods such as randomForestSRC and rFerns?
  • RQ3What impact does label dependency modeling have on performance, as seen in dependent binary relevance versus standard binary relevance?
  • RQ4How does the choice of base learner affect the performance of multilabel classification methods in the mlr framework?
  • RQ5Can the mlr framework support efficient, scalable, and reproducible multilabel classification workflows with standardized evaluation?

Key findings

  • Dependent binary relevance achieved the best performance on the F1 score and accuracy metrics across multiple datasets, indicating strong label dependency modeling.
  • Classifier chains outperformed other methods on the subset 0/1 loss metric in most cases, demonstrating superior predictive accuracy for full label set prediction.
  • The Hamming loss for the best-performing method (STA(rf)) was 0.0429 on the birds dataset, while the worst was 0.4925 for rFerns on slashdot, highlighting method-specific performance variation.
  • rFerns showed consistently poor performance, with a Hamming loss of 0.4148 on birds and 0.4925 on slashdot, likely due to its random variable selection mechanism.
  • randomForestSRC showed strong performance on genbase and langLog, achieving Hamming loss of 0.0006 and 0.0466, respectively, indicating robustness on low-dimensional, sparse label sets.
  • The benchmark revealed that label sparsity caused crashes in some algorithms during cross-validation, suggesting a need for improved handling of rare labels in future mlr extensions.
Figure 2: Results for the remaining measures.
Figure 2: Results for the remaining measures.

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.