[Paper Review] m-arcsinh: An Efficient and Reliable Function for SVM and MLP in scikit-learn
This paper introduces m-arcsinh, a modified inverse hyperbolic sine function that serves as an efficient and reliable kernel for Support Vector Machines (SVM) and activation function for Multi-Layer Perceptrons (MLP) in scikit-learn. Evaluated across 15 datasets, m-arcsinh achieves competitive classification performance with faster convergence and improved stability compared to standard functions, demonstrating its suitability across diverse ML tasks.
This paper describes the 'm-arcsinh', a modified ('m-') version of the inverse hyperbolic sine function ('arcsinh'). Kernel and activation functions enable Machine Learning (ML)-based algorithms, such as Support Vector Machine (SVM) and Multi-Layer Perceptron (MLP), to learn from data in a supervised manner. m-arcsinh, implemented in the open source Python library 'scikit-learn', is hereby presented as an efficient and reliable kernel and activation function for SVM and MLP respectively. Improvements in reliability and speed to convergence in classification tasks on fifteen (N = 15) datasets available from scikit-learn and the University California Irvine (UCI) Machine Learning repository are discussed. Experimental results demonstrate the overall competitive classification performance of both SVM and MLP, achieved via the proposed function. This function is compared to gold standard kernel and activation functions, demonstrating its overall competitive reliability regardless of the complexity of the classification tasks involved.
Motivation & Objective
- To address the limited availability and reliability of kernel and activation functions in scikit-learn for SVM and MLP classifiers.
- To overcome the challenge of slow or failed convergence due to local minima and unstable function behavior in existing standard functions.
- To develop a single mathematical function that can effectively serve as both a kernel for SVM and an activation for MLP, enhancing cross-algorithm compatibility.
- To improve training efficiency and classification performance across diverse, real-world datasets from scikit-learn and UCI ML repository.
- To provide an open-source, freely available function with broad applicability in academic and industrial machine learning applications.
Proposed method
- The m-arcsinh function is derived as a modified version of the inverse hyperbolic sine (arcsinh) function, designed to improve numerical stability and gradient flow.
- The function is implemented directly in the scikit-learn library, supporting both the SVC (SVM) and MLPClassifier classes.
- The function is evaluated using 15 benchmark datasets from scikit-learn and the UCI Machine Learning Repository, covering diverse classification tasks.
- Performance is compared against gold-standard kernel and activation functions, including RBF, linear, polynomial, sigmoid, ReLU, tanh, and logistic.
- Key metrics include training time, accuracy, weighted precision, recall, and F1-score, with results reported across multiple classifiers and datasets.
- The function is tested in both non-optimized and baseline configurations to assess robustness and convergence speed.
Experimental results
Research questions
- RQ1Can m-arcsinh serve as a reliable and efficient kernel function for SVM and activation function for MLP in the same machine learning framework?
- RQ2How does m-arcsinh compare to standard kernel and activation functions in terms of convergence speed and classification accuracy?
- RQ3Does m-arcsinh reduce the risk of getting trapped in local minima during training compared to conventional functions?
- RQ4Can m-arcsinh achieve competitive performance across diverse, real-world datasets with varying complexity and feature distributions?
- RQ5Is m-arcsinh computationally efficient and stable enough for practical deployment in both academic and industrial ML applications?
Key findings
- On the 'Olivetti faces' dataset, m-arcsinh achieved 91% accuracy with a training time of 0.143 seconds for SVM, outperforming the RBF kernel (31% accuracy) and matching the linear kernel (99% accuracy) in speed.
- For the 'Pen-based handwritten digits' dataset, m-arcsinh achieved 99% accuracy with 17.736 seconds of training time for MLP, matching the performance of ReLU and tanh while being more stable.
- On the 'Wireless Indoor Localization' dataset, m-arcsinh achieved 99% accuracy for both SVM and MLP with minimal training times (0.022s for SVM, 5.870s for MLP), outperforming the sigmoid kernel (21% accuracy).
- On the 'Breast Cancer Coimbra' dataset, m-arcsinh achieved 71% accuracy for SVM and 46% for MLP, significantly outperforming the sigmoid kernel (46% and 29% respectively), demonstrating improved reliability.
- Across all datasets, m-arcsinh showed consistent performance with faster convergence and reduced risk of local minima, particularly in complex or high-dimensional settings.
- The m-arcsinh function was found to be computationally efficient, stable, and broadly applicable, making it a strong alternative to gold-standard functions in both SVM and MLP frameworks.
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.