Abstract
Hutchinson estimators are widely employed in training divergence-based likelihoods for diffusion models to ensure optimal transport (OT) properties. However, this estimator often suffers from high variance and scalability concerns. To address these challenges, we investigate Hutch++, an optimal stochastic trace estimator for generative models, designed to minimize training variance while maintaining transport optimality. Hutch++ is particularly effective for handling ill-conditioned matrices with large condition numbers, which commonly arise when high-dimensional data exhibits a low-dimensional structure. To mitigate the need for frequent and costly QR decompositions, we propose practical schemes that balance frequency and accuracy, backed by theoretical guarantees. Our analysis demonstrates that Hutch++ leads to generations of higher quality. Furthermore, this method exhibits effective variance reduction in various applications, including simulations, conditional time series forecasts, and image generation.
Introduction
Training state-of-the-art generative models, such as Schrödinger bridges and Neural ODEs, frequently necessitates estimating the trace of a high-dimensional Jacobian matrix. This operation is central to calculating divergence-based likelihoods in continuous normalizing flows (CNFs). However, exact trace calculation scales cubically ($O(D^3)$) with dimension, making it computationally prohibitive for high-resolution data like images.
The standard approach utilizes the Hutchinson estimator, which approximates the trace using random noise vectors. While unbiased, this estimator often exhibits high variance, particularly when the underlying data resides on a low-dimensional manifold—a common characteristic of real-world datasets. This variance leads to training instabilities, slower convergence, and degraded sample quality.
Methodology: Hutch++ and Amortized Acceleration
To overcome these limitations, we propose integrating the Hutch++ algorithm into the generative modeling pipeline. Hutch++ significantly reduces variance by combining a deterministic low-rank approximation with a stochastic tail estimate.
Variance Reduction via Low-Rank Approximation
Hutch++ employs a QR decomposition to identify the dominant eigenvalues of the Jacobian. By computing the trace of this low-rank component deterministically and applying the Hutchinson method only to the remaining "tail" of smaller eigenvalues, the algorithm achieves a "best of both worlds" effect. This is especially beneficial for ill-conditioned matrices where a few large eigenvalues capture most of the trace information.
Computational Efficiency through Amortization
A naive implementation of Hutch++ requires a QR decomposition at every step of the ODE solver, which is computationally expensive. We introduce an acceleration scheme that reuses the orthogonal matrix ($Q$) from the decomposition for $L_s$ consecutive steps. Given that the Jacobian typically evolves smoothly during the diffusion process, this amortization maintains high accuracy while drastically reducing overhead.
Experimental Analysis
We evaluated our approach across synthetic simulations, time series forecasting, and image modeling benchmarks.
Robustness to Ill-Conditioning
A key insight of this work is the relationship between data structure and estimator performance. By stretching the 2spirals dataset along the X-axis, we artificially increased the condition number of the Jacobian.
As shown in the figure above, the performance gap between the standard Hutchinson estimator (FFJORD) and our proposed Hutch++ (FFJORD++) widens as the data becomes more ill-conditioned. This demonstrates that Hutch++ is more robust for complex, high-dimensional data that exhibits low intrinsic dimensionality.
Generation Quality and Convergence
In image modeling tasks (MNIST, Fashion-MNIST, CIFAR10), models utilizing Hutch++ consistently achieved lower Negative Log-Likelihood (NLL). For instance, on Fashion-MNIST, NLL improved from 1.63 to 1.56.
Qualitatively, the Hutch++ variants exhibit much clearer mode separation and faster convergence. As illustrated in the evolution of the 2spirals density, the proposed method captures the target distribution's structure significantly earlier in the training process compared to the baseline.
Conclusion
By incorporating Hutch++ and an efficient amortization scheme, we provide a practical solution for variance-reduced trace estimation in generative models. This approach leads to higher fidelity generations and more stable training across various domains, including time series and images. While memory consumption remains a challenge due to the requirements of reverse-mode automatic differentiation, this work paves the way for scaling optimal transport-based models to higher resolutions.
Summary updated