Branch-Extended Automatic Differentiation
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.
Create a lesson
Metadata
- Categories
- math.OC, cs.MS
Related papers
Viscosity Solutions of Hamilton-Jacobi-Bellman Integro-Differential Equations with Non-Lipschitz Running Costs
Shared title terminologymath.OCZihao Wu, Qi Zhang
Sharp Convergence of Extended Douglas--Rachford Splitting with Variable Relaxation
Shared title terminologymath.OCMatteo Santamaria
Two Communities, One Problem: Branch-and-Bound vs. A* for Resource-Constrained Project Scheduling
Shared title terminologymath.OCIzack Cohen, Dominik Kress, Lara Nehrke et al.
Branching Pattern Modeling: A Geometric Measure Theory Approach
Shared title terminologymath.OCQinglan Xia
Differential Flatness of Nonlinear Consensus Networks: A Graph-Theoretic Perspective
Shared title terminologymath.OCDaniel Zelazo, Timm Faulwasser
Can a Language Model Write the Weights? An Empirical Study of LLM-Written Scoring Networks for Column Generation and MILP Branching, with a Bus-Driver Scheduling Application
Shared title terminologymath.OCRenan Butkeraites