Tensor Density Estimator by Convolution-Deconvolution

Yifan Peng, Siyao Yang, Yuehaw Khoo, Daren Wang

TL;DR

This paper introduces a linear algebraic framework for high-dimensional density estimation that bypasses the "curse of dimensionality" by using Tensor Trains (TT). By combining a "convolution-deconvolution" strategy with efficient tensor decomposition, the authors achieve a computational complexity that scales linearly with both dimensionality and sample size, often outperforming deep learning-based generative models in accuracy and efficiency.

What Problem Does This Paper Address?

Density estimation—the task of estimating an unknown probability distribution from a set of data points—is a cornerstone of data science. However, it suffers from two major hurdles in high-dimensional spaces:

  1. The Curse of Dimensionality: Traditional methods like histograms or Kernel Density Estimators (KDE) require an exponentially increasing number of samples as the number of dimensions ($d$) grows.
  2. Computational Complexity: While deep generative models (like GANs or Normalizing Flows) can handle high dimensions, they are often "black boxes" that are difficult to train, hard to analyze statistically, and computationally expensive to evaluate or sample from.

The authors seek a method that is statistically robust, easy to evaluate, and computationally efficient (linear in $d$).

Methods

The proposed framework consists of three main steps:

  1. Convolution: The noisy empirical distribution (a sum of Dirac deltas) is projected onto a lower-dimensional subspace of basis functions. This acts as a smoothing kernel to suppress exponentially large variance. A key innovation here is a soft-thresholding strategy that assigns smaller weights to higher-order interactions, which allows the operation to be formulated as a rank-1 tensor product with $O(dN)$ complexity.
  2. Tensor Compression: The resulting smoothed coefficients are compressed into a Tensor Train (TT) format. The paper introduces several specialized algorithms for this, most notably TT-SVD-kn (using Nyström approximation) and TT-rSVD-t (using randomized sketching), which maintain linear scaling.
  3. Deconvolution: Finally, the estimated density is recovered by inverting the smoothing weights. Because the estimator is stored as a TT, tasks like calculating moments, generating new samples, and evaluating the density at specific points all scale linearly with $d$.
Figure 2: Basic tensor diagrams and operations.

Datasets

The authors validated their approach on a mix of synthetic and real-world benchmarks:

  • Gaussian Mixture Models (GMM): Used to verify the $O(1/\sqrt{N})$ Monte Carlo convergence rate.
  • Ginzburg-Landau Models (1D and 2D): A standard problem in statistical physics. The 2D version involved a $16 \times 16$ lattice ($d=256$).
  • MNIST: The classic handwritten digit dataset ($d=784$), used to demonstrate the method's ability to handle real-world image data.

Key Insights and Ideas

  • Density Estimation as Projection: The authors treat density estimation not as a learning problem, but as an orthogonal projection in function space. By restricting the projection to low-order "cluster" interactions (e.g., only 1-body and 2-body effects), they drastically reduce variance.
  • Linear Scaling via Rank-1 Tensors: By choosing specific weights for the convolution step, the authors ensure the projection operator has a rank-1 tensor structure. This is the "secret sauce" that keeps the math from exploding in high dimensions.
  • TT-SVD-kn Acceleration: Using the Nyström method to approximate the kernel matrix allows the algorithm to avoid the $O(N^2)$ bottleneck typical of kernel methods, bringing it down to $O(dN)$.

Key Results

  • Superior Accuracy: In physical system simulations (Boltzmann sampling), the TT-based methods achieved significantly lower second-moment errors compared to neural network approaches like Masked Autoregressive Flow (MAF).
Comparison of second-moment error between the proposed TT method and a neural network. The TT method shows much lower error as dimensionality increases.
  • Efficiency: The algorithms demonstrated clear linear scaling in wall-clock time relative to both the number of samples ($N$) and dimensions ($d$).
  • Generative Quality: On MNIST, the model successfully generated visually plausible digits, showing that the linear algebraic assumptions (like low-order interactions) are flexible enough for complex data.

Limitations and Future Work

  • Basis Selection: The performance depends on the choice of univariate basis functions (e.g., Fourier or Legendre polynomials). Finding the optimal basis for a given dataset remains an open question.
  • Variable Ordering: Tensor Trains are sensitive to the ordering of variables. While the authors use PCA pre-processing to mitigate this, highly complex dependencies might still require more sophisticated re-ordering strategies.
  • Cluster Assumption: The method assumes the target density can be well-represented by a perturbative expansion around a mean-field. While common in physics, this might not hold for all types of data.

Summary updated

BibTeX
@misc{peng2024tensor,
  author = {Yifan Peng and Siyao Yang and Yuehaw Khoo and Daren Wang},
  title = {{Tensor Density Estimator by Convolution-Deconvolution}},
  year = {2024},
  eprint = {2412.18964},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.18964},
}
Figure