arXiv Machine Learning By Adrian Hill, Guillaume Dalle

asdex: Automatic Sparse Differentiation in JAX

Read the original on arXiv Machine Learning →

The paper introduces asdex, a new toolkit for Automatic Sparse Differentiation (ASD) in the JAX ecosystem. It outlines a four‑step process—sparsity pattern detection, graph coloring, compressed differentiation, and decompression—to efficiently compute sparse Jacobian and Hessian matrices. asdex provides drop‑in replacements for jax.jacobian and jax.hessian that reduce the number of AD passes needed, especially for banded or otherwise sparsely structured derivatives.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Machine Learning.

arXiv Machine Learning
Nov 11

Block-Sparse Gauss-Newton Optimization of Finite Basis Physics-Informed Neural Networks: Sparse Automatic Differentiation Approach

The paper presents a Gauss-Newton optimization method tailored for finite basis physics-informed neural networks (FBPINNs). By exploiting the overlapping domain decomposition architecture, the authors induce block sparsity in the residual Jacobian and Gauss-Newton matrix, enabling sparse automatic differentiation via graph coloring. This approach reduces differentiation costs and memory usage, allowing the Gauss-Newton system to be assembled in block-sparse form and solved with sparse direct or preconditioned iterative solvers, leading to high accuracy and faster optimization on large multiscale PDE problems.

By Denis Korolev, Adrian Hill, Jeeeun Lee
arXiv Machine Learning
Sep 18

Truncated automatic sparse differentiation for machine learning interatomic potentials

The paper introduces truncated automatic sparse differentiation (ASD) to efficiently compute higher‑order derivatives, such as Hessians, for machine learning interatomic potentials (MLIPs). By exploiting the locality of atomic interactions, ASD identifies a sparsity pattern that allows exact Hessian calculation for large porous materials, while truncated ASD discards distant, small Hessian entries to achieve order‑of‑magnitude speedups with minimal loss in predictive accuracy. The authors demonstrate these methods on several foundational MLIPs, showing modest speedups for full ASD and significant gains for the truncated approach.

By Marcel F. Langer, Adrian Hill, Michele Ceriotti
arXiv Machine Learning
Oct 16

Self-Scaled Broyden Family of Quasi-Newton Methods in JAX

The article announces a JAX implementation of the Self‑Scaled Broyden family of quasi‑Newton methods, including BFGS, DFP, Broyden and their self‑scaled variants, as well as L‑BFGS. It also provides a Zoom line search that satisfies the strong Wolfe conditions. The implementation is built on the Optimistix library and is available on GitHub and PyPI.

By Ivan Bioli, Mikel Mendibe Abarrategi
arXiv Machine Learning
Sep 3

GRADSOLVE: fast exact gradients for ODE ensembles on GPUs

GRADSOLVE is an open‑source JAX library that provides fast, exact reverse‑mode gradients for low‑dimensional ordinary differential equation (ODE) ensembles on NVIDIA GPUs. It records the accepted steps of an adaptive solver and differentiates a fixed‑step replay, yielding the exact discrete adjoint at a lower computational cost than traditional checkpointed methods. Benchmarks show that GRADSOLVE’s forward kernel is 2.8× faster than DiffEqGPU.jl, and its gradient computation is 5.6–14.1× faster than Diffrax’s checkpointed adjoint while maintaining matched forward‑state accuracy across multiple GPU generations.

By Alessio Spurio Mancini