[Paper Review] Squared Neural Families: A New Class of Tractable Density Models
This paper introduces Squared Neural Families (SNEFY), a new class of tractable density models that define probability densities by squaring the 2-norm of a neural network output and normalizing with respect to a base measure. The key contribution is that SNEFYs admit closed-form normalizing constants in many settings via connections to neural network kernel (NNK) theory, enabling flexible, fully tractable density estimation with exact likelihoods, generalizing exponential families and supporting conditioning and marginalization.
Flexible models for probability distributions are an essential ingredient in many machine learning tasks. We develop and investigate a new class of probability distributions, which we call a Squared Neural Family (SNEFY), formed by squaring the 2-norm of a neural network and normalising it with respect to a base measure. Following the reasoning similar to the well established connections between infinitely wide neural networks and Gaussian processes, we show that SNEFYs admit closed form normalising constants in many cases of interest, thereby resulting in flexible yet fully tractable density models. SNEFYs strictly generalise classical exponential families, are closed under conditioning, and have tractable marginal distributions. Their utility is illustrated on a variety of density estimation, conditional density estimation, and density estimation with missing data tasks.
Motivation & Objective
- Address the challenge of intractable normalizing constants in flexible deep density models, especially in energy-based and normalizing flow approaches.
- Develop a new family of probability distributions that are both highly expressive and mathematically tractable, enabling exact maximum likelihood estimation.
- Generalize classical exponential families by allowing non-linear sufficient statistics via neural networks while preserving tractability.
- Enable exact inference operations such as conditioning and marginalization, which are critical for structured density modeling.
- Provide a unified framework that supports continuous, discrete, and mixed distributions through flexible base measures and activation functions.
Proposed method
- Define a probability density proportional to the squared L2 norm of a feedforward neural network output, with learnable readout weights and fixed hidden-layer parameters.
- Leverage the neural network kernel (NNK) formalism to express the normalizing constant as a trace of a kernel matrix, enabling closed-form computation when the NNK admits a known analytic form.
- Use the characteristic function of the base measure to derive the NNK, allowing tractable normalizing constants for a wide range of base measures and activation functions.
- Formalize the model using a base measure μ, sufficient statistics t(x), and activation σ, with the density defined as p(x; V, Θ) ∝ ||f(t(x); V, Θ)||²₂ / z(V, Θ).
- Establish connections to existing frameworks such as Neural Tangent Kernels and Random Fourier Features, but reverse the roles of data and parameters to enable tractable normalizing constants.
- Demonstrate that SNEFYs generalize exponential family mixtures by setting σ(·) = exp(·/2) and using known log-partition functions for the base exponential family.
Experimental results
Research questions
- RQ1Can we construct a flexible class of probability density models based on neural networks that maintain tractable normalizing constants?
- RQ2In what settings does the normalizing constant of a squared neural network density admit a closed-form expression?
- RQ3How does the SNEFY framework generalize classical exponential families and mixture models while preserving tractability?
- RQ4Can SNEFYs support exact conditioning and marginalization operations, and how do they compare to normalizing flows in this regard?
- RQ5What types of base measures and activation functions lead to analytically tractable normalizing constants via the NNK formalism?
Key findings
- SNEFYs admit closed-form normalizing constants in multiple settings, including when the base measure μ is Gaussian, uniform, or counting measure, and when the activation function σ is erf, ReLU, GELU, or cosine.
- The normalizing constant z(V, Θ) is expressed as Tr(VᵀV K_Θ), where K_Θ is a kernel matrix derived from the NNK, enabling efficient computation and learning.
- The framework generalizes exponential family mixtures: setting σ(·) = exp(·/2) and using a known log-partition function for the base exponential family yields tractable SNEFYs.
- SNEFYs support discrete and mixed continuous/discrete distributions through series representations of the NNK, such as Fourier series for periodic functions.
- The model supports exact conditioning and marginalization, and can be combined with normalizing flows and deep feature extractors.
- Empirical results on density estimation, conditional density estimation, and missing data tasks show SNEFYs achieve competitive performance with exact likelihoods, unlike most normalizing flows or energy-based models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.