Controlling Grokking with Nonlinearity and Data Symmetry

Ahmed Salah, David Yevick
11/8/2024
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

This paper demonstrates that grokking behavior in modular arithmetic with a modulus P in a neural network can be controlled by modifying the profile of the activation function as well as the depth and width of the model. Plotting the even PCA projections of the weights of the last NN layer against their odd projections further yields patterns which become significantly more uniform when the nonlinearity is increased by incrementing the number of layers. These patterns can be employed to factor P when P is nonprime. Finally, a metric for the generalization ability of the network is inferred from the entropy of the layer weights while the degree of nonlinearity is related to correlations between the local entropy of the weights of the neurons in the final layer.

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{salah2024controlling,
  title  = {Controlling Grokking with Nonlinearity and Data Symmetry},
  author = {Ahmed Salah and David Yevick},
  year   = {2024},
  eprint = {2411.05353},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.05353v1}
}

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

Discussion