Tensor Train Diffusion: Leveraging Low-Rank Structures for High-Dimensional Score-Based Sampling

Robert Gruhlke, Julius Berner, David Sommer, Lorenz Richter

Introduction

Sampling from complex, high-dimensional probability distributions—where the unnormalized density is known but the normalizing constant is not—is a cornerstone challenge in machine learning and statistical physics. Modern diffusion models address this by learning to reverse a forward "noising" process. Mathematically, the optimal reversal is determined by the score function (the gradient of the log-density), which is governed by a Hamilton-Jacobi-Bellman (HJB) partial differential equation (PDE).

Tensor Train Diffusion (TTD) is a novel framework that replaces the neural networks typically used to solve these equations with Functional Tensor Trains (FTTs). By solving the underlying HJB equation using low-rank tensor structures and a regression-based backward iteration, TTD achieves significantly faster training and higher sampling accuracy than state-of-the-art neural PDE solvers.

The Challenge: High-Dimensional PDEs

High-dimensional PDEs are notoriously difficult to solve due to the "curse of dimensionality."

  1. Mesh-based methods (e.g., finite elements) explode computationally as the number of dimensions increases.
  2. Neural network solvers (e.g., Physics-Informed Neural Networks, or PINNs) scale better to high dimensions but introduce new bottlenecks: they are slow to train, highly sensitive to hyperparameter tuning, and frequently get stuck in local minima.

TTD aims to find a middle ground, offering a solver that is as scalable as a neural network but as efficient, structured, and robust as classical numerical methods.

The Tensor Train Diffusion (TTD) Approach

TTD rests on three core methodological pillars:

1. Functional Tensor Trains (FTT)

Instead of using a "black box" neural network, TTD represents the log-density using FTTs. This format decomposes a high-dimensional function into a sequence of low-rank matrix products. Because many high-dimensional probability densities possess latent low-rank structures, FTTs can approximate them with a memory cost that scales linearly—rather than exponentially—with the number of dimensions.

2. BSDE Reformulation

The authors relate the HJB PDE to Backward Stochastic Differential Equations (BSDEs). This mathematical bridge allows them to transform a difficult, global PDE problem into a sequence of simpler regression problems that can be solved step-by-step, backward in time.

3. Alternating Least Squares (ALS) Optimization

Unlike neural networks that rely on Stochastic Gradient Descent (SGD), FTTs can be optimized using Alternating Least Squares (ALS). ALS is a "sweep" process that updates one part of the tensor at a time. It is mathematically more stable, converges faster, and completely bypasses the heavy computational cost of calculating complex higher-order derivatives through automatic differentiation.

Additionally, the algorithm features adaptive mechanisms to automatically adjust the "rank" (complexity) of the tensor and the degree of the basis functions (such as polynomials or Fourier series) as the sampling process evolves.

Experimental Validation and Key Results

The researchers evaluated TTD on several challenging synthetic and physics-inspired benchmarks, including 10D and 50D Multiwell problems, $\phi^4$ Scalar Field Theory, Anisotropic Gaussians, and the Kitagawa Model.

  • Unprecedented Speed: TTD is significantly faster than neural network-based diffusion samplers (DIS). In a 10-dimensional multiwell problem, TTD achieved superior results in just 1 minute, compared to the 20 minutes required by DIS.
  • High Accuracy: TTD consistently produced higher Effective Sample Sizes (ESS) and more accurate estimates of the normalizing constant ($\log Z$) compared to a wide array of baselines (PIS, CMCD, DDS).
  • Robust Mode Discovery: In the 50-dimensional multiwell test, TTD successfully captured all modes without suffering from the "mode collapse" that frequently plagues standard diffusion models.
  • Scalability: The linear scaling of the FTT format allowed the algorithm to handle 50-dimensional problems with high fidelity, a regime where traditional mesh methods fail entirely.

Limitations and Future Directions

While TTD represents a major step forward, it does have limitations:

  • The Low-Rank Assumption: TTD's efficiency heavily depends on the target density having a low-rank structure. If a distribution is truly "full-rank" and highly entangled, the required FTT ranks would be massive, eroding the speed benefits.
  • Domain Sensitivity: FTTs are typically defined on a bounded box. While the authors implemented extension strategies for samples drifting outside this box, extremely high-variance trajectories remain challenging.
  • Theoretical Gaps: The theoretical behavior of FTT ranks specifically for HJB solutions is only partially understood and requires more rigorous mathematical study.

Looking ahead, the authors note that while the current implementation is in PyTorch, developing custom hardware-specific kernels for tensor contractions could accelerate the method even further.

Summary updated

BibTeX
@inproceedings{gruhlke2026tensor,
  author = {Robert Gruhlke and Julius Berner and David Sommer and Lorenz Richter},
  title = {{Tensor Train Diffusion: Leveraging Low-Rank Structures for High-Dimensional Score-Based Sampling}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=DDQX97Xi1Z},
}
Figure