Preprint
Article

This version is not peer-reviewed.

Effective Label Subset Selection Method for Multi-Label Classification Based on Genetic Algorithm

Submitted:

16 July 2026

Posted:

17 July 2026

You are already at the latest version

Abstract
With the advancement of technology and the proliferation of big data, multi-label classification has been widely applied in fields such as medicine, education, and business. Most existing multi-label classification methods utilize a problem transformation approach, converting multi-label problems into single-label classification tasks. The Label Powerset (LP) method treats distinct combinations of labels as unique classes, subsequently utilizing single-label methods to construct classification models. While LP generally yields superior accuracy compared to other methods, it faces challenges due to the excessive number of label combinations. This leads to data sparsity for most of the label combinations (the few-shot problem) and class imbalance, as well as low efficiency when handling a large number of label combinations. Subsequent research has attempted to optimize LP by partitioning labels into multiple subsets, establishing an LP model for each subset, and predicting labels using a multi-model voting mechanism. However, these approaches require the pre-determination of the number and size of label subsets and suffer from issues such as performance instability and the complexity of parameter tuning. To address the previous issues, we propose a label subset selection method based on Genetic Algorithm (GA). By dynamically adjusting the size of label subsets, the method adaptively generates the most suitable label combinations guided by the GA's fitness function, thereby avoiding potential performance degradation caused by fixed parameter settings. Experimental results demonstrate that our method outperforms state-of-the-art LP-based label subset selection methods on most of the datasets.
Keywords: 
;  ;  

1. Introduction

Classification is a core task in machine learning, finding widespread application across various domains such as medicine and finance. With technological advancements and the escalating demand for data analysis, classification techniques are no longer confined to simple prediction and labeling; rather, they have evolved into critical tools for addressing complex problems. However, against the backdrop of increasingly diverse application scenarios and the exponential growth of data scales, traditional binary and single-label classification methods have gradually revealed their limitations. They not only fail to fully satisfy dynamic practical requirements but also struggle to cope with the high complexity problem in real-world demands.
Consequently, to overcome these limitations, Multi-Label Classification (MLC) [1,2,3,4] has rapidly emerged as a prominent research direction within the machine learning field. Multi-label classification allows a single data instance to be assigned to multiple labels simultaneously. For instance, a news article might be tagged as both 'Politics' and 'Economics,' while a book could be categorized under both 'Technology' and 'Education.' By handling multiple related labels concurrently, multi-label classification not only captures the implicit relationships within the data more comprehensively but also reflects the complexity of real-world scenarios where categories are seldom mutually exclusive.
The challenges associated with multi-label classification have driven researchers to explore various solutions. Current research primarily concentrates on two main directions: Problem Transformation Methods and Algorithm Adaptation Methods. These two approaches address the multi-label classification problem from distinct perspectives. Problem Transformation Methods decompose the multi-label problem into multiple binary classification problems or a single-label classification task, thereby leveraging existing machine learning algorithms for processing. The most classic and representative methods are as follows: the Binary Relevance (BR) [5,6] method models each label independently as a separate binary classification problem. While simple and flexible to implement, it fails to capture the dependencies between labels. The Classifier Chains (CC) [7,8] method models labels sequentially, treating partial dependencies between labels as additional features. However, this method is highly sensitive to the selection of label order; improper order selection can lead to performance degradation. Finally, the Label Powerset (LP) [24] method treats distinct label combinations as unique classes (single labels). It is suitable for scenarios with strong inter-label dependencies. Although capable of capturing these dependencies, it suffers from data sparsity issues when the number of labels is large, which limits the model's generalization ability.
Algorithm Adaptation Methods focus on developing specialized models capable of directly addressing multi-label challenges and redesigning algorithms to tackle specific issues within multi-label classification. For example, Multi-Label k-Nearest Neighbors (MLkNN) [9,10] utilizes the distribution of neighboring labels for prediction; while suitable for low-dimensional scenarios, it struggles with high-dimensional data. The Multi-Label Decision Tree (MLDT) [11] method extends traditional decision trees to handle multi-label classification problems, flexibly modeling the joint probability of labels. However, it is highly sensitive to data noise, and its computational cost increases significantly with the number of labels.
In multi-label classification problems, each data instance may correspond to multiple labels simultaneously. These labels often exhibit specific dependencies or co-occurrence relationships; Label dependency refers to these latent correlations or conditional dependencies between distinct labels. For instance, in sentiment analysis, an article might be concurrently labeled as 'anger' and 'sadness,' suggesting a co-occurrence pattern between these emotional labels. Similarly, in medical diagnosis, labels such as 'hypertension' and 'heart disease' may demonstrate conditional dependencies. Consequently, effectively capturing and modeling these inter-label dependencies is crucial for enhancing the performance of multi-label classification. The Label Powerset (LP) [24] method holds a significant position in multi-label classification research due to its ability to implicitly consider label co-occurrence. By treating unique label combinations as single classes, it effectively captures inter-label dependencies. Nevertheless, its practical utility is often constrained by significant data sparsity and the high computational overhead required to manage an exponential number of label combinations.
To address these issues, the Random k-Labelsets (RAkEL) method [12,13] improves upon LP by dividing labels into multiple random subsets. This approach effectively mitigates the sparsity problem encountered by LP when dealing with a large number of labels and enhances classification performance through an ensemble of sub-classifiers. However, the random selection of label subsets can lead to suboptimal performance and performance fluctuations, making it difficult to fully capture the latent dependencies between labels. To overcome the limitations of RAkEL, the Active k-Labelsets Ensemble (ACkEL) method [14] optimizes label subset selection based on specific criteria, specifically considering separability in the feature space and the balance level of classes. Although ACkEL avoids the pitfalls of random selection and optimizes subset structure based on data characteristics, it still relies heavily on preset subset sizes and fails to explicitly model potential dependencies between labels. Furthermore, ACkEL suffers from high computational overhead and relies on predefined subset sizes and quantities, lacking a mechanism for flexible and dynamic adjustment.
Addressing these challenges and the deficiencies of existing methods, we propose an innovative approach that combines Genetic Algorithms (GA) [15] with a label subset selection strategy. Genetic Algorithms are optimization techniques that mimic natural selection and biological evolution. Possessing global search capabilities and dynamic adaptability, GA can effectively explore optimal label subset combinations and dynamically adjust subset sizes to accommodate different dataset characteristics, thereby alleviating the limitations of current methods regarding label selection. Through the design of the fitness function, the Genetic Algorithm implicitly accounts for label co-occurrence and dependencies.

3. Our Approach

To address the limitations of existing methods, we propose a label subset selection approach based on a genetic algorithm, termed Genetic Algorithm for Label Selection (GALS). Unlike the RAkEL and ACkEL methods, which require a prespecified fixed label subset size, the proposed approach eliminates the need to specify the label subset size. Instead, all label subsets are generated based on the evaluation of a fitness function, which automatically identifies the most suitable label combinations. In addition, through the evolutionary mechanisms of genetic variation and selection, the proposed approach effectively mitigates the impact of random initialization on model performance.
The Genetic Algorithm [15] is a classical heuristic search algorithm whose working mechanism involves a multi-step iterative process, including population initialization, fitness evaluation, selection, crossover, mutation, and result generation. A population refers to the set of all candidate solutions, where each chromosome represents a potential solution composed of multiple genes. Each gene is encoded as a binary value (0 or 1), indicating whether a specific label is selected: a value of 1 denotes that the label is selected, whereas 0 indicates that it is not selected. Each gene corresponds to the selection decision of a particular label, and a chromosome therefore represents a specific label subset configuration. The population, consisting of multiple chromosomes, represents the entire search space of possible label subset combinations. Through the evolutionary optimization process over the population, the genetic algorithm continuously explores and evaluates different combinations of label subsets, ultimately identifying an optimal solution that enhances classification performance.
The main parameters of the algorithm include population size, number of generations, mutation rate, and crossover rate. Specifically, the population size determines the number of chromosomes in each generation; the number of generations controls the maximum number of evolutionary iterations; the mutation rate governs the probability of gene flipping within a chromosome; and the crossover rate controls the probability of gene exchange during the recombination process, thereby introducing randomness and diversity into the solution space. During the initialization phase, the initial population is generated by randomly creating multiple chromosomes. Each chromosome is represented as a one-dimensional binary vector, where each gene corresponds to a label. A value of 1 indicates that the label is selected, while 0 indicates that it is not selected. The number of genes in each chromosome is equal to the total number of labels in the multi-label classification dataset. In the fitness evaluation phase, each chromosome in the population is evaluated using a fitness function, which aims to measure the quality of the solution. The fitness function designed in our method GALS is defined as shown in Equation (7). It incorporates a weighting parameter α to balance the predictive accuracy of the model and the rationality of label subset selection. The final weighting scheme is determined through experimental validation across different parameter settings.
F i t n e s s = α × 1 H a m m i n g   L o s s + 1 α × L a b e l   S u b s e t   R a t i o
The calculation of the fitness function, as defined in Equation (7), begins by selecting a specific subset of labels based on the positions of genes with a value of 1 within the chromosome. Subsequently, the Label Powerset (LP) transformation is applied to the training set to wrap a Random Forest classifier [16], thereby converting the multi-label subset into a single-label problem for model training. Predictions are then executed on the validation set, and the following metrics are computed based on the results. The term 1 - Hamming Loss, also referred to as Label-based Accuracy, represents local accuracy and is utilized to evaluate the predictive performance for each individual label. The formula for Hamming Loss is presented in Equation (8). The value of the Hamming Loss ranges within [0,1]; a value closer to 0 indicates fewer predictive errors across all labels. In this context, N denotes the number of samples, L represents the number of labels, y i j is the actual value of the j-th label for the i-th sample, and y ^ i j is the corresponding predicted value. The term I x serves as the indicator function, which outputs 1 if the condition y i j y ^ i j is true, and 0 otherwise.
H a m m i n g   L o s s = 1 N × L i = 1 N j = 1 L I y i j y ^ i j
Label Subset Ratio (LSR) is employed to evaluate the rationality of the number of selected labels within a subset. As defined in Equation (9), in which L s e l e c t e d represents the number of labels selected by a specific chromosome, while L i d e a l denotes the ideal number of labels, defined as half of the total label count. The LSR ranges between [0,1]. An LSR value closer to 1 indicates a more appropriate quantity of selected labels. Conversely, a surplus or deficiency in the label count will result in a lower LSR. This metric is designed to encourage a balanced label selection, thereby preventing scarcity of information or excessive computational burden on the model.
L a b e l S u b s e t R a t i o = 1 L s e l e c t e d L i d e a l L i d e a l
For the selection operation in the genetic algorithm, GALS adopts an elitism strategy. Chromosomes are ranked according to their fitness scores, and the top 40% with the highest fitness values are retained as “elites” to ensure the preservation of high-quality genetic information. For the crossover operation, GALS employs the uniform crossover method. Two elite chromosomes are randomly selected as parents, and each gene position is examined sequentially. A random number is generated for each gene: If the random number is less than the crossover rate, the gene at the corresponding position from the second parent is copied to the offspring. Otherwise, if the random number is greater than or equal to the crossover rate, the offspring retains the gene from the first parent at that position. The crossover process produces only a single new chromosome, i.e., one offspring. For the mutation operation, the bit-flip mutation method is adopted. Each gene in the chromosome is subjected to a probabilistic check based on the mutation rate. If mutation is triggered, the gene value is flipped (i.e., from 0 to 1 or from 1 to 0), thereby increasing genetic diversity within the population and preventing the search process from becoming trapped in local optima.
In the termination phase, we design two stopping criteria to control the execution process, aiming to balance the convergence speed and search capability of the algorithm while avoiding premature convergence or inefficient search. First, the algorithm terminates automatically when the maximum number of generations is reached. Second, if the growth rate of the fitness value remains below 1% for five consecutive generations, it indicates that the improvement in fitness has stagnated and the algorithm may have reached a stable state. In such a case, the process is terminated early to conserve computational resources. The fitness growth rate is defined in Equation (10), where max _ Fitness t denotes the maximum fitness value at generation t , and max _ Fitness t 1 represents the maximum fitness value at generation t 1 .
C h a n g e   R a t e = m a x _ F i t n e s s t m a x _ F i t n e s s t 1 m a x _ F i t n e s s t 1
For each generation, our algorithm GALS evaluates the fitness of every chromosome. If a chromosome’s fitness is greater than or equal to a predefined threshold, it is stored in the “best chromosome” set. However, if no chromosome satisfies this threshold, the best chromosome set becomes empty. To prevent this situation from affecting subsequent execution, GALS bypasses the current termination condition and forcibly proceeds to generate the next generation, ensuring that the search process can continue exploring the solution space.
To ensure that the final set of “best chromosomes” covers all labels and to prevent prediction failures caused by unselected labels, we introduce a label compensation mechanism. For each label that is not covered by the selected best chromosomes, GALS performs forced compensation individually. Specifically, the gene corresponding to the missing label is set to 1 in the chromosome, and the entire genetic algorithm process is re-executed from the beginning, including population initialization, fitness evaluation, selection, crossover, and mutation. Although the overall framework of the algorithm GALS remains unchanged, during this compensation process, the fitness threshold is reduced by a little number (0.075 in our experiments) to incorporate potential solutions that may fall slightly below the original threshold. Furthermore, the label compensation mechanism addresses only one missing label at a time to avoid the risk of overcorrection caused by enforcing multiple labels simultaneously. This mechanism effectively ensures that every label has the opportunity to be selected by at least one chromosome, thereby maintaining the completeness of label coverage and predictive capability.
In the model construction phase, GALS adopts the Label Powerset (LP) method to transform the multi-label classification problem into a single-label problem, and employs Random Forest [16] as the base classifier. For each best chromosome, the corresponding labels are selected as label subset according to its gene encoding, and an independent classification model is constructed based on the training dataset for the label subset. These models correspond to different label subsets and collectively form multiple mutually independent classifiers.
To integrate the prediction from multiple models, GALS employs a voting-based decision mechanism. For each label, the number of models involved in predicting the label is determined and the number of votes from all models is counted. For the i -th instance and the j -th label, the predictions from all models participating in that label (i.e., models corresponding to chromosomes with gene value 1 at the j -th position) are first summed and then divided by the number of participating models to obtain the average prediction score. If this average value is greater than or equal to 0.5, the final prediction is set to 1; otherwise, it is set to 0. The formulation is given in Equation (11), where y ^ i j denotes the final prediction for the i -th instance on the j -th label, p ^ i j ( m ) represents the prediction made by the m -th model, M j is the set of models corresponding to chromosomes with gene value 1 for the j -th label, and M j denotes the size of the set M j , that is the number of models participating in the prediction of the j -th label. Through the aforementioned voting mechanism, the decisions of multiple best chromosomes across different labels can be effectively integrated, thereby improving the stability and overall quality of the predictions.
y ^ i j = 1 ,   i f   1 M j m M j p ^ i j ( m ) 0.5 , 0 ,   o t h e r w i s e

4. Experiments

To comprehensively evaluate the performance of the proposed method in multi-label classification, we select several publicly available and representative multi-label datasets for experimentation. These datasets are widely utilized in relevant multi-label classification research and span various domains, including music (cal500 [17] and emotions [18]), image processing (flags [19], Scene [6], and corel5k [20]), biology (GnegativePseAAC [21], GpositivePseAAC [21], PlantPseAAC [21], and yeast [22]), and video (mediamill [23]). These datasets exhibit high diversity in terms of the number of instances, features, labels, and label density. Such variety not only provides a multi-faceted validation environment but also ensures the comparability and reference value of the experimental results. To enhance the clarity and readability of the experimental results, certain dataset names have been simplified: GnegativePseAAC, GpositivePseAAC, and PlantPseAAC are referred to as Gnegative, Gpositive, and Plant, respectively.
Table 1 describes the fundamental characteristics of each dataset, including the dataset name (Name), application domain (Domain), number of samples (Instance), number of attributes (Attribute), number of input features (Feature), number of labels (Label), number of label sets (Label Set), label cardinality (Cardinality), and label density (Density). Label Set refers to the collection of all label combinations present in the dataset, representing the diversity of label distributions. Theoretically, if a dataset contains L labels, the total number of possible label combinations is 2 L . However, in practice, the number of observed label sets is usually significantly lower than 2 L due to the sparsity of label distributions, as many theoretical combinations may never occur in real-world data. Cardinality reflects the average number of labels associated with each sample, defined as the ratio of the total number of label occurrences to the total number of instances. This metric measures the degree of multi-label assignment; a higher value indicates that samples are, on average, annotated with more labels. To further quantify the distribution, Density is employed to describe the degree of label sparsity, calculated as the ratio of Cardinality to the total number of Labels. A lower density value signifies a sparser label distribution, meaning most samples contain only a few labels. By analyzing these metrics, we provide a comprehensive overview of dataset characteristics, ensuring the applicability and robustness of the proposed method across diverse scenarios.

4.1. Evaluation Metric

In our experiments, we use four evaluation metrics: Hamming Loss, Subset Accuracy, Weighted F1-score, and Micro F1-score. Hamming Loss is employed to measure the fraction of incorrectly predicted labels relative to the total number of labels in a multi-label classification task. It is defined as shown in Equation (8). Furthermore, 1 - Hamming Loss corresponds to the Label-based Accuracy. Subset Accuracy represents the proportion of samples for which the predicted label set exactly matches the ground truth set. This is a stringent metric, as a prediction is considered correct only if all labels for a given sample are predicted accurately. It is defined as shown in Equation (12), where Y i represents the set of actual labels for the i-th sample, Y ^ represents the set of predicted labels for the i-th sample. I x is the indicator function, which equals 1 if the condition Y i = Y ^ i is true and 0 otherwise.
S u b s e t   A c c u r a c y = 1 N i = 1 N I Y i = Y ^ i
The F1-score is utilized to evaluate the predictive performance for a specific label, as defined in Equation (13). Precision represents the ratio of the number TP of instances correctly predicted as that label to the total number T of instances predicted as that label. Specifically, it quantifies the proportion of instances correctly identified by the model among all predictions made for that label. Recall, on the other hand, is the ratio of the number TP of instances correctly predicted as that label to the total number P of actual instances belonging to that label, measuring the model's ability to successfully capture all relevant instances from the dataset.
F 1 s c o r e = 2 × P r e c i s i o n × R e c a l l P r e c i s i o n + R e c a l l
The Weighted F1 is computed by first calculating the F1-score for each label and then taking the weighted average of these scores, where the weight of each label is determined by its proportion in the overall dataset, as shown in Equation (14), where F 1 k denotes the F1-score of the k -th label, and w k represents the ratio of the number of samples in the k -th label to the total number of samples. If certain labels account for a larger proportion of the dataset, their corresponding F1-scores will have a greater influence on the final result. The Weighted F1-score mitigates the impact of data imbalance by preventing the evaluation metric from being disproportionately affected by labels with a small number of samples. Therefore, it is particularly suitable for scenarios where the overall performance should primarily reflect the performance on the majority labels, while still partially addressing the issue of class imbalance.
W e i g h t e d   F 1 = k = 1 k w k × F 1 k
Micro F1 is calculated by first aggregating the total number TP of instances correctly predicted across all labels, the total number T of predicted instances for all labels, and the total number P of actual instances belonging to all labels, and then computing the overall Precision and Recall based on these aggregated values. Finally, the Micro F1 score is obtained by using the F1-score formulation as shown in Equation (13). Similar to the Weighted F1-score, Micro F1 is more influenced by high-frequency labels and thus better reflects the predictive performance on the majority of samples. It is particularly suitable for evaluating overall aggregated performance, especially in scenarios with highly imbalanced data, where most labels have a large number of positive instances while a few labels contain only a small number of samples, and the primary focus is on overall performance.

4.2. The parameter Setting

We design the fitness function by integrating Hamming Loss and the Label Subset Ratio (LSR) as evaluation criteria for selecting label subsets. The aim is to balance model accuracy and the distributional consistency of label predictions through appropriate weight allocation between these two components, as shown in Equation (7), where α and 1−α denote the weights assigned to (1 − Hamming Loss) and the Label Subset Ratio, respectively. To investigate the impact of different weight configurations on model performance, three sets of weighting parameters were designed. In the first configuration, α = 0.8, where 80% of the weight is assigned to Hamming Loss, emphasizing the accuracy of label set prediction, while the remaining 20% is allocated to LSR to ensure a balanced distribution of predicted labels. In the second configuration, α = 0.9, 90% of the weight is assigned to Hamming Loss, placing greater emphasis on classification accuracy compared to the first configuration, while 10% is reserved for LSR to maintain diversity in label prediction. In the third configuration, α = 1.0, the entire weight is assigned to Hamming Loss, considering only the accuracy of multi-label prediction while completely disregarding the rationality of label subset selection. Based on extensive experimental comparisons, the parameter α which is set to 0.9 achieved the best overall performance across most datasets. Therefore, α = 0.9 was selected as the final weight configuration for the fitness function.
To evaluate performance in multi-label classification tasks for various problem transformation methods, we compare classical multi-label classification methods Binary Relevance (BR) [5,6], Classifier Chains (CC) [7,8], Label Powerset (LP) [2], and label selection methods RAkELD [12,13], RAkELO [12,13], ACkELD [14], and ACkELO [14] for improving LP methods, with our proposed method GALS (Genetic Algorithm for Label Selection). To ensure experimental consistency for RAkELD and RAkELO, we adopted uniform settings for all datasets, with the corresponding k and m values presented in Table 2. Specifically, the label subset size k was set to 3. Such a configuration is widely utilized in the literature to maintain a balance between complexity and representativeness, allowing sub-classifiers to adequately learn inter-label dependencies. The number of sub-classifiers, denoted by m, was set to be equal to the number of best chromosome in the GALS method. This configuration was adopted to ensure a fair comparison between the RAkEL-based methods and GALS under an equivalent number of models. By controlling for model quantity, performance differences between the approaches can be more directly attributed to their label subset selection strategies.
To conduct a comprehensive comparison and validation, ten datasets with diverse characteristics from different domains were selected for experimentation. Due to the mediamill dataset having as many as 101 labels and up to 6,555 unique label combinations, the Label Powerset (LP) method was unable to complete the experiments because of memory limitations. Therefore, the results for the mediamill dataset are presented in a separate table, allowing for a clearer comparison among the methods that successfully completed the experiments. In the experimental tables, bold values indicate the best performance among different methods under the same dataset for a given multi-label classification metric. Each bold value is followed by a number in parentheses, which represents the ranking of the method under that metric, where (1) denotes first place, i.e., the best performance.

4.3. Experimental Results

Table 3 presents the Hamming Loss for various multi-label classification methods across nine dataset, which measures the prediction error rate, with values ranging from 0 to 1; a lower value indicates that the predicted labels are closer to the true labels and correspond to a lower error rate. As observed in Table 3, the GALS method achieves the lowest Hamming Loss on most of the datasets compared to other methods and demonstrating strong adaptability. While GALS yields an average Hamming Loss of 0.132, the difference from the best-performing method is minimal. Its stability and overall accuracy highlight its strong competitiveness as an effective approach for multi-label classification.
Table 4 presents the Subset Accuracy of various multi-label classification methods across nine datasets. Subset Accuracy is a fundamental evaluation metric in multi-label classification that measures a model’s ability to correctly predict the entire set of labels for each instance. Its values range from 0 to 1, with higher scores indicating superior predictive performance. Nevertheless, Subset Accuracy is considered an extremely strict metric because an instance is regarded as correctly classified only when all associated labels are predicted accurately; the misclassification of even a single label causes the entire prediction to be counted as incorrect. Consequently, in datasets with a large label space, weak dependencies among labels, or severe label imbalance, Subset Accuracy often yields relatively low values. Therefore, this metric is particularly effective for evaluating a model’s capability to precisely predict complete label combinations.
As shown in Table 4, the LP method achieves the best performance on the majority of the datasets. This is primarily attributed to its strategy of transforming the multi-label classification task into a single-label problem by treating each label combination as a distinct class. Consequently, LP can more precisely capture label co-occurrence relationships. However, while this direct transformation yields superior results in terms of Subset Accuracy, it incurs significant computational complexity and memory requirements. These overheads limit the applicability of the LP method to datasets with a large number of labels or an excessive variety of label combinations. Our GALS method achieves performance consistently comparable to that of the Label Powerset (LP) method across all datasets and even outperforms it on the flags dataset. These results indicate that GALS effectively employs a genetic algorithm to identify the most representative label subsets, allowing the Subset Accuracy metric to attain performance close to that of the LP method, despite LP requiring the computation of all possible label combinations.
Table 5 presents the performance of different multi-label classification methods on nine datasets in terms of the Weighted F1-score. The Weighted F1-score is computed by taking a weighted average of the F1-scores for each label, where the weights are determined by the number of samples associated with each label. Because this metric balances the importance of each label according to its sample size, it provides a more accurate evaluation of overall model performance in scenarios with imbalanced label distributions.
As shown in Table 5, the GALS method demonstrates stable and competitive performance across most datasets, achieving the best results on majority of the datasets. This indicates that GALS can effectively capture label correlations and produce accurate predictions, while maintaining a certain degree of adaptability across different types of datasets. Moreover, the average Weighted F1-score of GALS is higher than that of the other methods. It consistently achieves strong and stable performance on most datasets and surpasses the LP method. These results demonstrate that GALS can effectively select the optimal label combinations, and its label compensation mechanism not only ensures that every label is selected but also effectively preserves the co-occurrence relationships among labels.
Table 6 presents the Micro F1-score performance of various multi-label classification methods across nine datasets. The Micro F1-score is a critical metric for evaluating the global predictive performance of multi-label classification models. It is calculated by aggregating the prediction results across all samples to determine an overall F1-score. Ranging from 0 to 1, a higher value signifies superior predictive accuracy. This metric provides an accurate reflection of the model's overall efficacy across different labels. As observed from Table 6, our GALS method demonstrates stable and superior performance relative to all other methods, highlighting its robust predictive capability across diverse multi-label classification domains. Its consistent top-tier ranking across individual datasets reflects its robust competitive advantage and reliability in multi-label classification tasks.
Finally, Table 7 summarizes the evaluation results of various multi-label classification methods on the Mediamill dataset. Due to the large number of labels (101) and the substantial number of label combinations (6,555) in the Mediamill dataset, the Label Powerset (LP) method failed to complete the experiments within the designated experimental environment due to insufficient memory resources. Consequently, the experimental results for the mediamill dataset are discussed separately. The primary reason for the LP method's failure is its requirement to treat every label combination as a distinct new class for model training. This leads to an exponential increase in memory demand that exceeded the system's capacity.
As shown in Table 7, GALS achieved the top ranking in Hamming Loss, Subset Accuracy, Weighted F1-score, and Micro F1-score, demonstrating its superior adaptability and competitiveness in high-label-count scenarios. Our GALS method outperformed all other methods across all the indicators, validating that the Genetic Algorithm based label selection strategy possesses robust overall predictive performance and stability in large-scale label spaces.

5. Conclusions

In traditional multi-label classification, the Label Powerset (LP) method [2] captures label dependencies by treating each label combination as a single class, achieving superior predictive accuracy. However, it suffers from severe data sparsity due to the exponential growth of label combinations and imposes significant computational overhead, which restricts its practical application. To mitigate these issues, the Random k-Labelsets (RAkEL) method [12,13] partitions the label space into several small subsets. Although RAkEL effectively alleviates the complexity associated with label combinations and improves performance through ensemble learning, its random selection of label subsets often fails to adequately capture latent label dependencies, resulting in suboptimal performance and high variance. In addition, the Active k-Labelsets (ACkEL) method [14] introduces specific criteria for label subset selection; however, it relies on predefined parameters for both the size and number of subsets, which restricts its ability to fully optimize label subset construction.
Therefore, we propose a Genetic Algorithm based dynamic label subset selection method GALS to overcome the inherent limitations of RAkEL and AckEL which the size and number of label subsets must be predefined as fixed values. Unlike the previous approaches, GALS dynamically adjusts subset sizes through a genetic algorithm-driven fitness function. This allows label subset dimensions to adaptively align with specific label characteristics, thereby eliminating the constraints and lack of flexibility associated with static parameterization. Furthermore, GALS can automatically generate optimal label combinations via the fitness function, which mitigates the risk of performance fluctuations.To ensure robust performance, GALS leverages genetic variation and selection mechanisms to minimize the impact of initial randomization. Additionally, a specialized label compensation mechanism is integrated to guarantee that all labels participate in the modeling process. Experimental results demonstrate that GALS maintains stable performance across comprehensive metrics and outperforms all other methods on most datasets. These findings indicate that GALS can effectively identify representative label subsets and improve predictive accuracy.

References

  1. Hu, J.; Chen, C.; Huang, L.; Du, B.; Hu, W. Contrastive Learning with Label Relationships for Multi-Label Image Classification. In Proceedings of the 31st International Joint Conference on Artificial Intelligence (IJCAI), 2022; pp. 946–952.
  2. Zhang, Y.; et al. Contrastive Learning with Label Relationships for Multi-Label Image Classification. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023; pp. 2272–2281.
  3. Liu, W.; Wang, H.; Shen, X.; Tsang, I.W. Deep learning for multi-label learning: A comprehensive survey. IEEE Transactions on Knowledge and Data Engineering 2021, 34, 5131–5152.
  4. Bogatinovski, J.; Todorovski, L.; Džeroski, S.; Kocev, D. Comprehensive comparative study of multi-label classification methods. Expert Systems with Applications 2022, 203, 117215. [CrossRef]
  5. Godbole, S.; Sarawagi, S. Discriminative methods for multi-labeled classification. In Advances in Knowledge Discovery and Data Mining; Springer: Berlin, Heidelberg, 2004; Volume 3056, pp. 22–30.
  6. Boutell, M.; Luo, J.; Shen, X.; Brown, C. Learning multi-label scene classification. Pattern Recognition 2004, 37, 1757–1771. [CrossRef]
  7. Read, J.; Pfahringer, B.; Holmes, G.; Frank, E. Classifier chains for multi-label classification. In Machine Learning and Knowledge Discovery in Databases, ECML PKDD; Springer: Berlin, Heidelberg, 2009; Volume 5782, pp. 254–269.
  8. Read, J.; Pfahringer, B.; Holmes, G.; Frank, E. Classifier chains for multi-label classification. Machine Learning 2011, 85, 333–359. [CrossRef]
  9. Zhang, M.L.; Zhou, Z.H. A k-nearest neighbor based algorithm for multi-label classification. In Proceedings of the 2005 IEEE International Conference on Granular Computing, 2005; Volume 2, pp. 718–721. [CrossRef]
  10. Zhang, M.L.; Zhou, Z.H. ML-KNN: A lazy learning approach to multi-label learning. Pattern Recognition 2007, 40, 2038–2048. [CrossRef]
  11. Clare, A.; King, R.D. Knowledge discovery in multi-label phenotype data. In Principles of Data Mining and Knowledge Discovery (PKDD 2001); Springer: Berlin, Heidelberg, 2001; Volume 2168, pp. 42–53.
  12. Tsoumakas, G.; Vlahavas, I. Random k-labelsets: An ensemble method for multilabel classification. In Proceedings of the European Conference on Machine Learning (ECML), Berlin, Germany, 2007; Volume 4701, pp. 406–417.
  13. Tsoumakas, G.; Katakis, I.; Vlahavas, I. Random k-labelsets for multilabel classification. IEEE Trans. Knowl. Data Eng. 2011, 23, 1079–1089. [CrossRef]
  14. Wang, R.; Kwong, S.; Wang, X.; Jia, Y. Active k-labelsets ensemble for multi-label classification. Pattern Recognition 2020, 109, 107583. [CrossRef]
  15. Katoch, S.; Chauhan, S.S.; Kumar, V. A review on genetic algorithm: Past, present, and future. Multimedia Tools and Applications 2021, 80, 8091–8126.
  16. Breiman, L. Random forests. Machine Learning 2001, 45, 5–32.
  17. Turnbull, D.; Barrington, L.; Torres, D.; Lanckriet, G. Semantic annotation and retrieval of music and sound effects. IEEE Transactions on Audio, Speech, and Language Processing 2008, 16, 467–476. [CrossRef]
  18. Wieczorkowska, A.; Synak, P.; Raś, Z. Multi-label classification of emotions in music. In Intelligent Information Processing and Web Mining; Springer: Berlin, Heidelberg, 2006; pp. 307–315.
  19. Goncalves, E.C.; Plastino, A.; Freitas, A.A. A genetic algorithm for optimizing the label ordering in multi-label classifier chains. In Proceedings of the 25th IEEE International Conference on Tools with Artificial Intelligence (ICTAI), Washington, DC, USA, 2013; pp. 469–476.
  20. Duygulu, P.; Barnard, K.; de Freitas, J.F.G.; Forsyth, D.A. Object recognition as machine translation: Learning a lexicon for a fixed image vocabulary. In Proceedings of the European Conference on Computer Vision (ECCV), Berlin, Heidelberg, 2002; Volume 2353, pp. 97–112.
  21. Xu, J.; Liu, J.; Yin, J.; Sun, C. A multi-label feature extraction algorithm via maximizing feature variance and feature-label dependence simultaneously. Knowledge-Based Systems 2016, 98, 172–184. [CrossRef]
  22. Elisseeff, A.; Weston, J. A kernel method for multi-labelled classification. In Advances in Neural Information Processing Systems (NIPS), Cambridge, MA, USA, 2001; Volume 14, pp. 681–687.
  23. Snoek, C.G.M.; Worring, M.; van Gemert, J.C.; Geusebroek, J.M.; Smeulders, A.W.M. The challenge problem for automated detection of 101 semantic concepts in multimedia. In Proceedings of the ACM International Conference on Multimedia, Santa Barbara, CA, USA, 2006; pp. 421–430.
  24. Tsoumakas, G.; Katakis, I. Multi-label classification: An overview. International Journal of Data Warehousing and Mining 2007, 3, 1–13.
Table 1. The overall characteristics of the experimental datasets.
Table 1. The overall characteristics of the experimental datasets.
Name domain Instance Attribute Feature Label Label Set Cardinality Density
cal500 Music 502 242 68 174 502 26.0438 0.1497
emotions Music 593 78 72 6 27 1.8685 0.3114
flags Image 194 26 19 7 54 3.3918 0.4845
Gnegative Biology 1392 448 440 8 19 1.046 0.1307
Gpositive Biology 519 444 440 4 7 1.0077 0.2519
Plant Biology 978 452 440 12 32 1.0787 0.0899
scene Image 2407 300 294 6 15 1.074 0.179
yeast Biology 2417 117 103 14 198 4.2371 0.3026
corel5k Image 5000 873 499 374 3175 3.522 0.0094
mediamill Video 43907 221 120 101 6555 4.3756 0.0433
Table 2. The configuration of parameters k and m in the RAkEL method.
Table 2. The configuration of parameters k and m in the RAkEL method.
Dataset k m
cal500 3 40
emotions 3 22
flags 3 28
Gnegative 3 37
Gpositive 3 8
Plant 3 57
scene 3 34
yeast 3 40
corel5k 3 40
mediamill 3 40
Table 3. Hamming Loss of various multi-label classification methods.
Table 3. Hamming Loss of various multi-label classification methods.
Dataset BR CC LP RAkELD RAkELO ACkELD ACkELO GALS
cal500 0.143(2) 0.142(1) 0.202(4) 0.142(1) 0.147(3) 0.961(5) 0.996(6) 0.202(4)
emotions 0.177(1) 0.187(5) 0.191(6) 0.186(4) 0.181(3) 0.805(7) 0.805(7) 0.180(2)
flags 0.242(3) 0.242(3) 0.259(4) 0.237(2) 0.242(3) 0.652(5) 0.725(6) 0.230(1)
Gnegative 0.081(4) 0.077(2) 0.087(5) 0.080(3) 0.081(4) 0.923(7) 0.921(6) 0.066(1)
Gpositive 0.173(5) 0.163(2) 0.168(4) 0.168(4) 0.165(3) 0.884(7) 0.875(6) 0.154(1)
Plant 0.088(1) 0.088(1) 0.122(3) 0.088(1) 0.088(1) 0.996(5) 0.994(4) 0.089(2)
scene 0.082(5) 0.075(3) 0.071(2) 0.082(5) 0.081(4) 0.887(6) 0.906(7) 0.066(1)
yeast 0.191(3) 0.193(4) 0.201(6) 0.190(2) 0.189(1) 0.823(7) 0.951(8) 0.195(5)
corel5k 0.009(1) 0.009(1) 0.015(3) 0.009(1) 0.009(1) 0.999(4) 0.999(4) 0.010(2)
Average 0.132 0.131 0.146 0.131 0.131 0.881 0.908 0.132
Table 4. Subset Accuracy of various multi-label classification methods.
Table 4. Subset Accuracy of various multi-label classification methods.
Dataset BR CC LP RAkELD RAkELO ACkELD ACkELO GALS
cal500 0.000(1) 0.000(1) 0.000(1) 0.000(1) 0.000(1) 0.000(1) 0.000(1) 0.000(1)
emotions 0.292(6) 0.331(3) 0.393(1) 0.303(5) 0.315(4) 0.000(7) 0.000(7) 0.348(2)
flags 0.186(6) 0.237(5) 0.288(2) 0.254(4) 0.271(3) 0.000(7) 0.000(7) 0.305(1)
Gnegative 0.421(4) 0.457(3) 0.644(1) 0.421(4) 0.414(5) 0.000(6) 0.000(6) 0.591(2)
Gpositive 0.500(5) 0.538(3) 0.660(1) 0.506(4) 0.487(6) 0.000(7) 0.000(7) 0.622(2)
Plant 0.034(3) 0.031(4) 0.293(1) 0.024(5) 0.020(6) 0.000(7) 0.000(7) 0.173(2)
scene 0.573(4) 0.614(3) 0.762(1) 0.563(6) 0.567(5) 0.000(7) 0.000(7) 0.729(2)
yeast 0.158(6) 0.207(3) 0.263(1) 0.163(5) 0.168(4) 0.000(7) 0.000(7) 0.238(2)
corel5k 0.003(4) 0.006(3) 0.039(1) 0.002(5) 0.000(6) 0.000(6) 0.000(6) 0.023(2)
Average 0.241 0.269 0.371 0.248 0.249 0 0 0.337
Table 5. Weighted F1-score of various multi-label classification methods.
Table 5. Weighted F1-score of various multi-label classification methods.
Dataset BR CC LP RAkELD RAkELO ACkELD ACkELO GALS
cal500 0.234(3) 0.224(5) 0.331(1) 0.227(4) 0.103(6) 0.254(2) 0.021(7) 0.331(1)
emotions 0.660(4) 0.650(5) 0.685(1) 0.636(7) 0.646(6) 0.681(3) 0.604(8) 0.683(2)
flags 0.738(4) 0.737(5) 0.725(6) 0.746(2) 0.739(3) 0.722(7) 0.570(8) 0.755(1)
Gnegative 0.497(7) 0.527(5) 0.612(3) 0.503(6) 0.495(8) 0.588(4) 0.613(2) 0.630(1)
Gpositive 0.564(6) 0.592(3) 0.644(2) 0.570(4) 0.568(5) 0.390(7) 0.307(8) 0.657(1)
Plant 0.053(5) 0.050(6) 0.185(1) 0.041(7) 0.035(8) 0.069(4) 0.087(3) 0.171(2)
scene 0.696(5) 0.730(3) 0.792(2) 0.699(4) 0.696(5) 0.658(6) 0.427(7) 0.794(1)
yeast 0.562(5) 0.577(4) 0.607(2) 0.559(6) 0.555(7) 0.580(3) 0.193(8) 0.609(1)
corel5k 0.037(5) 0.042(3) 0.148(1) 0.040(4) 0.004(7) 0.042(3) 0.021(6) 0.122(2)
Average 0.449 0.459 0.525 0.447 0.427 0.443 0.316 0.528
Table 6. Micro F1-score of various multi-label classification methods.
Table 6. Micro F1-score of various multi-label classification methods.
Dataset BR CC LP RAkELD RAkELO ACkELD ACkELO GALS
cal500 0.324(2) 0.320(3) 0.332(1) 0.320(3) 0.174(4) 0.083(5) 0.006(6) 0.332(1)
emotions 0.686(3) 0.675(5) 0.695(2) 0.662(7) 0.672(6) 0.682(4) 0.578(8) 0.700(1)
flags 0.754(3) 0.750(5) 0.733(6) 0.759(2) 0.752(4) 0.661(7) 0.555(8) 0.763(1)
Gnegative 0.572(5) 0.604(3) 0.660(2) 0.575(4) 0.570(6) 0.260(8) 0.296(7) 0.698(1)
Gpositive 0.594(6) 0.622(3) 0.665(2) 0.601(4) 0.596(5) 0.337(7) 0.266(8) 0.674(1)
Plant 0.061(3) 0.055(4) 0.296(1) 0.043(5) 0.037(6) 0.021(8) 0.027(7) 0.248(2)
scene 0.717(4) 0.746(3) 0.795(2) 0.714(5) 0.717(4) 0.670(6) 0.416(7) 0.801(1)
yeast 0.637(4) 0.643(3) 0.657(2) 0.637(4) 0.635(5) 0.377(6) 0.169(7) 0.670(1)
corel5k 0.044(4) 0.044(4) 0.167(1) 0.048(3) 0.005(6) 0.006(5) 0.002(7) 0.158(2)
Average 0.488 0.495 0.556 0.484 0.462 0.344 0.257 0.56
Table 7. Evaluation Results of Various Multi-Label Classification Methods on the Mediamill Dataset.
Table 7. Evaluation Results of Various Multi-Label Classification Methods on the Mediamill Dataset.
Dataset BR CC RAkELD RAkELO ACkELD ACkELO GALS
Hamming Loss 0.026(2) 0.026(2) 0.026(2) 0.026(2) 0.978(3) 0.999(4) 0.025(1)
Subset Accuracy 0.163(3) 0.178(2) 0.162(4) 0.149(5) 0.000(6) 0.000(6) 0.236(1)
Weighted F1-score 0.541(3) 0.528(4) 0.541(3) 0.522(5) 0.548(2) 0.013(6) 0.603(1)
Micro F1-score 0.623(2) 0.609(4) 0.623(2) 0.617(3) 0.169(5) 0.013(6) 0.655(1)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings