...
首页> 外文期刊>INFORMS journal on computing >Efficient Computation of Sparse Hessians Using Coloring and Automatic Differentiation
【24h】

Efficient Computation of Sparse Hessians Using Coloring and Automatic Differentiation

机译:利用着色和自动微分有效地计算稀疏的粗麻布

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

The computation of a sparse Hessian matrix H using automatic differentiation (AD) can be made efficient using the following four-step procedure: (1) Determine the sparsity structure of H, (2) obtain a seed matrix S that defines a column partition of H using a specialized coloring on the adjacency graph of H, (3) compute the compressed Hessian matrix B = HS, and (4) recover the numerical values of the entries of H from B. The coloring variant used in the second step depends on whether the recovery in the fourth step is direct or indirect: a direct method uses star coloring and an indirect method uses acyclic coloring. In an earlier work, we had designed and implemented effective heuristic algorithms for these two NP-hard coloring problems. Recently, we integrated part of the developed software with the AD tool ADOL-C, which has recently acquired a sparsity detection capability. In this paper, we provide a detailed description and analysis of the recovery algorithms and experimentally demonstrate the efficacy of the coloring techniques in the overall process of computing the Hessian of a given function using ADOL-C as an example of an AD tool. We also present new analytical results on star and acyclic coloring of chordal graphs. The experimental results show that sparsity exploitation via coloring yields enormous savings in runtime and makes the computation of Hessians of very large size feasible. The results also show that evaluating a Hessian via an indirect method is often faster than a direct evaluation. This speedup is achieved without compromising numerical accuracy.
机译:使用以下四个步骤,可以使使用自动微分(AD)的稀疏Hessian矩阵H的计算效率更高:(1)确定H的稀疏结构,(2)获得定义矩阵列分区的种子矩阵S H在H的邻接图上使用专门的着色​​,(3)计算压缩的Hessian矩阵B = HS,并且(4)从B恢复H的条目的数值。第二步中使用的着色变量取决于第四步中的恢复是直接还是间接:直接方法使用星形着色,间接方法使用非循环着色。在较早的工作中,我们针对这两个NP难着色问题设计并实现了有效的启发式算法。最近,我们将部分开发的软件与AD工具ADOL-C集成在一起,该工具最近已经获得了稀疏性检测功能。在本文中,我们提供了对恢复算法的详细描述和分析,并通过实验证明了着色技术在使用ADOL-C作为AD工具示例计算给定功能的Hessian的整个过程中的功效。我们还提出了关于弦图的星形和无环着色的新分析结果。实验结果表明,通过着色进行稀疏性开发可节省大量的运行时间,并使大型Hessian的计算变得可行。结果还表明,通过间接方法评估Hessian通常比直接评估更快。在不影响数值精度的情况下实现了这种加速。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号