Skip to main content
QUICK REVIEW

[Paper Review] Estimating High Order Gradients of the Data Distribution by Denoising

Chenlin Meng, Yang Song|arXiv (Cornell University)|Nov 8, 2021
Generative Adversarial Networks and Image SynthesisComputer Science6 citations
TL;DR

This paper proposes a novel method to directly estimate high-order gradients (e.g., Hessian) of a data density from samples using a generalized form of Tweedie’s formula, extending denoising score matching to higher-order scores. The approach enables more accurate and efficient second-order score estimation than automatic differentiation, improving sampling speed in Langevin dynamics and quantifying uncertainty in denoising tasks.

ABSTRACT

The first order derivative of a data density can be estimated efficiently by denoising score matching, and has become an important component in many applications, such as image generation and audio synthesis. Higher order derivatives provide additional local information about the data distribution and enable new applications. Although they can be estimated via automatic differentiation of a learned density model, this can amplify estimation errors and is expensive in high dimensional settings. To overcome these limitations, we propose a method to directly estimate high order derivatives (scores) of a data density from samples. We first show that denoising score matching can be interpreted as a particular case of Tweedie's formula. By leveraging Tweedie's formula on higher order moments, we generalize denoising score matching to estimate higher order derivatives. We demonstrate empirically that models trained with the proposed method can approximate second order derivatives more efficiently and accurately than via automatic differentiation. We show that our models can be used to quantify uncertainty in denoising and to improve the mixing speed of Langevin dynamics via Ozaki discretization for sampling synthetic data and natural images.

Motivation & Objective

  • To address the inefficiency and error amplification in estimating high-order gradients via automatic differentiation of learned density models.
  • To develop a direct, sample-based method for estimating high-order scores (e.g., Hessian) without relying on lower-order models.
  • To improve sampling efficiency in score-based generative models by enabling higher-order discretization schemes like Ozaki.
  • To quantify uncertainty in denoising by estimating second-order scores that reflect conditional covariance of clean data.
  • To demonstrate scalability and accuracy of the method on synthetic and natural image datasets.

Proposed method

  • Generalizes denoising score matching by deriving a higher-order extension of Tweedie’s formula, linking conditional moments to high-order scores.
  • Uses least squares regression to connect denoising predictions to score estimation, enabling direct learning of higher-order derivatives.
  • Introduces a variance-reduction technique to improve optimization stability of the high-order score estimation objective.
  • Directly parameterizes and trains models to estimate second-order scores (Hessian) using a differentiable objective derived from the generalized Tweedie’s formula.
  • Applies the learned second-order scores to improve mixing speed in Langevin dynamics via Ozaki discretization.
  • Employs diagonal or low-rank approximations of the Hessian to maintain computational efficiency in high dimensions.

Experimental results

Research questions

  • RQ1Can high-order scores be estimated directly from data samples without relying on automatic differentiation of lower-order models?
  • RQ2How can Tweedie’s formula be extended to estimate higher-order derivatives of the log-density?
  • RQ3Does direct high-order score estimation lead to more accurate and efficient Hessian approximation than automatic differentiation?
  • RQ4Can learned high-order scores improve the mixing speed of sampling algorithms like Langevin dynamics?
  • RQ5Can second-order scores provide meaningful uncertainty quantification in denoising tasks?

Key findings

  • The proposed method achieves up to 500× speedup in second-order score estimation on MNIST compared to automatic differentiation.
  • Models trained with the proposed objective approximate second-order scores more accurately than those obtained via automatic differentiation of first-order score models.
  • Ozaki discretization using learned second-order scores improves mixing speed in Langevin dynamics, as shown by faster convergence on synthetic and MNIST datasets.
  • The method enables better uncertainty quantification in denoising by estimating the conditional covariance of clean data given noisy observations.
  • Sampling chains using Ozaki discretization with learned Hessian show higher diversity, with a greater percentage of class label changes over iterations on MNIST.
  • The approach maintains computational efficiency by using low-rank or diagonal Hessian approximations, scaling well to high-dimensional data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.