(Almost) Smooth Sailing: Towards Numerical Stability of Neural Networks Through Differentiable Regularization of the Condition Number

Rossen Nenov, Daniel Haider, Peter Balazs
9/30/2024
cs.LGmath.OCstat.ML

No official code found. Best implementation: danedane-haider/Almost-Smooth-Sailing (2 stars, last commit 2024-06-26).

Abstract

Maintaining numerical stability in machine learning models is crucial for their reliability and performance. One approach to maintain stability of a network layer is to integrate the condition number of the weight matrix as a regularizing term into the optimization algorithm. However, due to its discontinuous nature and lack of differentiability the condition number is not suitable for a gradient descent approach. This paper introduces a novel regularizer that is provably differentiable almost everywhere and promotes matrices with low condition numbers. In particular, we derive a formula for the gradient of this regularizer which can be easily implemented and integrated into existing optimization algorithms. We show the advantages of this approach for noisy classification and denoising of MNIST images.

View on arXivView PDF

Code Implementations(1)

Neural network regularization using a differentiable surrogate of the condition number

20Python, Jupyter NotebookMay 20, 20242 years ago

Cite this paper

@article{nenov2024almost,
  title  = {(Almost) Smooth Sailing: Towards Numerical Stability of Neural Networks Through Differentiable Regularization of the Condition Number},
  author = {Rossen Nenov and Daniel Haider and Peter Balazs},
  year   = {2024},
  eprint = {2410.00169},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.00169v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.00169.svg)](https://codeofpaper.com/paper/2410.00169)

Discussion