Abstract
Multi-label classification (MLC) is an important class of machine learning problems that come with a wide spectrum of applications, each demanding a possibly different evaluation criterion. When labels are highly correlated, traditional methods often struggle with ordering bias or a lack of cost-sensitivity. This paper introduces RethinkNet, a framework that leverages a recurrent neural network (RNN) to iteratively refine label predictions, effectively capturing complex dependencies without the need for predefined label sequences.
Introduction
Multi-label classification (MLC) involves assigning multiple relevant tags to a single input, such as identifying all objects in a photograph. A significant challenge in MLC is that labels are often highly correlated; for instance, the presence of a "keyboard" tag significantly increases the likelihood of a "mouse" tag.
Traditional approaches, such as Classifier Chains (CC), attempt to model these correlations by predicting labels sequentially. However, these methods suffer from "label ordering" problems, where the first predicted label lacks context from subsequent ones, making performance highly sensitive to the chosen sequence. Furthermore, many real-world applications require optimization for specific metrics like F1-score or Rank loss, yet most deep learning models are "cost-insensitive," treating all errors equally.
RethinkNet addresses these issues by treating MLC as an iterative "rethinking" process. By using a global memory structure within an RNN, it bypasses the sequential bottleneck of Classifier Chains, allowing information to be shared across all labels simultaneously.
Methods
The RethinkNet framework is built around an iterative RNN structure. Instead of processing a sequence of different inputs, the model feeds the same feature vector into an RNN for multiple iterations ($B$).
- Iterative RNN Structure: In the first iteration, the model generates a preliminary prediction. This initial guess is stored in the RNN's hidden state (memory).
- Memory-Based Refinement: In subsequent iterations, the model uses its internal memory to "rethink" and refine its predictions. This allows every label to eventually influence every other label, capturing global dependencies.
- Cost-Sensitive Loss: To adapt to diverse evaluation criteria, RethinkNet employs a weighted binary cross-entropy loss. Weights are dynamically calculated based on the "cost" of misclassifying a label given the current context of other predicted labels, enabling end-to-end training for specific real-world metrics.
The architecture is agnostic to the specific RNN cell used (e.g., Simple RNN, LSTM, or GRU) and can be integrated with other deep learning components like CNNs for image feature extraction.
Results and Discussion
The framework was evaluated on 11 real-world datasets (including emotions, scene, yeast, and medical) and the MSCOCO large-scale benchmark.
Performance and Efficiency
RethinkNet consistently achieved state-of-the-art or near-state-of-the-art results compared to both traditional algorithms (CC, Condensed Filter Trees) and modern deep learning models (CNN-RNN, Att-RNN). Notably, experimental results showed that performance typically converges after just three iterations ($B=3$), indicating that even minimal "reflection" provides a significant accuracy boost.
Image Tagging and Cost-Sensitivity
On the MSCOCO dataset, RethinkNet outperformed specialized models like Att-RNN in F1-score and Accuracy. The reweighted loss function also demonstrated consistent improvements on target metrics (Rank loss, F1) compared to non-reweighted versions, proving the effectiveness of the universal cost-sensitivity scheme.
Conclusion
RethinkNet provides a robust and flexible framework for multi-label classification by mimicking human-inspired "rethinking" logic. It successfully eliminates label-ordering bias and introduces a mechanism for cost-sensitive optimization. While the choice of RNN cell can impact performance on smaller datasets due to potential overfitting, the iterative refinement process remains a powerful tool for capturing complex label dependencies. Future work may explore adaptive rethinking, where the model dynamically determines the number of iterations required for a given input.
Summary updated