Certifying When a Learned Reconstructor Can Erase a Lesion

Learned image reconstruction, which turns undersampled MRI or compressed-sensing measurements into full images, is fast and accurate. It also fails in a way that matters clinically: a tiny, almost invisible change to the measurements can make a small tumour disappear from the output. Today that failure can only be found by attacking the network with gradient ascent. Gradient ascent can show that an erasure exists. It can never show that no erasure exists within a given perturbation budget.

We propose to compute this exactly. The target is a class of networks called unfolded solvers: networks built by turning each iteration of a classical sparse-recovery algorithm into one layer. We would compile such a network into a mixed-integer program, meaning a set of linear inequalities plus yes/no variables that a branch-and-bound solver can search exhaustively. The solver then either returns the smallest measurement perturbation that erases a given lesion, or proves that none exists below a stated size.

The key observation is that in an unfolded sparse-coding network the yes/no variables are not arbitrary neuron switches. Each one records whether a transform coefficient is zeroed, kept, or sign-flipped at a given iteration. A solver counterexample therefore reads as an algorithmic story: "at stage 4, these twelve coefficients covering the lesion fell below threshold and were shrunk to zero, and data consistency never restored them." We argue that this same structure is what makes exact search tractable, because under small perturbations almost all coefficients keep their state and can be fixed before search begins.

Core Claim

For unfolded networks whose nonlinearities are elementwise piecewise-linear shrinkage functions and whose linear parts are fixed physics operators, exact worst-case "erasure queries" are feasible at small but realistic block sizes. The answers are also directly interpretable in the vocabulary of the underlying algorithm.

The contribution has two parts. The first is a measured quantity, the certified erasure radius. It is the smallest measurement-space perturbation $\delta y$ (norm $\|\delta y\|$) such that the lesion contrast $c(\hat x(y+\delta y))$ falls below a fraction $\tau$ of its clean value, where $\hat x$ is the network output and $c$ is mean intensity inside a lesion mask minus a surrounding ring. The second is a demonstration that the unfolded structure, not network size alone, is what makes this computable. A generic ReLU network with the same parameter count should be intractable to certify.

Positioning Against Prior Work

The motivating evidence comes from On instabilities of deep learning in image reconstruction. That paper shows with gradient-based tests that reconstructors perturb badly, erase small structures, and can degrade when given more samples. It offers no way to certify their absence, and that is the gap we fill.

The method comes from mixed-integer reformulation. Nonlinear Hybrid Planning with Deep Net Learned Transition Models and MILP supplies the Big-M encoding of piecewise-linear units as linear constraints with binary switches. Mixed Integer Neural Inverse Design supplies neuron-bound precomputation, which removes binaries for units that are always on or always off. Both work on plain feedforward surrogates, not on unrolled iterative solvers.

Two papers show that exact search is informative but constrain the scale we can attempt. Exactly Computing the Local Lipschitz Constant of ReLU Networks finds that heuristics underestimate the true constant by over 40% and analytic bounds overestimate it by nearly 400%. Its method takes about 69 seconds on networks of only a few hundred neurons. A MIP Approach for Verifying Binarized Neural Networks shows that discrete activation structure speeds verification 10–20×. That result is the precedent for our bet that shrinkage structure helps in the same way. Both papers study classifiers.

On the unfolding side:

  • ISTA-Net unrolls iterative soft-thresholding on 33×33 image blocks.
  • Deep ADMM-Net unrolls ADMM with learned piecewise-linear shrinkage. That shrinkage is exactly the form Big-M can encode, yet the network has never been verified.
  • PromptCT's LipNet builds in a global Lipschitz guarantee.

We differ from all three by computing exact, instance-specific worst cases rather than relying on architectural interpretability or global bounds. Neuron Dependency Graphs is the closest interpretability competitor. It extracts statistical on/off implications between neurons, and the authors note that confidence decays when those implications are chained. Our traces are exact for the specific worst-case input rather than statistical.

Research Program

We would build a compiler from unfolded networks to mixed-integer linear programs.

Encoding. The data-consistency step $z = x - \eta A^\top(Ax - y)$ is linear and enters as equality constraints. Soft-thresholding has three linear pieces and is encoded with two binaries per coefficient, or one three-state choice. ADMM-Net-style learned piecewise-linear shrinkage with more breakpoints uses a standard special-ordered-set encoding.

Presolve by support stability. We propagate interval bounds stage by stage from the perturbation ball, then tighten them with LP-based bound tightening. Every coefficient whose shrinkage state provably cannot change is fixed. We expect this to eliminate the large majority of binaries at clinically relevant perturbation sizes, and we will measure the fraction.

Queries.

  • Erasure radius: minimize $\|\delta y\|_\infty$ or $\|\delta y\|_1$ subject to the contrast constraint.
  • Certification: feasibility at a fixed budget $\epsilon$. Infeasibility is a proof that the lesion survives.
  • Stage-wise local Lipschitz: extending the backpropagation-unrolling encoding of the exact-Lipschitz paper through the unrolled stages.

Explanation. From each counterexample we read off the support-flip trace: which coefficients changed state, and at which stage. We test whether the trace is causal. Pinning exactly those coefficients to their clean states should restore the lesion, and pinning a random set of the same size should not.

Repair. We use counterexamples as training examples and re-certify, to see whether the certified radius grows without losing reconstruction quality.

Scope. We state this honestly: full 256×256 images with 32-channel convolutions per stage are out of reach. We therefore work in two regimes where the problem decomposes or is small.

  • Block compressed sensing on Set11 at a 25% ratio, following ISTA-Net's 33×33 block design. This gives 1089 pixels and 272 measurements per block, and lesions are synthetic blobs inserted into blocks.
  • Downsampled 32×32 brain MRI from the CAF data used by ADMM-Net, with pseudo-radial 30% sampling and synthetic lesions.

In both regimes we train narrow unfolded networks: 5–9 stages, 4–8 transform channels.

Baselines

The naive reference point is the unregularized worst case, which we define as random measurement noise of the same norm. It tells us whether erasure is a worst-case phenomenon at all. If random noise already erases lesions at the radius the solver finds, exact search adds nothing.

Targeted projected gradient descent (PGD). This is the strongest cheap competitor for finding erasures, and it is essentially the method of the instabilities paper. We run it on the lesion-contrast objective with 100 random restarts. We match wall-clock time to the solver's per-query budget and tune its step size on a held-out block set. We count it as beaten when the solver finds strictly smaller erasure radii on a meaningful fraction of blocks (we will report the distribution). A second win condition is that the solver certifies blocks where PGD's failure to find an attack is, by construction, unprovable. We found no reported result on Lacuna for PGD-based lesion erasure radii on unfolded compressed-sensing networks. The closest reported figure is the exact-Lipschitz paper's finding that gradient-based CLEVER underestimates worst-case sensitivity by over 40%.

Global Lipschitz certificates. We compare against two versions. One is a LipNet-style constrained prior following PromptCT, trained on the same data. The other is a product-of-spectral-norms bound on our own network. Each implies a certified radius through contrast change ≤ L‖δy‖. We beat them if our exact certified radii are substantially larger at equal PSNR, since exact analytic bounds were reported loose by nearly 400% for FastLip.

LP relaxation certificate. This is the same program with binaries relaxed to [0,1]. It isolates what exact integrality buys over bounding.

Reconstruction quality reference. Our narrow networks must remain credible reconstructors. We compare against ISTA-Net+'s reported 32.57 dB PSNR on Set11 at 25% (ISTA-Net), retrained at our block size where possible. We consider a gap under about 2 dB acceptable. A larger gap weakens every downstream claim.

Key ablations. First, we disable support-stability presolve, which measures how much tractability comes from the unfolded structure. Second, we certify a generic ReLU CNN with matched parameters and matched PSNR, as a black-box counterpart. If the generic network certifies equally fast, the claim that unfolding enables verification is false.

Why not just…?

Why not just run PGD attacks, which are orders of magnitude cheaper? This is the most serious alternative. If PGD with restarts matches the exact radius on nearly every block, the solver's only contribution is the non-existence certificate. That is still useful clinically, but it is a narrower claim, and we will report the gap distribution without spin. The Lipschitz evidence of a more than 40% underestimate by gradient heuristics suggests the gap will not be zero, but it was measured on classifiers, not on reconstructors.

Why not just enforce a global Lipschitz bound in the architecture? A bound like LipNet's gives certificates for free at test time. It is, however, a single worst case over all inputs and all lesions, and analytic bounds are known to be very loose. Our comparison of certified radii at equal PSNR settles whether exactness buys real margin. If it does not, the constrained-architecture route wins, and we would say so.

Why not just explain erasures with saliency maps or neuron dependency graphs? I-GOS shows which pixels matter, not which algorithmic step discarded the lesion. Neuron dependency graphs lose confidence when implications are chained across many stages. We test this directly. For each method, we pin the coefficients it identifies and measure lesion restoration against a random-coefficient control of the same size. If NDG edges or attribution rankings restore the lesion as reliably as our support traces, the interpretability half of the claim fails.

Proposed Experiments and Decisive Checks

Main experiment. We insert synthetic lesions of varying size and contrast into Set11 blocks and downsampled CAF brain slices. For each lesion we run the solver with a one-hour budget in both norms. We report five quantities:

  • the fraction of queries solved to optimality;
  • median solve time;
  • the fraction of binaries removed by presolve;
  • the ratio between PGD-found and exact radii;
  • the ratio between Lipschitz-implied and exact certified radii.

First decisive check: tractability. The unfolded network must certify well within budget while the matched generic CNN mostly times out. Otherwise the core structural claim is refuted.

Second decisive check: explanation causality. Pinning the support-flip trace must restore lesion contrast far more often than pinning random sets or NDG-selected neurons of the same size.

Third decisive check: repair. Counterexample-augmented training should raise the median certified radius without losing more than a fraction of a dB in PSNR.

Secondary probe. We solve for the worst case under an increased sampling ratio, to see whether the "more data hurts" paradox from the instabilities paper appears as an exact phenomenon in unfolded solvers or only as an artifact of generic architectures.