Skip to main content
QUICK REVIEW

[Paper Review] Identifying Equivalent Training Dynamics

William T. Redman, Juan M. Bello‐Rivas|arXiv (Cornell University)|Feb 17, 2023
Model Reduction and Neural NetworksPhysics and Astronomy6 citations
TL;DR

This paper proposes a data-driven framework using Koopman operator theory to identify equivalent training dynamics in machine learning by analyzing the spectral similarity of optimization trajectories. It demonstrates that conjugate dynamics—implying equivalent optimization—can be detected via overlapping Koopman spectra, revealing that learning rate to batch size ratio, layer width, data set type, and activation function govern conjugacy in feedforward neural networks.

ABSTRACT

Study of the nonlinear evolution deep neural network (DNN) parameters undergo during training has uncovered regimes of distinct dynamical behavior. While a detailed understanding of these phenomena has the potential to advance improvements in training efficiency and robustness, the lack of methods for identifying when DNN models have equivalent dynamics limits the insight that can be gained from prior work. Topological conjugacy, a notion from dynamical systems theory, provides a precise definition of dynamical equivalence, offering a possible route to address this need. However, topological conjugacies have historically been challenging to compute. By leveraging advances in Koopman operator theory, we develop a framework for identifying conjugate and non-conjugate training dynamics. To validate our approach, we demonstrate that comparing Koopman eigenvalues can correctly identify a known equivalence between online mirror descent and online gradient descent. We then utilize our approach to: (a) identify non-conjugate training dynamics between shallow and wide fully connected neural networks; (b) characterize the early phase of training dynamics in convolutional neural networks; (c) uncover non-conjugate training dynamics in Transformers that do and do not undergo grokking. Our results, across a range of DNN architectures, illustrate the flexibility of our framework and highlight its potential for shedding new light on training dynamics.

Motivation & Objective

  • To address the lack of general methods for determining when different hyperparameter choices in ML training lead to equivalent optimization trajectories.
  • To enable classification of ML optimization algorithms based on their underlying dynamical behavior, particularly in terms of conjugacy.
  • To provide a data-driven, generalizable approach to compare training dynamics across diverse ML methods without requiring access to internal algorithmic equations.
  • To extend Koopman operator theory to the analysis of iterative ML optimization processes, especially in deep neural networks.
  • To uncover which hyperparameters—such as learning rate, batch size, width, activation, and data set—induce conjugate or non-conjugate dynamics during training.

Proposed method

  • Models iterative ML optimization as discrete-time dynamical systems, where each update step corresponds to a state transition map.
  • Applies Koopman mode decomposition to extract spectral objects (eigenvalues and modes) from observed training trajectories.
  • Uses spectral similarity—specifically, overlapping Koopman eigenvalues—as a criterion to identify conjugate dynamical systems, implying equivalent optimization dynamics.
  • Employs data-driven Koopman analysis to compare online mirror descent and gradient descent, confirming analytical equivalence in a data-driven manner.
  • Systematically varies hyperparameters (learning rate, batch size, width, activation, data set) in fully connected networks to assess their impact on Koopman spectra.
  • Uses Wasserstein distance between Koopman spectra across multiple random seeds to quantify statistical robustness of spectral similarity.
Figure 1: Data-driven identification of the conjugacy between online mirror and gradient descent. (A) Example trajectory for $x_{t}$ (red) and $q(u_{t})$ (black), when $f(x)=\sum_{i=1}^{d}x_{i}^{4}$ . Rhombus denotes initialization and star denotes the end of $500$ iterations. (B) Koopman spectra co
Figure 1: Data-driven identification of the conjugacy between online mirror and gradient descent. (A) Example trajectory for $x_{t}$ (red) and $q(u_{t})$ (black), when $f(x)=\sum_{i=1}^{d}x_{i}^{4}$ . Rhombus denotes initialization and star denotes the end of $500$ iterations. (B) Koopman spectra co

Experimental results

Research questions

  • RQ1Under what conditions do different hyperparameter configurations in deep neural network training lead to equivalent optimization dynamics?
  • RQ2Can Koopman spectral similarity reliably detect conjugacy between distinct optimization algorithms such as online mirror descent and gradient descent?
  • RQ3Which hyperparameters—learning rate, batch size, layer width, data set, activation function—most significantly affect the conjugacy structure of training dynamics?
  • RQ4To what extent can data-driven Koopman analysis identify equivalent training trajectories without access to the underlying algorithmic equations?
  • RQ5How do different data sets (e.g., MNIST vs. synthetic) and activation functions influence the spectral structure and conjugacy of optimization processes?

Key findings

  • Highly overlapping Koopman spectra are observed between online mirror descent and gradient descent on specific problems, corroborating their analytical equivalence.
  • The ratio of learning rate to batch size is a critical factor in determining whether optimization dynamics are conjugate.
  • Layer width and the nature of the data set (e.g., handwritten vs. synthetic) significantly influence the conjugacy structure of training dynamics.
  • The choice of activation function affects the spectral properties of the Koopman operator, thereby impacting whether optimization trajectories are equivalent.
  • Spectral analysis via Koopman mode decomposition reveals that different hyperparameter combinations can lead to non-conjugate dynamics, even with similar training performance.
  • The framework successfully identifies conjugacies in diverse settings, including root-finding algorithms and neural network training, demonstrating broad applicability.
Figure 2: Learning rate to batch size ratio controls the conjugacy of training. (A) Training loss, as a function of number of images shown, for different choices of batch size. Loss was first smoothed using a square filter. Width of curves denotes $25^{\text{th}}$ and $75^{\text{th}}$ percentile of
Figure 2: Learning rate to batch size ratio controls the conjugacy of training. (A) Training loss, as a function of number of images shown, for different choices of batch size. Loss was first smoothed using a square filter. Width of curves denotes $25^{\text{th}}$ and $75^{\text{th}}$ percentile of

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.