Abstract
Neural networks in general, from MLPs and CNNs to attention-based Transformers, are constructed from layers of linear combinations followed by nonlinear operations such as ReLU, Sigmoid, or Softmax. Despite their strength, these conventional designs are often limited in introducing non-linearity by the choice of activation functions. In this work, we introduce Gaussian Mixture-Inspired Nonlinear Modules (GMNM), a new class of differentiable modules that draw on the universal density approximation Gaussian mixture models (GMMs) and distance properties (metric space) of Gaussian kernal. By relaxing probabilistic constraints and adopting a flexible parameterization of Gaussian projections, GMNM can be seamlessly integrated into diverse neural architectures and trained end-to-end with gradient-based methods. Our experiments demonstrate that incorporating GMNM into architectures such as MLPs, CNNs, attention mechanisms, and LSTMs consistently improves performance over standard baselines. These results highlight GMNM's potential as a powerful and flexible module for enhancing efficiency and accuracy across a wide range of machine learning applications.
Introduction
Modern neural network design typically relies on a sequence of linear transformations interleaved with fixed nonlinear activation functions like ReLU or Sigmoid. While this paradigm has driven significant progress, it restricts the expressive power of the network to the specific properties of these chosen activations. This work explores an alternative approach by leveraging the "exponential family," specifically Gaussian Mixture Models (GMMs). Although GMMs are known universal density approximators, their integration into deep learning has been hindered by the reliance on Expectation-Maximization (EM) training and the strict probabilistic constraints—such as maintaining positive definite covariance matrices—that are difficult to enforce during backpropagation.
Methodology: Gaussian Mixture-Inspired Nonlinear Modules (GMNM)
The GMNM architecture reinterprets GMMs as flexible, differentiable function approximators. To make them compatible with standard gradient descent, the authors introduce two primary innovations:
- Relaxed Constraints: Mixture weights are treated as arbitrary trainable parameters rather than probabilities summing to one, and the requirement for the function to integrate to unity is removed. This allows the model to act as a general-purpose function approximator.
- Augmented Gaussian Projection (AGP): To avoid the computational burden of inverting high-dimensional covariance matrices, the AGP module emulates Mahalanobis distance through a series of linear projections and a squaring function.
As shown in the architecture diagram, the AGP module performs centering ($z = x - \mu$), followed by independent linear projections ($LP_n$) for each component. These are aggregated and passed through a Gaussian kernel $f(y) = \exp(-0.5 y^2)$. This structure allows the network to learn local basis functions that can be weighted to approximate complex global surfaces.
Experimental Results
The authors evaluated GMNM across synthetic functions, partial differential equations (PDEs), image classification, and time-series forecasting.
Synthetic Function Approximation
In 2D function fitting tasks, GMNM demonstrated superior convergence compared to Multi-Layer Perceptrons (MLPs) and Kolmogorov-Arnold Networks (KANs). GMNM's "locality" allows it to recruit specific components to model fine-grained structures without disrupting the global fit, leading to near-monotonic loss reduction even when dealing with discontinuous features.
Performance Across Domains
- PDE Solving: In the Poisson PDE benchmark, GMNM achieved an L2 error of $5.1 \times 10^{-9}$ with 4,500 parameters, significantly outperforming KAN ($3.6 \times 10^{-8}$ with 10,600 params) and PINN ($1.5 \times 10^{-7}$ with 5,301 params).
- Computer Vision: On CIFAR-100, a CNN utilizing a GMNM head achieved a test loss of 0.033, outperforming standard CNNs (0.035) and attention-augmented variants (0.038) while maintaining parameter efficiency.
- Sequential Modeling: Integrating GMNM into a small LSTM (3 units) allowed it to surpass a much larger standard LSTM (32 units) by an order of magnitude in test loss ($2 \times 10^{-5}$ vs $7 \times 10^{-4}$).
Discussion and Conclusion
GMNM offers a powerful inductive bias by using Gaussian shapes as local basis functions. This approach is particularly effective when combined with global mechanisms like attention, where GMNM handles local feature representation while attention manages global dependencies. While scaling to extremely high-dimensional spaces and very deep architectures remains an area for future work, the current results demonstrate that GMNM is a highly efficient, differentiable alternative to traditional nonlinear activations. Future research will explore optimized parameter initialization and strategies for scaling the number of Gaussian components in massive models.
Summary updated