Rethinking Nonlinearity: Trainable Gaussian Mixture Modules for Modern Neural Architectures
Weiguo Lu, Gangnan Yuan, Hong-kun Zhang, Shangyang Li
TL;DR
This work targets the nonlinearity bottleneck in modern neural architectures by introducing Gaussian Mixture-Inspired Nonlinear Modules (GMNM), a differentiable integration of Gaussian mixtures that can be trained with standard gradient methods. GMNM uses Augmented Gaussian Projection blocks to form a flexible, trainable nonlinear basis, relaxing probability constraints and avoiding strict positive-definite covariance requirements. Empirically, GMNM improves function approximation and boosts performance across diverse tasks including image classification, generation, time-series forecasting, and PDE solving, with often fewer parameters and no slowdowns. The results suggest GMNM as a versatile, practical mechanism to enhance expressiveness of CNNs, LSTMs, and related architectures in a broad range of applications.
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.
