mlsanityData to 14 Oct 2026

Extractive Structures Learned in Pretraining Enable Generalization on Finetuned Facts

arXiv 2412.04614 ↗First posted 5 Dec 2024cs.LG cs.CLcited by 14

Not on the map. Why?

Abstract (arXiv)

Pretrained language models (LMs) can generalize to implications of facts that they are finetuned on. For example, if finetuned on ``John Doe lives in Tokyo," LMs can correctly answer ``What language do the people in John Doe's city speak?'' with ``Japanese''. However, little is known about the mechanisms that enable this generalization or how they are learned during pretraining. We introduce extractive structures as a framework for describing how components in LMs (e.g., MLPs or attention heads) coordinate to enable this generalization. The structures consist of informative components that store training facts as weight changes, and upstream and downstream extractive components that query and process the stored information to produce the correct implication. We hypothesize that extractive structures are learned during pretraining when encountering implications of previously known facts. This yields two predictions: a data ordering effect where extractive structures can be learned only if facts precede their implications, and a weight grafting effect where extractive structures can be transferred to predict counterfactual implications. We empirically demonstrate these phenomena in the OLMo-7b, Llama 3-8b, Gemma 2-9b, and Qwen 2-7b models. Of independent interest, our results also indicate that fact learning can occur at both early and late layers, which lead to different forms of generalization.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 25 of its 35 references that are in the map. First posted on arXiv 5 Dec 2024.

Builds on

25 of 35 references.

References · 25

  1. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  3. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  4. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  5. 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 671
  6. 2024OLMo: Accelerating the Science of Language Modelscited by 613
  7. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
  8. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 458
  9. 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 407
  10. 2023Studying Large Language Model Generalization with Influence Functionscited by 326
  11. 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 300
  12. 2023Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Modelscited by 243
13 more
  1. 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 242
  2. 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 169
  3. 2023Taken out of context: On measuring situational awareness in LLMscited by 143
  4. 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 143
  5. 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 127
  6. 2024AtP*: An efficient and scalable method for localizing LLM behaviour to componentscited by 111
  7. 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 90
  8. 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalizationcited by 79
  9. 2024Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queriescited by 78
  10. 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 67
  11. 2024Why Does New Knowledge Create Messy Ripple Effects in LLMs?cited by 18
  12. 2024Co-occurrence is not Factual Association in Language Modelscited by 12
  13. 2023Implicit meta-learning may lead language models to trust more reliable sourcescited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 7; 2026: 7.

14 papers.

Sort:

By area: