Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

yuhodots/SPPs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signal Propagation Plots

Example results of SPPs (Brock et al., 2021)

1. Signal Propagation Plots

I referred to @amaarora's code.

ResNet-V2-600

img

ResNet101

img

2. Signal Propagation Videos

The original paper checks SPPs only during the model initialization phase. I wondered how SPPs change not only in model initialization but also during the training phase.

Therefore, I saved the signal propagation values in the logger during training. After the model training, I collected all SPPs so they could be checked in the form of a video. Below is the video result of SPPs when the model was trained on the CIFAR-100 dataset. You can find the detailed codes in spp.py and train_cifar.py.

img

The type of input for each epoch is Gaussian noise. In the above video, the "residual average channel variation" is close to 1 at the beginning. However, as the learning progresses, this value approaches zero. Therefore, you can see that the "average channel variance" value also stays close to zero. (Below is a picture of the start point of training)

img

References

  • Brock, Andrew, Soham De, and Samuel L. Smith. "Characterizing signal propagation to close the performance gap in unnormalized ResNets." ICLR 2021.
  • Brock, Andy, et al. "High-performance large-scale image recognition without normalization." International Conference on Machine Learning. PMLR, 2021.

Here is a good reference code for NFnet. I also checked the NF net SPP results, but they differed from the original paper. I thought it was my implementation error and couldn't find the cause of the error, so I didn't include it in this repository.

About

Signal Propagation Videos inspired by (Brock et al., 2021)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages