skip to main content
research-article

Computing the sparsity pattern of Hessians using automatic differentiation

Published:05 March 2014Publication History
Skip Abstract Section

Abstract

We compare two methods that calculate the sparsity pattern of Hessian matrices using the computational framework of automatic differentiation. The first method is a forward-mode algorithm by Andrea Walther in 2008 which has been implemented as the driver called hess_pat in the automatic differentiation package ADOL-C. The second is edge_push_sp, a new reverse mode algorithm descended from the edge_pushing algorithm for calculating Hessians by Gower and Mello in 2012. We present complexity analysis and perform numerical tests for both algorithms. The results show that the new reverse algorithm is very promising.

References

  1. Jason Abate, Christian Bischof, Lucas Roh, and Alan Carle. 1997. Algorithms and design for a second-order automatic differentiation module. In Proceedings of the International Symposium on Symbolic and Algebraic Computation. ACM, New York, 149--155. DOI:http://dx.doi.org/10.1145/258726.258770 Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. C. Bischof, G. Corliss, and A. Griewank. 1993. Structured second- and higher-order derivatives through univariate Taylor series. Optimization Methods Softw. 2, 3, 211--232.Google ScholarGoogle ScholarCross RefCross Ref
  3. I. Bongartz, A. R. Conn, Nick Gould, and Ph. L. Toint. 1995. CUTE: Constrained and unconstrained testing environment. ACM Trans. Math. Softw. 21, 1, 123--160. DOI:http://dx.doi.org/10.1145/200979.201043 Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Bruce Christianson. 1992. Automatic Hessians by reverse accumulation. IMA J. Numer. Anal. 12, 2, 135--150. DOI:http://dx.doi.org/10.1093/imanum/12.2.135Google ScholarGoogle ScholarCross RefCross Ref
  5. D. M. Gay. 1996. More AD of nonlinear AMPL models: Computing Hessian information and exploiting partial separability. In Computational Differentiation: Techniques, Applications, and Tools, M. Berz, C. Bischof, G. Corliss and A. Griewank, Eds., SIAM, Philadelphia, 173--184.Google ScholarGoogle Scholar
  6. Assefaw Hadish Gebremedhin, Fredrik Manne, and Alex Pothen. 2005. What color is your Jacobian? Graph coloring for computing derivatives. SIAM Rev. 47, 4, 629--705. DOI:http://dx.doi.org/10.1137/S0036144504444711 Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Assefaw H. Gebremedhin, Arijit Tarafdar, Alex Pothen, and Andrea Walther. 2009. E_cient computation of sparse Hessians using coloring and automatic differentiation. INFORMS J. Comput. 21, 2, 209--223. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. R. M. Gower and M. P. Mello. 2012. A new framework for the computation of Hessians. Optimization Methods Softw. 27, 2, 251--273. DOI:http://dx.doi.org/10.1080/10556788.2011.580098Google ScholarGoogle ScholarCross RefCross Ref
  9. Andreas Griewank. 1993. Some bounds on the complexity of gradients, Jacobians, and Hessians. In Complexity in Numerical Optimization, World Science Publications, River Edge, NJ, 128--162.Google ScholarGoogle Scholar
  10. Andreas Griewank, David Juedes, and Jean Utke. 1996. Algorithm 755: ADOL-C: a package for the automatic differentiation of algorithms written in C/C++. ACM Trans. Math. Softw. 22, 2, 131--167. DOI:http://dx.doi.org/10.1145/229473.229474 Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Andreas Griewank and Andrea Walther. 2000. Algorithm 799: revolve: An implementation of checkpointing for the reverse or adjoint mode of computational differentiation. ACM Trans. Math. Softw. 26, 1, 19--45. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Andreas Griewank and Andrea Walther. 2008. Evaluating derivatives: Principles and Techniques of Algorithmic Differentiation. 2nd Ed. SIAM, Philadelphia, PA. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. W. Hock and K. Schittkowski. 1980. Test examples for nonlinear programming codes. J. Optimization Theory Appl. 30, 1, 127--129.Google ScholarGoogle ScholarCross RefCross Ref
  14. Ladislav Luksan and Jan Vlcek. 2003. Test problems for unconstrained optimization. Tech. Rep. 897. Academy of Sciences of the Czech Republic.Google ScholarGoogle Scholar
  15. Ph. L. Toint and A. Griewank. 1982. On the unconstrained optimization of partially separable objective functions. In Nonlinear Optimization, Academic Press, London, 301--312.Google ScholarGoogle Scholar
  16. E. Varnik. 2011. Exploitation of structural sparsity in algorithmic differentiation. Ph.D. dissertation, RWTH Aachen.Google ScholarGoogle Scholar
  17. Andrea Walther. 2008. Computing sparse Hessians with automatic differentiation. ACM Trans. Math. Softw. 34, 1, Art. 3. DOI:http://dx.doi.org/10.1145/1322436.1322439 Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. A. Walther. 2012. On the efficient computation of sparsity patterns for Hessians. In Recent Advances in Algorithmic Differentiation, Lecture Notes in Computational Science and Engineering, vol. 87, 139--149.Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Computing the sparsity pattern of Hessians using automatic differentiation

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM Transactions on Mathematical Software
      ACM Transactions on Mathematical Software  Volume 40, Issue 2
      February 2014
      161 pages
      ISSN:0098-3500
      EISSN:1557-7295
      DOI:10.1145/2594412
      Issue’s Table of Contents

      Copyright © 2014 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 5 March 2014
      • Accepted: 1 May 2013
      • Revised: 1 September 2012
      • Received: 1 December 2011
      Published in toms Volume 40, Issue 2

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article
      • Research
      • Refereed

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader