Diffusion Generative Models Meet Compressed Sensing, with Applications to Imaging and Finance

Zhengyi Guo, Jiatu Li, Wenpin Tang, David D. YaoarXiv 2025 · DOI

Abstract

Standard diffusion models are computationally intensive due to the "curse of dimensionality," requiring significant resources for high-dimensional data generation. This paper introduces CSDM (Compressed Sensing + Diffusion Models), a framework that leverages the inherent sparsity of real-world datasets to perform training and inference in a low-dimensional latent space. By integrating linear sketching for compression and the Fast Iterative Shrinkage-Thresholding Algorithm (FISTA) for recovery, CSDM achieves over 60% wall-clock speedups in imaging and financial applications while maintaining high sample fidelity and providing provable convergence guarantees.

Introduction

Diffusion models have become the state-of-the-art for generative tasks, yet their practical deployment is hindered by the need for numerous function evaluations in high-dimensional spaces. This leads to high memory requirements and slow inference times, making them less suitable for real-time or edge applications. However, many datasets—ranging from medical imaging to macroeconomic indicators—exhibit low-dimensional structures or sparsity. CSDM exploits this property by shifting the diffusion process into a compressed latent space, significantly reducing the computational burden without sacrificing the quality of the generated outputs.

Methodology: The CSDM Pipeline

The core innovation of this work is the CSDM pipeline, which replaces standard high-dimensional diffusion with a three-stage "whitebox" process. Unlike typical latent diffusion models that rely on neural variational autoencoders (VAEs), CSDM utilizes mathematically grounded techniques from compressed sensing.

The CSDM Pipeline: Integrating compression and compressed sensing into the diffusion generative process.

The pipeline consists of:

  1. Compression (Sketching): High-dimensional data $x \in \mathbb{R}^d$ is projected into a smaller latent space $y \in \mathbb{R}^m$ using a linear sketching matrix $A$.
  2. Latent Diffusion: A diffusion model (e.g., DDPM) is trained and sampled entirely within this $m$-dimensional space to produce a generated latent vector $\tilde{y}$.
  3. Sparse Recovery (Decoding): The original high-dimensional signal is reconstructed from $\tilde{y}$ using the FISTA algorithm. This optimization-based approach provides a more interpretable and theoretically sound alternative to blackbox neural decoders.

Theoretical Insights

A critical contribution of the paper is the analysis of the Error Tradeoff. As the latent dimension $m$ increases, the error from diffusion sampling typically grows, while the error from compressed sensing reconstruction decreases. The authors provide a rigorous complexity analysis to identify the optimal $m$, showing that for specific configurations, the optimal latent dimension scales as $O(\sqrt{d})$. This theoretical "sweet spot" allows for maximum efficiency while preserving signal integrity.

Experimental Results

The CSDM framework was validated across three diverse domains: imaging (MNIST, OCTMNIST), climate science (ERA5 precipitation fields), and finance (FRED-MD macroeconomic factors).

  • Computational Efficiency: CSDM achieved significant wall-clock speedups across all datasets. For instance, on MNIST, a 61.13% speedup was observed when the ambient dimension was approximately three times the latent dimension. Similar gains were noted in medical imaging (56.04%) and climate data (59.31%).
  • Sample Fidelity: Despite aggressive compression (retaining as little as 34% of dimensions), the generated samples remained high-quality. In medical imaging, the "banded" anatomy of retinal B-scans was preserved, and in financial applications, the model accurately reproduced complex tail risks (Value at Risk) with a mean return margin of less than 0.2%.
  • Scalability: The authors demonstrated that while standard diffusion time scales poorly with image resolution, CSDM's latent diffusion time remains nearly constant, proving its effectiveness for high-resolution data.

Conclusion

CSDM presents a robust framework for efficient generative modeling by bridging diffusion models and compressed sensing. Its "whitebox" nature offers interpretability and provable guarantees often missing in deep learning models. While currently focused on unconditional generation and specific recovery algorithms like FISTA, future work could extend this approach to conditional generation and explore alternative recovery methods. CSDM is particularly promising for decision-centric workflows, such as climate modeling and financial risk management, where rapid ensemble generation is essential.

Summary updated

BibTeX
@misc{guo2025diffusion,
  author = {Zhengyi Guo and Jiatu Li and Wenpin Tang and David D. Yao},
  title = {{Diffusion Generative Models Meet Compressed Sensing, with Applications to Imaging and Finance}},
  year = {2025},
  eprint = {2509.03898},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.03898},
}
Figure