Unbiased Estimation of the Gradient of the Log-Likelihood in Inverse Problems

Ajay Jasra, Kody J. H. Law, Lu Deng · DOI

Abstract

We consider the problem of estimating a parameter associated with a Bayesian inverse problem. Treating the unknown initial condition as a nuisance parameter, typically one must resort to a numerical approximation of the gradient of the log-likelihood and adopt a discretization of the problem in space and/or time. We develop a new methodology to unbiasedly estimate the gradient of the log-likelihood with respect to the unknown parameter, ensuring the expectation of the estimate has no discretization bias. Under appropriate assumptions, we prove that our estimator is not only unbiased but possesses finite variance. When implemented on a single processor, the cost to achieve a given level of error is comparable to multilevel Monte Carlo (MLMC) methods. However, the new algorithm allows for parallel computation on arbitrarily many processors without loss of efficiency, meaning any precision can be achieved in a fixed, finite constant time, provided sufficient computational resources are available.

Introduction

In many scientific and engineering contexts, researchers encounter "inverse problems," where the goal is to infer hidden parameters—such as the initial state of a physical system—from noisy observations of its outcome. When these systems are governed by Partial Differential Equations (PDEs), the mathematical complexity increases significantly. To find the most likely parameters via Maximum Likelihood Estimation (MLE), one requires the gradient of the log-likelihood. However, calculating this gradient is traditionally hampered by intractable integrals and the necessity of numerical discretization.

The Challenge of Discretization Bias

Standard approaches to inverse problems rely on numerical solvers that discretize PDEs onto a mesh or grid. This introduces a fundamental trade-off: a coarse mesh is computationally inexpensive but highly biased, while a fine mesh is accurate but prohibitively expensive. Even advanced techniques like Multilevel Monte Carlo (MLMC) typically target a specific discretization level, which reduces computational cost but still leaves a residual "discretization bias."

In the context of optimization, such as Stochastic Gradient Descent (SGD), this bias is particularly problematic. Biased gradient estimates often lead to an "error floor," where the optimization algorithm ceases to improve once the bias dominates the remaining error. Eliminating this bias is therefore critical for achieving high-precision parameter estimation.

Methodology: Double Randomization

This paper introduces a novel Double Randomization scheme to produce an unbiased estimator of the log-likelihood gradient. This approach synthesizes the "coupled sum estimator" with Multilevel Sequential Monte Carlo (MLSMC) techniques. The core logic involves two layers of randomization:

  1. Randomizing the Mesh Level ($L$): Instead of selecting a fixed discretization level, the algorithm draws a random level $L$ from a specific probability distribution.
  2. Randomizing the Samples ($P$): The algorithm draws a random number of samples $P$ for the Monte Carlo integration used to handle the nuisance parameters.

By calculating the difference between a fine-mesh approximation and a coarser-mesh approximation at each step and weighting these differences by the probability of choosing that specific level, the discretization bias terms mathematically cancel out. The resulting estimator's expected value is exactly equal to the "infinite resolution" limit of the gradient, even though every individual calculation is performed on a finite grid.

Theoretical and Computational Advantages

The authors rigorously prove that this estimator is unbiased and maintains finite variance under standard assumptions regarding the PDE and the Monte Carlo kernels. Beyond theoretical elegance, the method offers significant practical advantages:

  • Embarrassingly Parallel Architecture: Unlike traditional multilevel methods that may have sequential dependencies, this estimator is based on independent random draws. Thousands of independent unbiased estimates can be distributed across thousands of CPUs and averaged with zero loss in efficiency. This allows for "constant time precision," where any desired level of accuracy can be reached in a fixed timeframe given enough processors.
  • Synergy with SGD: Because the estimator is unbiased, it allows SGD to achieve exponential convergence in certain regimes. It avoids the plateauing effect common in biased methods, where the algorithm eventually hits a limit dictated by the discretization error.

Experimental Validation

The methodology was evaluated using simulated PDE systems to verify its properties against known benchmarks:

  • Toy 1D Poisson Equation: This simple system allowed for analytical calculation of the marginal likelihood, serving as a ground truth to confirm the estimator's unbiased nature.
  • 1D Elliptic PDE: A more complex Bayesian Inverse Problem involving a diffusion coefficient was used to test the method in a realistic setting where analytical solutions are unavailable.

In these experiments, the Mean Squared Error (MSE) of the unbiased estimator decreased linearly with computational cost, tracking the performance of state-of-the-art biased methods (like MLSMC) but without the eventual plateau caused by discretization error.

Conclusion and Future Work

While the method introduces a slight "logarithmic penalty" in complexity on single-processor systems and requires careful tuning of probability distributions to avoid infinite variance, it represents a significant step forward in computational statistics. By treating discretization as a random variable rather than a fixed constraint, the authors demonstrate that unbiasedness is a choice that can be made to leverage massive parallelism and improve optimization stability. Future research may extend this framework to higher-dimensional PDEs and more sophisticated sample reuse strategies.

Summary updated

BibTeX
@inproceedings{jasra2021unbiased,
  author = {Ajay Jasra and Kody J. H. Law and Lu Deng},
  title = {{Unbiased Estimation of the Gradient of the Log-Likelihood in Inverse Problems}},
  booktitle = {Stat. Comput},
  year = {2021},
  url = {https://openreview.net/forum?id=zqkq90AF1K},
}

Loading related content...

Figure