Fast Exact Multiplication by the Hessian
The DOI matches its Crossref record; 34 of the 34 references it cites were found in a registry or an index.
Abstract
Just storing the Hessian H (the matrix of second derivatives δ 2 E/δw i δw j of the error E with respect to each pair of weights) of a large neural network is difficult. Since a common use of a large matrix like H is to compute its product with various vectors, we derive a technique that directly calculates Hv, where v is an arbitrary vector. To calculate Hv, we first define a differential operator R v{f(w)} = (δ/δr)f(w + rv)|r=0, note that R v{▽w} = Hv and R v{w} = v, and then apply R v{·} to the equations used to compute ▽w. The result is an exact and numerically stable procedure for computing Hv, which takes about as much computation, and is about as local, as a gradient evaluation. We then apply the technique to a one pass gradient calculation algorithm (backpropagation), a relaxation gradient calculation algorithm (recurrent backpropagation), and two stochastic gradient calculation algorithms (Boltzmann machines and weight perturbation). Finally, we show that this technique can be used at the heart of many iterative techniques for computing various properties of H, obviating any need to calculate the full Hessian.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (1994) · Cited by 15,411
A scaled conjugate gradient algorithm for fast supervised learning
Møller, M. F. (1993) · Neural Networks · doi:10.1016/s0893-6080(05)80056-5 · Cited by 4,052
A learning algorithm for Boltzmann machines
Ackley, D. H., Hinton, G. E., & Sejnowski, T. J. (1985) · Cognitive Science · doi:10.1207/s15516709cog0901_7 · Cited by 3,402
(1989) · Cited by 3,214
A practical Bayesian framework for backpropagation networks
MacKay, D. J. C. (1992) · Neural Computation · doi:10.1162/neco.1992.4.3.448 · Cited by 2,917
Beyond Regression : "New Tools for Prediction and Analysis in the Behavioral Sciences
Werbos, P. J. (1974) · Medical Entomology and Zoology · Cited by 2,789
Beyond regression : new fools for prediction and analysis in the behavioral sciences
Werbos, P. J. (1974) · Medical Entomology and Zoology · Cited by 2,739
(1993) · CaltechAUTHORS (California Institute of Technology) · Cited by 1,498
Connectionist learning procedures
Hinton, G. E. (1989) · Artificial Intelligence · doi:10.1016/0004-3702(89)90049-0 · Cited by 1,430
Training with Noise is Equivalent to Tikhonov Regularization
Bishop, C. M. (1995) · Neural Computation · doi:10.1162/neco.1995.7.1.108 · Cited by 1,325
Cited by
Deep learning in neural networks: an overview
Schmidhuber, J. (2015) · Neural Networks · doi:10.1016/j.neunet.2014.09.003 · Cited by 18,570
Optimization Methods for Large-Scale Machine Learning
Bottou, L., Curtis, F. E., & Nocedal, J. (2018) · SIAM Review · doi:10.1137/16m1080173 · Cited by 3,128
Practical Recommendations for Gradient-Based Training of Deep Architectures
Bengio, Y. (2012) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-35289-8_26 · Cited by 2,259
“Other potential beneficial applications of such symbolic manipulations include parallelization and additional differential operators (such as the Roperator, recently implemented in Theano, which is very useful to compute the product of a Jacobian matrix partialf(x) ∂x or Hessian matrix ∂ (2)L(x,θ) ∂θ(2) with a vector…”
BackgroundMethodStatic Analysis of Shape in TensorFlow Programs
The Theano Development Team, Al‐Rfou, R., Alain, G., Almahairi, A., Angermueller, C., Bahdanau, D., Ballas, N., Bastien, F., Bayer, J., Belikov, A., et al. (2016) · arXiv (Cornell University) · doi:10.4230/lipics.ecoop.2020.15 · Cited by 1,589
Understanding Black-box Predictions via Influence Functions
Koh, P. W., & Liang, P. (2017) · arXiv · doi:10.48550/arxiv.1703.04730 · Cited by 1,514
“We discuss two techniques for approximating s test , both relying on the fact that the HVP of a single term in H ˆ θ , [ ∇ 2 θ L ( z i , ˆ θ )] v , can be computed for arbitrary v in the same time that ∇ θ L ( z i , ˆ θ ) would take, which is typically O ( p ) (Pearlmutter, 1994).”
MethodInfluentialTraining with Noise is Equivalent to Tikhonov Regularization
Bishop, C. M. (1995) · Neural Computation · doi:10.1162/neco.1995.7.1.108 · Cited by 1,325
LeCun, Y. A., Bottou, L., Orr, G. B., & Müller, K.-R. (2012) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-35289-8_3 · Cited by 1,264
Theano: new features and speed improvements
Bastien, F., Lamblin, P., Pascanu, R., Bergstra, J., Goodfellow, I., Bergeron, A., Bouchard, N., Warde-Farley, D., & Bengio, Y. (2012) · arXiv · doi:10.48550/arxiv.1211.5590 · Cited by 1,005
“The pipeline relies on the “R-operator”, introduced by Pearlmutter (1994), which is a mathematical operator that given a function f ( θ ) , f : R M → R N , the current parameter configuration θ t ∈ R M and a vector γ ∈ R M , efficiently computes the “Jacobian-vector” product θ = θ t γ , where θ = θ t…”
MethodIdentifying and attacking the saddle point problem in high-dimensional non-convex optimization
Dauphin, Y., Pascanu, R., Gulcehre, C., Cho, K., Ganguli, S., & Bengio, Y. (2014) · arXiv · doi:10.48550/arxiv.1406.2572 · Cited by 827
“Algorithm 2 Obtaining the Lanczos vectors Require: g ← − Require: ∆ θ (The past weight update) ∂θ 2 (Implemented efficient through L-Op (Pearlmutter, 1994))”
Hochreiter, S., & Schmidhuber, J. (1997) · Neural Computation · doi:10.1162/neco.1997.9.1.1 · Cited by 676
Audio-visual speech recognition using deep learning
Noda, K., Yamaguchi, Y., Nakadai, K., Okuno, H. G., & Ogata, T. (2015) · Applied Intelligence · doi:10.1007/s10489-014-0629-7 · Cited by 579
Towards Poisoning of Deep Learning Algorithms with Back-gradient Optimization
Muñoz-González, L., Biggio, B., Demontis, A., Paudice, A., Wongrassamee, V., Lupu, E. C., & Roli, F. (2017) · Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security · doi:10.1145/3128572.3140451 · Cited by 549
“The computation of the matrices ∇x c∇wL and ∇2 wL can also be avoided using Hessianvector products [30]:”
MethodGradient-based Hyperparameter Optimization through Reversible Learning
Maclaurin, D., Duvenaud, D., & Adams, R. P. (2015) · arXiv · doi:10.48550/arxiv.1502.03492 · Cited by 509
Bayesian Regularization and Pruning Using a Laplace Prior
Williams, P. M. (1995) · Neural Computation · doi:10.1162/neco.1995.7.1.117 · Cited by 377
Mackay, D. J. C. (1995) · Network Computation in Neural Systems · doi:10.1088/0954-898x/6/3/011 · Cited by 915
A review of automatic differentiation and its efficient implementation
Margossian, C. C. (2019) · WIREs Data Mining and Knowledge Discovery · doi:10.1002/widm.1305 · Cited by 321
Distributional Smoothing with Virtual Adversarial Training
Miyato, T., Maeda, S., Koyama, M., Nakae, K., & Ishii, S. (2015) · arXiv (Cornell University) · doi:10.48550/arxiv.1507.00677 · Cited by 317
Markov Logic: An Interface Layer for Artificial Intelligence
Domingos, P., & Lowd, D. (2009) · Synthesis lectures on artificial intelligence and machine learning · doi:10.2200/s00206ed1v01y200907aim007 · Cited by 314
Entropy-SGD: biasing gradient descent into wide valleys*
Chaudhari, P., Choromanska, A., Soatto, S., LeCun, Y., Baldassi, C., Borgs, C., Chayes, J., Sagun, L., & Zecchina, R. (2019) · Journal of Statistical Mechanics: Theory and Experiment · doi:10.1088/1742-5468/ab39d9 · Cited by 291
Accelerated training of conditional random fields with stochastic gradient methods
Vishwanathan, S. V. N., Schraudolph, N. N., Schmidt, M. W., & Murphy, K. P. (2006) · Proceedings of the 23rd international conference on Machine learning - ICML '06 · doi:10.1145/1143844.1143966 · Cited by 278
Neural Network Exploration Using Optimal Experiment Design
Cohn, D. A. (1996) · Neural Networks · doi:10.1016/0893-6080(95)00137-9 · Cited by 266
Fast Curvature Matrix-Vector Products for Second-Order Gradient Descent
Schraudolph, N. N. (2002) · Neural Computation · doi:10.1162/08997660260028683 · Cited by 265
Differentiable Programming Tensor Networks
Liao, H.-J., Liu, J.-G., Wang, L., & Xiang, T. (2019) · Physical Review X · doi:10.1103/physrevx.9.031041 · Cited by 251
Luo, X., Zhou, M., Li, S., Xia, Y., You, Z.-H., Zhu, Q., & Leung, H. (2018) · IEEE Transactions on Cybernetics · doi:10.1109/tcyb.2017.2685521 · Cited by 242
“Note that the R-operation is actually a special case of the reverse-mode of algorithmic differentiation which enables the exact computation of an arbitrary directional derivate [33]–[36].”
BackgroundInfluentialHyperparameter optimization with approximate gradient
Pedregosa, F. (2016) · arXiv · doi:10.48550/arxiv.1602.02355 · Cited by 217
“Efficient schemes for multiplication by the Hessian can be derived for least squares, logistic regression (Lin et al., 2008) and other general loss functions (Pearlmutter, 1994).”
MethodTraining Deep and Recurrent Networks with Hessian-Free Optimization
Martens, J., & Sutskever, I. (2012) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-35289-8_27 · Cited by 202
“In the optimization theory literature, the method is known as " forwarddifferentiation " [35] [30], although we follow the exposition of Pearlmutter [31], who rediscovered it for neural networks and other related models.”
MethodWang, T., Zhu, J.-Y., Torralba, A., & Efros, A. A. (2018) · arXiv · doi:10.48550/arxiv.1811.10959 · Cited by 194
“Specifically, back-gradient optimization formulates the necessary second order terms into efficient Hessian-vector products (Pearlmutter, 1994), which can be easily calculated with modern automatic differentiation systems such as PyTorch (Paszke et al., 2017).”
BackgroundStronger Data Poisoning Attacks Break Data Sanitization Defenses
Koh, P. W., Steinhardt, J., & Liang, P. (2018) · arXiv · doi:10.48550/arxiv.1811.00741 · Cited by 189
Multimodal integration learning of robot behavior using deep neural networks
Noda, K., Arie, H., Suga, Y., & Ogata, T. (2014) · Robotics and Autonomous Systems · doi:10.1016/j.robot.2014.03.003 · Cited by 189
“The name “Hessian-free” indicates that the CG does not necessarily require the costly explicit Hessian matrix; instead, the matrix-vector product between the Hessian matrix H or the Gauss-Newton matrix G and gradient vector p is sufficient (for more details on the concrete implementation, see [28], [30], and [31]).”
BackgroundStronger data poisoning attacks break data sanitization defenses
Koh, P. W., Steinhardt, J., & Liang, P. (2022) · Machine Learning · doi:10.1007/s10994-021-06119-y · Cited by 187
“Computing inverse Hessian-vector products To efficiently compute ∂?̂? ∂x̃ in (10), we follow Koh and Liang (2017) and use a combination of fast Hessian-vector products (Pearlmutter 1994) and a conjugate gradient solver (Martens, 2010); see also Agarwal et al.”
MethodOptimization for Deep Learning: An Overview
Sun, R.-Y. (2020) · Journal of the Operations Research Society of China · doi:10.1007/s40305-020-00309-6 · Cited by 181
“One of the key tricks, based on [118,119], is how to compute Hessian-vector products efficiently by backpropagation, without computing the full Hessian.”
BackgroundAn Investigation into Neural Net Optimization via Hessian Eigenvalue Density
Ghorbani, B., Krishnan, S., & Xiao, Y. (2019) · arXiv · doi:10.48550/arxiv.1901.10159 · Cited by 144
“Explicit representation of the Hessian matrix is infeasible when n is large, but using Pearlmutter’s trick [22] we are able to compute Hessian-vector products for any chosen vector.”
MethodUnrolling SGD: Understanding Factors Influencing Machine Unlearning
Thudi, A., Deza, G., Chandrasekaran, V., & Papernot, N. (2022) · 2022 IEEE 7th European Symposium on Security and Privacy (EuroS&P) · doi:10.1109/eurosp53844.2022.00027 · Cited by 135
“In general, it is possible to implement hessian products in O(n) [32].”
BackgroundMixed-Privacy Forgetting in Deep Networks
Golatkar, A., Achille, A., Ravichandran, A., Polito, M., & Soatto, S. (2021) · 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr46437.2021.00085 · Cited by 125
Machine Unlearning of Features and Labels
Warnecke, A., Pirch, L., Wressnegger, C., & Rieck, K. (2021) · arXiv · doi:10.48550/arxiv.2108.11577 · Cited by 119
Bejan, I., Sokolov, A., & Filippova, K. (2023) · Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2023.emnlp-main.625 · Cited by 7
LOGAN: Latent Optimisation for Generative Adversarial Networks
Wu, Y., Donahue, J., Balduzzi, D., Simonyan, K., & Lillicrap, T. (2019) · arXiv · doi:10.48550/arxiv.1912.00953
Metadata
- Authors
- Pearlmutter, B. A.
- Venue
- Neural Computation
- Publisher
- MIT Press - Journals
- Published
- 1994-01
- Volume
- 6
- Issue
- 1
- Pages
- 147-160
- ISSN
- 0899-7667 (ISSN-L)
- 1530-888X
- OpenAlex
- W2006903949
- Cited by
- 540
- References
- 34
- FWCI
- 8.15
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.