Speaker
Description
Muon tomography exploits the attenuation of cosmic-ray muons to image the density structure of geological and man-made objects, yet inverting measured flux into material properties remains a computationally demanding task. We present DiffPumas.jl, a Julia reimplementation of the PUMAS muon-transport library that is end-to-end differentiable via automatic differentiation (AD). The key challenge is that the standard iterative backward Monte Carlo transport -- with state-dependent control flow, many small steps, and discrete geometric decisions -- is poorly suited for source-to-source AD tools such as Zygote.jl. We overcome this by introducing a Direct CSDA formulation that cleanly separates the problem into a non-differentiable geometric phase (ray tracing through a tessellated cell grid) and a differentiable physics phase (energy loss, decay weighting, and atmospheric flux evaluation through smoothly interpolated physics tables). In this formulation the underground muon flux and its Jacobian weight reduce to closed-form compositions of table lookups, enabling Zygote to propagate exact gradients of the flux with respect to every per-cell density in a single backward pass. We validate the approach on a tessellated rock geometry, showing that AD gradients agree with finite differences while being obtained at a fraction of the cost. As a physics application we demonstrate sensitivity maps for aquifer detection at 1000 m depth: the gradient field immediately reveals which cells most influence the observed flux, providing a principled starting point for gradient-based tomographic inversion. We discuss current limitations -- the Direct CSDA path does not yet differentiate through straggling, discrete energy-loss events, or multiple Coulomb scattering -- and outline strategies (reparameterization tricks, pathwise estimators) for extending differentiability to the full stochastic transport.