Generalized PSF Fitting Methods
- Generalized Point Spread Function Fitting (GPSF) is a framework that employs flexible PSF representations beyond single Gaussian or shift-invariant models.
- It integrates forward modeling with regularized inversion to estimate both object and PSF parameters across applications like microscopy, coherent imaging, and CMB analysis.
- Approaches range from sparse analog calibrations to neural-based phase fitting, offering enhanced accuracy and practical trade-offs in image reconstruction.
Generalized Point Spread Function Fitting (GPSF) denotes a family of inverse formulations in which the point spread function is fitted, calibrated, or embedded in a forward model under assumptions that are more general than a single Gaussian kernel, strict shift invariance, or a fixed low-dimensional basis. In the literature, the label has been used for sparse analog PSF calibration in fluorescence microscopy, spatially variant deconvolution in coherent imaging, semi-blind segmented PSF recovery from partially occulted images, basis-free neural phase-function fitting, PSF-inclusive beam-profile fitting for scintillating screens, and full-covariance multi-source template fitting in CMB polarization analysis (Samuylov et al., 2018, Lee et al., 2017, Hofmeister et al., 2022, Valouev, 2024, Novokshonov, 2024, Wang et al., 16 Aug 2025). This suggests that GPSF is best understood as a methodological category defined by generalized PSF representations and generalized inverse operators, rather than as a single canonical algorithm.
1. Scope of the term and major formulations
The literature uses GPSF for several non-identical but structurally related problems. In each case, the PSF enters a forward model whose parameters are estimated from measured or simulated data.
| Domain | PSF representation | Inverse task |
|---|---|---|
| Fluorescence microscopy | Sparse Gaussian mixture | Variational calibration |
| Coherent imaging | Spatially variant kernel or transmission matrix | Generalized deconvolution |
| Partially occulted imaging | Segmented PSF weights | Semi-blind linear fitting |
| Neural PSF engineering | Implicit neural phase function | Basis-free PSF fitting |
| XFEL screen diagnostics | Simulated aberration and scintillator PSFs | Convolution-based beam fitting |
| CMB polarization | Beam-convolved source templates with full covariance | Multi-source subtraction |
In fluorescence microscopy, the PSF is modeled as a finite mixture of multivariate Gaussians, with the number of active kernels controlling an explicit accuracy-efficiency trade-off (Samuylov et al., 2018). In coherent imaging, the generalization is spatial variance: the forward operator is a full kernel rather than a shift-invariant convolution kernel (Lee et al., 2017). In partially occulted images, the PSF is partitioned into segments whose weights are directly estimated from a multi-linear system (Hofmeister et al., 2022). In basis-free neural PSF engineering, the fitted object is the pupil-plane phase function , from which the PSF is generated by wave optics (Valouev, 2024). In XFEL diagnostics, the PSF is simulated from aberrations and scintillator geometry and then included in the fitting function for a Gaussian beam (Novokshonov, 2024). In CMB polarization, GPSF refers to pixel-domain fitting of overlapping polarized point sources using the full covariance, including off-diagonal terms (Wang et al., 16 Aug 2025).
A common misconception is that PSF fitting is synonymous with fitting a single Gaussian or a single shift-invariant blur kernel. The GPSF literature explicitly departs from that restriction.
2. Shared mathematical structure
Despite their different application domains, GPSF methods share a common pattern: a forward operator maps latent object or source parameters to observed data, and PSF parameters or PSF-induced templates are estimated by minimizing a likelihood or a regularized loss.
For sparse analog calibration in fluorescence microscopy, the fitted PSF is
with and . Calibration is formulated as
and, under the convex relaxation , as
Here trades off fitting error versus sparsity of the mixture (Samuylov et al., 2018).
For coherent imaging without shift invariance, the forward model is
or, after discretization,
0
where 1 is generally dense. A standard regularized solution is
2
This is the generalized image-deconvolution formulation based on spatially variant PSFs or an equivalent transmission matrix (Lee et al., 2017).
For partially occulted images, the PSF is partitioned into segments:
3
which yields a linear system
4
over occulted pixels. The weights are obtained by a non-negative least-squares or regularized fit, embedded in an iterative fit-deconvolution loop (Hofmeister et al., 2022).
For basis-free neural fitting, the wave-optics forward model is
5
with 6 represented by a small multi-layer perceptron. Training minimizes point-wise MSE on the PSF (Valouev, 2024).
For CMB polarization, the fitted object is a local source-template amplitude vector in a Gaussian likelihood,
7
where 8 is the full pixel-pixel covariance for 9 data, including off-diagonal terms (Wang et al., 16 Aug 2025).
This recurrence of forward modeling plus regularized or covariance-weighted inversion is the main mathematical unifier of GPSF.
3. Sparse analog GPSF in fluorescence microscopy
In fluorescence microscopy, GPSF was introduced to improve reconstruction accuracy beyond the Gaussian model while preserving computational efficiency. The core representation is a sparse combination of Gaussian kernels that retains analog, continuous modeling needed for sub-pixel localization accuracy. A single Gaussian typically models only the central lobe, whereas real PSFs have “fat” tails, including side-lobes and asymmetries; mixing several Gaussians with different covariances 0 and shifts 1 provides a flexible model with closed-form convolution and fast evaluation, for example via FFT or IFGT (Samuylov et al., 2018).
The inverse problem is posed variationally. The ideal penalty on the number of active kernels is combinatorial and nonconvex, so it is replaced by an 2 surrogate on the mixture weights. After solving the convex problem, small 3 are thresholded to zero and the remaining weights may be refit on the pure 4 term under positivity. To solve the large-scale convex program efficiently, the method uses a fully-split formulation with an Alternating Split Bregman scheme. The split variables separately handle data fidelity, 5 shrinkage, and nonnegativity. For fixed 6, the split-Bregman or ADMM theory gives convergence; in practice, 7–8 ASB iterations suffice (Samuylov et al., 2018).
The key design variable is the support size
9
the number of active kernels. Accuracy may be measured by
0
or normalized deviance. Varying 1 and the dictionary size 2 traces out a curve 3: typically 4 decreases as 5 grows, but computation time 6 grows roughly linearly with 7. The paper recommends inspecting the “elbow” in 8 when choosing the model size (Samuylov et al., 2018).
Experimental validation is reported on synthetic Born–Wolf stacks and on real widefield/confocal data. The single-Gaussian model gives 9–0 but under-/over-estimates intensity and fails in tails. GPSF with 1–2 kernels halves the photometry error and slightly improves 3. A full Born–Wolf model is best in accuracy but approximately 4 slower. A representative timing-and-deviance comparison lists SG with 5 and 6, GPSF with small 7 at 8, 9, 0, GPSF with medium 1 at 2, 3, 4, and BW at 5 with 6 (Samuylov et al., 2018).
4. Spatially variant and semi-blind GPSF
A second major line of work generalizes PSF fitting by abandoning shift invariance. In coherent optical imaging, the imaging system is represented by a spatially variant kernel 7 or, equivalently, by a transmission matrix. Full characterization is achieved by successively recording optical responses under various laser illumination angles controlled by a digital micro-mirror device. Input spectra vectors and output spectra are stacked into matrices 8 and 9, and the transmission matrix is computed as
0
The inversion may be performed directly in the transmission-matrix formulation by SVD, or in object space through regularized least squares (Lee et al., 2017).
This generalized deconvolution is experimentally contrasted with conventional Fourier-domain deconvolution. For optical defocus, conventional and GPSF both achieve field-field correlation greater than 1. For a tilted lens, conventional deconvolution gives approximately 2, whereas GPSF gives approximately 3. For a scattering layer, conventional deconvolution falls below 4 and can be worse than the raw image, whereas GPSF achieves approximately 5–6. The restored effective resolution reaches 7 line pairs, approaching the diffraction limit. Practical limitations include transmission-matrix measurement time, reported as approximately 8 for 9 angle steps at 0, the memory and compute cost of a dense 1, and noise amplification from small singular values, handled by 2-regularization (Lee et al., 2017).
A different semi-blind generalization derives the instrumental PSF from partially occulted images. Here the PSF is partitioned into nonoverlapping regions 3, with unknown weights 4. The occulted pixels provide linear equations in those weights, and the algorithm alternates between fitting 5, reassembling the PSF, deconvolving the full image, and updating the current approximation of the true image under the mask constraint (Hofmeister et al., 2022).
The reported guarantees are unusually explicit. The algorithm is described as guaranteed to converge towards the correct instrumental PSF for a large class of occultations, and, under mild conditions on the mask and segmentation, the solution is unique in the noise-free setting (Hofmeister et al., 2022). Quantitatively, the central weight of the PSF, interpreted as the fraction of photons not scattered by the instrument, is accurate to better than 6. The mean absolute percentage error between reconstructed and true PSF is usually between 7 and 8 for the entire PSF, between 9 and 0 for the PSF core, and between 1 and 2 for the PSF tail (Hofmeister et al., 2022).
Together, these two formulations show that “generalized” may refer either to a full space-variant forward operator or to a semi-blind segmented PSF estimate without a predefined functional form.
5. Basis-free neural and simulation-constrained fitting
A more recent extension generalizes PSF fitting at the level of the pupil function. In basis-free point spread function engineering, the phase is represented implicitly as
3
where 4 is a small multi-layer perceptron. The predicted PSF is
5
with uniform pupil amplitude. No explicit Tikhonov or TV regularizer is added; the network’s smoothness serves as an implicit regularization. The input uses “radial encoding” with 6 and encoding length 7, and the network uses 8–9 hidden fully connected layers of width 0 with Leaky ReLU. Training is performed with Adam at initial learning rate 1, cosine-annealed to 2 over 3 epochs, with batch size 4 PSF per parameter update (Valouev, 2024).
For random pupils, the method reports mean MSSIM 5 versus 6 with pixel-wise optimization, median PSNR 7 versus 8, and mean PSNR 9 versus 00. For Zernike pupils, the reported median MSSIM is 01 versus 02, while mean PSNR is 03 versus 04. An ablation on EDoF reports that pixel-wise optimization wins on very high-frequency phase, but with much more noise and artifacts; the MLP produces smooth, manufacturable 05 (Valouev, 2024). The same summary presents this as a GPSF pipeline: collect target PSFs, build the differentiable forward operator, train with Adam plus cosine annealing for 06–07 epochs, monitor MSSIM or PSNR, and export the learned phase at the target SLM resolution.
Another formulation is simulation-constrained rather than basis-free. For European XFEL scintillating screens, the PSF is decomposed into optical aberrations and scintillator-induced geometric spreading. The aberration term 08 is approximated by a 2D Gaussian with width 09 for the Schneider-Kreuznach 10 objective and 11 for the 12 objective. The scintillator term 13 is fitted by a super-Gaussian comb of four lobes with power 14. Assuming a 2D Gaussian beam profile
15
the observed image is modeled as
16
or, with background,
17
The free parameters are the beam centroid, beam widths, and background, while the PSF parameters are held fixed from Zemax fits and estimated by non-linear least squares, for example Levenberg–Marquardt (Novokshonov, 2024).
These two cases enlarge GPSF in different directions: one removes the basis restriction in the pupil plane, and the other makes PSF simulation itself part of the fitting function.
6. Covariance-aware multi-source GPSF in CMB polarization
In CMB B-mode analysis, GPSF refers to a map-domain method for removing polarized point-source contamination. The data vector collects local 18 and 19 pixels within a fitting region, and the background is modeled as Gaussian with full pixel-pixel covariance
20
including off-diagonal terms between pixels and between Stokes components. A source at known position is described by a beam-convolved template, and overlapping sources are fitted jointly by minimizing the generalized 21 over the source amplitudes (Wang et al., 16 Aug 2025).
The implementation proceeds in two stages. First, candidate sources are identified from an input catalog, sorted by polarized flux 22, and tested in a local model including neighbors within 23. Sources above a significance threshold 24–25 are retained. Second, nearby sources are partitioned into disjoint groups and fit simultaneously with the same covariance 26; the best-fit templates are then subtracted from the observed maps. The method is designed for realistic conditions in which source blending is important, especially for small-aperture telescopes with large beams (Wang et al., 16 Aug 2025).
The method is integrated with Needlet Internal Linear Combination (NILC): GPSF is applied first on the multi-frequency 27 maps, after which the maps are smoothed to a common beam of 28 FWHM, corrected for EB leakage via the recycling method, decomposed into needlets, and combined using the standard ILC weight
29
The purpose is to remove resolved polarized sources before diffuse-component cleaning (Wang et al., 16 Aug 2025).
On simulations, the reported performance is explicit. For the tensor-to-scalar ratio 30, “PS unmitigated” yields mean bias 31 with 32. GPSF reduces the bias to 33, an 34 reduction, with 35, described as only a 36 increase. Masking gives 37 with 38, while inpainting yields 39 with 40. At the spectrum level, GPSF reduces residual 41 power by approximately 42 at 43 with nearly unchanged variance, and, before NILC, yields the lowest residual across 44 and 45 with standard deviations at the ideal level (Wang et al., 16 Aug 2025).
This usage of GPSF is notable because the generalized object is neither the PSF itself nor the pupil function, but the statistical treatment of PSF-convolved source templates through a full covariance model.
7. Recurring design choices, limitations, and directions
Across the literature, GPSF methods recurrently exchange restrictive optics assumptions for richer representations and more expensive inversions. In sparse Gaussian mixtures, the principal control knob is the support size 46, with an elbow search on 47 recommended for choosing the accuracy-efficiency operating point (Samuylov et al., 2018). In spatially variant deconvolution, the main burden is the dense operator or transmission matrix, together with measurement time and the conditioning of the inverse (Lee et al., 2017). In segmented semi-blind recovery, the practical issues are segmentation granularity, mask design, regularization choice, clustering of distant occulted pixels into super-pixels, bootstrap averaging, and hierarchical refinement (Hofmeister et al., 2022). In neural phase fitting, the stated limitation is the decay of the standard MLP plus positional-encoding spectrum at high frequencies; suggested remedies include periodic SIREN activations, higher-frequency Fourier features, transfer-learned initializations, and end-to-end optimization of upstream imaging metrics (Valouev, 2024). In CMB applications, performance depends on accurate beam knowledge, reliable input catalogs, and stable covariance estimation, and may degrade if source density is extremely high or beam non-Gaussianities are large beyond the symmetric Gaussian PSF assumption (Wang et al., 16 Aug 2025).
The most important interpretive point is terminological. “Generalized Point Spread Function Fitting” does not identify a single universally standardized formalism. Instead, it names a set of strategies that generalize PSF fitting along one or more axes: representation, spatial variance, blindness, physical forward modeling, basis choice, or statistical weighting. This suggests that the term functions as an umbrella for methods that keep the PSF—or PSF-convolved templates—inside the inverse problem at a higher fidelity than classical single-kernel fitting.