用微分法计算稀疏Jacobian和Hessian
Computing Sparse Jacobians and Hessians Using Algorithmic Differentiation
摘要:
随机科学模型和机器学习优化估计器具有大量变量;因此计算大型稀疏雅可比矩阵和海森矩阵是重要的。数学微分(AD)大大减少了获得这些矩阵的稀疏模式和值所需的编程工作。我们提出了向前,反向和子图的方法计算稀疏雅可比和海森。由于子图法是一种新的方法,本文对它进行了特别的介绍。当使用子图计算稀疏雅可比和海森时,着色和压缩步骤是不必要的。复杂性分析表明,对于某些问题,子图方法预计要快得多。我们比较C++运算符重载实现的方法在ADOL-C和CppAD软件包使用的一些MINPACK-2测试问题。实验的设置方式使它们易于在不同的硬件,不同的系统,不同的编译器,其他测试问题和其他AD包上运行。设置时间是记录图形、计算稀疏度、着色、压缩和优化图形的时间。如果每次评估都需要设置,则子图实现对于稀疏雅可比矩阵具有类似的运行时间,对于稀疏Hessian矩阵具有更快的运行时间。
英文摘要:
Stochastic scientific models and machine learning optimization estimators have a large number of variables; hence computing large sparse Jacobians and Hessians is important. Algorithmic differentiation (AD) greatly reduces the programming effort required to obtain the sparsity patterns and values for these matrices. We present forward, reverse, and subgraph methods for computing sparse Jacobians and Hessians. Special attention is given the the subgraph method because it is new. The coloring and compression steps are not necessary when computing sparse Jacobians and Hessians using subgraphs. Complexity analysis shows that for some problems the subgraph method is expected to be much faster. We compare C++ operator overloading implementations of the methods in the ADOL-C and CppAD software packages using some of the MINPACK-2 test problems. The experiments are set up in a way that makes them easy to run on different hardware, different systems, different compilers, other test problem and other AD packages. The setup time is the time to record the graph, compute sparsity, coloring, compression, and optimization of the graph. If the setup is necessary for each evaluation, the subgraph implementation has similar run times for sparse Jacobians and faster run times for sparse Hessians.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。