Generative modeling via tensor train sketching

Yoonhaeng Hur, Jeremy G. Hoskins, Michael Lindsey, E. Miles Stoudenmire, Yuehaw KhooarXiv 2022

Introduction

Generative modeling aims to learn the underlying probability distribution $p^*$ of a dataset to enable the generation of new, similar samples. While deep learning models like GANs and VAEs are popular, they often lack an analytic density function, complicating the computation of moments or marginals. This paper introduces TT-RS (Tensor Train via Recursive Sketching), a novel algorithm that reconstructs high-dimensional distributions from independent samples. By leveraging randomized linear algebra, TT-RS achieves a sample complexity that scales only logarithmically with the number of dimensions, effectively bypassing the "curse of dimensionality" for Markovian data.

The Challenge: Learning High-Dimensional Distributions

Tensor Trains (TT), also known as Matrix Product States in physics, represent high-dimensional functions as a sequence of low-dimensional "cores." This format provides a compact, analytic, and computationally efficient format for high-dimensional data. However, existing methods to build TT representations, such as TT-cross, usually require the ability to evaluate the density at any arbitrary point. In real-world scenarios, we typically only have access to a fixed set of empirical samples.

Decomposition of a high-dimensional tensor $p$ into a sequence of low-dimensional Tensor Train cores $G_1, \dots, G_d$.

The core challenge addressed by this research is how to build a stable, low-rank tensor representation when one only has a "cloud" of data points and no way to query the underlying function directly.

The TT-RS Algorithm

The authors propose TT-RS to address these challenges. Instead of relying on a global Singular Value Decomposition (SVD)—which can be computationally expensive and statistically unstable for sample-based data—the algorithm breaks the problem down into a recursive sequence of operations.

The four-step recursive sketching process: Sketching, Trimming, Systemforming, and Solving.

The process consists of four main steps:

  1. Sketching: High-dimensional equations are compressed into a manageable size using "sketch functions" from randomized linear algebra. This step is crucial for statistical efficiency; by carefully choosing sketch functions like marginalizations, the authors reduce the variance of their estimators, making the recovery robust even with noisy empirical data.
  2. Trimming: SVD is applied to the sketched matrices to maintain a compact representation by trimming it to the desired rank, ensuring the model remains computationally efficient.
  3. Systemforming: A sequence of small linear systems, known as Core Determining Equations (CDEs), is formulated. Each system corresponds to one core of the Tensor Train, allowing the global problem to be solved as a series of local ones.
  4. Solving: The cores are recovered in a single pass (sweep) across the dimensions. The recursive nature of the sketching prevents error accumulation and ensures linear computational complexity relative to the number of dimensions $d$.

Results and Insights

The standout theoretical result of TT-RS is its logarithmic sample complexity. For Markov models, the number of samples required to recover the distribution scales as $O(\log d)$. This means one can move from 10 dimensions to 1,000 dimensions without needing a massive increase in data, a significant advantage over traditional methods.

Numerical experiments on physics-inspired distributions, such as the Ginzburg-Landau and Ising-type models, confirmed these findings. Key results include:

  • Convergence: The relative error of the recovered density follows the optimal $1/\sqrt{N}$ convergence rate (where $N$ is the number of samples), consistent with standard Monte Carlo-style estimation.
  • Dimensionality Scaling: Experiments confirmed that the error grows very slowly (near-linearly or $d\sqrt{\log d}$) as the number of dimensions $d$ increases, confirming the "near-dimension-independent" behavior.
  • Higher-Order Markov Support: The algorithm successfully recovered the Ising-type model, demonstrating that the sketching framework can be adapted to higher-order dependencies by adjusting the sketch functions.

Conclusion and Future Work

TT-RS provides a powerful framework for generative modeling that is both theoretically grounded and practically efficient. While the current implementation relies on a near-Markovian structure and requires user-provided target ranks, it opens new avenues for high-dimensional density estimation. Future work may extend this framework to Tree Tensor Networks to capture more complex hierarchical relationships in data, such as those found in image structures, rather than just linear chains.

Summary updated

BibTeX
@misc{hur2022generative,
  author = {Yoonhaeng Hur and Jeremy G. Hoskins and Michael Lindsey and E. Miles Stoudenmire and Yuehaw Khoo},
  title = {{Generative modeling via tensor train sketching}},
  year = {2022},
  eprint = {2202.11788},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.11788},
}
Figure