Denoising for Manifold Extrapolation

Zeyu Yun, Galen Chuang, Derek Dong, Yubei ChenSciForDL @ NeurIPS 2024

TL;DR

This paper introduces a novel method for "manifold extrapolation" using pre-trained image denoisers. They show that these denoisers implicitly learn the underlying data manifold and propose a technique to extract and visualize this manifold, outperforming existing methods and even working with just two initial data points for simple manifolds.

What Problem Does This Paper Address?

The "manifold hypothesis" suggests that high-dimensional data, like images, often lies on a lower-dimensional manifold. While traditional methods like manifold learning and latent variable models aim to explicitly model these manifolds, they can be complex to train and scale. Diffusion models, which rely on deep neural network denoisers, have shown great success in generating high-quality images. Recent research hints that these denoisers implicitly capture the data manifold's geometry. However, it's been unclear how to visualize, interpret, or leverage this implicit manifold. This paper tackles the question of whether we can extract and utilize this learned manifold geometry from a pre-trained denoiser, going beyond just image denoising.

Methods

The core idea is to use a trained denoiser to extrapolate along the learned data manifold. The authors propose a two-step process:

  1. Tangent Space Extrapolation: Move along the tangent space of the manifold. Since the tangent space is a linear approximation, this step can lead to the trajectory drifting off the manifold.
  2. Score Function Correction: Use the gradient of the log-likelihood function (the "score function"), which is parameterized by the denoiser, to pull the trajectory back onto the manifold, correcting for the drift.

The paper provides a theoretical framework connecting the score function to the denoiser via Tweedie's formula. Computationally, they approximate the tangent space by finding the eigenvectors corresponding to the smallest eigenvalues of the Hessian of the log-likelihood (which is related to the Jacobian of the denoiser). This allows them to efficiently capture the low-curvature directions of the manifold. Their algorithm, "Tangent Space Extrapolation," uses a pre-trained denoiser and a few initial data points to generate a sequence of extrapolated frames.

Datasets

The authors evaluate their method on:

  • Synthetic Datasets:
    • Translated MNIST: Images of digits translated horizontally. The latent manifold is a line segment.
  • Rotated MNIST: Images of digits rotated. The latent manifold is a unit circle.
  • Real-World Dataset:
    • Weizmann Action Dataset: A dataset of human actions. The underlying manifold is unknown.

The datasets were prepared by creating video sequences from transformed digits and action clips. For training, they used a large portion of the data, and for testing, they reserved a subset of frames.

Key Insights and Ideas

  • Denoisers as Implicit Manifold Learners: The paper strongly suggests that pre-trained denoisers, commonly used in diffusion models, implicitly learn and encode the geometric structure of the data manifold.
  • Manifold Extrapolation from Denoisers: It's possible to extract and visualize this implicit manifold by using the denoiser itself to guide extrapolation, rather than relying on explicit manifold models.
  • Two-Point Extrapolation: For simple, low-dimensional latent manifolds, the method can effectively extrapolate future frames using just two initial data points.
  • Theoretical Justification: The paper provides a theoretical link between the score function (crucial for manifold correction) and the denoiser, grounding the empirical observations.

Key Results

  • Qualitative Improvement: The extrapolated video sequences generated by their method closely resemble the ground truth videos and are qualitatively superior to a baseline linear extrapolation method. This is demonstrated visually on translated MNIST, rotated MNIST, and the Weizmann Action dataset.
  • Quantitative Performance: Using a metric called DTW-SSID (Dynamic Time Warping - Structural Similarity Index Distance), their method consistently outperforms baseline approaches across all tested datasets. For example, on the Weizmann Action dataset, their method achieved a DTW-SSID of 0.142, compared to 0.515 for a VAE baseline and 0.700 for a denoiser baseline.
  • Efficiency: The method is computationally efficient, particularly in approximating the tangent space using Jacobian-vector products and power iteration, allowing it to capture essential low-curvature directions.

Limitations and Future Work

  • Manifold Complexity: The current method performs best on simple, low-dimensional manifolds. As the complexity of transformations and the resulting latent manifold increases (e.g., entangled manifolds), the extrapolation might get trapped in local minima.
  • "Good" Denoiser Definition: The paper acknowledges that further analysis is needed to understand what constitutes a "good" denoiser for effective extrapolation and how the learned features contribute to this.
  • Noise Level Impact: The standard deviation of the added noise ($\sigma$) is a critical parameter that can affect extrapolation quality, and more analysis is required on its effect.
  • Future Directions: The authors suggest exploring interpolation strategies, conditional denoisers, and latent diffusion models to improve performance on more complex, realistic datasets and to better understand the generalization abilities of denoiser Jacobians.

Summary updated

BibTeX
@inproceedings{yun2024denoising,
  author = {Zeyu Yun and Galen Chuang and Derek Dong and Yubei Chen},
  title = {{Denoising for Manifold Extrapolation}},
  booktitle = {SciForDL @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=tG75AqtP6U},
}
Figure