跳到正文
arXiv (AI + Vision + Imaging)· Yiding Song, Hanming Ye·· 8 天前AI 评分20

模型要多大才能Grok?记忆与泛化时间尺度的竞争

How Large Must a Model Be to Grok? A competition between memorisation and generalisation timescales

AI 导读

研究以小型Transformer和模数运算为对象,将grokking量化为泛化时间尺度T_gen与记忆时间尺度T_mem之间的竞争,两者交点与稳定出现grokking的模型规模相关。研究还给出T_gen和T_mem随模型与数据规模变化的经验规律,并据此外推出存在任何规模模型都无法稳定grok的数据集,在更大素数的模数运算数据集上得到印证。

正文 · 原文

arXiv:2605.09724v3 Announce Type: replace Abstract: Despite a known dependence between grokking and model parameter count, how model capacity shapes grokking remains an open question. Focusing on small Transformers and modular arithmetic, we give a quantitative account of the relationship between model capacity and grokking as a competition between two timescales: generalisation ($T_{\text{gen}}$) and memorisation ($T_{\text{mem}}$). Building on prior formalisms for the empirical information capacity of Transformers, we define and measure $T_{\text{gen}}$ on modular arithmetic datasets and $T_{\text{mem}}$ on random-label datasets of equivalent complexity, and show that their intersection correlates with model sizes where consistent grokking begins. We also observe empirical laws for $T_{\text{gen}}$ and $T_{\text{mem}}$ as models and datasets scale, motivating their forms theoretically and finding that our model of $T_{\text{mem}}$ is consistent with prior observations that larger models tend to memorise faster. Moreover, extrapolating our empirical timescale laws predicted the existence of datasets for which no model of any size would consistently grok, a pattern supported on the modular arithmetic datasets of larger primes, demonstrating that our framework can make qualitative predictions out-of-distribution.

来源:arXiv (AI + Vision + Imaging) · arxiv.org