TL;DR
Even when you corrupt 80% of a training dataset's labels into pure gibberish, over-parameterized neural networks quietly learn the true underlying mathematical rule anyway—it just gets drowned out at the output by the network's effort to memorize the noise. By looking inside the weights using Fourier analysis, researchers recovered near-perfect test accuracy from seemingly broken models, while proving that memorization and generalization are too tangled up across individual neurons to be separated by simple pruning.
What Problem Does This Paper Address?
Large Language Models thrive on scale, yet they are trained on internet data riddled with factual errors and contradictions. How does a massive model reconcile two competing urges: generalization (discovering universal rules) and memorization (rote-fitting corrupted data points)?
Studying this tug-of-war in natural language or vision is notoriously messy; if a model gets a test question right, it's hard to tell whether it learned a true rule or just exploited a statistical shortcut. To put this phenomenon in a clean petri dish, the authors turn to modular arithmetic (like clock math, $a + b \bmod 113$). Here, rule-learning and rote memorization are mathematically distinct, allowing us to peek under the hood and see how neural networks manage both at once.
Methods
The authors train standard two-layer neural networks (mostly ReLU, with hidden widths scaling from $17$ up to $8,193$ neurons) using full-batch optimization (primarily AdamW) on noisy arithmetic data. To dissect what the trained networks actually learned, they introduce two post-hoc extraction techniques:
- Frequency Filtration (FF) [Task-Specific]: Prior theory shows that networks with quadratic activations solve modular addition using neat, periodic cosine waves. Guessing that ReLU networks do something similar, the authors apply a Fourier transform to each neuron's weights, isolate the single dominant frequency to form a "generalization" sub-network, and leave the remaining frequencies as a "residual" noise sub-network.
- Neuron Strength Partitioning [Task-Agnostic]: Because FF requires knowing the task's periodic nature in advance, the authors also propose a novel, task-agnostic metric called Neuron Strength ($\text{Str}$). Based on the $\ell_\infty$-norm of a neuron's weights, it measures a neuron's maximum possible contribution to the output. Using validation data, they rank and prune neurons to see if "rule neurons" can be cleanly divorced from "noise neurons" (comparing this against a standard periodicity metric called Inverse Participation Ratio, or IPR).
Datasets
- Synthetic Modular Arithmetic: The primary testbed is operations modulo $P = 113$ (addition, subtraction, and multiplication), framed as a 113-class classification problem. Out of all $113^2$ possible pairs, 50% are used for training, 20% for validation, and 30% for testing. A fraction $\alpha$ (up to 90%) of the training labels are randomly flipped to incorrect values.
- MNIST: Used briefly in supplementary experiments to verify that early-stage training dynamics generalize beyond toy math problems to image classification.
Key Insights and Ideas
- Double descent thrives under noise: As model width grows, test error follows the classic "double descent" curve—getting worse right at the threshold where the model has just enough capacity to memorize all the noisy training data, and then steadily improving as the model grows larger into the over-parameterized regime.
- Noise is memorized faster than clean data: Conventional wisdom (and the logic behind early stopping) says networks learn simple, clean patterns before memorizing random noise. Under full-batch training, the authors find a surprising early-epoch inversion: noisy labels get memorized faster than clean ones because individual corrupted samples generate larger initial gradient updates.
- Hidden rules survive extreme corruption: Low test accuracy doesn't mean a model failed to learn. ReLU networks internally build symmetric, wave-like representations of the true arithmetic rule even under extreme noise, while using asymmetric, high-frequency weight residuals to absorb the bad labels.
- Knowledge is holographic, not modular: Generalization isn't locked inside a dedicated clique of "smart neurons." Instead, the rule and the memorized noise are superimposed across the same neurons in frequency space, explaining why simply pruning away "bad" neurons hits a hard ceiling.
Key Results
- Rescuing models from 80% noise: A wide ReLU network trained on modular addition with 80% corrupted labels has terrible raw test accuracy (near 20% or lower depending on width). Applying Frequency Filtration to extract the dominant frequencies shoots test accuracy back up to near 100%, while the leftover residual weights retain almost all the memorized noise.
- Swapping activations boosts accuracy: Taking a trained ReLU network and swapping its activation function post-training to a quadratic ($x^2$) or reverse ReLU ($\max(-x, 0)$) immediately suppresses noise memorization and boosts test accuracy—proving the weights learned a symmetric rule.
- Regularization shifts capacity: Increasing weight decay (from
0.1to18.0) restricts effective model capacity, shifting the double-descent curve rightward so much wider networks are needed to enter the over-parameterized regime.
- Pruning falls short of filtering: On modular addition, the task-agnostic Neuron Strength metric matches the task-specific IPR metric, and beats it on modular multiplication. However, at high noise ($\alpha \ge 0.6$), neuron pruning yields only modest test accuracy gains compared to the near-perfect recovery of Frequency Filtration.
Limitations and Future Work
- Toy setups: The authors openly note that two-layer networks doing modular arithmetic abstract away the messy, hierarchical correlations of real-world vision and language tasks (though preliminary checks show these dynamics extend to Transformers and MNIST).
- Limits of Frequency Filtration: FF is not a strict mathematical decomposition of the network's output, and it relies heavily on knowing beforehand that the task's solution lives in the Fourier basis.
- Future Directions: Because post-hoc neuron pruning cannot cleanly untangle rules from rote memorization, the authors suggest we need new training paradigms or neural architectures explicitly designed to route logical inference and noise memorization into separate compartments during training.
Summary updated