Dyson Brownian motion and random matrix dynamics of weight matrices during learning

Gert Aarts, Ouraman Hajizadeh, Biagio Lucini, Chanju Park
11/20/2024
cond-mat.dis-nncs.LGhep-lat

No confident code implementation found for this paper.

Abstract

During training, weight matrices in machine learning architectures are updated using stochastic gradient descent or variations thereof. In this contribution we employ concepts of random matrix theory to analyse the resulting stochastic matrix dynamics. We first demonstrate that the dynamics can generically be described using Dyson Brownian motion, leading to e.g. eigenvalue repulsion. The level of stochasticity is shown to depend on the ratio of the learning rate and the mini-batch size, explaining the empirically observed linear scaling rule. We verify this linear scaling in the restricted Boltzmann machine. Subsequently we study weight matrix dynamics in transformers (a nano-GPT), following the evolution from a Marchenko-Pastur distribution for eigenvalues at initialisation to a combination with additional structure at the end of learning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{aarts2024dyson,
  title  = {Dyson Brownian motion and random matrix dynamics of weight matrices during learning},
  author = {Gert Aarts and Ouraman Hajizadeh and Biagio Lucini and Chanju Park},
  year   = {2024},
  eprint = {2411.13512},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.13512v1}
}

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

Discussion