# Forward-Sensitivity-Weighted TV

- ID: 386
- Canonical URL: https://synthcore.org/idea/386/forward-sensitivity-weighted-tv
- API JSON: https://synthcore.org/api/idea/386.json
- API Markdown: https://synthcore.org/api/idea/386.md
- Verification status: mech_ok_no_baseline
- Source: [arXiv:2607.03054](https://arxiv.org/abs/2607.03054)
- Category: regularization
- Solves: accuracy, generalization, stability
- ML areas: loss, regularization, cnn
- Math tags: convex-analysis, functional-analysis, numerical-analysis, geometry
- Ratings: usefulness 6/10; difficulty 4/10; novelty 7/10

## Idea description

Add a spatially weighted TV penalty to a neural inverse solver, where a pixel receives a large penalty when perturbations there are strongly visible to the forward operator and a small penalty when the operator is insensitive. This prevents ordinary TV from suppressing or displacing structures differently across the field of view. The weight can be recomputed per acquisition geometry or cached for a fixed forward operator.

## Mathematical statement

The paper's weighted Tikhonov functional is $\frac{1}{2}\|Kf-d\|_{L^2(\partial\Omega)}^2+\alpha\operatorname{TV}_w(f)+\beta\int_{\partial\Omega}w_{\partial}(y)|f(y)|\,ds(y)$, where $f:\Omega\to\mathbb{R}$ is the unknown image, $K:L^2(\Omega)\to L^2(\partial\Omega)$ is the linear forward operator, $d$ is measured data, $\alpha,\beta>0$ are regularization parameters, and $Df$ is the distributional image gradient. The weighted TV term is $\operatorname{TV}_w(f)=\int_\Omega w(y)|Df|(y)$, with sensitivity weight $w(y)=\sup_{\boldsymbol{q},\,|\boldsymbol{q}|_2=1}\|K(\nabla G(\cdot;y)\cdot\boldsymbol{q})\|_{L^p(\partial\Omega)}$, where $G(\cdot;y)$ is the Green's function for a source at spatial location $y$, $\boldsymbol{q}$ is a unit jump direction, and $p$ controls the data-space norm. The transferable property is that the TV cost is scaled by the forward response to a localized directional perturbation. For a discrete neural reconstruction $u\in\mathbb{R}^{H\times W}$ with forward map $K$, use $w_i\approx\sup_{|q|=1}\|K(\nabla_hG_iq)\|_2$, or, when a Green function is unavailable, approximate localized sensitivity by $w_i=\|K e_i\|_2$ or $w_i=\|J_K(u)e_i\|_2$, normalized to mean one. Here $e_i$ is the unit image basis vector, $J_K(u)$ is the Jacobian of the differentiable forward model, and $D_x,D_y$ are finite-difference operators.

## Key formulas

- $$\min_{f\in BV(\Omega)}\left\{\frac{1}{2}\|Kf-d\|_{L^{2}(\partial\Omega)}^{2}+\alpha\underbrace{\int_{\Omega}w(y)\,|Df|(y)}_{=\operatorname{TV}_{w}(f)}+\beta\int_{\partial\Omega}w_{\partial}(y)|f(y)|\,ds(y)\right\}.$$
- $$w(y)=\sup_{\boldsymbol{q},\;|\boldsymbol{q}|_{2}=1}\left\|K\!\left(\nabla G(\cdot;y)\cdot\boldsymbol{q}\right)\right\|_{L^{p}(\partial\Omega)}.$$
- $$L_{\mathrm{wTV}}(u)=\lambda\sum_{i=1}^{N}w_i\sqrt{(D_xu_i)^2+(D_yu_i)^2+\varepsilon^2},\qquad w_i=\frac{\|J_K(u_0)e_i\|_2+\delta}{\frac{1}{N}\sum_{j=1}^{N}(\|J_K(u_0)e_j\|_2+\delta)}.$$
- $$L(\theta)=\frac{1}{2}\|K(F_\theta(d))-d\|_2^2+L_{\mathrm{wTV}}(F_\theta(d)),\qquad u=F_\theta(d).$$

## Implementation notes

Integrate the method as an additional loss term on the reconstructed image tensor `u = net(measurement)` in a CNN, U-Net, plug-and-play unrolled network, or diffusion inverse solver. First precompute a nonnegative weight map for each acquisition geometry. For a fixed linear operator represented by a routine `K(v)`, use the exact discrete sensitivity `s[i] = ||K(e_i)||_2`; for a differentiable nonlinear operator, choose a reference image `u0` and estimate `s[i] = ||J_K(u0)e_i||_2` with JVPs, finite differences `(K(u0+h e_i)-K(u0))/h`, or batched columns when the image is small. If the operator has a known Green function, create a localized discrete Green derivative `g_i(q) = grad(G[:,i]) dot q`, evaluate `K(g_i(q))` for `q=(1,0),(0,1),(-1,0),(0,-1)`, and set `s[i]` to the largest output norm. Stabilize with `s[i] <- s[i]+delta`, normalize by the spatial mean, and optionally clip to the 5th--95th percentile. During every training step compute the forward residual `r=K(u)-measurement`, horizontal and vertical differences, `tv=sum_i w[i]*sqrt(dx[i]^2+dy[i]^2+eps^2)`, and optimize `loss=0.5*||r||^2+lambda*tv+other_task_losses`. Detach `w` from autograd because it represents operator geometry rather than a learned shortcut. For a nonlinear or changing forward model, refresh weights every 1--5 epochs at the current exponential-moving-average reconstruction, but begin with fixed weights. For boundary observations, optionally add the paper's boundary sparsity term using the corresponding boundary sensitivity map. The first experiment should use a 64x64 synthetic source-recovery or tomography benchmark with deliberately nonuniform detector coverage and 10--20% noise. Compare ordinary unweighted TV, the same network without TV, and scalar TV with its coefficient selected on validation data. Measure centroid error, object-size bias, PSNR, SSIM, and data residual at matched training FLOPs. The method succeeds if it reduces localization and size bias, especially in low-sensitivity regions, while preserving or improving PSNR and requiring only one cached weight map per geometry.

## Verification

- Status: mech_ok_no_baseline
- Mechanism evidence: yes
- Mechanism confirmed: yes
- Practical verdict: no_effect
- Verdict: Built a compact linear inverse-imaging MVP with exact cached sensitivity weights, weighted finite-difference TV, and comparisons against no TV and ordinary TV. The math check passed: column norms and finite-difference responses agreed to about 1e-11 relative error. In the regularization sweep, weighted TV improved best PSNR from 21.99 to 22.14 dB and reduced low-sensitivity-region centroid error from 0.0558 to 0.0395 pixels versus ordinary TV; the gain is modest but consistent with the claimed bias-reduction effect in this toy setting.

### Mechanism check

- Verdict: Built a compact linear inverse-imaging MVP with exact cached sensitivity weights, weighted finite-difference TV, and comparisons against no TV and ordinary TV. The math check passed: column norms and finite-difference responses agreed to about 1e-11 relative error. In the regularization sweep, weighted TV improved best PSNR from 21.99 to 22.14 dB and reduced low-sensitivity-region centroid error from 0.0558 to 0.0395 pixels versus ordinary TV; the gain is modest but consistent with the claimed bias-reduction effect in this toy setting.
- Confidence: 7/10
- Limitations: This was a single-seed 24x24 linear blurred-and-masked reconstruction, not the requested 64x64 neural/CNN solver or a tomography benchmark. Only one noise realization and a small lambda sweep were tested; SSIM, matched FLOPs, multiple geometries, nonlinear Jacobians, and boundary sparsity were not evaluated.

### Practical benchmark

- Paired seeds: 8
- Baseline mean: 0
- Idea mean: 0
- p-value: 0.1159
- Paired wins: 6/8
- Benchmark verdict: no measurable effect

## Artifacts

- [bench_report.json](https://synthcore.org/code/1282/bench_report.json)
- [custom_inverse_track.py](https://synthcore.org/code/1282/custom_inverse_track.py)
- [experiment.py](https://synthcore.org/code/1282/experiment.py)
- [report.md](https://synthcore.org/code/1282/report.md)
- [report_bench_2026-09-04T112634.md](https://synthcore.org/code/1282/report_bench_2026-09-04T112634.md)
- [results.json](https://synthcore.org/code/1282/results.json)
- [run_bench.py](https://synthcore.org/code/1282/run_bench.py)
- [Download all files as ZIP](https://synthcore.org/download/1282)

## Disclaimer

AI-generated research hypothesis, automatically tested. Not peer-reviewed.
