A Flow-Based Probability Density Estimation Framework for High-Dimensional Neural Representations

Authors:

Abstract
High-dimensional neural representations arise ubiquitously across layers of deep neural networks (DNNs), encoding rich semantic and structural information. Accurately characterizing their probability distributions is therefore essential for analyzing learned representations, understanding training dynamics, and interpreting model behavior. However, existing density estimation methods either become computationally intractable in high-dimensional spaces or fail to effectively capture structured inter-dimensional dependencies within representations. To address these challenges, we propose a flow-based probability density estimation framework tailored for high-dimensional neural representations. Two complementary sub-block partitioning strategies are introduced to decompose a high-dimensional neural representation into multiple lower-dimensional sub-blocks, enabling tractable and structured dependency modeling. To balance estimation accuracy and computational efficiency, a shared normalizing flow is employed to transform each sub-block into a latent space governed by independent Gaussian mixture model (GMM) priors. A dedicated GMM estimator is designed to estimate the parameters of the GMM from the transformed latent representations, and an alternating optimization scheme is developed to jointly optimize the normalizing flow and the GMM estimator, progressively aligning distribution transformation with prior estimation. The probability densities of all sub-blocks are aggregated to characterize the overall distribution of the original high-dimensional neural representation. Extensive simulations compare the proposed framework with expectation maximization (EM)-based and flow-based baselines, demonstrating the effectiveness of the sub-block partitioning strategy and the alternating optimization mechanism. Furthermore, the framework is employed to analyze representation distributions across different training epochs, network locations, and task objectives, providing probabilistic insights into the internal dynamics of DNNs.