TL;DR
This paper introduces a novel Matrix Product State (MPS) model that can simultaneously classify and generate data, inspired by Generative Adversarial Networks (GANs). By treating the MPS as both a generator and a classifier, the authors achieve improved sample quality and reduced outliers without sacrificing classification accuracy, offering a more unified approach to tensor network applications in machine learning.
What Problem Does This Paper Address?
The paper tackles the challenge of effectively utilizing tensor networks, specifically Matrix Product States (MPS), in classical machine learning for both classification and generation tasks. While MPS have shown promise in these areas individually, this work aims to bridge the gap by developing a single MPS model capable of performing both functions concurrently. This dual capability is particularly interesting because it allows for a GAN-like training strategy to enhance generative performance by leveraging the classification capabilities of the MPS, ultimately leading to more realistic generated samples with fewer outliers. The authors also explore alternative embedding functions and sampling methods for non-normalized MPS, addressing key technical hurdles in their application.
Methods
The core of the paper is a novel MPS model designed for simultaneous classification and generation. This is achieved by:
- Dual-role MPS: The MPS is trained to act as both a classifier and a generator. This is a departure from traditional approaches where separate models might be used for each task.
- GAN-inspired Training: The training process is inspired by Generative Adversarial Networks (GANs). The MPS generator competes with a discriminator (which can be a standard neural network) to produce realistic samples. This adversarial training aims to improve the quality of generated data.
- Ensemble of MPS for Classification: For classification, the authors propose using an ensemble of MPS, where each MPS in the ensemble is trained to represent a specific class. The final classification is determined by comparing the outputs of these individual MPS.
- Alternative Embedding Functions: The paper investigates various embedding functions (e.g., Fourier, Legendre polynomials) that transform input data into a format suitable for MPS. The choice of embedding function is crucial for both classification and generation, particularly for ensuring the MPS can effectively model the data distribution.
- Exact Sampling from Non-Normalized MPS: A key contribution is an exact sampling method for non-normalized MPS. This avoids the need for computationally expensive Markov Chain Monte Carlo (MCMC) methods and allows for direct sampling from the learned distribution.
- Stabilization Techniques: The authors address common issues in tensor network contractions, such as vanishing and exploding gradients, by employing normalization techniques during the forward pass and for density matrix computation.
Datasets
The paper evaluates its approach on several simulated and standard datasets:
- 2D Spiral Dataset: A custom-generated dataset designed to test generative capabilities.
- 2 Moon Dataset: A standard benchmark dataset for classification and generative tasks.
- Iris Dataset: A classic dataset for classification tasks.
The paper also discusses the generation of these datasets in detail in the Appendix.
Key Insights and Ideas
- Unified MPS for Classification and Generation: The most significant insight is that a single MPS architecture can effectively serve both as a classifier and a generator, enabling a GAN-like training paradigm for improved sample quality.
- GANs Enhance MPS Generation: Adversarial training significantly reduces outliers and improves the fidelity of generated samples, as evidenced by lower FID-like scores.
- Embedding Function Choice Matters: The choice of embedding function has a substantial impact on both classification robustness to noise and generative quality. Legendre polynomials offer more stable trajectories in the latent space, while Fourier embeddings show better robustness to noise during inference.
- Exact Sampling is Feasible: The development of an exact sampling method for non-normalized MPS bypasses the need for MCMC, making the generation process more efficient and deterministic.
- Bond Dimension Saturation: For low-dimensional datasets, the classification accuracy of MPS saturates beyond a relatively small bond dimension (around D=4), suggesting that large bond dimensions are not always necessary for capturing correlations.
Key Results
- Improved Generative Performance: GAN-style training led to lower FID-like scores across all tested datasets (2D Spiral, 2 Moon, Iris) compared to classical MPS training. For instance, the Fourier embedding achieved the lowest FID-like score post-GAN training.
- Reduced Outliers: Table II shows a significant reduction in outlier percentages after GAN-style training for both Fourier and Legendre embeddings. For the 2D Spiral dataset, the outlier percentage dropped from ~9% to ~6.3% with Fourier embedding.
- Robustness to Noise: Fourier embeddings demonstrated better robustness to increasing noise levels in the input data during inference, maintaining higher validation accuracy compared to Legendre embeddings as noise increased.
- Classification Accuracy: The paper reports achieving classification accuracy above a pre-determined threshold throughout the GAN-style training, indicating that the generative enhancement does not negatively impact classification performance.
Limitations and Future Work
- Low-Dimensional Datasets: The current experiments are primarily conducted on low-dimensional datasets. Future work should explore the impact of bond dimension (D) on higher-dimensional datasets, where larger bond dimensions might be necessary to capture long-range correlations.
- Scalability: Investigating the interplay between bond dimension, dataset dimensionality, and model expressivity is crucial for understanding the scalability of MPS-based models.
- Integration with Other Architectures: The authors suggest exploring the integration of MPS with other neural network paradigms, such as variational autoencoders or normalizing flows, for manifold learning and density estimation.
- Alternative Embedding Functions: Further research into alternative embedding functions, such as the Welsh basis or non-orthogonal bases, is recommended.
- Perturbation Impact: Investigating how perturbations affect classification accuracy across various embedding functions is an area for future exploration.
Summary updated