[Paper Review] Similarity Based Stratified Splitting: an approach to train better classifiers
This paper proposes Similarity-Based Stratified Splitting (SBSS), a novel data splitting method that enhances classifier performance by leveraging both input and output space similarity to distribute similar samples across different training and test folds. Evaluated across 22 datasets with multiple classifiers, SBSS significantly improved test accuracy in 75% of cases compared to standard 10-fold cross-validation, demonstrating a low-cost, classifier-agnostic strategy to boost real-world model generalization.
We propose a Similarity-Based Stratified Splitting (SBSS) technique, which uses both the output and input space information to split the data. The splits are generated using similarity functions among samples to place similar samples in different splits. This approach allows for a better representation of the data in the training phase. This strategy leads to a more realistic performance estimation when used in real-world applications. We evaluate our proposal in twenty-two benchmark datasets with classifiers such as Multi-Layer Perceptron, Support Vector Machine, Random Forest and K-Nearest Neighbors, and five similarity functions Cityblock, Chebyshev, Cosine, Correlation, and Euclidean. According to the Wilcoxon Sign-Rank test, our approach consistently outperformed ordinary stratified 10-fold cross-validation in 75\\% of the assessed scenarios.
Motivation & Objective
- To address the limitations of conventional data splitting methods that fail to account for input space similarity, leading to suboptimal model generalization.
- To develop a data splitting strategy that improves model performance by ensuring better representation of data distribution in training and test sets.
- To propose a classifier-agnostic, low-cost method that enhances model generalization without modifying the learning algorithm.
- To evaluate the effectiveness of SBSS across diverse datasets and classifiers using statistical significance testing.
- To explore the impact of different similarity functions (e.g., Euclidean, Cosine, Correlation) on model performance under SBSS.
Proposed method
- SBSS uses a similarity function to measure pairwise distances between samples in the input space, incorporating both input features and output labels.
- Samples are grouped into clusters based on their similarity, and then split across folds to minimize intra-fold similarity while preserving class distribution.
- The method applies stratified splitting to maintain class proportions across folds, enhanced by similarity constraints to reduce redundancy in training data.
- Five similarity functions—Cityblock, Chebyshev, Cosine, Correlation, and Euclidean—are evaluated to determine their impact on model performance.
- The algorithm ensures that similar samples are placed in different folds, promoting diversity and better generalization during training.
- SBSS is applied in a 10-fold cross-validation framework, with performance compared to standard stratified 10-fold cross-validation using the Wilcoxon signed-rank test.
Experimental results
Research questions
- RQ1Does incorporating input space similarity into data splitting improve classifier generalization compared to standard stratified splitting?
- RQ2How does the choice of similarity function (e.g., Euclidean, Cosine, Correlation) affect the performance gain of SBSS?
- RQ3Can SBSS consistently improve model performance across diverse datasets and classifier types?
- RQ4Is the performance gain of SBSS statistically significant across multiple benchmark datasets?
- RQ5Does SBSS reduce overfitting and improve real-world performance estimation by better representing data distribution?
Key findings
- SBSS significantly outperformed standard 10-fold cross-validation in 75% of the evaluated scenarios, with a Wilcoxon signed-rank test confirming statistical significance.
- The method improved test accuracy in 330 out of 440 total comparisons (75%) across 22 datasets and four classifiers (MLP, SVM, KNN, RF).
- For the SVM classifier using Correlation similarity, SBSS achieved an average accuracy gain of 1.121% over standard 10-fold cross-validation, with 16 wins and no losses in the statistical test.
- The average accuracy gain across all datasets and classifiers was 0.428% for training and 1.547% for test sets, with a 1L/12T/9W result in the Wilcoxon test.
- SBSS demonstrated consistent improvements across diverse datasets, including high-dimensional ones like 'vowel' and 'madelon', and imbalanced datasets like 'credit-g' and 'diabetes'.
- The approach is classifier-agnostic and incurs minimal computational cost, making it suitable for deployment in both academic and industrial ML pipelines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.