Skip to content

aranguri/phase-diagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code for Mixed Dynamics In Linear Networks: Unifying the Lazy and Active Regimes

This is the official code for the experiments from the paper Mixed Dynamics In Linear Networks: Unifying the Lazy and Active Regimes by Z. Tu, S. Aranguri, and A. Jacot, published at NeurIPS 2024.

Dynamics

The code at dynamics.ipynb trains a two-layer linear network using either gradient descent or the self-consistent dynamics in equation (1) from the paper, and compares the MSE error and singular values obtained by these two methods. This code is used to generate the following images (see Figure 1 in the paper.)

Error Active

Phase diagrams

The code at main.ipynb trains two-layer linear networks using gradient descent for different weight initializations and widths. The data is saved at mse_exp.pickle and it is used by the different notebooks in the diagrams folder to generate each one of the four following phase diagram (see Figure 2 in the paper) which are numerical evidence for Theorems 1 and 2 in the paper.

Error Active

Error Active

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors