Language Models Implement Simple Word2Vec-style Vector Arithmetic
Not on the map. Why?
Abstract (arXiv)
A primary criticism towards language models (LMs) is their inscrutability. This paper presents evidence that, despite their size and complexity, LMs sometimes exploit a simple vector arithmetic style mechanism to solve some relational tasks using regularities encoded in the hidden space of the model (e.g., Poland:Warsaw::China:Beijing). We investigate a range of language model sizes (from 124M parameters to 176B parameters) in an in-context learning setting, and find that for a variety of tasks (involving capital cities, uppercasing, and past-tensing) a key part of the mechanism reduces to a simple additive update typically applied by the feedforward (FFN) networks. We further show that this mechanism is specific to tasks that require retrieval from pretraining memory, rather than retrieval from local context. Our results contribute to a growing body of work on the interpretability of LMs, and offer reason to be optimistic that, despite the massive and non-linear nature of the models, the strategies they ultimately use to solve tasks can sometimes reduce to familiar and even intuitive algorithms.
Key facts. Cited by 97 papers in the map (data through 7 Oct 2026). Builds on 29 of its 39 references that are in the map. First posted on arXiv 25 May 2023.
Builds on
29 of 39 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2018Deep contextualized word representationscited by 2,285
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2022Editing Models with Task Arithmeticcited by 1,076
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
17 more
- 2022Mass-Editing Memory in a Transformercited by 976
- 2022In-context Learning and Induction Headscited by 930
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 733
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
- 2019The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectivescited by 139
- 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
- 2019Inducing Relational Knowledge from BERTcited by 75
- 2021When Can Models Learn From Explanations? A Formal Framework for Understanding the Roles of Explanation Datacited by 75
- 2017Residual Connections Encourage Iterative Inferencecited by 74
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scalecited by 64
- 2022Discovering Latent Concepts Learned in BERTcited by 56
- 2020Towards falsifiable interpretability researchcited by 53
- 2021Analyzing Commonsense Emergence in Few-shot Knowledge Modelscited by 34
- 2021Static Embeddings as Efficient Knowledge Bases?cited by 11
Built on by
Citing papers per year: 2023: 19; 2024: 18; 2025: 39; 2026: 21.
97 papers.
Sort:
By area:
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2023In-Context Learning Creates Task Vectorscited by 302
- 2023Function Vectors in Large Language Modelscited by 292
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
- 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queriescited by 78
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
- 2024The Semantic Hub Hypothesis: Language Models Share Semantic Representations Across Languages and Modalitiescited by 69
- 2024Knowledge Circuits in Pretrained Transformerscited by 60
- 2023Towards a Mechanistic Interpretation of Multi-Step Reasoning Capabilities of Language Modelscited by 50
38 more
- 2024From Tokens to Words: On the Inner Lexicon of LLMscited by 46
- 2023Codebook Features: Sparse and Discrete Interpretability for Neural Networkscited by 45
- 2025From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuitcited by 45
- 2023Rigorously Assessing Natural Language Explanations of Neuronscited by 44
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Additioncited by 38
- 2023Finding and Editing Multi-Modal Neurons in Pre-Trained Transformerscited by 36
- 2024Locate-then-edit for Multi-hop Factual Recall under Knowledge Editingcited by 36
- 2024Answer, Assemble, Ace: Understanding How LMs Answer Multiple Choice Questionscited by 35
- 2025M2IV: Towards Efficient and Fine-grained Multimodal In-Context Learning via Representation Engineeringcited by 34
- 2024The Same But Different: Structural Similarities and Differences in Multilingual Language Modelingcited by 27
- 2023LLMs as Hackers: Autonomous Linux Privilege Escalation Attackscited by 25
- 2025On Linear Representations and Pretraining Data Frequency in Language Modelscited by 23
- 2023DecoderLens: Layerwise Interpretation of Encoder-Decoder Transformerscited by 22
- 2024Optimal ablation for interpretabilitycited by 21
- 2024Position: Understanding LLMs Requires More Than Statistical Generalizationcited by 20
- 2025Paths Not Taken: Understanding and Mending the Multilingual Factual Recall Pipelinecited by 20
- 2025BiasEdit: Debiasing Stereotyped Language Models via Model Editingcited by 18
- 2025AudioLens: A Closer Look at Auditory Attribute Perception of Large Audio-Language Modelscited by 18
- 2023Uncovering Meanings of Embeddings via Partial Orthogonalitycited by 15
- 2024In-Context Learning State Vector with Inner and Momentum Optimizationcited by 15
- 2025How Do LLMs Use Their Depth?cited by 15
- 2024All or None: Identifiable Linear Properties of Next-token Predictors in Language Modelingcited by 14
- 2023Uncovering Intermediate Variables in Transformers using Circuit Probingcited by 12
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2024Position: An Inner Interpretability Framework for AI Inspired by Lessons from Cognitive Neurosciencecited by 11
- 2025Learning Task Representations from In-Context Learningcited by 11
- 2025SkipGPT: Dynamic Layer Pruning Reinvented with Token Awareness and Module Decouplingcited by 11
- 2023NeuroSurgeon: A Toolkit for Subnetwork Analysiscited by 9
- 2024Emergence and Effectiveness of Task Vectors in In-Context Learning: An Encoder Decoder Perspectivecited by 9
- 2025CaKE: Circuit-aware Editing Enables Generalizable Knowledge Learnerscited by 9
- 2025On the Emergence of Linear Analogies in Word Embeddingscited by 9
- 2025Can LLMs Reason Abstractly Over Math Word Problems Without CoT? Disentangling Abstract Formulation From Arithmetic Computationcited by 8
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attentioncited by 8
- 2024ELICIT: LLM Augmentation via External In-Context Capabilitycited by 7
- 2025How Do Language Models Compose Functions?cited by 7
- 2023Instilling Inductive Biases with Subnetworkscited by 6
- 2024When Parts Are Greater Than Sums: Individual LLM Components Can Outperform Full Modelscited by 6
- 2025Sparse Feature Coactivation Reveals Causal Semantic Modules in Large Language Modelscited by 6
50 most cited of 97 All 97 (JSON)
- 2026Causal and Interpretable Structures in LLM Compositional Tasks28 Sep 2026
- 2026Cross-Modal Attention Acts as a Frequency Filter: Why Verbose Prompts Improve Robustness in Vision-Language Models17 Sep 2026
- 2026Do Language Models Consistently Encode the Current Year?16 Aug 2026
- 2026Cognitive Convergence: Deep Similarities Between Large Language Models and Human Cognition28 Jul 2026
- 2026Harnessing the Latent Space: From Steering Vectors to Model Calibrators for Control and Trust30 Jun 2026
- 2026Fast & Faithful Function Vectors3 Jun 2026
- 2026GeoMathCode: Understanding Interleaved Math-Code Reasoning for Geometry Problem Solving25 May 2026
- 2026Hierarchical Concept Geometry in Language Models Emerges from Word Co-occurrence22 May 2026
- 2026Relational Linear Properties in Language Models: An Empirical Investigation21 May 2026
- 2026Where Pretraining writes and Alignment reads: the asymmetry of Transformer weight space15 May 2026
- 2026Judge Circuits Explain Format-Induced Inconsistency in LLM-as-a-Judge15 May 2026
- 2026The Mechanism of Weak-to-Strong Generalization: Feature Elicitation from Latent Knowledge13 May 2026
38 more
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms17 Apr 2026
- 2026Do Transformers Use their Depth Adaptively? Evidence from a Relational Reasoning Task14 Apr 2026
- 2026Linear Representations of Hierarchical Concepts in Language Models9 Apr 2026
- 2026Transformer See, Transformer Do: Copying as an Intermediate Step in Learning Analogical Reasoning7 Apr 2026
- 2026PanguMotion: Continuous Driving Motion Forecasting with Pangu Transformers17 Mar 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2026Word Recovery in Large Language Models Enables Character-Level Tokenization Robustness11 Mar 2026
- 2026Universal Redundancies in Time Series Foundation Models2 Feb 2026
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networks24 Nov 2025
- 2025From Memorization to Reasoning in the Spectrum of Loss Curvature28 Oct 2025
- 2025How Do LLMs Use Their Depth?21 Oct 2025
- 2025Vocab Diet: Reshaping the Vocabulary of LLMs via Vector Arithmetic19 Oct 2025
- 2025Exploring and Leveraging Class Vectors for Classifier Editing13 Oct 2025
- 2025Mapping Semantic & Syntactic Relationships with Geometric Rotation10 Oct 2025
- 2025How Do Language Models Compose Functions?2 Oct 2025
- 2025Task Vectors, Learned Not Extracted: Performance Gains and Mechanistic Insight29 Sep 2025
- 2025Localizing Task Recognition and Task Learning in In-Context Learning via Attention Head Analysis29 Sep 2025
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attention26 Sep 2025
- 2025Bilinear representation mitigates reversal curse and enables consistent model editing26 Sep 2025
- 2025Steering Language Models in Multi-Token Generation: A Case Study on Tense and Aspect15 Sep 2025
- 2025Whither symbols in the era of advanced neural networks?7 Aug 2025
- 2025Linear Relational Decoding of Morphology in Language Models19 Jul 2025
- 2025Position: We Need An Algorithmic Understanding of Generative AI10 Jul 2025
- 2025Dynamic Weight Grafting: Localizing Finetuned Factual Knowledge in Transformers25 Jun 2025
- 2025Bridging Compositional and Distributional Semantics: A Survey on Latent Semantic Geometry via AutoEncoder25 Jun 2025
- 2025Sparse Feature Coactivation Reveals Causal Semantic Modules in Large Language Models22 Jun 2025
- 2025Latent Concept Disentanglement in Transformer-based Language Models20 Jun 2025
- 2025Can structural correspondences ground real world representational content in Large Language Models?19 Jun 2025
- 2025Spelling-out is not Straightforward: LLMs' Capability of Tokenization from Token to Characters12 Jun 2025
- 2025AudioLens: A Closer Look at Auditory Attribute Perception of Large Audio-Language Models5 Jun 2025
- 2025Behavioural vs. Representational Systematicity in End-to-End Models: An Opinionated Survey4 Jun 2025
- 2025SkipGPT: Dynamic Layer Pruning Reinvented with Token Awareness and Module Decoupling4 Jun 2025
- 2025From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuit3 Jun 2025
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer1 Jun 2025
- 2025Can LLMs Reason Abstractly Over Math Word Problems Without CoT? Disentangling Abstract Formulation From Arithmetic Computation29 May 2025
- 2025Stochastic Chameleons: Irrelevant Context Hallucinations Reveal Class-Based (Mis)Generalization in LLMs28 May 2025
- 2025Paths Not Taken: Understanding and Mending the Multilingual Factual Recall Pipeline26 May 2025
50 newest of 97 All 97 (JSON)
- 2023Towards a Mechanistic Interpretation of Multi-Step Reasoning Capabilities of Language Modelscited by 50
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Additioncited by 38
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2025Can LLMs Reason Abstractly Over Math Word Problems Without CoT? Disentangling Abstract Formulation From Arithmetic Computationcited by 8
- 2025From Memorization to Reasoning in the Spectrum of Loss Curvaturecited by 1
- 2026Transformer See, Transformer Do: Copying as an Intermediate Step in Learning Analogical Reasoningcited by 0
- 2026Do Transformers Use their Depth Adaptively? Evidence from a Relational Reasoning Taskcited by 0
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanismscited by 0
- 2026GeoMathCode: Understanding Interleaved Math-Code Reasoning for Geometry Problem Solvingcited by 0
- 2026Do Language Models Consistently Encode the Current Year?cited by 0
- 2026Do Language Models Consistently Encode the Current Year?16 Aug 2026
- 2026GeoMathCode: Understanding Interleaved Math-Code Reasoning for Geometry Problem Solving25 May 2026
- 2026Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms17 Apr 2026
- 2026Do Transformers Use their Depth Adaptively? Evidence from a Relational Reasoning Task14 Apr 2026
- 2026Transformer See, Transformer Do: Copying as an Intermediate Step in Learning Analogical Reasoning7 Apr 2026
- 2025From Memorization to Reasoning in the Spectrum of Loss Curvature28 Oct 2025
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer1 Jun 2025
- 2025Can LLMs Reason Abstractly Over Math Word Problems Without CoT? Disentangling Abstract Formulation From Arithmetic Computation29 May 2025
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Addition5 Jun 2024
- 2023Towards a Mechanistic Interpretation of Multi-Step Reasoning Capabilities of Language Models23 Oct 2023
- 2023Finding and Editing Multi-Modal Neurons in Pre-Trained Transformerscited by 36
- 2025M2IV: Towards Efficient and Fine-grained Multimodal In-Context Learning via Representation Engineeringcited by 34
- 2026Cross-Modal Attention Acts as a Frequency Filter: Why Verbose Prompts Improve Robustness in Vision-Language Modelscited by 0
- 2026Cross-Modal Attention Acts as a Frequency Filter: Why Verbose Prompts Improve Robustness in Vision-Language Models17 Sep 2026
- 2025M2IV: Towards Efficient and Fine-grained Multimodal In-Context Learning via Representation Engineering6 Apr 2025
- 2023Finding and Editing Multi-Modal Neurons in Pre-Trained Transformers13 Nov 2023
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
- 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
- 2023In-Context Learning Creates Task Vectorscited by 302
- 2023Function Vectors in Large Language Modelscited by 292
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
- 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queriescited by 78
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
- 2024The Semantic Hub Hypothesis: Language Models Share Semantic Representations Across Languages and Modalitiescited by 69
- 2024Knowledge Circuits in Pretrained Transformerscited by 60
- 2024From Tokens to Words: On the Inner Lexicon of LLMscited by 46
12 most cited of 81 All 81 (JSON)
- 2026Causal and Interpretable Structures in LLM Compositional Tasks28 Sep 2026
- 2026Cognitive Convergence: Deep Similarities Between Large Language Models and Human Cognition28 Jul 2026
- 2026Harnessing the Latent Space: From Steering Vectors to Model Calibrators for Control and Trust30 Jun 2026
- 2026Fast & Faithful Function Vectors3 Jun 2026
- 2026Hierarchical Concept Geometry in Language Models Emerges from Word Co-occurrence22 May 2026
- 2026Relational Linear Properties in Language Models: An Empirical Investigation21 May 2026
- 2026Judge Circuits Explain Format-Induced Inconsistency in LLM-as-a-Judge15 May 2026
- 2026The Mechanism of Weak-to-Strong Generalization: Feature Elicitation from Latent Knowledge13 May 2026
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
- 2026Linear Representations of Hierarchical Concepts in Language Models9 Apr 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2026Word Recovery in Large Language Models Enables Character-Level Tokenization Robustness11 Mar 2026
12 newest of 81 All 81 (JSON)