Keeping Depth Uncertainty in the PET Forward Model with a Fused GPU Projector

Positron emission tomography (PET) scanners locate a radioactive tracer by detecting pairs of gamma photons that fly apart in opposite directions. Each detected pair defines a line, called a line of response, and the image is rebuilt from millions of such lines. The detectors are thick scintillator crystals. A photon that enters a crystal at a slant can stop anywhere along a path that is centimetres long, and a detector that reports only which crystal fired cannot tell where along that path the stop happened. The resulting blur is called parallax error. It grows toward the edge of the field of view, and it is worst in compact brain and small-animal scanners, which put the crystals close to the head to collect more photons. Practical scanners reduce parallax by splitting crystals into a few depth layers, an approach known as depth of interaction (DOI). The data pipeline then throws away most of what the detector knows. The front-end positioning algorithm computes a likelihood for every candidate crystal and layer, keeps only the most likely one, and the reconstruction draws a single thin line through the centre of that layer. With 10 mm layers, as in a two-layer 20 mm crystal, the leftover depth uncertainty is still several millimetres along a slanted path.

We propose to keep that uncertainty. Each recorded event would be modelled in the reconstruction as a weighted bundle of sub-rays, one for each plausible pair of interaction points. The weights come from the positioning likelihoods and from the physics of photon penetration along the actual incidence angle. Done naively, this multiplies projection cost and memory by the number of sub-rays, which is why nobody does it routinely. The engineering half of the proposal is a single fused GPU kernel that removes most of that overhead. It generates the sub-rays on the fly, sums their forward projections in registers, and back-projects them through a shared-memory tile with one flush to global memory per event. The scientific question is whether a two-layer detector with soft, depth-marginalized modelling can recover a meaningful part of the resolution that otherwise requires many more physical layers. It must also do better than the cheaper standard alternative, blur modelling in image space.

Core Claim

In listmode reconstruction, where events are processed one by one rather than binned into a sinogram, adding hard DOI layers costs almost nothing, because each event still has one line. What is expensive, and missing from the literature, is a forward model that treats each event as a mixture over interaction depths and candidate crystals. For event $i$ we model the expected count as

$$\bar y_i(\lambda) = \sum_{a=1}^{K} \sum_{b=1}^{K} w_{ia}\, w_{ib}\, \langle \ell_{ab}^{(i)}, \lambda \rangle + s_i .$$

Here $\lambda$ is the image, $\ell_{ab}^{(i)}$ is the system-matrix row of the sub-ray joining candidate interaction point $a$ on one detector to point $b$ on the other, and $s_i$ is the scatter and randoms background. The weights $w_{ia}$ are normalized per detector end. Each is proportional to the positioning likelihood of the observed light pattern for that candidate, multiplied by the attenuation probability $e^{-\mu d}$, where $d$ is the path length to that depth along the event's incidence direction and $\mu$ is the crystal's attenuation coefficient. This angle-dependent depth prior is what makes the model specific to parallax.

We make two claims. First, at matched image noise, this model improves peripheral resolution and contrast recovery over hard layer assignment, and over shift-variant image-space blur modelling, for two-layer crystals. Second, a fused kernel makes the cost of $K^2$ sub-rays grow far more slowly than $K^2$ in time, and leaves memory essentially flat. Replicating each event $K^2$ times in an existing projector cannot achieve this.

Where This Sits

Three papers motivate the gap. Feng et al.'s asymmetric brain PET study uses GATE Monte Carlo simulation to show that 20 mm LYSO crystals need about 10 DOI layers to resolve 0.8 mm rods. A practical two-layer design reaches roughly 1.0 mm in the temporal lobes, and fast time-of-flight timing helps little without depth information. Their reconstruction assigns events hard to layers and switches off in-crystal scatter. We keep their geometry and benchmarks but change the forward model, and we turn in-crystal scatter back on, because that is where soft assignment should matter most. Lerche et al.'s staggered-layer maximum-likelihood positioning computes likelihoods over discrete crystal and layer candidates at 22.5 million singles per second on 60 CPU threads, and returns only the argmax. It also reports two problems that soft weights could absorb rather than force into a decision: intercrystal scatter that cannot be separated from single-point absorption, and calibration failures on about 10% of blocks. Ma et al.'s Compton-camera uncertainty model argues that replacing a single idealized ray with an analytically bounded uncertainty region removes depth bias in listmode reconstruction. However, it treats the sensor as a plane and precomputes its geometry offline. We carry the same principle, model the uncertainty volume and not just its centre, into thick PET crystals, and we compute it on the fly.

One paper constrains the design and supplies the reconstruction setting. Schramm and Höller's listmode primal-dual method shows that listmode processing cuts memory from about 56 GB to 0.7 GB and that listmode projections run 3 to 5 times faster than sinogram projections. It models each event as one ideal line between planar detector surfaces and computes the sensitivity image from a full sinogram backprojection. We build on its listmode formulation. We also note that its memory argument means fusion should not be sold as rescuing listmode from an $L^2$ explosion. The real costs are the $K^2$ sub-rays per event and the depth-marginalized sensitivity image.

Three papers supply the kernel techniques. The gigavoxel registration work (FFDP) computes sampling grids on the fly in shared memory instead of storing them, which cut memory by up to 76.5%. We apply the same idea to system-matrix rows. FlashSchNet replaces contended atomic scatter-adds with contention-free segment reductions, which gave a 6.5× speedup. We borrow it to aggregate backprojection within a block before writing to global memory. Persistent-kernel and fused-recurrence designs, such as WaveRNN's persistent kernel and Simple Recurrent Units, inform how we keep the per-event state resident across the forward and backward halves of an update. None of these works touches tomographic projection or detector physics.

Research Program

The work has three components.

The first is a soft positioning output. We extend the staggered-layer likelihood computation so that, instead of an argmax, it stores the top few crystal and layer candidates per single with their log-likelihoods, compressed to a few bytes each. Within each candidate layer we place a small number of depth nodes. Their weights follow the exponential penetration prior along the incidence direction, which we know approximately from the opposing detector.

The second is the fused projector. One thread block, or one warp for small $K$, handles one event, or a short run of events sorted spatially. The kernel builds the $K$ interaction points at each end in registers and computes the bounding tube of the $K^2$ sub-rays. When the tube is thin, it stages the voxels the tube covers into shared memory, so neighbouring sub-rays reuse the same voxel loads. It traces the sub-rays with a standard interpolating ray tracer and reduces the weighted forward projection in registers. It then forms the update ratio $y_i/\bar y_i$ and back-projects into the shared tile, writing to global memory once per tile instead of once per sub-ray voxel.

Register pressure caps how large $K$ can be before occupancy collapses. That trade-off, mapped against GPU generation, is itself a result. The same kernel, driven by Monte Carlo-sampled detector pairs, computes the depth-marginalized sensitivity image. Without this step the soft model would be inconsistent.

The third is the reconstruction. We use listmode maximum-likelihood expectation maximization (MLEM, the standard iterative Poisson reconstruction), first with ordered subsets. If time permits we also use the primal-dual solver of Schramm and Höller, with the total-variation proximal step folded into the same pass.

Baselines

The naive reference point is hard assignment. Each event is placed at the centre of its argmax crystal and layer and projected as a single line by the same GPU listmode projector with fusion turned off. This is what current two-layer pipelines effectively do, and it fixes the operating point that everything else must beat.

The strongest image-quality competitor is hard assignment plus shift-variant image-space resolution modelling. Here a spatially varying blur kernel, fitted from point-source simulations at each radial position, is applied inside the MLEM loop. It is cheap and widely used, and it targets exactly the peripheral radial blur that parallax produces. We fit its kernels on the same GATE point-source data our method sees. Both methods get the same iterations and subsets, and post-filter widths for each are tuned on a held-out phantom so that background noise matches. Beating it means better rod resolvability and higher contrast recovery at equal background coefficient of variation in the peripheral and temporal regions, not just at one arbitrary iteration.

The upper reference is hard assignment with 10 simulated layers, the configuration that Feng et al. report resolves 0.8 mm rods. Their two-layer configuration reaches about 1.0 mm in the temporal lobes. Their reported contrast recovery in the XCAT brain is 27.2% with one layer at 200 ps and 44.5% with two layers at 50 ps. We first reproduce these numbers with hard assignment, within simulation noise, so that our comparisons are anchored. Our target is a two-layer soft model that lands measurably between the 1.0 mm and 0.8 mm figures at equal noise.

The key ablation for the computational claim is event replication. Each event is duplicated $K^2$ times with its weights and fed to the unfused projector. This takes two passes: a forward pass that sums the sub-rays through a global buffer, then a backprojection pass. It gives identical mathematics, so any difference is due to fusion alone. We run it on the same GPU and event stream, with matched tuning time for launch parameters. A second ablation compares uniform depth weights with the angle-dependent penetration prior, to isolate the parallax physics from the mere use of more rays.

For throughput, the only reference figure is Lerche et al.'s 22.5 million singles per second for CPU positioning alone. For a GPU projector with DOI depth marginalization, no reported result was found on Lacuna, so we measure it ourselves.

Why not just…?

Why not just use image-space resolution modelling? This is the real threat. Image-space blur assumes the blur depends only on position in the image. Parallax blur, however, depends on each event's incidence angle and on how confident the positioning was for that particular event. Two events crossing the same voxel at different angles have different uncertainty volumes, and an event with an ambiguous light pattern deserves a wider bundle than a clean one. An image-space kernel can only average over these cases. If, at matched noise, the image-space baseline equals the soft model in peripheral resolution and contrast, then the forward-model claim fails. The contribution would shrink to a faster projector, and we would report it that way.

Why not just add more physical layers? Feng et al. show that 10 layers work in simulation. They also list fabricating highly segmented crystals without losing light output, timing, or affordability as an open problem. The soft model is a software path to part of that gain on hardware that already exists, and the 10-layer simulation tells us exactly how much of the gap is left.

Why not just replicate events in an existing projector, or let a compiler fuse it? Replication is mathematically identical, which is why it is our main ablation. It multiplies event memory and global atomic traffic by $K^2$, and it needs an intermediate buffer between the forward and backward passes. The FFDP and FlashSchNet results show that general-purpose framework code materializes exactly such intermediates and suffers from contended scatter-adds. But this is evidence from other workloads. Our replication and Triton-level comparisons will show whether the gap holds for ray tracing, where the reuse of voxel loads between neighbouring sub-rays is the specific opportunity.

Why not just precompute the system matrix? A depth-marginalized row depends on the event's own likelihoods, not only on its crystal pair. So it cannot be precomputed per detector pair without discarding the per-event information that motivates the method.

Proposed Experiments and Decisive Checks

All imaging experiments use GATE v9.3. We simulate both the asymmetric brain geometry of Feng et al. and a simpler cylindrical brain ring, with 20 mm LYSO crystals and in-crystal Compton scatter enabled. The true interaction depth is recorded so that 2-layer and 10-layer readouts can be produced from the same photons. A simple light-sharing model emulates staggered-layer positioning likelihoods, including multi-crystal scatter events. The phantoms are a Derenzo rod phantom (0.8 to 5.0 mm rods), the 16-position point-source grid, and the XCAT brain at matched counts. We report radial and tangential FWHM against radial offset, smallest resolved rod sector, contrast recovery against background variability curves, and depth bias for off-axis point sources. If the BrainPET 7T line-source data of Lerche et al. can be obtained through collaboration, we will use it as a real-detector check of the soft positioning outputs. Otherwise all results are simulation-only, and we will say so.

The first decisive check is soft two-layer modelling against hard two-layer assignment with image-space blur modelling, at matched noise in the temporal region. This settles whether modelling uncertainty inside the forward model buys anything. The second asks how much of the 1.0 mm to 0.8 mm gap to the 10-layer reference the soft model closes. The third asks whether soft weights over intercrystal-scatter candidates reduce mispositioning blur compared with argmax, measured on the point-source subset whose ground truth is multi-crystal. The fourth sweeps $K$ from 1 to 6 per end on a single GPU, comparing fused and replicated execution. It measures events per second, peak memory, and occupancy, and locates where register spilling ends the advantage. If fusion keeps memory flat in $K$ and runs several times faster than replication at $K=4$, while the first check shows a resolution gain at equal noise, the proposal succeeds on both its scientific and its engineering halves.