The Memory Scaling of Reverse-Mode Differentiation in Particle Accelerator Simulations with Space Charge
Arjun DhamraitEZEdoardo Zoni
Axel HueblJQJi QiangChad E. MitchellRRRyan RousselJKJan KaiserCXChenran Xu
Jean-Luc VayRemi Lehe Arjun Dhamrait
EZEdoardo Zoni

Axel Huebl
JQJi Qiang
Chad E. Mitchell
RRRyan Roussel
JKJan Kaiser
CXChenran Xu

Jean-Luc Vay
Remi Lehe
+10
This paper studies the memory scaling of reverse-mode automatic differentiation in particle accelerator simulations that include space charge. Using the PyTorch-based code Cheetah, the authors find that memory usage grows linearly with the number of macroparticles and cells, and is proportional to the number of space charge kicks. This scaling law allows practitioners to evaluate whether a given differentiable simulation is feasible under hardware memory constraints.

arXiv ·
· May 26, 2026