基础知识指南

摸索和延迟泛化

“Grokking”(顿悟)描述了这样一种研究案例:在神经网络拟合训练样本很久之后,其留出集(held-out)的泛化能力才得到改善。

听听这个指南AI叙述 · ~3 min

在本页3 分钟阅读
  1. 概述
  2. 深入探讨
  3. 现实世界的实施
  4. Grokking 的未来和延迟泛化
  5. 付诸实践
  6. 不断探索
  7. 常见问题

概述

小型算法任务提供了清晰的实验,但验证集准确率的平台期或更长时间的训练都不能保证这种转变一定会发生。

深入探讨

The original grokking paper, publicly submitted in January 2022, studies small algorithmically generated datasets. In some experiments, a network fits the training data while held-out performance remains poor, then generalizes after substantially more optimization. This separates fitting observed examples from learning behavior that transfers to unseen examples of the underlying task. It does not mean that every model has near-zero validation accuracy during an initial plateau or that memorization must always disappear completely. The original study varies dataset sizes and optimization choices, including weight decay. Its findings concern those setups rather than a unique universal explanation of generalization. Progress Measures for Grokking via Mechanistic Interpretability investigates small transformers trained on modular addition. The studied algorithm uses Fourier structure and trigonometric identities to represent addition through circular relationships. The researchers examine activations and weights and use Fourier-space ablations to test their account. They describe memorization, circuit formation, and cleanup phases, with generalizing structure emerging before the visible jump in test accuracy. Weight decay removes memorization components during the studied cleanup process. This is more specific than a story in which the entire algorithm appears suddenly at the accuracy jump. Modular tasks offer exact labels: for example, adding six and five modulo seven gives four because eleven leaves remainder four after division by seven. The original paper also reports increasing optimization requirements as training datasets become smaller. Such controlled experiments motivate further research, but do not establish that a large deployed model will eventually improve if trained indefinitely.

现实世界的实施

绘制模运算实验中训练集和留出集的准确率曲线。

比较特定小型算法数据集上的正则化设置。

检查小型 Transformer 中研究的基于傅里叶变换的电路。

在改变训练集大小的同时,记录实现留出集性能所需的优化过程。

Grokking 的未来和延迟泛化

受控实验可以测试数据集大小、架构、正则化和优化如何影响延迟泛化。基于已验证电路的进度度量可能会揭示被整体准确率曲线所掩盖的行为,尽管将这种分析扩展到更大的模型仍然是一个悬而未决的问题。研究人员应将小型任务中测得的机制与针对所有模型的拟合解释区分开来。实际的停止决策仍然需要评估、资源约束和进展证据;Grokking 的存在提供了一个研究某些平台期的理由,而不是无限期继续所有训练的规则。

付诸实践

为什么这很重要

  • 更清晰的判决. 它可以帮助您将清晰的技术声明与营销语言分开。
  • 成本与预算. 在花费金钱或时间之前,您可以提出更好的实施问题。
  • 团队与工作流程. 具有共同理解的团队可以做出更好的产品、政策和学习决策。

留意

  • 不同的团队可能会以不同的方式使用同一术语,因此请尽早定义范围。
  • 基准测试可能看起来很强大,但实际性能却参差不齐。
  • 忽视数据质量和评估计划通常会产生脆弱的结果。

后续步骤

  1. 从您需要的结果的简单语言定义开始。
  2. 在测试之前选择一种成功指标和一种失败条件。
  3. 使用代表性数据运行小型试点,而不是完善的演示集。
  4. 记录 Grokking 和延迟泛化在哪些方面有帮助,以及哪些更简单的方法更好。

不断探索

免费通讯

获取每日AI简报

每个工作日早晨提供三条经过验证的AI故事,使用简明英文撰写。永久免费,无广告。

每个工作日发送一封邮件。一键退订。我们永不出售或分享您的地址。

测试一下自己

参加“Grokking 与延迟泛化”测验

每个答案即时反馈,课程通过后可获得可验证ID的可分享证书。

开始测验

支持免费AI教育。AI Understanding是一家501(c)(3)非营利组织——无广告,无付费墙,永不收费。 捐款

常见问题

什么是 Grokking 与延迟泛化?

“Grokking”描述了这样一种研究案例:在神经网络拟合训练样本很久之后,其留出集的泛化能力才得到改善。小型算法任务提供了清晰的实验,但验证集准确率的平台期或更长时间的训练都不能保证这种转变一定会发生。

哪种性能模式是所研究的 Grokking 现象的特征?

这种延迟涉及在所研究设置下对观测样本之外的泛化。

原始 Grokking 论文使用了哪些任务作为受控设置?

该公开论文于 2022 年 1 月提交,研究的是小型算法数据集。

原始 Grokking 实验中检查了哪些正则化干预措施?

原始研究调查了权重衰减和其他优化选择;目前尚未确定单一的普遍原因。

所引用的模加法机制研究在训练好的小型 Transformer 中识别出了什么计算?

分析和傅里叶消融实验支持了所研究的特定算法。

《Grokking 的进度度量》描述了所研究训练动力学中的哪种阶段排序?

泛化电路在与可见的测试准确率转变相关的后期清理之前形成。