paper-with-me

Papers

Beyond Progress Measures: Theoretical Insights into the Mechanism of Grokking

2025-04-04 · Zihan Gu, Ruoyu Chen, Hua Zhang, Yue Hu, Xiaochun Cao

Grokking, referring to the abrupt improvement in test accuracy after extended overfitting, offers valuable insights into the mechanisms of model generalization. Existing researches based on progress measures imply that grokking relies on understanding the optimization dynamics when the loss function is dominated solely by the weight decay term. However, we find that this optimization merely leads to token uniformity, which is not a sufficient condition for grokking. In this work, we investigate the grokking mechanism underlying the Transformer in the task of prime number operations. Based on theoretical analysis and experimental validation, we present the following insights: (i) The weight decay term encourages uniformity across all tokens in the embedding space when it is minimized. (ii) The occurrence of grokking is jointly determined by the uniformity of the embedding space and the distribution of the training dataset. Building on these insights, we provide a unified perspective for understanding various previously proposed progress measures and introduce a novel, concise, and effective progress measure that could trace the changes in test loss more accurately. Finally, to demonstrate the versatility of our theoretical framework, we design a dedicated dataset to validate our theory on ResNet-18, successfully showcasing the occurrence of grokking.

📄 PDF Abstract BibTeX arXiv:2504.03162

Code (1)

Qihuai27/Grokking-Insight 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Position-Wise Feed-Forward Layer 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Multi-Head Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Residual Connection 설명 없음
Adam 설명 없음

Similar Papers 제목 키워드 기반

Polynomial-time Sparse Measure Recovery: From Mean Field Theory to Algorithm Design

2022-04-16 · Hadi Daneshmand, Francis Bach

Mean field theory has provided theoretical insights into various algorithms by letting the problem size tend to infinity. We argue that the applications of mean-field theory go beyond theoretical insights as it can inspi…

Super-ResolutionTensor Decomposition

Position: A Dynamical Systems Perspective is Needed to Advance Time Series Modeling

2026-02-18 · Daniel Durstewitz, Christoph Jürgen Hemmer, Florian Hess, Charlotte Ricarda Doll 외 arxiv

Time series (TS) modeling has come a long way from early statistical, mainly linear, approaches to the current trend in TS foundation models. With a lot of hype and industrial demand in this field, it is not always clear…

Three Conjectures on Unexpectedeness

2023-11-15 · Giovanni Sileno, Jean-Louis Dessalles

Unexpectedness is a central concept in Simplicity Theory, a theory of cognition relating various inferential processes to the computation of Kolmogorov complexities, rather than probabilities. Its predictive power has be…

Descriptive

A Survey on Time-Series Distance Measures

2024-12-29 · John Paparrizos, Haojun Li, Fan Yang, Kaize Wu 외

Distance measures have been recognized as one of the fundamental building blocks in time-series analysis tasks, e.g., querying, indexing, classification, clustering, anomaly detection, and similarity search. The vast pro…

Anomaly DetectionSurveyTime SeriesTime Series Analysis

Beyond ELBOs: A Large-Scale Evaluation of Variational Methods for Sampling

2024-06-11 · Denis Blessing, Xiaogang Jia, Johannes Esslinger, Francisco Vargas 외

Monte Carlo methods, Variational Inference, and their combinations play a pivotal role in sampling from intractable probability distributions. However, current studies lack a unified evaluation framework, relying on disp…

Decision MakingVariational Inference