[Paper Review] A RAD approach to deep mixture models
This paper introduces Real and Discrete (Rad), a normalizing flow architecture that combines piecewise invertible transformations with discrete latent variables to model both continuous and discrete structures in data. By using surjective, locally invertible mappings that fold data across partitions, Rad enables exact likelihood computation, exact sampling, and exact inference—overcoming limitations of standard flows in modeling multimodal or manifold-structured distributions.
Flow based models such as Real NVP are an extremely powerful approach to density estimation. However, existing flow based models are restricted to transforming continuous densities over a continuous input space into similarly continuous distributions over continuous latent variables. This makes them poorly suited for modeling and representing discrete structures in data distributions, for example class membership or discrete symmetries. To address this difficulty, we present a normalizing flow architecture which relies on domain partitioning using locally invertible functions, and possesses both real and discrete valued latent variables. This Real and Discrete (RAD) approach retains the desirable normalizing flow properties of exact sampling, exact inference, and analytically computable probabilities, while at the same time allowing simultaneous modeling of both continuous and discrete structure in a data distribution.
Motivation & Objective
- Address the limitation of standard normalizing flows in modeling discrete structures such as multimodal distributions, discrete symmetries, or data lying on unions of manifolds.
- Overcome the numerical instability and optimization challenges arising when standard flows attempt to map continuous latent spaces to complex, non-smooth data distributions.
- Enable exact inference, exact sampling, and analytically computable log-likelihood in deep mixture models with both real and discrete latent variables.
- Preserve the desirable properties of normalizing flows—such as tractable likelihood and invertibility—while extending them to handle discrete structure via domain partitioning.
- Provide a scalable, exact alternative to approximate inference methods like hard-EM or variational inference in deep mixture models.
Proposed method
- Propose a Real and Discrete (Rad) flow architecture that uses piecewise invertible functions to partition the input space into disjoint subsets, each associated with a discrete label.
- Define a surjective, locally invertible transformation where each partition maps to a region in latent space, with the discrete label $ K $ indicating which partition the input belongs to.
- Use a partitioning function $ f_K(m{x}) $ to assign each input $ m{x} $ to a subset $ m{A}_k $, enabling the likelihood to be computed as $ p_X(m{x}) = p_K(f_K(m{x})) p_{X|K}(m{x} | f_K(m{x})) $, avoiding summation over all components.
- Design Rad layers that apply different invertible transformations per partition, allowing folding of data across modes (e.g., bridging disconnected manifolds) while maintaining invertibility within each region.
- Integrate discrete labels $ K $ into the flow graph, enabling the model to learn conditional probabilities $ p_{K|Z} $, which helps preserve separation between different modes during transformation.
- Ensure exact log-likelihood computation by maintaining a Jacobian determinant that accounts for the piecewise structure and the discrete label assignment.
Experimental results
Research questions
- RQ1Can normalizing flows be extended to model discrete structures such as multimodal or manifold-structured data distributions while preserving exact inference and likelihood evaluation?
- RQ2How can piecewise invertible transformations be designed to allow both continuous and discrete latent variables in a single flow framework?
- RQ3Can folding mechanisms in flows effectively bridge disconnected modes (e.g., rings or spirals) without requiring full unrolling or introducing numerical instability?
- RQ4To what extent does the inclusion of discrete latent variables improve modeling capacity in deep mixture models without sacrificing training efficiency or exactness?
- RQ5How does the Rad architecture compare to standard Real NVP in handling data distributions with intrinsic discrete symmetries or clustering?
Key findings
- Rad successfully models the ring Gaussian mixture distribution by folding the data across modes in the final layers, transforming multiple disconnected modes into a single continuous latent mode.
- In the spiral problem, Rad decomposes the spiral into three distinct lines before bridging them, whereas Real NVP fails to unroll the manifold effectively using continuous bijections.
- The discrete label $ K $ remains well-preserved during transformation, with points of different original labels remaining separable in the latent space, demonstrating effective modeling of discrete structure.
- Rad maintains exact log-likelihood computation and exact sampling, even when modeling complex, non-smooth data distributions with multiple modes or manifolds.
- The method avoids the need for approximate inference techniques like variational inference or hard-EM, enabling full tractability in deep mixture models.
- Visualizations confirm that Rad’s folding mechanism allows the model to learn complex, non-bijective mappings that are surjective but locally invertible, enabling effective density estimation on structured data.
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.