A Portable and Versatile Limited-Memory BFGS Implementation in PETSc/TAO
Hansol Suh, Tobin Isaac, Alp Dener, Todd Munson, Hong Zhang, Richard Tran Mills
Abstract
The limited-memory BFGS (L-BFGS) Hessian update scheme is the critical kernel in many quasi-Newton optimization algorithms. The most common approach to implementing L-BFGS uses 2m sequential rank-1 updates as part of solving a linear system when there are m history steps. The performance of this approach suffers when the latency of synchronization is significant, and its poor temporal locality increases the memory traffic when vectors do not fit in cache. The compact dense representation of L-BFGS results in an approach that has minimal synchronization latency and better temporal locality, but it requires an additional pass over the basis vectors and an additional basis that must be recomputed when the B0 matrix changes as in variable-metric methods. In the Portable Extensible Toolkit for Scientific Computation and the Toolkit for Advanced Optimization (PETSc/TAO), we have implemented an intermediate dense formulation of BFGS that retains most of the good characteristics of both the recursive and compact dense approaches. We report single-node performance tests of these implementations on the U.S. Department of Energy's Polaris and Frontier machines, testing both GPU-based and CPU-based computations.
Create a lesson
Related papers
StarMPI-SVD: Distributed-Memory Parallel Star-M Tensor SVD
Shared title terminology · Naman Pesricha, Grey Ballard, Srinivas Eswar et al.
Neural Memory Orchestration
Shared title terminology · Michael Zizov, Boris Morose
XM-Sparse: High-Throughput Sparse-Attention LLM Serving over Scale-up Memory Pools
Shared title terminology · Yijun Sun, Xudong Liao, Zhuobin Huang et al.
Performance-Portable Exact Gaussian Process Regression in Python via SYCL and oneMath
Shared title terminology · Alexander Strack, Marcel Graf, Alexander Van Craen et al.
Reconstructing Fine-grained Memory Reuse Structure in GPU Kernels
Shared title terminology · Yanbo Zhao, Yueming Hao, Zecheng Li et al.
Performance Portability Explained: Insights from accelerating ICON microphysics
Shared title terminology · Faveo Hörold, Georgiana Mania, Panagiotis Adamidis et al.