| Weights and curvature | |
|---|---|
| one MLP weight matrix, ; the paper writes | |
| input to at one token; gradient of the loss with respect to the output | |
| all weights; the model's predictive distribution; a label sampled from it | |
| Fisher information matrix; its block for | |
| and , uncentered second moments | |
| Kronecker product; with rows of stacked, , and stacking columns gives | |
| eigenvalues of in decreasing order, and its eigenvectors; the paper counts from 0 | |
| eigenvalues of in decreasing order, and its eigenvectors | |
| , the coefficient of on the component | |
| approximate curvature along ; the paper writes | |
| the kept pairs ; the edited matrix, which the paper writes | |
| Averaging toy (computed here) | |
| number of memorized examples | |
| example 's own sharp direction; the direction all examples share | |
| curvature of one example along its own direction; along the shared one | |
| the curvature matrix averaged over the examples | |
| dimension of the space the toy's directions live in | |
| Constants | |
| share of total curvature the edit keeps: 0.6 in OLMo-2 7B, 0.75 in the ViT; the paper calls it energy | |
Context. Large language models reproduce some of their training text word for word, raising copyright and privacy concerns. Studies of single training points find sharp loss curvature around a memorized point. A small change to the input or weights along some direction raises that point's loss steeply. Methods that remove memorized text usually start from a forget seta list of the specific training sequences to be removed, used as a training signal, for example by raising the model's loss on them while keeping it low on other text, so they target only what someone has listed. Merullo et al. (2025) average curvature over the training distribution instead, asking whether that average locates memorization well enough to remove it without a list.
They find that memorization sits at the flat end of that average, so deleting the flattest components of a few MLP weight matrices removes most verbatim recitation without a forget set. The authors argue, without measuring it, that each memorized example curves sharply along its own direction. If different examples point in different directions, averaging dilutes each one to a tiny share, while shared directions add up and stay sharp. To estimate the average for each MLP weight matrix, they use K-FACKronecker-factored approximate curvature: an approximation of one layer's block of the Fisher information matrix by the Kronecker product of two small matrices, the second moments of the gradients at the layer's output and of the activations at its input (Martens and Grosse, 2015). Its eigenbasis splits the matrix into rank-one components ordered from high to low curvature. Zeroing the low-curvature components in three late MLP layers of OLMo-2 7B cuts exact recitation of held-out memorized text from 99.9% to 3.4%. On famous quotes that no part of the method saw, exact recitation drops to 16.1%. Arithmetic and closed-book fact recall fall to 66% to 86% of their original accuracy, while logic and open-book question answering keep 93% or more. The authors read that split as a sign that arithmetic and fact recall also rely on narrowly used directions. On OLMo-2 7B, however, a data-free truncation of small singular values performs just as well. The curvature edit beats it only on quotes in OLMo-2 1B and in a vision transformer.
Setting. The language models are OLMo-2a family of open language models whose pretraining data are public (OLMo et al., 2024), so memorized training sequences can be found by direct search 7B and 1B. A training sequence counts as memorized when greedy decoding from its first 64 tokens reproduces the next 48 exactly. For the 7B model, the authors mine memorized sequences from the Dolma pretraining corpus and remove near-duplicates, leaving 1,000 sequences. They use 500 to train the supervised baseline and tune the edit, and hold out the remaining 500. A separate set of 512 famous quotes serves only for evaluation. A quote counts as memorized when the model completes its last 8 tokens exactly. The vision model is a ViT-Basea vision transformer of 86M parameters that reads a 224 by 224 image as patches of 16 by 16 pixels (Dosovitskiy et al., 2020) trained on ImageNet with 10% of its training labels replaced at random, following Zhang et al. (2017). The network can fit those mislabeled images only by memorization.
Every edit acts on MLP weight matrices. Write for one such matrix, for its input at one token, and for the gradient of the loss with respect to its output . The Fisher information matrix, with the weights and the label drawn from the model's own prediction ; it equals the expected Hessian of in measures loss curvature, and denotes its block for . Estimating uses labels sampled from the model's own predictive distribution . That sampling makes equal the expected Hessian of the negative log-likelihood and removes any need for labeled data.
Diagonalizing directly is intractable for a full weight matrix, so K-FAC factors it into ordered rank-one components. At one token, the loss gradient with respect to is the outer product . Stacking the rows of into one vector turns into the Kronecker productfor vectors, lists all products in the order ; for matrices, is the block matrix whose block is , givingThe third line treats and as independent, which is K-FAC's main approximation. Write and for the eigendecompositions of these second-moment matrices, with eigenvalues in decreasing order. The eigenvectors of are , with eigenvalues ; reshaped back into matrices, they are the unit-norm rank-one components . That splits into components,each with approximate loss curvature . Finding all of them takes two small eigendecompositions rather than one of size . For OLMo-2, the authors estimate and for the gate, up and down projectionsthe three weight matrices of OLMo-2's MLP block, which maps its input to , with the entrywise product of every MLP from about 20M tokens of its training mixtures. For the ViT, they use 10,000 ImageNet training images at the CLS tokenthe extra token a vision transformer adds to the image patches; its final state feeds the classifier only.
In the authors' argument, averaging over many examples pushes memorization to the flat end of this spectrum. Each memorized sequence curves sharply along a direction of its own, while a general mechanism curves along one direction shared across many inputs. An exact toy shows the arithmetic (computed here). Suppose each of examples has curvature along its own unit direction and curvature along a shared unit direction , with all directions mutually orthogonal. Their average curvature matrix isThe shared direction keeps curvature , while each example's own direction drops to . Once , each example's own direction is flatter than the shared one in the average, even when on every single example. Dilution also needs enough ambient dimension for the directions to stay nearly orthogonal. Two random unit vectors in dimensions have average squared overlap , so random directions yield averaged curvature about along each (computed here). Both and must therefore be large compared with . In a plane (), many sharp directions average to a round bowl of curvature and never flatten. The paper never measures single-example curvature or the angles between examples' sharp directions. Its evidence for the flat end comes from the activation bands and weight edits below.
Before editing any weights, the authors test whether the K-FAC input basis separates memorized inputs from clean ones. Memorized inputs do load on the low-curvature end. Using the input factor alone, they group its eigenvectors into four bands: top 10%, 10 to 25%, 25 to 50%, and bottom 50%. In layer 22 of OLMo-2 7B, the MLP input's bottom-50% band is 23.1% stronger on memorized inputs than on clean ones. The top-10% band is 26% stronger on clean inputs, with the middle bands ordered in between. Bands built from 's right singular vectors show no ordering. In the ViT's last layer, the top-10% band is more than twice as strong on clean images as on memorized ones. Singular-vector bands again show no pattern.
The edit keeps the highest-curvature components and zeros the rest. It ranks pairs by and keeps them in descending order until their summed curvature reaches a target share of the total:The edited matrix keeps only the components indexed by :No forget set enters this construction, since , , and the ranking all come from ordinary text. In OLMo-2 7B, the authors edit the gate and up projections of layers 23, 24, and 25 out of 32 at . In the ViT, they edit both MLP matrices of blocks 0 and 11 out of 12 at . The paper compares against two baselines. A data-free SVD edit deletes the smallest singular values of (in one layer on OLMo-2 7B, and in the same two blocks on the ViT). BalancedSubnetBSN (Sakarvadia et al., 2025): a learned binary mask over individual MLP weights, trained to raise the loss on a forget set of memorized sequences while keeping it low on a retain set of other text (BSN) learns a supervised weight mask on the Dolma tuning half.
The curvature edit removes far more recitation of unlisted memorized text than the supervised mask. Yet on OLMo-2 7B, the data-free SVD edit matches it. The unedited 7B model reproduces 99.9% of both held-out Dolma sequences and famous quotes exactly (strict accuracy). The curvature edit cuts strict accuracy to 3.4% on Dolma and 16.1% on quotes, while perplexitythe exponential of the average next-token loss in nats; lower is better, and its rise after an edit measures how much ordinary prediction suffered on held-out Pile text rises from 19.04 to 22.84. BSN is trained on the Dolma forget set and tuned to a comparable perplexity of 23.59. It cuts Dolma recitation to 6.0% but leaves 60.0% of the quotes intact. The SVD edit reaches 3.0% on Dolma and 17.5% on quotes at perplexity 22.49, using the best settings the paper found for it. In OLMo-2 1B, the curvature edit beats SVD on quotes, 27.7% versus 39.6%, at perplexity 26.53 versus 26.94. On 7B held-out text, BSN preserves the unedited model's top next-token predictions slightly better than either edit, scoring 0.97 versus 0.91 on nDCG@10normalized discounted cumulative gain at 10: the share of the edited model's top 10 next-token predictions that are also in the unedited model's top 10, weighted toward the edited model's highest ranks; 1 when the two top-10 sets agree. On memorized 7B prefixes, however, BSN outputs nonsense ("measure measure") in seven of ten sample generations. In those same ten samples, the curvature edit mostly produces fluent text that diverges from the memorized continuation.
For a practitioner, this edit cuts verbatim recitation of unlisted text at a cost of a few points of perplexity. Computing it takes statistics from about 20M tokens of ordinary text, plus two eigendecompositions and a mask per matrix. Choosing which layers to edit and what fraction to keep still relied on memorization labels from the Dolma tuning split. The authors do not claim permanent erasure. They expect memorized text could resurface after further fine-tuning, a check they do not run.
| Benchmark | Unedited | Edited |
|---|---|---|
| Facts recalled from the weights | ||
| TriviaQA | 78.0 | 64.8 |
| PopQA | 80.7 | 59.8 |
| Facts given in the prompt | ||
| TriviaQA-Open | 76.0 | 72.0 |
| OpenBookQA+fact | 88.8 | 89.4 |
| Math and its neighbors | ||
| GSM8K | 67.5 | 44.7 |
| MMLU-Pro math | 23.4 | 15.8 |
| MMLU-Pro CS | 26.1 | 26.3 |
| BBH Boolean | 76.4 | 81.2 |
Across four tasks, accuracy drops most on benchmarks whose inputs load on the low-curvature activation bands like memorized text. On the three edited layers, OpenBookQA with the fact supplied projects like clean data. Memorized inputs project onto the bottom-50% band about 1.6 times as strongly as OpenBookQA. SimpleMath (generated two-digit additions and subtractions) and TriviaQA both lean toward that bottom band and lose the most accuracy of the four tasks. For arithmetic, the authors leave two explanations open. Either the model memorizes the problems at this scale, or precise calculation relies on narrowly used directions.
The curvature basis clearly beats SVD in the vision transformer trained with 10% random labels. Unedited, the ViT predicts the corrupted label on 81.6% of noised training images and the true label on 10.5%, with 67.0% validation accuracy. Both the curvature edit and an SVD truncation of the same two blocks cut random-label predictions to 3.5%. At that same 3.5% rate, the curvature edit recovers the true label on 66.5% of those images versus 58.9% for SVD. It also lifts validation accuracy to 71.7% versus 67.8%. Editing the first or last block works best in a single-block sweep, matching the blocks with the widest activation-band separation.
The quote set gives a fair test of generalization beyond a forget set. No step of the method saw the quotes, scoring checks exact reproduction, and BSN was tuned to a comparable perplexity. The 16.1% versus 60.0% gap therefore reflects removal of unlisted text. The ViT adds a test where memorized examples are known by construction. There, the curvature edit recovers more true labels than SVD on the same blocks. A NeurIPS paper by Bernstein et al. (2026) tests top-eigenspace projection with the exact per-layer Fisher in ResNet-20 models on CIFAR-10. Those models are trained to memorize random images or corrupted labels. Keeping top eigenvectors hurts memorized samples more than clean ones in some layers, but not in others. Under corrupted labels, the separation is clear when the Fisher is computed on clean data and weakens once the noisy training set enters it.
For the language models, the experiments do not establish that curvature ordering itself does the work. No control deletes random or high-curvature components at matched perplexity, and the data-free SVD edit matches the curvature edit on OLMo-2 7B. Because the Dolma tuning split chose the edited layers and kept fraction, the quotes remain the only clean test. Every number comes from a single run, with no repeated seeds and no error bars on the main tables. The tests cover only one language-model family (OLMo-2) and one ViT-Base trained by the authors. Both activation-band comparisons, on memorized text and on downstream tasks, come from single figures with no summary statistics. Recitation also partly returns under the prompt perturbations of Huang et al. (2024). Average exact continuation length climbs from 6.6 to 13.3 tokens for the curvature edit, versus 4.6 to 10 for BSN. No outside replication of the language-model edits was found.
Terms
- Curvature basis
- the rank-one components of a weight matrix, ordered by their K-FAC curvature
- K-FAC
- : one layer's Fisher block as gradient second moments times input second moments
- Population flatness
- each memorized example is sharp in its own direction, so the average gives each such direction a small share
- Curvature edit
- keep pairs in decreasing until a share of the total is kept, and zero the rest of
- SVD edit
- delete the smallest singular values of ; uses no data
- BalancedSubnet (BSN)
- supervised baseline: a weight mask trained to raise the loss on a forget set
- Strict accuracy
- share of memorized sequences still reproduced exactly; lower is better here
- Activation band
- a range of eigenvectors of (top 10% to bottom 50%) on which an input's projection is measured
- Closed-book vs open-book
- answering from the weights alone, or with the source text in the prompt
Sources
- Jack Merullo, Srihita Vatsavaya, Lucius Bushnaq, and Owen Lewis. From Memorization to Reasoning in the Spectrum of Loss Curvature. arXiv preprint, 2025.
- Daniel T. Bernstein, Chase Goddard, Luca Di Carlo, Vudtiwat Ngampruetikorn, and David J. Schwab. Fisher information and the geometry of memorization in neural networks. NeurIPS 2026.
Connected notes
- Harmless interpolation of noisy data in regressionBenign overfitting · Noise absorbed by many weak directions
An interpolator must put the noise somewhere, the cheapest place is spread thinly over many weakly weighted directions at a cost of about , and that spreading also moves part of the signal onto aliases, features that agree with the true one on the training points, unless a few strong directions hold it.
- Limits of uniform convergenceGeneralization bounds · Noise absorbed by many weak directions
The classifier is a simple part that carries the signal plus a memorizing part spread over nearly orthogonal noise directions, which fits every training label and changes predictions on new points very little.
Normalized mode errors are ordered opposite to the eigenvalues at every sample size, so a target whose power sits in the top modes is learned faster.
- Benign Overfitting in Linear RegressionBenign overfitting · Noise absorbed by many weak directions
Benign overfitting needs strong directions, a tail that is heavy and flat enough that the unimportant directions greatly outnumber , and signal that sits in the head.