Dynamical loss functions shape landscape topography and improve learning in artificial neural networks

Eduardo Lavin Pallero, Miguel Ruiz-Garcia
10/14/2024
cs.LG

No official code found. Best implementation: miguel-rg/dynamical-loss-functions (3 stars, Apache-2.0, last commit 2023-04-13).

Abstract

Dynamical loss functions are derived from standard loss functions used in supervised classification tasks, but are modified so that the contribution from each class periodically increases and decreases. These oscillations globally alter the loss landscape without affecting the global minima. In this paper, we demonstrate how to transform cross-entropy and mean squared error into dynamical loss functions. We begin by discussing the impact of increasing the size of the neural network or the learning rate on the depth and sharpness of the minima that the system explores. Building on this intuition, we propose several versions of dynamical loss functions and use a simple classification problem where we can show how they significantly improve validation accuracy for networks of varying sizes. Finally, we explore how the landscape of these dynamical loss functions evolves during training, highlighting the emergence of instabilities that may be linked to edge-of-instability minimization.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
30Jupyter NotebookJun 2, 20213 years agoApache-2.0

Similar Papers

Cite this paper

@article{pallero2024dynamical,
  title  = {Dynamical loss functions shape landscape topography and improve learning in artificial neural networks},
  author = {Eduardo Lavin Pallero and Miguel Ruiz-Garcia},
  year   = {2024},
  eprint = {2410.10690},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.10690v3}
}

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.10690.svg)](https://codeofpaper.com/paper/2410.10690)

Discussion