MLC Toolbox: A MATLAB/OCTAVE Library for Multi-Label Classification

Keigo Kimura, Lu Sun, Mineichi KudoarXiv 2017

Introduction

In traditional classification, an instance belongs to exactly one category. However, in Multi-Label Classification (MLC), an instance can belong to several categories simultaneously—such as a news article tagged as both "Politics" and "Economics." This complexity makes MLC computationally expensive and theoretically challenging, as models must account for correlations between labels.

While popular libraries like Mulan and MEKA exist for Java, and scikit-multilearn for Python, there has been a notable lack of a unified, high-performance library for MATLAB/OCTAVE. Many researchers in the field develop their own standalone scripts, leading to a fragmented ecosystem where comparing algorithms is difficult. The MLC Toolbox bridges this gap, providing a standardized, high-performance environment for evaluation, comparison, and visualization.

Modular Architecture: The "MLC to MLC" Concept

The core philosophy of the MLC Toolbox is modularity. The library introduces "MLC to MLC" methods—techniques that transform a complex MLC problem into one or more simpler sub-problems. This architecture allows users to chain different components—such as Clustering, Feature Space Dimension Reduction (FSDR), Label Space Dimension Reduction (LSDR), and Ensembles—in any order before passing the data to a final classifier.

The modular architecture of the MLC Toolbox allows for flexible combinations of preprocessing and classification methods before reaching the final MLC Classifier.

This "any order" advantage is a significant innovation. Researchers can explore how different sequences (e.g., clustering before feature reduction vs. vice versa) affect accuracy, enabling the exploration of myriad combinations that were previously tedious to implement manually.

Comparison with Existing Libraries

The MLC Toolbox acts as a "Rosetta Stone" for the field, implementing methods from various research groups into a single framework. When compared to existing libraries, it offers a broader range of supported methods, particularly in dimension reduction and specialized techniques for handling label imbalance.

A qualitative comparison showing the breadth of methods supported by the MLC Toolbox compared to other established libraries like Mulan, MEKA, and scikit-multilearn.

Key advantages highlighted in the comparison include:

  • Breadth of Methods: Support for Ranking via Single-Label learning (RSL), Binary Relevance (BR), Label Combination (LC), and Pair-Wise comparison (PW).
  • Feature/Label Reduction: Robust, built-in support for both Feature Space and Label Space Dimension Reduction, which is often lacking in Java-based tools.
  • Matrix-Native Performance: By operating in MATLAB/OCTAVE, the library leverages inherent optimizations for matrix and vector operations. To maintain high speeds, it utilizes MEX functions (C++ code called from MATLAB) and integrates with established libraries like LIBLINEAR and LIBSVM.

Implementation and Extensibility

The toolbox is designed for ease of use and extensibility. Adding a new method only requires implementing three simple scripts: training, testing, and parameter setting. It also includes various thresholding strategies (Scut, Rcut, Pcut) to convert probabilistic outputs into discrete label sets, ensuring compatibility with standard MLC datasets like the 'scene' benchmark.

Limitations and Future Work

Currently, the toolbox focuses exclusively on supervised learning. It does not yet support semi-supervised learning, incremental learning, or datasets with missing labels—areas where the Java-based MEKA library still holds an advantage. Additionally, the flexibility of the pipeline means there is no "one-size-fits-all" parameter setting; users must manage individual parameter files for each component in their specific pipeline. Future iterations may address these gaps to further unify the MLC research landscape.

Summary updated

Abstract

Multi-Label Classification toolbox is a MATLAB/OCTAVE library for Multi-Label Classification (MLC). There exists a few Java libraries for MLC, but no MATLAB/OCTAVE library that covers various methods. This toolbox offers an environment for evaluation, comparison and visualization of the MLC results. One attraction of this toolbox is that it enables us to try many combinations of feature space dimension reduction, sample clustering, label space dimension reduction and ensemble, etc.
BibTeX
@misc{sun2017mlc,
  author = {Lu SUN and Keigo Kimura and Lu Sun and Mineichi Kudo},
  title = {{MLC Toolbox: A MATLAB/OCTAVE Library for Multi-Label Classification}},
  year = {2017},
  eprint = {1704.02592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.02592},
}
Figure