On Linear Representations and Pretraining Data Frequency in Language Models
Not on the map. Why?
Abstract (arXiv)
Pretraining data has a direct impact on the behaviors and quality of language models (LMs), but we only understand the most basic principles of this relationship. While most work focuses on pretraining data's effect on downstream task behavior, we investigate its relationship to LM representations. Previous work has discovered that, in language models, some concepts are encoded `linearly' in the representations, but what factors cause these representations to form? We study the connection between pretraining data frequency and models' linear representations of factual relations. We find evidence that the formation of linear representations is strongly connected to pretraining term frequencies; specifically for subject-relation-object fact triplets, both subject-object co-occurrence frequency and in-context learning accuracy for the relation are highly correlated with linear representations. This is the case across all phases of pretraining. In OLMo-7B and GPT-J, we discover that a linear representation consistently (but not exclusively) forms when the subjects and objects within a relation co-occur at least 1k and 2k times, respectively, regardless of when these occurrences happen during pretraining. Finally, we train a regression model on measurements of linear representation quality in fully-trained LMs that can predict how often a term was seen in pretraining. Our model achieves low error even on inputs from a different model with a different pretraining dataset, providing a new method for estimating properties of the otherwise-unknown training data of closed-data models. We conclude that the strength of linear representations in LMs contains signal about the models' pretraining corpora that may provide new avenues for controlling and improving model behavior: particularly, manipulating the models' training data to meet specific frequency thresholds.
Key facts. Cited by 23 papers in the map (data through 13 Oct 2026). Builds on 43 of its 59 references that are in the map. First posted on arXiv 16 Apr 2025.
Builds on
43 of 59 references.
References · 43
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,360
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,467
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,379
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,273
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,424
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,391
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,111
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,042
- 2021Membership Inference Attacks From First Principlescited by 872
- 2022Quantifying Memorization Across Neural Language Modelscited by 763
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 706
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 706
31 more
- 2024OLMo: Accelerating the Science of Language Modelscited by 605
- 2024Scaling and evaluating sparse autoencoderscited by 544
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 477
- 2020Null It Out: Guarding Protected Attributes by Iterative Nullspace Projectioncited by 451
- 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 391
- 2023Detecting Pretraining Data from Large Language Modelscited by 383
- 2023In-Context Learning Creates Task Vectorscited by 305
- 2023Function Vectors in Large Language Modelscited by 299
- 2023Proving Test Set Contamination in Black Box Language Modelscited by 228
- 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 221
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 195
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
- 2013Hacking Smart Machines with Smarter Ones: How to Extract Meaningful Data from Machine Learning Classifierscited by 130
- 2023What's In My Big Data?cited by 129
- 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 98
- 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 89
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Datacited by 84
- 2023At Which Training Stage Does Code Data Help LLMs Reasoning?cited by 82
- 2024On the Origins of Linear Representations in Large Language Modelscited by 78
- 2023The Bias Amplification Paradox in Text-to-Image Generationcited by 70
- 2018Towards Understanding Linear Word Analogiescited by 57
- 2022Measuring Causal Effects of Data Statistics on Language Model's `Factual' Predictionscited by 57
- 2023The Curious Case of Hallucinatory (Un)answerability: Finding Truths in the Hidden States of Over-Confident Large Language Modelscited by 55
- 2024To Code, or Not To Code? Exploring Impact of Code in Pre-trainingcited by 47
- 2024Recurrent Neural Networks Learn to Store and Generate Sequences using Non-Linear Representationscited by 45
- 2021Formalizing and Estimating Distribution Inference Riskscited by 43
- 2022Interpreting Neural Networks through the Polytope Lenscited by 33
- 2024Mechanistic?cited by 25
- 2024Understanding Reasoning Ability of Language Models From the Perspective of Reasoning Paths Aggregationcited by 22
- 2024Data Mixture Inference: What do BPE Tokenizers Reveal about their Training Data?cited by 13
- 2023Identifying Linear Relational Concepts in Large Language Modelscited by 12
Built on by
Citing papers per year: 2025: 10; 2026: 13.
23 papers.
Sort:
By area:
- 2025From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuitcited by 48
- 2026Manifold Steering Reveals the Shared Geometry of Neural Network Representation and Behaviorcited by 25
- 2025Text Generation Beyond Discrete Token Samplingcited by 21
- 2025Self-Correction Bench: Uncovering and Addressing the Self-Correction Blind Spot in Large Language Modelscited by 20
- 2025Tracing Multilingual Factual Knowledge Acquisition in Pretrainingcited by 10
- 2026Causality neq Invariance: Function and Concept Vectors in LLMscited by 8
- 2025How Do Language Models Compose Functions?cited by 7
- 2026Understanding Emergent Misalignment via Feature Superposition Geometrycited by 7
- 2025Fresh in memory: Training-order recency is linearly encoded in language model activationscited by 5
- 2026Alignment midtraining for animalscited by 4
- 2025Mechanistic Interpretability with Sparse Autoencoder Neural Operatorscited by 3
- 2025From Memorization to Reasoning in the Spectrum of Loss Curvaturecited by 1
11 more
- 2026Relational Linearity is a Predictor of Hallucinationscited by 1
- 2026Probing for Knowledge Attribution in Large Language Modelscited by 1
- 2026Geometric Factual Recall in Transformerscited by 1
- 2026Talk is (Not) Cheap: A Taxonomy and Benchmark Coverage Audit for LLM Attackscited by 1
- 2026Shared Doubt: Zero-Shot Cross-Lingual Confidence Estimation for Language Modelscited by 1
- 2025Position: Pause Recycling LoRAs and Prioritize Mechanisms to Uncover Limits and Effectivenesscited by 0
- 2025Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behaviorcited by 0
- 2026Graded Entity-Familiarity Readouts in Language Models: Polish Adaptation, Cross-Language Robustness, and Refusal Steeringcited by 0
- 2026The More Popular, The Harder to Forget: Adaptive Popularity for LLM Unlearningcited by 0
- 2026The Privacy-Hallucination Tradeoff in Differentially Private Language Modelscited by 0
- 2026A Survey on the Linear Representation Hypothesiscited by 0
- 2026A Survey on the Linear Representation Hypothesis19 Sep 2026
- 2026The Privacy-Hallucination Tradeoff in Differentially Private Language Models31 Aug 2026
- 2026The More Popular, The Harder to Forget: Adaptive Popularity for LLM Unlearning14 Aug 2026
- 2026Graded Entity-Familiarity Readouts in Language Models: Polish Adaptation, Cross-Language Robustness, and Refusal Steering15 Jul 2026
- 2026Shared Doubt: Zero-Shot Cross-Lingual Confidence Estimation for Language Models29 May 2026
- 2026Talk is (Not) Cheap: A Taxonomy and Benchmark Coverage Audit for LLM Attacks14 May 2026
- 2026Geometric Factual Recall in Transformers12 May 2026
- 2026Manifold Steering Reveals the Shared Geometry of Neural Network Representation and Behavior6 May 2026
- 2026Understanding Emergent Misalignment via Feature Superposition Geometry7 Apr 2026
- 2026Alignment midtraining for animals21 Mar 2026
- 2026Probing for Knowledge Attribution in Large Language Models26 Feb 2026
- 2026Causality neq Invariance: Function and Concept Vectors in LLMs25 Feb 2026
11 more
- 2026Relational Linearity is a Predictor of Hallucinations16 Jan 2026
- 2025From Memorization to Reasoning in the Spectrum of Loss Curvature28 Oct 2025
- 2025Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behavior16 Oct 2025
- 2025How Do Language Models Compose Functions?2 Oct 2025
- 2025Fresh in memory: Training-order recency is linearly encoded in language model activations17 Sep 2025
- 2025Mechanistic Interpretability with Sparse Autoencoder Neural Operators3 Sep 2025
- 2025Self-Correction Bench: Uncovering and Addressing the Self-Correction Blind Spot in Large Language Models3 Jul 2025
- 2025Position: Pause Recycling LoRAs and Prioritize Mechanisms to Uncover Limits and Effectiveness16 Jun 2025
- 2025From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuit3 Jun 2025
- 2025Text Generation Beyond Discrete Token Sampling20 May 2025
- 2025Tracing Multilingual Factual Knowledge Acquisition in Pretraining20 May 2025
- 2026Manifold Steering Reveals the Shared Geometry of Neural Network Representation and Behaviorcited by 25
- 2025Text Generation Beyond Discrete Token Samplingcited by 21
- 2025Tracing Multilingual Factual Knowledge Acquisition in Pretrainingcited by 10
- 2026Causality neq Invariance: Function and Concept Vectors in LLMscited by 8
- 2025How Do Language Models Compose Functions?cited by 7
- 2025Fresh in memory: Training-order recency is linearly encoded in language model activationscited by 5
- 2026Alignment midtraining for animalscited by 4
- 2026Relational Linearity is a Predictor of Hallucinationscited by 1
- 2026Probing for Knowledge Attribution in Large Language Modelscited by 1
- 2026Geometric Factual Recall in Transformerscited by 1
- 2026Talk is (Not) Cheap: A Taxonomy and Benchmark Coverage Audit for LLM Attackscited by 1
- 2026Shared Doubt: Zero-Shot Cross-Lingual Confidence Estimation for Language Modelscited by 1
12 most cited of 17 All 17 (JSON)
- 2026A Survey on the Linear Representation Hypothesis19 Sep 2026
- 2026The Privacy-Hallucination Tradeoff in Differentially Private Language Models31 Aug 2026
- 2026Graded Entity-Familiarity Readouts in Language Models: Polish Adaptation, Cross-Language Robustness, and Refusal Steering15 Jul 2026
- 2026Shared Doubt: Zero-Shot Cross-Lingual Confidence Estimation for Language Models29 May 2026
- 2026Talk is (Not) Cheap: A Taxonomy and Benchmark Coverage Audit for LLM Attacks14 May 2026
- 2026Geometric Factual Recall in Transformers12 May 2026
- 2026Manifold Steering Reveals the Shared Geometry of Neural Network Representation and Behavior6 May 2026
- 2026Alignment midtraining for animals21 Mar 2026
- 2026Probing for Knowledge Attribution in Large Language Models26 Feb 2026
- 2026Causality neq Invariance: Function and Concept Vectors in LLMs25 Feb 2026
- 2026Relational Linearity is a Predictor of Hallucinations16 Jan 2026
- 2025Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behavior16 Oct 2025
12 newest of 17 All 17 (JSON)