Abstract
We propose the tensorizing flow method for estimating high-dimensional probability density functions from observed data. The method integrates tensor-train (TT) decompositions with flow-based generative modeling. Initially, an approximate density in TT form is constructed by solving for tensor cores via a linear system derived from kernel density estimators (KDE) of low-dimensional marginals. Subsequently, a continuous-time flow model is trained to map this TT density to the observed empirical distribution using maximum likelihood estimation. This approach combines the optimization-less efficiency of TT with the expressive flexibility of flow-based models. Numerical results demonstrate superior performance in high-dimensional settings.
Introduction
Density estimation—reconstructing a probability distribution from observed data—is a fundamental task in statistics and machine learning. However, high-dimensional spaces present the "curse of dimensionality," where the volume of the space grows exponentially with the number of variables, making data sparse.
Modern generative approaches, such as Normalizing Flows (NF), attempt to mitigate this by learning a transformation from a simple base distribution (typically a standard Gaussian) to a complex target. However, when the target distribution is multimodal or highly curved, the neural network must perform significant "heavy lifting." This often necessitates large architectures, extensive datasets, and prolonged training.
This paper introduces tensorizing flow (TF), a hybrid model that utilizes a low-rank Tensor-Train representation as a "warm start" base distribution. By providing a base that already captures primary correlations, the flow model only needs to learn a near-identity transformation, significantly improving efficiency and accuracy.
Methodology: The Tensorizing Flow Algorithm
The TF algorithm proceeds in two distinct stages: the construction of a TT-based initial density and its subsequent refinement via a continuous-time flow.
1. Constructing the Tensor-Train Base ($p^{TT}$)
Instead of a Gaussian prior, the method builds an approximate density $p^{TT}$ using a Tensor-Train decomposition. To avoid the curse of dimensionality during construction, the authors estimate only low-dimensional marginals (e.g., 2D or 3D) from the data using Kernel Density Estimation (KDE).
The TT cores are then determined by solving a system of "Core Determining Equations" using sketching techniques. This process results in a "rough draft" of the density that captures the basic dependency structure of the variables.
2. Refinement with Continuous-Time Flow ($p^{TF}$)
The $p^{TT}$ serves as the starting point for an ODE-based continuous-time flow. A neural network parameterizes a potential function that guides the flow from the TT approximation toward the true empirical distribution. Because $p^{TT}$ is already structurally similar to the target, the neural network's task is simplified to learning a "near-identity" mapping to bridge the remaining gap.
Experimental Evaluation
The method was evaluated on several challenging high-dimensional distributions, including the Rosenbrock distribution ($d=10$) and both 1D and 2D Ginzburg-Landau distributions ($d=16$).
Key Results
- Sample Efficiency: On the 1D Ginzburg-Landau task ($d=16$), TF trained on $10^4$ samples outperformed a standard NF trained on $10^5$ samples, demonstrating a 10x improvement in data efficiency.
- Convergence and Accuracy: In all experiments, TF initiated with a significantly lower negative log-likelihood compared to standard NF and converged to superior final results.
- Tail Capture: While pure TT models often struggle with the "tails" of singular distributions, the TF refinement successfully corrected these limitations, matching the target distribution's shape with high fidelity.
Discussion and Insights
The primary advantage of Tensorizing Flow is the "warm start" provided by the TT model. By smoothing marginals with KDE before TT construction, the authors provide a stable foundation that prevents noisy oscillations (Gibbs phenomenon). Furthermore, because the required neural network is smaller and the transformation task is simpler, the model is inherently more robust to overfitting than overparameterized standard flows.
Limitations and Future Work
The current construction assumes a degree of Markovian structure where variables correlate primarily with neighbors. While the flow component helps mitigate this, highly non-Markovian targets may still pose challenges for the initial TT base. Additionally, TT models are sensitive to variable ordering; future work may explore adaptive schemes for choosing orderings or utilizing alternative expansion bases like Chebyshev polynomials for the TT cores.
Summary updated