Skip to main content
QUICK REVIEW

[Paper Review] Tilting the playing field: Dynamical loss functions for machine learning

Miguel Ruíz-García, Ge Zhang|arXiv (Cornell University)|Feb 7, 2021
Neural Networks and ApplicationsComputer Science1 references6 citations
TL;DR

This paper proposes dynamical loss functions that cyclically emphasize different classes during training to improve learning in both underparameterized and overparameterized neural networks. By evolving the loss landscape, the method induces bifurcation cascades and valley widening/narrowing, enabling networks to escape poor minima and converge to flatter, more generalizable solutions, even when standard cross-entropy loss fails.

ABSTRACT

We show that learning can be improved by using loss functions that evolve cyclically during training to emphasize one class at a time. In underparameterized networks, such dynamical loss functions can lead to successful training for networks that fail to find a deep minima of the standard cross-entropy loss. In overparameterized networks, dynamical loss functions can lead to better generalization. Improvement arises from the interplay of the changing loss landscape with the dynamics of the system as it evolves to minimize the loss. In particular, as the loss function oscillates, instabilities develop in the form of bifurcation cascades, which we study using the Hessian and Neural Tangent Kernel. Valleys in the landscape widen and deepen, and then narrow and rise as the loss landscape changes during a cycle. As the landscape narrows, the learning rate becomes too large and the network becomes unstable and bounces around the valley. This process ultimately pushes the system into deeper and wider regions of the loss landscape and is characterized by decreasing eigenvalues of the Hessian. This results in better regularized models with improved generalization performance.

Motivation & Objective

  • To investigate whether dynamically evolving the loss function during training can improve learning beyond static loss functions.
  • To understand the mechanism by which cyclical loss functions enhance generalization in both underparameterized and overparameterized networks.
  • To explore the role of loss landscape curvature, Hessian eigenvalues, and Neural Tangent Kernel in facilitating improved training dynamics.
  • To determine whether task-switching via class-weight cycling avoids catastrophic forgetting while improving performance.
  • To analyze the interplay between loss landscape evolution and optimization dynamics, particularly during valley narrowing and bouncing behavior.

Proposed method

  • Introduce a time-dependent, cyclic weighting scheme for each class in the loss function, where the emphasis shifts sequentially among classes over training epochs.
  • Use a sinusoidal modulation to vary the class weights over time, creating a periodically changing loss landscape.
  • Analyze the loss landscape using the Hessian matrix and Neural Tangent Kernel to study curvature changes and bifurcation cascades during training.
  • Track the evolution of the largest Hessian eigenvalue to identify instability and valley transitions during training cycles.
  • Train models on both synthetic data (spiral dataset) and real-world benchmarks (CIFAR-10 with Myrtle network) to validate performance improvements.
  • Compare training and test accuracy under static cross-entropy loss versus dynamical loss functions across varying network parameterization regimes.

Experimental results

Research questions

  • RQ1Can a dynamically evolving loss function improve training accuracy in underparameterized networks that fail to converge under standard cross-entropy loss?
  • RQ2How does the cyclical variation of class weights affect the geometry of the loss landscape and optimization dynamics?
  • RQ3What role do bifurcation cascades and Hessian eigenvalue evolution play in enabling the network to access wider, flatter minima?
  • RQ4Does cyclical class emphasis lead to better generalization in overparameterized networks despite perfect training accuracy under static loss?
  • RQ5To what extent does the dynamical loss function avoid catastrophic forgetting while improving performance?

Key findings

  • In underparameterized networks, the dynamical loss function enables successful training where standard cross-entropy loss fails, even with identical hyperparameters.
  • In overparameterized networks, the method improves test accuracy despite perfect training accuracy under static loss, indicating better generalization.
  • The largest Hessian eigenvalue decreases over time during training, signaling a transition to flatter, more regularized minima.
  • Valleys in the loss landscape widen and deepen during early cycles, then narrow and rise, causing the network to bounce and escape shallow minima.
  • An optimal amplitude of class weighting (A ≈ 30) maximizes performance, with larger amplitudes leading to degradation due to catastrophic forgetting.
  • The method achieves better generalization by leveraging instability from rapid loss landscape changes, rather than avoiding it, contradicting conventional intuition about training stability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.