paper-with-me

Papers

A PDE-based Explanation of Extreme Numerical Sensitivities and Edge of Stability in Training Neural Networks

2022-06-04 · Yuxin Sun, Dong Lao, Ganesh Sundaramoorthi, Anthony Yezzi

We discover restrained numerical instabilities in current training practices of deep networks with stochastic gradient descent (SGD), and its variants. We show numerical error (on the order of the smallest floating point bit and thus the most extreme or limiting numerical perturbations induced from floating point arithmetic in training deep nets can be amplified significantly and result in significant test accuracy variance (sensitivities), comparable to the test accuracy variance due to stochasticity in SGD. We show how this is likely traced to instabilities of the optimization dynamics that are restrained, i.e., localized over iterations and regions of the weight tensor space. We do this by presenting a theoretical framework using numerical analysis of partial differential equations (PDE), and analyzing the gradient descent PDE of convolutional neural networks (CNNs). We show that it is stable only under certain conditions on the learning rate and weight decay. We show that rather than blowing up when the conditions are violated, the instability can be restrained. We show this is a consequence of the non-linear PDE associated with the gradient descent of the CNN, whose local linearization changes when over-driving the step size of the discretization, resulting in a stabilizing effect. We link restrained instabilities to the recently discovered Edge of Stability (EoS) phenomena, in which the stable step size predicted by classical theory is exceeded while continuing to optimize the loss and still converging. Because restrained instabilities occur at the EoS, our theory provides new insights and predictions about the EoS, in particular, the role of regularization and the dependence on the network complexity.

📄 PDF Abstract BibTeX arXiv:2206.02001

Code (1)

sunyx523/surprising-instabilities 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

SGD Stochastic Gradient Descent is an iterative optimization technique that uses minibatches of data to form an expectation of the gradient, rather than the full gradient using…

Similar Papers 제목 키워드 기반

The Vanishing Gradient Problem for Stiff Neural Differential Equations

2025-08-02 · Colby Fronk, Linda Petzold arxiv

Gradient-based optimization of neural differential equations and other parameterized dynamical systems fundamentally relies on the ability to differentiate numerical solutions with respect to model parameters. In stiff s…

Reclaiming First Principles: A Differentiable Framework for Conceptual Hydrologic Models

2026-02-06 · Jasper A. Vrugt, Jonathan M. Frame, Ethan Bollman arxiv

Conceptual hydrologic models remain the cornerstone of rainfall-runoff modeling, yet their calibration is often slow and numerically fragile. Most gradient-based parameter estimation methods rely on finite-difference app…

Unbiased estimation of second-order parameter sensitivities for stochastic reaction networks

2024-10-15 · Quentin Badolle, Ankit Gupta, Mustafa Khammash

Stochastic models for chemical reaction networks are increasingly popular in systems and synthetic biology. These models formulate the reaction dynamics as Continuous-Time Markov Chains (CTMCs) whose propensities are par…

CVA Sensitivities, Hedging and Risk

2024-07-26 · Stéphane Crépey, Botao Li, Hoang Nguyen, Bouazza Saadeddine

We present a unified framework for computing CVA sensitivities, hedging the CVA, and assessing CVA risk, using probabilistic machine learning meant as refined regression tools on simulated data, validatable by low-cost c…

regression

QGAN: Quantize Generative Adversarial Networks to Extreme low-bits

2019-09-25 · Peiqi Wang, Yu Ji, Xinfeng Xie, Yongqiang Lyu 외

The intensive computation and memory requirements of generative adversarial neural networks (GANs) hinder its real-world deployment on edge devices such as smartphones. Despite the success in model reduction of convoluti…

Quantization