Continuous variables in tabular datasets often exhibit complex, multi-modal, and non-Gaussian distributions. Standard min-max normalization to [−1,1] can lead to vanishing gradients in neural networks. Mode-specific normalization represents each continuous value using a one-hot vector indicating its assigned Gaussian mixture mode and a scalar indicating its relative position within that mode.
For each continuous column Ci with observations ci,j:
- A Variational Gaussian Mixture Model (VGM) is fitted to Ci to estimate the number of modes mi and the mixture parameters:
PCi(ci,j)=∑k=1miμkN(ci,j;ηk,ϕk)
where μk, ηk, and ϕk are the mixture weight, mean, and standard deviation of mode k, respectively.
- For each scalar value ci,j, the probability density of it originating from mode k∈{1,…,mi} is computed as ρk=μkN(ci,j;ηk,ϕk).
- A single mode k is sampled according to the normalized probability distribution [ρ1,…,ρmi].
- The mode indicator is encoded as a one-hot vector βi,j∈{0,1}mi with βi,j(k)=1 and 0 elsewhere.
- The continuous value within the selected mode k is normalized to a scalar:
αi,j=4ϕkci,j−ηk
which maps approximately 99.99% of values within 4σ of the mode mean to [−1,1].
For a dataset with Nc continuous columns and Nd discrete columns (where each discrete value is one-hot encoded as di,j), the complete representation of row j becomes the vector concatenation:
rj=α1,j⊕β1,j⊕⋯⊕αNc,j⊕βNc,j⊕d1,j⊕⋯⊕dNd,j