Skip to content

The transition from memory to reasoning in the loss curvature spectrumFrom Memorization to Reasoning in the Spectrum of Loss Curvature

arXiv· arXiv:2510.24256· Jack Merullo, Srihita Vatsavaya, Lucius Bushnaq, Owen LewisGoodfireIndexed by this site · 2026-10-14· Originally publishedAlignment

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

K-FAC on the OLMo-2 7B citation set has Strict at 16.1%, while BSN is 60.0% (Table 1).

Questions
The model both reproduces training data verbatim and performs reasoning. The authors want to understand how memorization and generalization separate in the loss curvature of the weights, and whether memorization alone can be suppressed.
Methods
Use activation and gradient covariances for K-FAC, building MLP weights into curvature eigenvectors. When editing, retain high curvature mass by eigenvalue product and remove low-curvature directions. For 7B, modify layers 23–25 up and gate, retaining 60% energy.
Experiments and results
On OLMo-2 7B, K-FAC Dolma Strict is 3.4%, citation set Strict is 16.1% (Table 1). The authors say arithmetic and closed-book retrieval drop more, while logic and open-book are largely retained. On ViT, memorization rate drops to 3.5%, validation accuracy 71.7% (Table 2).
Limitations and future work
The authors state they do not claim memory has been completely erased; recitation may reappear after further fine-tuning. The smallest eigenvalues may have numerical issues. Experiments include OLMo-2 7B/1B and 86M ViT, judged as greedy decoding; the paper does not report the number of repetitions for the main table.
Experimental setupOLMo-2 7B、OLMo-2 1B et al. · Dolma、Historical Quotes et al. · Strict Accuracy、Loose Accuracy et al.
Evaluated models
OLMo-2 7BOLMo-2 1BViT-Base
Benchmarks
DolmaHistorical QuotesPile10kILSVRC 2012 ImageNetOLMESTriviaQATriviaQA-OpenRelationsPopQAOBQACSQAOBQA+FactBoolQGSM8KWinograndeBigBench-HardMMLU-ProBoar EtruscanSimpleMath
Metrics
Strict AccuracyLoose AccuracyAverage Normalized Levenshtein DistancePerplexitynDCG@10top-1 accuracyTrain GT AccuracyValidation Accuracy
AI summaryThe researchers propose a method based on loss curvature decomposition to distinguish memory and non-memory components in the weights of language models and vision transformers (ViTs), and edit weights accordingly. The decomposition relies on the fact that memorized training points have much higher curvature than non-memorized points; sorting by curvature from high to low allows distinguishing them without explicit labels. The weight editing method based on this outperforms BalancedSubnet in suppressing the reproduction of non-target memorized data while maintaining lower perplexity. The authors claim that after editing, fact retrieval and arithmetic tasks are consistently negatively affected, while open-book fact retrieval and general logical reasoning remain unimpaired; there is a correspondence between the activation strength of task data and the low-curvature components that are edited away.

The researchers propose a method based on loss curvature decomposition to distinguish memory and non-memory components in the weights of language models and vision transformers (ViTs), and edit weights accordingly. The decomposition relies on the fact that memorized training points have much higher curvature than non-memorized points; sorting by curvature from high to low allows distinguishing them without explicit labels. The weight editing method based on this outperforms BalancedSubnet in suppressing the reproduction of non-target memorized data while maintaining lower perplexity. The authors claim that after editing, fact retrieval and arithmetic tasks are consistently negatively affected, while open-book fact retrieval and general logical reasoning remain unimpaired; there is a correspondence between the activation strength of task data and the low-curvature components that are edited away.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors use the loss curvature spectrum to distinguish verbatim recitation from reusable structure, and edit weights accordingly to suppress recitation.

    The core question is: can verbatim recitation and reusable structure in Transformer weights be separated along the loss curvature spectrum, and can recitation be edited out?

    • Scenario: The authors state that models can both perform new tasks and store large amounts of training data verbatim; in natural interactions with chatbots, a considerable proportion involves verbatim reproduction, which relates to copyright and privacy.
    • Existing gaps: Existing curvature work mostly analyzes individual samples; in classification models the boundary between memory and generalization is clear, whereas language models lie between long-text verbatim reproduction and reasoning from scratch, with intermediate behaviors such as fact retrieval and arithmetic.
    • Observation: Individual memorized points are sharper in certain directions, but the directions vary across samples. After averaging across samples, recitation directions are flatter than generalization directions that maintain moderate curvature at each point, so sorting curvature components from high to low can separate the two without explicit labels.
    • Approach: Use K-FAC to decompose the MLP weights of language models and ViTs, retain high-curvature components to suppress unnamed recitation, and compare with BalancedSubnet and SVD truncation.
  2. What related research exists?

    Related work focuses on memorization localization, SVD, and loss curvature; the authors use K-FAC for data averaging.

    Memory quantification and localization

    • Storage and elicitation: Morris et al. (2025), Aerni et al. (2024), Carlini et al. (2022), Karamolegkou et al. (2023) discuss that models can precisely store training data and be elicited verbatim in natural interactions or adversarial settings.
    • Whether it can be localized: Maini et al. (2023), Chang et al. (2024), Stoehr et al. (2024), Huang et al. (2024) study whether memory can reside in specific weights. The authors state, consistent with Hase et al. (2023) and Karamolegkou et al. (2023), that memory is difficult to pinpoint and may be highly distributed, but curvature directions related to recitation can reside in some early or late layers.
    • Fact storage: Geva et al. (2021), Meng et al. (2022), Dai et al. (2022), among others, study the storage and retrieval of facts. The authors connect this line to the fact recall analysis in Section 6.

    Weight spectra and functional decomposition

    • SVD and spectral dynamics: Zhao et al. (2024), Jaiswal et al. (2025), Sharma et al. (2023) use SVD and similar methods to prune weight directions for compression, low-rank structure, or memory analysis. Yunis et al. (2024) use weight spectral dynamics to examine memory and generalization.
    • Other decompositions: Baker et al. (2025), Bushnaq et al. (2025) use other decompositions to localize functional components in weight space. Bushnaq et al. (2024) use the loss landscape for interpretability.

    Loss curvature and memory

    • High curvature and single-point memory: Foret et al. (2021), Hochreiter and Schmidhuber (1997), Keskar et al. (2017), Garg et al. (2024), Ravikumar et al. (2024), Jeon et al. (2024), Kim et al. (2023) connect high-curvature directions to memorized samples. LeCun et al. (1989), Hassibi et al. (1993) are earlier curvature pruning works. This part of the paper is a survey and does not provide per-paper experimental comparisons with this work.

    Baselines and data

    • Baseline methods: BalancedSubnet (BSN; Sakarvadia et al., 2025) increases loss on the forget set while keeping loss low on the retain set, training binary masks for MLP parameters; SVD truncation is also used.
    • Benchmarks/datasets: Dolma memory window, Historical Quotes, ILSVRC 2012 with random labels, OLMES downstream tasks; curvature statistics come from Dolmino/OLMo mixed text and ImageNet training images.

    The authors position this work after the above: using K-FAC to obtain dataset-averaged curvature, thereby examining batch-level memory rather than only individual samples, and extending spectral analysis to fact retrieval, arithmetic, and logical reasoning. The authors state that, to their knowledge, using K-FAC to study memory and generalization via curvature is a novel application.

  3. How does the paper address this problem?

    K-FAC approximates curvature using activation and gradient covariances, and during editing only retains eigenvector pairs with high curvature mass.

    The overall approach is to use the K-FAC curvature basis to decompose MLP weights into directions from high to low curvature, and when editing only retain high curvature mass. The authors believe that after averaging, shared mechanisms remain at the high end of the spectrum, while verbatim memorization falls more at the low end.

    Curvature Basis and Data Averaging

    • Approximation: For weights W, collect input activations a and output-side gradients g, forming covariances A and G. The layer's Fisher block is approximated as FW ≈ G ⊗ A = 𝔼[gg⊤] ⊗ 𝔼[aa⊤], i.e., the average curvature over the dataset, not a single-sample Hessian.
    • Components: The outer product of G's eigenvector u and A's eigenvector v is a rank-one direction with the same size as W, which the paper calls K-FAC eigenvectors. Eigenvalues are ordered by curvature from high to low.
    • Difference from single-point images: The authors say a single memorized sample is locally sharper, but the sharp direction changes with the sample, and after averaging cancels into a low-curvature background; mechanisms shared by many inputs add coherently and remain high curvature after averaging.
    • Selectivity: The separation experiment projects activations onto A's eigenbasis; this measurement does not use gradients, but quantile bands are ordered by the full FIM. The metric is the activation ratio on weight component C, i.e., memorized activation norm divided by clean activation norm.

    How Statistics Are Collected

    • Language: For the gate, up, and down MLP projections, read about 20M tokens from Dolmino/OLMo mixed data, sequence length 512, loss is next-token cross-entropy. Forward pass caches pre-activations except the last position, backward pass records gradients, normalized by the number of contributing positions.
    • Vision: ImageNet training set 10k images, using only the CLS token. The model is 86M ViT-Base, 16×16 patch, resolution 224×224.
    • No labels: When computing G, sample from the model's predictive distribution, not using true labels. The authors say this allows using unlabeled data. Under softmax cross-entropy, Fisher equals the expected Hessian of the negative log probability over parameters.

    Editing by Curvature Mass

    • Selecting pairs rather than directly truncating the eigenbasis: Transform W onto the two-sided eigenbases, coefficients denoted Cij. The curvature mass of each eigenvector pair is Πij:=λi μj. Select by this quantity from largest to smallest until cumulative mass is at least proportion ρ of total mass, set remaining coefficients to zero, then transform back to weights.
    • Settings: The paper also calls ρ energy. Language models modify layers 23, 24, 25 up and gate, ρ 60%. ViT modifies layers 0 and 11 up and down, ρ 75%. K-FAC editing maintains full rank.
    • SVD comparison: Alternatively truncate the bottom singular values of the weight matrix. The authors give a possible explanation: if right singular vectors align with A's top directions, then weights mainly vary along input principal components; the paper writes this alignment was not directly tested. The language model selected setting is layer 21, up and down pruning ratio 0.005, gate 0.5.

    How Memorization Is Determined

    • Language: Greedy-generate the suffix from the prefix, then compute edit distance. Strict is distance 0; Loose is 1 minus distance/suffix length at least 0.75; also report average normalized edit distance, higher means less memorization. When mining Dolma in Appendix B, use whether teacher-forced argmax equals the suffix at each position.
    • Vision: Top-1 on noisy labels, recovery of true labels on these images, and validation accuracy. The training method controlling memorization is giving random labels to a portion of training images; the authors say in this case the only way to reduce loss is to memorize input–label pairs.
  4. What experiments did the paper conduct?

    On OLMo-2 7B, K-FAC's citation set Strict is 16.1%, while BSN is 60.0% (Table 1).

    Experimental Setup

    • Models: OLMo-2 7B, OLMo-2 1B, and 86M ViT-Base. ViT is trained following the recipe of Dosovitskiy et al. (2020); default 10% random labels, 300 epochs. Without noise, validation top-1 is 77.2%; Section 3.3 writes the noisy model as 68.7%.
    • Memory sets: The Dolma window in Appendix B is [64|48], and a suffix is marked as memorized only if teacher-forced argmax is correct at all 48 suffix positions; the 7B yields 1000 items, half train BSN and scan K-FAC, half validate. Main text Section 5.1 writes prefix and suffix as 48 and 64, inconsistent with Appendix B and Section 3.3's |P|=64, |S|=48. Historical Quotes suffix is 8 tokens; main text and Appendix B write 512 items, the 1B experiment writes 664 items. The 1B Dolma is 650 items, 525 train, 125 validation.
    • Editing: For 7B, K-FAC modifies layers 23–25 up and gate, retaining 60% energy. For ViT, modifies layers 0 and 11 up and down, retaining 75% energy. BSN selected loss weight 0.7, 5 epochs, sparsity ratio 0.0015, learning rate 0.3. SVD selected layer 21, up/down pruning ratio 0.005, gate 0.5. Curvature statistics about 20M tokens, sequence length 512.
    • Metrics and review: Language uses greedy decoding Strict, Loose (τ=0.75), and average normalized edit distance; Pile10k additionally reports perplexity, and nDCG@10 on the first 200k tokens. ViT looks at memorized-label top-1, true-label recovery, and validation accuracy. The paper does not use an LLM judge and does not report repetitions for the main tables. Downstream uses OLMES.

    Main Results

    The table below lists only edited language models. According to Table 1, the 7B baseline Dolma and Quotes Strict are both 99.9%, perplexity 19.04; the 1B baseline is 98.46%, 98.5%, 23.19.

    Swipe horizontally to read the table

    ModelMethodDolma StrictQuotes StrictPerplexity
    OLMo-2 7BBSN6.0%60.0%23.59
    OLMo-2 7BK-FAC3.4%16.1%22.84
    OLMo-2 7BSVD3.0%17.5%22.49
    OLMo-2 1BBSN3.0%57.0%25.41
    OLMo-2 1BK-FAC2.8%27.7%26.53
    OLMo-2 1BSVD3.2%39.6%26.94
    • Authors' interpretation: The authors say K-FAC and SVD do not require the forgetting-set training that BSN does, and suppress memorization more broadly on unseen citations. A footnote in Section 5.2 writes that layer selection still uses a scan with memorization labels.
    • Continuous distance is not always in the same direction: Higher Avg Lev means less memorization. On 7B Dolma, BSN is 0.860, higher than K-FAC's 0.704 and SVD's 0.754; on the citation set, K-FAC is 0.625, higher than BSN's 0.180 (Table 1).
    • Coherence: For 7B nDCG@10, the main text writes BSN 0.97, K-FAC and SVD 0.91; Table 7 only has baseline 1.000, BSN 0.97, K-FAC 0.91. On 1B, K-FAC perplexity is higher than BSN, opposite to 7B. The authors say BSN, due to gradient ascent, generates more nonsensical text when detecting memorization; SVD may drop function words, they only saw 2 cases, K-FAC maintains full rank and this issue was not seen.

    Activation Separation on the Curvature Basis

    • What was measured: Figure 2 compares activation ratios of memorized vs. clean data on K-FAC quantile bands and SVD components. Both language models and ViT are plotted.
    • Results: The main text writes that at the MLP input of OLMo-7B layer 22, the bottom 50% eigenvector pairs have 23.1% higher activation on memorized data than clean data, and the top 10% have 26% higher activation on clean data than memorized data. The authors say intensity on clean data is ordered by top 10%, 10–25%, 25–50%, bottom 50%. SVD has 26% higher activation on memorized data in the top 10% of the last layer, and around layer 20 only gate separation is strong, but this ordering is missing.
    • Authors' interpretation: The authors say the curvature basis is more suitable than SVD for describing the spectrum from memorized to non-memorized. For ViT, the top 10% eigenvector pairs in the last layer have activation on clean data that the authors say exceeds that on memorized data by more than 2 times; the SVD of this model has no such pattern.

    Downstream Task Spectrum

    • What was measured: Using OLMES and Relations, SimpleMath, Boar Etruscan, tasks are divided into closed-book facts, open-book facts, logic, and arithmetic, and compared with memorized sequences. Figure 3 is accuracy relative to the unedited model.
    • Results: The authors report logic retention 95%–106%, open-book QA 93%–99%, closed-book QA 74%–86%, arithmetic 66%–74%, memorization 3%–16%. In Table 8, GSM8K is baseline 0.675, BSN 0.610, K-FAC 0.447; TriviaQA is 0.780, 0.766, 0.648; OBQA+Fact is 0.888, 0.884, 0.894. The main text writes MMLU-Pro Math from 23.4% to 15.8%, which the authors say is 67% of baseline; the computer science subset is baseline 26.1%, K-FAC 26.3%, BSN 25.1%.
    • Authors' interpretation: The authors say arithmetic and closed-book retrieval rely more on low-curvature directions, while open-book and non-numeric logical reasoning are more stable, sometimes higher after editing. Table 9 boolean expressions: baseline 76.40%, K-FAC 81.20% (difference +4.80 percentage points); object counting difference is −22.80 percentage points. The main text for Figure 4 writes that on layers 23–25, the interaction magnitude of memorized data with the spectral bottom is about 1.6 times that of OpenbookQA; SimpleMath is more biased toward the spectral bottom relative to clean data. The authors believe this corresponds to the drop in Figure 3. The specific tick values of the curves in the figure are not fully given in the text transcription.

    ViT Editing and Position Perturbation

    • ViT: Table 2 baseline is memorized training 81.6%, true labels 10.5%, validation 67.0%. SVD and K-FAC memorization rates are both 3.5%; true labels are 58.9% and 66.5%; validation is 67.8% and 71.7%. The authors say editing both layers 0 and 11 is best, and say the validation increase may come from regularization. The 68.7% in Section 3.3 differs from the Table 2 baseline 67.0%, and the paper does not state whether it is the same checkpoint.
    • Position perturbation: Table 6 gives the number of extractable memorized tokens; the paper does not state what the quantity after ± is, nor the number of repetitions. BSN goes from 4.6±10.45 to 9.79±14.36; K-FAC from 6.64±8.6 to 13.27±9.34; SVD from 6.33±8.93 to 12.78±9.19. The authors say the increase is smaller than the older methods analyzed by Huang et al. (2024), and write K-FAC from 6.6 to 13.3 (+6.7 tokens), BSN from 4.6 to 10 (+5.4).
    • Relation frequency: Section 6.2 says the least frequent relations in Relations, such as Company-CEO, drop 78% relative to baseline, while the most frequent change only a few points or not at all. Figure 5 transcription shows −78.3; column alignment for the remaining bars is unreliable, so individual bars are not cited.

    Other Ablations and Analyses

    • Appendix D searches energy from 60% to 90%, finally using 60% for language models; layer search includes early, middle, deep layers, and combinations of up to three layers.
    • Table 2 note writes that ViT SVD retains only 5% at the selected K-FAC layers; the language model SVD selected setting is layer 21, up/down 0.005, gate 0.5.
    • BSN selected loss weight 0.7, 5 epochs, sparsity ratio 0.0015, learning rate 0.3.
    • Appendix H.1 varies weight decay from 0.05 to 0.6; the authors say higher weight decay generally makes separation more pronounced, and say there is a jump around 0.3. Heatmap cell column alignment is unreliable, so cell numbers are not cited.
    • Table 9 averages: OLMo 49.89%, K-FAC 47.45%, BSN 46.26%. Table 10 MMLU-Pro averages are 29.92%, 27.32%, 28.35%, math difference −7.55.
    • Table 8 Relations row prints 74.855, 0.268, 64.390, with a scale different from other 0–1 rows in the same table; the paper does not explain.
  5. What are some points that can be further explored?

    The authors say they cannot claim memorization has been eliminated; the curvature approximation may be unstable at the lowest eigenvalues.

    Limitations and future directions noted by the authors

    • Cannot claim memory has been erased: Section 8 states they do not claim to have completely removed memory from the model; the authors believe the method is likely to allow memorized data to resurface after further fine-tuning or perturbation, citing Lee et al. (2025).
    • Reasons for sensitivity remain speculative: Section 8 states that to fully explain why some tasks are more sensitive and interact more with lower K-FAC eigenvectors, they still have to speculate.
    • Low curvature is not necessarily memory: Section 8 states that uncommon directions not exhibiting high curvature could also be precise structures, not necessarily memory or narrow usage patterns.
    • Approximation and numerics: Section 8 states the curvature approximation is imperfect; estimating the smallest eigenvalues may have numerical stability issues. The authors state this does not affect model editing but may affect other analyses.
    • Future work: Section 8 expresses hope to extend the analysis and connect the loss curvature of different skills to ease of fine-tuning, required effective capacity, and how to make them more robust. The authors also list "whether models can be trained smaller to specialize in reasoning" as an interesting direction, noting the results only possibly hint at this.

    Experimental coverage

    • Models edited and reported individually are OLMo-2 7B, OLMo-2 1B, and 86M ViT-Base; the ViT default training is 10% random labels, 300 epochs.
    • Language memory judgment is Strict, Loose (τ=0.75), and normalized edit distance under greedy decoding; the paper does not use LLM judges and does not report the number of repetitions for Table 1.
    • The K-FAC setting for 7B is specified as layers 23–25 up and gate, retaining 60% energy. The main text says the 1B setting is in Appendix F, but Appendix F only describes data splits and does not specify layers and energy.
    • Downstream tasks come from OLMES and include closed-book/open-book facts, logic, arithmetic, Relations, SimpleMath, and Boar Etruscan; comparison methods are BSN and SVD.
    • The stress test is position perturbation following Huang et al. (2024). K-FAC statistics come from approximately 20M tokens or 10k training images. A footnote in Section 5.2 states that the layer selection scan used memory labels.
  6. Summarize the main content of the paper

    The curvature spectrum separates recitation from reusable structure; removing low-curvature directions suppresses unseen recitation, but arithmetic and closed-book question answering worsen.

    The authors use the loss curvature spectrum to characterize the difference between verbatim memorization and reusable computation in Transformers, and edit MLP weights accordingly.

    • Problem: Models both memorize and generalize. The authors want to see how these two abilities are represented in the weights, how they trade off, and whether memorization alone can be suppressed.
    • Observation: A single memorized point can be sharp, but the sharp direction varies with the sample. After averaging across data, memorization falls more in flatter directions, while shared mechanisms remain at higher curvature.
    • Method: K-FAC approximates Fisher with the Kronecker product of activation covariance and gradient covariance, then retains eigenvector pairs with high curvature mass by eigenvalue product. 7B retains 60% energy of layers 23–25 up and gate; ViT retains 75% energy of layers 0 and 11 up and down. Comparisons are BSN and SVD truncation.
    • Language editing: In Table 1, OLMo-2 7B K-FAC reduces Dolma Strict to 3.4% and Historical Quotes Strict to 16.1%, perplexity 22.84; BSN on the citation set is 60.0%, perplexity 23.59. 1B citation set Strict is K-FAC 27.7%, BSN 57.0%, SVD 39.6%. On Dolma average edit distance, BSN is higher than K-FAC.
    • Vision and downstream: In Table 2, both K-FAC and SVD reduce ViT memorization rate to 3.5%; K-FAC true-label accuracy is 66.5%, validation accuracy 71.7%, baseline validation 67.0%. The authors report logic and open-book QA are largely retained, while closed-book facts and arithmetic drop more.
    • Authors' conclusion: High curvature corresponds to cross-sample shared structure, low curvature supports more memorization and brittle tasks. The authors say this editing does not require a forgetting set, can also suppress unseen memorization, while maintaining relatively low perplexity; they do not claim memorization has been completely eliminated.
Read originalarxiv.org