Avoiding subtraction and division of stochastic signals using normalizing flows: NFdeconvolve
Pedro Pessoa, Max Schweiger, Lance W. Q. Xu, Tristan Manha, Ayush Saurabh, Julian Antolin Camarena, Steve Pressé
TL;DR
The study tackles recovering the distribution of a hidden stochastic component $b$ from observations $x=f(a,b)$ with a known $a$-distribution, avoiding noise amplification from subtraction or division. It compares three approaches: Bayesian inference with a known $p_B$, Bayesian inference with a Gaussian-mixture prior over $p_B$, and NFdeconvolve, which uses normalizing flows to model $p_{NF}(b|\phi)$ and infer $p(b|\{x\},\theta_A)$ via the convolution likelihood. Results on synthetic sum and product data show that NFdeconvolve is robust to model misspecification and often yields closer-to-ground-truth distributions (lower KL divergence) than Gaussian mixtures, especially with limited data or lower SNR, while a correctly specified Bayesian model remains superior when available. NFdeconvolve is implemented in PyTorch and released on GitHub with tutorials, enabling practitioners to perform deconvolution of stochastic signals in applications like background subtraction and illumination correction without explicit subtraction/division. Overall, the work demonstrates that normalizing flows provide a flexible and reliable path to deconvolving stochastic signals under uncertainty about the deconvolved distribution.
Abstract
Across the scientific realm, we find ourselves subtracting or dividing stochastic signals. For instance, consider a stochastic realization, $x$, generated from the addition or multiplication of two stochastic signals $a$ and $b$, namely $x=a+b$ or $x = ab$. For the $x=a+b$ example, $a$ can be fluorescence background and $b$ the signal of interest whose statistics are to be learned from the measured $x$. Similarly, when writing $x=ab$, $a$ can be thought of as the illumination intensity and $b$ the density of fluorescent molecules of interest. Yet dividing or subtracting stochastic signals amplifies noise, and we ask instead whether, using the statistics of $a$ and the measurement of $x$ as input, we can recover the statistics of $b$. Here, we show how normalizing flows can generate an approximation of the probability distribution over $b$, thereby avoiding subtraction or division altogether. This method is implemented in our software package, NFdeconvolve, available on GitHub with a tutorial linked in the main text.
