Branch-Extended Automatic Differentiation
Jan H\"uckelheim, Jeffrey Larson, Matt Menickelly
Key points
From the paper's conclusion- We present branch-extended automatic differentiation (BEAD), a software package that provides information about inactive branches of piecewise-differentiable functions, intended for use in nonsmooth optimization algorithms.
Abstract
We present branch-extended automatic differentiation (BEAD), a software package that provides information about inactive branches of piecewise-differentiable functions, intended for use in nonsmooth optimization algorithms. BEAD is implemented in Python, building on the popular JAX framework. For supported nonsmooth operations such as abs and max, BEAD identifies alternative branches within tolerance from the given input, and computes gradients of the resulting branches extended to the given input. Such information has been previously used for robust optimization methods, but has required error-prone and tedious manual differentiation, unlike BEAD, which is fully automated for functions written in NumPy-like JAX code. Our experiments show that our approach is as accurate as manually written derivative code, and offers more flexibility in modifying the function and choosing between branch-discovery rules. While we were originally motivated by the manifold sampling algorithm for nonsmooth composite objectives, we also integrate BEAD branch-extension gradients into a nonsmooth BFGS-SQP solver. On two small nonsmooth test problems, the resulting path-aware search resolves failures or substantially reduces the number of evaluations required by the BFGS-SQP solver.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- asdex: Automatic Sparse Differentiation in JAXarXiv · 2026
- Backpropagation Through Compiled CodeACM Transactions on Mathematical Software · 2026
- Coordinate-Free Automatic DifferentiationarXiv · 2026
- Recursive Improvement of a Differentiable Scientific Software EcosystemarXiv · 2026
- Nonmonotone Coderivative-Based Newton Methods for Nonsmooth Optimization with Machine Learning ApplicationsarXiv · 2026
- FOMTools: Development and AI-Assisted Code Generation for First-Order MethodsarXiv · 2026