通过非线性和数据对称性控制 Grokking 行为
Controlling Grokking with Nonlinearity and Data Symmetry
AI总结:
本文通过调整激活函数轮廓及模型深度和宽度控制模算术任务中的 grokking 行为,利用 PCA 投影模式分解非素数模数,并从权重熵推断泛化能力。
摘要:
本文证明,在模数为 P 的模算术任务中,神经网络中的 grokking 行为可以通过修改激活函数的轮廓以及模型的深度和宽度来控制。将最后一层神经网络权重的偶数 PCA 投影与奇数投影作图,进一步发现当通过增加层数来提高非线性时,这些模式变得更加均匀。当 P 为非素数时,这些模式可用于分解 P。最后,从层权重的熵推断出网络泛化能力的度量,而非线性程度与最终层神经元权重的局部熵之间的相关性相关。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。