Reproduce “Branches of a Tree: Taking Derivatives of Programs with Discrete and Branching Randomness in High Energy Physics” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Michael Kagan, Lukas Heinrich

Researchers from SLAC National Accelerator Laboratory and Technical University of Munich adapt and evaluate gradient estimation techniques for programs featuring discrete and branching randomness common in high-energy physics simulations. Their work demonstrates that Stochastic Automatic Differentiation and score functions with control variates effectively enable stable, gradient-based optimization for tasks such as detector design, significantly reducing variance compared to traditional methods and facilitating convergence even with small sample sizes.

Key insights

  • Gradient estimators, particularly Score Function with baselines and Stochastic AD, can effectively compute derivatives for programs with discrete and branching randomness.
  • Variance reduction techniques, such as control variates in Score Function and random number reuse in Stochastic AD, are crucial for making these estimators practical for optimization.
  • The development of a fully differentiable branching program is demonstrated, enabling gradient computation through complex, stochastic branching processes in simulations.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.