TL;DR
This paper introduces the Cannistraci-Muscoloni-Gu Generalized Logistic-Logit Function (CMG-GLLF), a novel, unified framework for generating both logistic and logit curves with fine-grained control over shape and bounds. This function is then applied as a trainable Input Feature Modulator (IFM) to significantly improve the accuracy and learning speed of Multi-Layer Perceptrons (MLPs) in image classification tasks, and also enhances neuron segmentation accuracy.
What Problem Does This Paper Address?
Logistic and logit functions are fundamental in various scientific fields, particularly in machine learning as activation functions and for modeling probabilities. However, existing functions offer limited flexibility in controlling curve shape, steepness, asymmetry, and exact boundaries. This lack of adaptability hinders their application in complex real-world scenarios that often involve skewed or imbalanced data. Furthermore, there's no single framework that can generate both logistic and logit curves with unified control. This paper aims to bridge this gap by proposing a generalized function that addresses these limitations and demonstrates its utility in improving neural network performance and data analysis tasks.
Methods
The core contribution is the Cannistraci-Muscoloni-Gu Generalized Logistic-Logit Function (CMG-GLLF). This function is parameterized by four trainable parameters that offer explicit control over:
- Curve type and steepness: Controlled by the inflection rate ($\mu$).
- Asymmetry: Controlled by the deviate inflection point ($I$).
- Upper and lower limits: Explicit control over the x and y axis bounds ($x_{min}, x_{max}, y_L, y_R$).
The CMG-GLLF can generate step functions, logistic curves, linear functions, and constant functions within a single framework. For its application as an Input Feature Modulator (IFM) in MLPs, the CMG-GLLF parameters ($\mu$ and $I$) are learned during backpropagation for each input layer node. This allows the network to adaptively transform input features, amplifying or attenuating them to improve representation. The paper also details the derivation of approximate gradients for the logit phase of CMG, crucial for its integration into gradient-based learning.
Datasets
- Image Classification: CIFAR-10 and CIFAR-100 datasets were used for evaluating the MLP's performance with the CMG-GLLF as an IFM. These are standard benchmark datasets for image classification.
- Neuron Segmentation: The CREMI challenge dataset, specifically the re-aligned augmented Drosophila brain EM 3D image, was used to demonstrate CMG's effectiveness in improving neuron segmentation accuracy.
No new benchmarks were introduced; existing ones were used to validate the proposed method.
Key Insights and Ideas
- Unified Framework: The CMG-GLLF is the first unified framework to generate both generalized logistic and logit curves, simplifying the modeling of diverse signal transformations.
- Fine-grained Control: The four interpretable parameters offer unprecedented control over curve shape and bounds, making it highly adaptable to various data characteristics.
- Trainable Feature Modulation: Applying CMG as a trainable IFM in MLPs allows the network to learn optimal input feature transformations, leading to significant performance gains.
- Improved Contrast: CMG modulation can enhance image contrast, highlighting important features in images.
- Potential for Explainability: The learnable nature of CMG parameters suggests potential for using their distribution as a tool for model explainability.
Key Results
- MLP Performance:
- CMG-GLLF as an IFM improved MLP accuracy by 5.04% on CIFAR-10 and 6.38% on CIFAR-100 compared to a vanilla MLP.
- It also improved the Area Across Epochs (AAE), indicating faster learning, by 3.93% on CIFAR-10 and 5.81% on CIFAR-100.
- CMG outperformed other learnable functions with two parameters and was competitive with a four-parameter function (SReLU).
- CMG demonstrated stable training across different optimizers (SGD, AdamW, Muon) on MLPs.
- Neuron Segmentation:
- CMG-enhanced neuron segmentation achieved a 9.0% lower CREMI score (indicating better segmentation quality) compared to the state-of-the-art method.
- Qualitative evaluation showed CMG-enhanced segmentation produced more coherent neuron segments with fewer split errors.
- Image Contrast: CMG modulation led to a noticeable increase in image brightness contrast, as measured by RMS contrast.
Limitations and Future Work
- Interpreting Deviate Inflection Point: While $I$ controls asymmetry, its exact interpretation as a "growth rate" point is only precise when $I=0.5$. Further work is needed to clarify its meaning in other configurations.
- Computational Overhead: CMG as an IFM incurs higher GPU memory usage and training time compared to vanilla MLPs, primarily due to the approximation algorithm for the logit phase.
- CNN Instability: Preliminary analysis showed numerical instability when applying CMG as an IFM in a simple CNN.
- Future Work:
- Derive an explicit, fully differentiable CMG expression to mitigate numerical instability and reduce computational overhead in complex architectures like CNNs.
- Systematically evaluate CMG as an activation function across all layers.
- Investigate CMG's potential in more diverse deep learning architectures and applications, including its use as a learnable activation function for enhanced explainability.
- Explore CMG's application in other data analysis challenges across different scientific domains.
Summary updated