---
title: 'ShaRP: Stochastic Deep Restoration Priors'
url: https://www.emergentmind.com/topics/stochastic-deep-restoration-priors-sharp
type: topic
---

# ShaRP: Stochastic Deep Restoration Priors

Stochastic Deep Restoration Priors (ShaRP) constitute a class of variational priors for imaging inverse problems, leveraging ensembles of deep restoration networks instead of traditional Gaussian denoisers. This approach generalizes plug-and-play regularization by drawing on minimum mean square error (MMSE) restoration operators trained for a variety of degradation models, providing improved recovery quality for data suffering from structured artifacts as well as supporting self-supervised learning from corrupted measurements. ShaRP unifies recent perspectives on score-based, denoiser-based, and restoration-operator-based inference, and sits at the intersection of plug-and-play optimization and stochastic differential approaches for scientific and medical image restoration [2410.02057][2407.01908].

## 1. Mathematical Foundation

Consider the canonical linear inverse problem in imaging,
$$
y = A x + \eta,\quad \eta \sim \mathcal{N}(0, \sigma_\eta^2 I)
$$
with $A \in \mathbb{R}^{m \times n}$ and $x \in \mathbb{R}^n$ denoting the ground truth image. Conventional variational inference posits
$$
\hat{x} = \underset{x \in \mathbb{R}^n}{\arg\min}\, g(x) + \lambda R(x)
$$
where $g(x) = \frac{1}{2} \| A x - y \|_2^2$ enforces data fidelity and $R(x)$ regularizes with an implicit or explicit prior.

ShaRP defines $R(x)$ through an ensemble of MMSE restoration operators $\{T_{\theta_k}\}_{k=1}^b$. Each $T_{\theta_k}(z)$ approximates $\mathbb{E}[x|z, \phi_k]$ for a specific degradation $\phi_k$. Tweedie’s formula relates the MMSE estimator to the score function $s_{\theta_k}(x) = \nabla_x \log p_{\theta_k}(x)$ of the neural prior $p_{\theta_k}(x)$. The ShaRP regularizer is thus:
$$
R(x) = - \mathbb{E}_{\phi, u} \left[ \operatorname{Tr}\left( \nabla_x s_{\theta_\phi}(x) \right) \right]
$$
where $\phi$ indexes restoration tasks and $u \sim \mathcal{N}(0, \sigma^2 I)$ injects stochasticity.

The gradient simplifies to
$$
\nabla R(x) = \frac{1}{\sigma^2} \mathbb{E}_{\phi, u}\left[ x - T_{\theta_\phi}(x + u) \right]
$$
which is the expected residual of restoration over random degradations $u$ and $\phi$.

These developments mean ShaRP optimizes
$$
J(x) = \frac{1}{2} \| A x - y \|_2^2 + \lambda R(x)
$$
with a prior enforcing global consistency with the distribution of clean images implicitly modeled by the restoration ensemble [2410.02057].

## 2. Optimization and Algorithmic Scheme

ShaRP employs a biased stochastic-gradient descent on $J(x)$:
- At iteration $k$, sample a degradation index $\phi_k$ and i.i.d. noise $u_k \sim \mathcal{N}(0, \sigma^2 I)$.
- Compute $x_{\text{rest}} = T_{\theta_{\phi_k}}(x^{k-1} + u_k)$.
- Form a stochastic gradient
$$
\widehat{\nabla} f(x^{k-1}) = A^T(A x^{k-1} - y) + \frac{\tau}{\sigma^2}(x^{k-1} - x_{\text{rest}})
$$
and update via
$$
x^k = x^{k-1} - \gamma \widehat{\nabla} f(x^{k-1})
$$
where $\gamma$ is chosen $\leq 1 / L$ for gradient-Lipschitz constant $L$.

Illustrative pseudocode:

```python
# Input: A, y, pre-trained restoration net T_theta, noise sigma, reg tau, step-size gamma, iterations K
x = A.T @ y
for k in range(K):
    phi_k = sample_degradation_index()
    u_k = np.random.normal(0, sigma, x.shape)
    x_rest = T_theta[phi_k](x + u_k)
    grad_data = A.T @ (A @ x - y)
    grad_prior = (tau / sigma ** 2) * (x - x_rest)
    x = x - gamma * (grad_data + grad_prior)
```

This stochastic descent framework efficiently alternates between data consistency and application of non-Gaussian deep priors, accommodating arbitrary or task-dependent degradations [2410.02057].

## 3. Theoretical Guarantees

The principal theoretical results can be summarized as:
- When the restoration operators $T^*$ are exact MMSE maps, ShaRP’s update direction is an unbiased stochastic gradient of the objective $f(x) = g(x) + R(x)$. Convergence theorems borrow from non-convex stochastic optimization.
- For approximate $T_\theta$ with bounded estimation bias $\epsilon$ and variance $\nu^2$, and under mild regularity (Lipschitz gradient, finite lower bound), the iterates satisfy
$$
\mathbb{E}\left[ \| \nabla f(\bar{x}) \|^2 \right] \leq \frac{2(f(x^0)-f^*)}{\gamma K} + \gamma L \nu^2 + \epsilon^2
$$
where $\bar{x}$ is a random iterate from the trajectory. This quantifies descent to an $O(\epsilon + \sqrt{\gamma})$ stationary point, justifying the use of inexact (real-world) deep restorers [2410.02057].

## 4. Self-Supervised Restoration Priors

A significant feature of ShaRP is the capacity for self-supervised training—critical for domains lacking ground-truth clean data. For example, in compressed sensing MRI, restoration networks $T_\theta$ are trained by mapping between reconstructions from disjoint sampling masks $(\phi_i, \phi_j)$ of the same underlying slice:
$$
\mathbb{E}_{t, i, j}\left[ \| T_\theta(A_{\phi_i} x_t) - A_{\phi_j} x_t \|_2^2 \right]
$$
This “Noise2Noise” loss enables learning approximate MMSE restoration without access to fully sampled $x_t$. The resulting networks can directly serve as priors in ShaRP, with random $\phi$ sampled at each gradient step [2410.02057].

A plausible implication is that similar strategies may extend to other inverse problems where only corrupted samples are available, broadening the scope of restoration priors beyond denoising and standard supervised pipelines.

## 5. Empirical Performance and Benchmarks

ShaRP achieves state-of-the-art or superior performance in multiple representative tasks:

**Compressed Sensing MRI (CS-MRI):**  
| Method                | PSNR (dB)  | SSIM    |  
|-----------------------|------------|---------|  
| PnP-FISTA             | ≈35.88     | ≈0.938  |  
| Diffusion-DNS (DDS)   | ≈35.21     | ≈0.937  |  
| **ShaRP (supervised)**| **37.59**  | **0.963** |  

**Self-Supervised MRI:**  
| Method                | PSNR (dB)  | SSIM    |  
|-----------------------|------------|---------|  
| SPICER                | ≈31.87     | ≈0.901  |  
| **ShaRP^self**        | **33.87**  | **0.909** |  

**Single-Image Super-Resolution (SISR): (Deblurring, σ=1.25, noiseless)**  
| Method         | PSNR (dB) | SSIM    |  
|----------------|-----------|---------|  
| DPIR           | 28.10     |         |  
| DiffPIR        | 28.92     |         |  
| DRP            | 29.28     |         |  
| **ShaRP**      | **30.09** | **0.891** |  

For high noise and stronger blur (e.g., kernel σ=1.5, noisy), ShaRP continues to outperform diffusion-based and denoiser-based priors without additional fine-tuning for novel measurement operators or noise levels. Qualitatively, ShaRP preserves fine textures and suppresses ringing even under structured degradations [2410.02057].

## 6. Relationship to Stochastic Restoration Priors in Other Domains

Recent work in Digital Elevation Model (DEM) restoration exemplifies the “Stochastic Deep Restoration Prior” paradigm in a distinct mathematical guise [2407.01908]. DEM-SDE represents terrain degradation and restoration as a mean-reverting Itô SDE, and learns the reverse drift and score via deep networks conditioned on learnable terrain priors. Although the functional form and application domains are different—imaging versus geospatial DEM super-resolution and inpainting—both ShaRP and DEM-SDE rely on stochastic sampling through deep restoration operators, attention to structured artifacts, and conditioning on learned non-Gaussian priors.

A plausible implication is that ShaRP-like frameworks may be extensible to any domain where structured data degradations are amenable to synthetic corruption and self-supervised deep restoration learning, such as hyperspectral imaging, 3D volumetric reconstruction, or beyond.

## 7. Significance and Future Directions

ShaRP advances the state of deep regularization for inverse problems by:
- Generalizing variational plug-and-play priors from Gaussian denoisers to ensembles of restoration operators,
- Theoretically grounding the approach via stochastic approximation and score-divergence regularization,
- Supporting self-supervised training pipelines crucial in scientific and biomedical imaging,
- Demonstrating robust gains in image quality over established diffusion-model and plug-and-play restoration methods.

Emergent research directions include expanding the space of admissible degradations for restoration priors, automatic adaptation of noise and regularization levels, and cross-domain generalization using domain-specific restoration architectures [2410.02057][2407.01908]. This suggests a shift from hand-crafted image priors toward flexible, data-driven architectures that explicitly model and invert realistic, structured data corruptions.

Source: https://www.emergentmind.com/topics/stochastic-deep-restoration-priors-sharp