Papers › Practical Quasi-Newton Methods for Training Deep Neural Networks

Practical Quasi-Newton Methods for Training Deep Neural Networks

16 Jun 2020NeurIPS 2020 12arXiv:2006.08877archive 2025-07-28

Donald Goldfarb, Yi Ren, Achraf Bahamou

We consider the development of practical stochastic quasi-Newton, and in particular Kronecker-factored block-diagonal BFGS and L-BFGS methods, for training deep neural networks (DNNs). In DNN training, the number of variables and components of the gradient n is often of the order of tens of millions and the Hessian has n² elements. Consequently, computing and storing a full n ×n BFGS approximation or storing a modest number of (step, change in gradient) vector pairs for use in an L-BFGS implementation is out of the question. In our proposed methods, we approximate the Hessian by a block-diagonal matrix and use the structure of the gradient and Hessian to further approximate these blocks, each of which corresponds to a layer, as the Kronecker product of two much smaller matrices. This is analogous to the approach in KFAC, which computes a Kronecker-factored block-diagonal approximation to the Fisher matrix in a stochastic natural gradient method. Because the indefinite and highly variable nature of the Hessian in a DNN, we also propose a new damping approach to keep the upper as well as the lower bounds of the BFGS and L-BFGS approximations bounded. In tests on autoencoder feed-forward neural network models with either nine or thirteen layers applied to three datasets, our methods outperformed or performed comparably to KFAC and state-of-the-art first-order stochastic methods.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2006.08877")

Code

Syntology Ran 0 of 18 code samples harvested from 1 repository linked to this paper; 18 have no recorded run.

By repository: official repository: 18 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

renyiryry/kbfgs_neurips2020_public officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 0 ran; 0 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

18unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from renyiryry/kbfgs_neurips2020_public. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Kron_BFGS_update renyiryry/kbfgs_neurips2020_public/kbfgs_utils.py official repository unverified MIT (permissive) · 01ba2a48b31d58ff · report
Kron_BFGS_update_per_layer renyiryry/kbfgs_neurips2020_public/kbfgs_utils.py official repository unverified MIT (permissive) · d687b5eff2f1fa97 · report
RMSprop_update renyiryry/kbfgs_neurips2020_public/first_order_methods.py official repository unverified MIT (permissive) · c77885d6ae47b66a · report
SGD_update renyiryry/kbfgs_neurips2020_public/first_order_methods.py official repository unverified MIT (permissive) · 04af493428e001d6 · report
extract_images renyiryry/kbfgs_neurips2020_public/datasets_utils.py official repository unverified MIT (permissive) · 851f949555ae8ab8 · report
extract_labels renyiryry/kbfgs_neurips2020_public/datasets_utils.py official repository unverified MIT (permissive) · 253a267c45bbe249 · report
get_BFGS_PowellHDamping renyiryry/kbfgs_neurips2020_public/kbfgs_utils.py official repository unverified MIT (permissive) · a18221d07d39fd01 · report
get_layer_forward renyiryry/kbfgs_neurips2020_public/models.py official repository unverified MIT (permissive) · c0a2398f1207cb43 · report
get_layers_params renyiryry/kbfgs_neurips2020_public/models.py official repository unverified MIT (permissive) · c9d6d71c4e0e2879 · report
get_loss_from_z renyiryry/kbfgs_neurips2020_public/functions_utils.py official repository unverified MIT (permissive) · f5d2d8c64fcc767a · report
get_post_activation renyiryry/kbfgs_neurips2020_public/models.py official repository unverified MIT (permissive) · 6f85f9a4f0b2a34b · report
get_second_order_caches renyiryry/kbfgs_neurips2020_public/training_utils.py official repository unverified MIT (permissive) · 9dcf57cd925b3499 · report
get_subtract renyiryry/kbfgs_neurips2020_public/functions_utils.py official repository unverified MIT (permissive) · 60c173061504e511 · report
get_zero_torch renyiryry/kbfgs_neurips2020_public/functions_utils.py official repository unverified MIT (permissive) · 9430a8a0000bd2e2 · report
kfac_update renyiryry/kbfgs_neurips2020_public/kfac_utils.py official repository unverified MIT (permissive) · 3ba907e6a27bff1d · report
maybe_download renyiryry/kbfgs_neurips2020_public/datasets_utils.py official repository unverified MIT (permissive) · e8a8b04a07deed58 · report
sample_from_pred_dist renyiryry/kbfgs_neurips2020_public/training_utils.py official repository unverified MIT (permissive) · 531e567a427b9d4b · report
train_initialization renyiryry/kbfgs_neurips2020_public/training_utils.py official repository unverified MIT (permissive) · 3f82340f557f2fa2 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections