BackPACK: Packing more into backprop
Not on the map. Why?
Abstract (arXiv)
Automatic differentiation frameworks are optimized for exactly one thing: computing the average mini-batch gradient. Yet, other quantities such as the variance of the mini-batch gradients or many approximations to the Hessian can, in theory, be computed efficiently, and at the same time as the gradient. While these quantities are of great interest to researchers and practitioners, current deep-learning software does not support their automatic calculation. Manually implementing them is burdensome, inefficient if done naively, and the resulting code is rarely shared. This hampers progress in deep learning, and unnecessarily narrows research to focus on gradient descent and its variants; it also complicates replication studies and comparisons between newly developed methods that require those quantities, to the point of impossibility. To address this problem, we introduce BackPACK, an efficient framework built on top of PyTorch, that extends the backpropagation algorithm to extract additional information from first- and second-order derivatives. Its capabilities are illustrated by benchmark reports for computing additional quantities on deep neural networks, and an example application by testing several recent curvature approximations for optimization.
Key facts. Cited by 77 papers in the map (data through 7 Oct 2026). First posted on arXiv 23 Dec 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 18; 2022: 13; 2023: 16; 2024: 15; 2025: 8; 2026: 7.
77 papers.
Sort:
By area:
- 2021Opacus: User-Friendly Differential Privacy Library in PyTorchcited by 375
- 2021Laplace Redux -- Effortless Bayesian Deep Learningcited by 359
- 2021Fishr: Invariant Gradient Variances for Out-of-Distribution Generalizationcited by 186
- 2021Deep Learning with Label Differential Privacycited by 113
- 2021Scalable Marginal Likelihood Estimation for Model Selection in Deep Learningcited by 105
- 2021Large Scale Private Learning via Low-rank Reparametrizationcited by 87
- 2023Kronecker-Factored Approximate Curvature for Modern Neural Network Architecturescited by 49
- 2022Uncertainty-guided Source-free Domain Adaptationcited by 46
- 2022Invariance Learning in Deep Neural Networks with Differentiable Laplace Approximationscited by 42
- 2022RelaxLoss: Defending Membership Inference Attacks without Losing Utilitycited by 35
- 2021Deep Active Learning by Leveraging Training Dynamicscited by 32
- 2023Loss-Curvature Matching for Dataset Selection and Condensationcited by 32
38 more
- 2021On the Generalization of Models Trained with SGD: Information-Theoretic Bounds and Implicationscited by 31
- 2022RegMixup: Mixup as a Regularizer Can Surprisingly Improve Accuracy and Out Distribution Robustnesscited by 27
- 2021Mixtures of Laplace Approximations for Improved Post-Hoc Uncertainty in Deep Learningcited by 25
- 2024Kronecker-Factored Approximate Curvature for Physics-Informed Neural Networkscited by 21
- 2023ASDL: A Unified Interface for Gradient Preconditioning in PyTorchcited by 20
- 2021ViViT: Curvature access through the generalized Gauss-Newton's low-rank structurecited by 16
- 2022Model-agnostic out-of-distribution detection using combined statistical testscited by 14
- 2022Posterior Refinement Improves Sample Efficiency in Bayesian Neural Networkscited by 14
- 2021Does the Data Induce Capacity Control in Deep Learning?cited by 13
- 2025Fishers for Free? Approximating the Fisher Information Matrix by Recycling the Squared Gradient Accumulatorcited by 13
- 2021Correcting Momentum in Temporal Difference Learningcited by 12
- 2022Two Facets of SDE Under an Information-Theoretic Lens: Generalization of SGD via Training Trajectories and via Terminal Statescited by 11
- 2022Laplacian Autoencoders for Learning Stochastic Representationscited by 10
- 2023Promises and Pitfalls of the Linearized Laplace in Bayesian Optimizationcited by 10
- 2023Stochastic Marginal Likelihood Gradients using Neural Tangent Kernelscited by 10
- 2024Trade-Offs of Diagonal Fisher Information Matrix Estimatorscited by 10
- 2023Bayesian Metric Learning for Uncertainty Quantification in Image Retrievalcited by 9
- 2025Position: Curvature Matrices Should Be Democratized via Linear Operatorscited by 9
- 2021Improving Differentially Private SGD via Randomly Sparsified Gradientscited by 8
- 2022Rethinking Value Function Learning for Generalization in Reinforcement Learningcited by 8
- 2022HesScale: Scalable Computation of Hessian Diagonalscited by 8
- 2023Improving Realistic Worst-Case Performance of NVCiM DNN Accelerators through Training with Right-Censored Gaussian Noisecited by 8
- 2021Cockpit: A Practical Debugging Tool for the Training of Deep Neural Networkscited by 7
- 2021TENGraD: Time-Efficient Natural Gradient Descent with Exact Fisher-Block Inversioncited by 7
- 2021Understanding Memorization from the Perspective of Optimization via Efficient Influence Estimationcited by 7
- 2022Adaptive Learning Rates for Faster Stochastic Gradient Methodscited by 7
- 2024Unknown Domain Inconsistency Minimization for Domain Generalizationcited by 7
- 2024Normalization Layer Per-Example Gradients are Sufficient to Predict Gradient Noise Scale in Transformerscited by 7
- 2023ISAAC Newton: Input-based Approximate Curvature for Newton's Methodcited by 6
- 2023Taxonomy Adaptive Cross-Domain Adaptation in Medical Imaging via Optimization Trajectory Distillationcited by 6
- 2024Variance reduction of diffusion model's gradients with Taylor approximation-based control variatecited by 6
- 2023Understanding the Generalization Ability of Deep Learning Algorithms: A Kernelized Renyi's Entropy Perspectivecited by 5
- 2024Revisiting Scalable Hessian Diagonal Approximations for Applications in Reinforcement Learningcited by 5
- 2023Learning Capacity: A Measure of the Effective Dimensionality of a Modelcited by 4
- 2024Batch size invariant Adamcited by 4
- 2024Clip Body and Tail Separately: High Probability Guarantees for DPSGD with Heavy Tailscited by 4
- 2022Cold Posteriors through PAC-Bayescited by 3
- 2024Bayes without Underfitting: Fully Correlated Deep Learning Posteriors via Alternating Projectionscited by 3
50 most cited of 77 All 77 (JSON)
- 2026FlashBoB: I/O-Efficient Exact Backward-over-Backward for Softmax Attention21 Sep 2026
- 2026Reducing Per-Sample Interference in Stochastic Optimization28 Jun 2026
- 2026Bayesian meta-learning for modeling Alzheimer's disease progression1 Jun 2026
- 2026Inter-Layer Hessian Analysis of Neural Networks with DAG Architectures13 Apr 2026
- 2026Efficient Bilevel Optimization with KFAC-Based Hypergradients31 Mar 2026
- 2026Second-Order, First-Class: A Composable Stack for Curvature-Aware Training26 Mar 2026
- 2026Causal Mechanism Reduction: Mechanism Replacement for Neural Network Pruning and Abstraction27 Feb 2026
- 2025CLAPS: Aleatoric-Epistemic Scaling via Last-Layer Laplace for Conformal Regression1 Dec 2025
- 2025SAGE: Streaming Agreement-Driven Gradient Sketches for Representative Subset Selection2 Oct 2025
- 2025Per-example gradients: a new frontier for understanding and improving optimizers30 Sep 2025
- 2025Tackling Federated Unlearning as a Parameter Estimation Problem26 Aug 2025
- 2025Fishers for Free? Approximating the Fisher Information Matrix by Recycling the Squared Gradient Accumulator24 Jul 2025
38 more
- 2025Deterministic Bounds and Random Estimates of Metric Tensors on Neuromanifolds19 May 2025
- 2025Connecting Parameter Magnitudes and Hessian Eigenspaces at Scale using Sketched Methods20 Apr 2025
- 2025Position: Curvature Matrices Should Be Democratized via Linear Operators31 Jan 2025
- 2024Stein Variational Newton Neural Network Ensembles4 Nov 2024
- 2024Normalization Layer Per-Example Gradients are Sufficient to Predict Gradient Noise Scale in Transformers1 Nov 2024
- 2024TrAct: Making First-layer Pre-Activations Trainable31 Oct 2024
- 2024Newton Losses: Using Curvature Information for Learning with Differentiable Algorithms24 Oct 2024
- 2024Bayes without Underfitting: Fully Correlated Deep Learning Posteriors via Alternating Projections22 Oct 2024
- 2024Debiasing Mini-Batch Quadratics for Applications in Deep Learning18 Oct 2024
- 2024How Learning Dynamics Drive Adversarially Robust Generalization?10 Oct 2024
- 2024Simultaneous Training of First- and Second-Order Optimizers in Population-Based Reinforcement Learning27 Aug 2024
- 2024Variance reduction of diffusion model's gradients with Taylor approximation-based control variate22 Aug 2024
- 2024Revisiting Scalable Hessian Diagonal Approximations for Applications in Reinforcement Learning5 Jun 2024
- 2024Clip Body and Tail Separately: High Probability Guarantees for DPSGD with Heavy Tails27 May 2024
- 2024Kronecker-Factored Approximate Curvature for Physics-Informed Neural Networks24 May 2024
- 2024Unknown Domain Inconsistency Minimization for Domain Generalization12 Mar 2024
- 2024Batch size invariant Adam29 Feb 2024
- 2024Trade-Offs of Diagonal Fisher Information Matrix Estimators8 Feb 2024
- 2023PCDP-SGD: Improving the Convergence of Differentially Private SGD via Projection in Advance6 Dec 2023
- 2023Kronecker-Factored Approximate Curvature for Modern Neural Network Architectures1 Nov 2023
- 2023Information-Theoretic Trust Regions for Stochastic Gradient-Based Optimization31 Oct 2023
- 2023Improving Realistic Worst-Case Performance of NVCiM DNN Accelerators through Training with Right-Censored Gaussian Noise29 Jul 2023
- 2023Taxonomy Adaptive Cross-Domain Adaptation in Medical Imaging via Optimization Trajectory Distillation27 Jul 2023
- 2023G-TRACER: Expected Sharpness Optimization24 Jun 2023
- 2023Stochastic Marginal Likelihood Gradients using Neural Tangent Kernels6 Jun 2023
- 2023Learning Capacity: A Measure of the Effective Dimensionality of a Model27 May 2023
- 2023Stochastic Ratios Tracking Algorithm for Large Scale Machine Learning Problems17 May 2023
- 2023ASDL: A Unified Interface for Gradient Preconditioning in PyTorch8 May 2023
- 2023Understanding the Generalization Ability of Deep Learning Algorithms: A Kernelized Renyi's Entropy Perspective2 May 2023
- 2023ISAAC Newton: Input-based Approximate Curvature for Newton's Method1 May 2023
- 2023Promises and Pitfalls of the Linearized Laplace in Bayesian Optimization17 Apr 2023
- 2023Loss-Curvature Matching for Dataset Selection and Condensation8 Mar 2023
- 2023Bayesian Metric Learning for Uncertainty Quantification in Image Retrieval2 Feb 2023
- 2023Task Weighting in Meta-learning with Trajectory Optimisation4 Jan 2023
- 2022Two Facets of SDE Under an Information-Theoretic Lens: Generalization of SGD via Training Trajectories and via Terminal States19 Nov 2022
- 2022HesScale: Scalable Computation of Hessian Diagonals20 Oct 2022
- 2022Rethinking Value Function Learning for Generalization in Reinforcement Learning18 Oct 2022
- 2022Uncertainty-guided Source-free Domain Adaptation16 Aug 2022
50 newest of 77 All 77 (JSON)
- 2021Opacus: User-Friendly Differential Privacy Library in PyTorchcited by 375
- 2021Laplace Redux -- Effortless Bayesian Deep Learningcited by 359
- 2021Fishr: Invariant Gradient Variances for Out-of-Distribution Generalizationcited by 186
- 2021Deep Learning with Label Differential Privacycited by 113
- 2021Scalable Marginal Likelihood Estimation for Model Selection in Deep Learningcited by 105
- 2021Large Scale Private Learning via Low-rank Reparametrizationcited by 87
- 2023Kronecker-Factored Approximate Curvature for Modern Neural Network Architecturescited by 49
- 2022Uncertainty-guided Source-free Domain Adaptationcited by 46
- 2022Invariance Learning in Deep Neural Networks with Differentiable Laplace Approximationscited by 42
- 2021Deep Active Learning by Leveraging Training Dynamicscited by 32
- 2023Loss-Curvature Matching for Dataset Selection and Condensationcited by 32
- 2021On the Generalization of Models Trained with SGD: Information-Theoretic Bounds and Implicationscited by 31
12 most cited of 74 All 74 (JSON)
- 2026FlashBoB: I/O-Efficient Exact Backward-over-Backward for Softmax Attention21 Sep 2026
- 2026Reducing Per-Sample Interference in Stochastic Optimization28 Jun 2026
- 2026Bayesian meta-learning for modeling Alzheimer's disease progression1 Jun 2026
- 2026Inter-Layer Hessian Analysis of Neural Networks with DAG Architectures13 Apr 2026
- 2026Efficient Bilevel Optimization with KFAC-Based Hypergradients31 Mar 2026
- 2026Second-Order, First-Class: A Composable Stack for Curvature-Aware Training26 Mar 2026
- 2026Causal Mechanism Reduction: Mechanism Replacement for Neural Network Pruning and Abstraction27 Feb 2026
- 2025CLAPS: Aleatoric-Epistemic Scaling via Last-Layer Laplace for Conformal Regression1 Dec 2025
- 2025SAGE: Streaming Agreement-Driven Gradient Sketches for Representative Subset Selection2 Oct 2025
- 2025Per-example gradients: a new frontier for understanding and improving optimizers30 Sep 2025
- 2025Fishers for Free? Approximating the Fisher Information Matrix by Recycling the Squared Gradient Accumulator24 Jul 2025
- 2025Deterministic Bounds and Random Estimates of Metric Tensors on Neuromanifolds19 May 2025
12 newest of 74 All 74 (JSON)