atlas

Research map / Architectures and efficiency / RNNs and normalization

To Grok or not to Grok: Disentangling Generalization and Memorization on Corrupted Algorithmic Datasets

ICLR 2024 · Architectures and efficiency › RNNs and normalization · approach: Representation geometry and collapse · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Studies how two-layer MLPs and Transformers trained on corrupted modular-arithmetic data both memorize corrupted labels and generalize, and how regularization (weight decay, dropout, BatchNorm) and IPR-based neuron pruning separate generalizing from memorizing sub-networks.

Problem

Neural networks can generalize and memorize label noise simultaneously, and it is hard to tell which representations implement the learned rule versus memorized examples. The paper asks how memorization and generalization coexist and how regularization changes this on corrupted algorithmic data.

Approach

Uses modular addition, where the analytic periodic solution of a quadratic-activation two-layer MLP is known, to quantify generalizing neurons via inverse participation ratio (IPR) of Fourier spectra. Low-IPR neurons are identified as memorizing; pruning them removes memorization, and weight decay, dropout and BatchNorm shift the network toward generalizing neurons, producing "inversion" (test acc

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add weight decay2-layer MLP with quadratic activation · Modular Addition with corrupted labelsgeneralization accuracy: near-100% -> 100%Helped
Add Dropout2-layer MLP with quadratic activation · Modular Addition with corrupted labelsgeneralization accuracy: near-100% -> 100%Helped
Add BatchNorm2-layer MLP with quadratic activation · Modular Addition with corrupted labelsgeneralization accuracy: near-100% -> 100%Helped
Increase weight decay2-layer MLP with quadratic activation · Modular Addition with corrupted labelsrobustness to label corruptionHelped
Add weight decay4-layer ReLU MLP · MNIST with label corruptiongeneralization accuracyHelped
Increase Dropout4-layer ReLU MLP · MNIST with label corruptionaccuracyHurt
Prune neurons starting from the lowest IPR (ablation)2-layer MLP in the coexistence phase · Modular Addition, corrupted training examplesaccuracyHurt
Prune neurons starting from the lowest IPR (ablation)2-layer MLP in the coexistence phase · Modular Addition, test setaccuracyNo clear effect
Prune neurons starting from the highest IPR (ablation)2-layer MLP in the coexistence phase · Modular Addition, test setaccuracyHurt
Use Dropout probability above 0.1 (ablation)1-layer Transformer · Modular Addition with corrupted labelsgeneralization: 0.1No clear effect
Use BatchNorm (ablation)3-layer ReLU MLP · Modular Addition with corrupted labelsphase outcomeNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: modular addition dataset (p=97) with synthetic symmetric label corruption MNIST (label corruption experiment in appendix)

Benchmarks: modular addition test accuracy MNIST with label corruption

Metrics: train accuracy test accuracy inverse participation ratio generalization gap

Baselines: weight decay dropout BatchNorm LayerNorm

Builds on: grokking (Power et al. 2022) analytical grokking solution (Gromov 2023)

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy