Abstract
Beyond their origin in modeling many-body quantum systems, tensor networks have emerged as a promising class of models for solving machine learning problems, notably in unsupervised generative learning. While possessing many desirable features arising from their quantum-inspired nature, tensor network generative models have previously been largely restricted to binary or categorical data, limiting their utility in real-world modeling problems. We overcome this by introducing a new family of tensor network generative models for continuous data, which are capable of learning from distributions containing continuous random variables. We develop our method in the setting of matrix product states, first deriving a universal expressivity theorem proving the ability of this model family to approximate any reasonably smooth probability density function with arbitrary precision. We then benchmark the performance of this model on several synthetic and real-world datasets, finding that the model learns and generalizes well on distributions of continuous and discrete variables. We develop methods for modeling different data domains, and introduce a trainable compression layer which is found to increase model performance given limited memory or computational resources. Overall, our methods give important theoretical and empirical evidence of the efficacy of quantum-inspired methods for the rapidly growing field of generative learning.
Introduction
Tensor Networks (TNs) originated in quantum physics to describe the "entanglement" or correlations between particles. In machine learning, they have become a powerful tool for unsupervised generative modeling because they allow for "perfect sampling" (drawing samples directly without noisy iterations) and efficient calculation of probabilities. However, TNs were almost exclusively designed for discrete data (like bits or categories). Because real-world data—ranging from sensor readings to financial indices—is predominantly continuous, the applicability of TNs was severely limited. Previous attempts to bridge this gap often sacrificed the very mathematical properties (like canonical forms) that make TNs attractive.
Researchers have now unlocked the ability for TNs to model complex continuous probability distributions. By introducing isometric feature maps and a novel trainable compression layer, they provide both a "universal approximation" proof and empirical evidence that these quantum-inspired models can outperform standard deep learning baselines like Variational Autoencoders (VAEs) in capturing intricate correlations.
Methodology
The core challenge is bridging the gap between continuous inputs and discrete tensor cores. The authors achieve this using vector-valued feature maps.
Isometric Feature Maps
Continuous variables $x$ are mapped into a finite-dimensional vector space. Crucially, these maps are required to be "isometries," which preserves the orthonormality needed for the TN's "canonical form." This allows the model to retain efficient training (via DMRG-style sweeps) and perfect sampling. The choice of feature map (Fourier, Legendre, Hermite, etc.) acts as a "prior" or inductive bias. For example, Legendre polynomials bias the model toward the edges of a range, while Fourier maps are ideal for periodic data.
Architecture and Optimization
The model structure consists of a feature layer that feeds into a discrete tensor network layer, typically a Matrix Product State (MPS).
To handle high-precision features without exploding computational costs, a "trainable compression layer" is introduced. This is a trainable isometry that reduces a high-dimensional feature space into a smaller "site dimension" before it enters the main tensor network. This effectively decouples "feature resolution" from "correlation complexity." The model is optimized using an adaptation of the Density Matrix Renormalization Group (DMRG) algorithm to minimize the Negative Log-Likelihood (NLL) of the data.
Empirical Evaluation
The model was evaluated on a mix of synthetic and real-world benchmarks, including the Rotated Hypercube, Two Moons, the Iris dataset, and the 2D XY physics model.
Key Results
- Outperforming VAEs: On the 2D XY physics model, the MPS model achieved a KL divergence of 0.52, outperforming a Variational Autoencoder (VAE) benchmark (0.6) despite the VAE requiring extensive tuning.
- Mixed-Data Mastery: The model successfully learned distributions containing both continuous and discrete variables simultaneously, a task that usually requires specialized architectures in standard deep learning.
- Compression Success: In tests, a model using the compression layer (reducing dimension 16 to 3) achieved an NLL of -2.05, nearly matching a much larger, uncompressed model (-2.17) while being significantly more computationally efficient.
Discussion and Future Work
The authors found that complex-valued tensor networks are significantly more stable and perform better than real-valued ones for continuous density estimation. While this work focuses on 1D Matrix Product States, future work could extend this framework to more complex TN topologies like Tree Tensor Networks or PEPS to handle higher-dimensional data like images more naturally. Additionally, automating the selection of feature maps and implementing dynamic dimension adjustments during training are promising avenues for further research.
Summary updated