Gradient-Free Optimization for Matrix functions
Sawyer Allen, Cash Cherry, Aidan Eck, Stephen Becker, Daniel McKenzie
Abstract
We consider the task of optimizing smooth, possibly non-convex functions of a matrix variable given access only to directional derivatives rather than full gradients. This setting arises when fine-tuning large neural networks on consumer-grade hardware: the network's weights are matrices, memory constraints rule out backward-mode automatic differentiation, but directional derivatives remain available through forward mode. We frame gradient estimation in this setting as a structured recovery problem, in the spirit of signal processing. From this perspective we provide three contributions. First, we introduce an alternative to the standard random gradient estimator; the difference corresponds to replacing the adjoint of the sampling operator with its pseudoinverse. Second, when the gradient satisfies an approximate low-rank condition, techniques from matrix sensing yield a family of highly accurate gradient estimators that drop into any first-order method. Third, we note that while the computational cost of such estimators is high, this can be amortized by combining them with a matrix-aware optimizer such as spectral descent. Specifically, the gradient estimator computes a factorization of the gradient, allowing for the projection step of spectral descent to be done at no extra cost. We demonstrate our findings with two careful numerical experiments on synthetic functions with approximately low-rank gradients. We show that by exploiting this low-rank property one obtains much faster convergence to good approximate solutions.
Create a lesson
Related papers
DOFFO_TR: a Decentralized Objective Function-Free Optimization method with Trust-Region
Shared title terminologymath.OCStefania Bellavia, Greta Malaspina, Benedetta Morini
Optimal Parameter-Free Gradient Minimization in \ell_p Geometry
Shared title terminologymath.OCShuting Yang, Yuning Yang
An Adaptive Sampling Interior-Point Trust-Region Method for Derivative-Free Stochastic Optimization with General Constraints
Shared title terminologymath.OCNicole Felice, Sara Shashaani, Lindon Roberts
A Primer on Matrix Subspace Optimization
Shared title terminologymath.OCYihan Jin, Hengrui Zhang, Wenxuan Wu et al.
Quadratic Envelope Search for Evaluation-Efficient Derivative-Free Optimization
Shared title terminologymath.OCFatih Demirci, Lorenzo Sabug, Urban Fasel et al.
Learning Maximal Lyapunov Functions for Deep Reinforcement Learning-based Controllers on Matrix Lie Groups
Shared title terminologymath.OCHamza Tariq, Matthieu Barreau, Adeel Akhtar