Understanding Transformer Memorization Recall Through Idioms
Not on the map. Why?
Abstract (arXiv)
To produce accurate predictions, language models (LMs) must balance between generalization and memorization. Yet, little is known about the mechanism by which transformer LMs employ their memorization capacity. When does a model decide to output a memorized phrase, and how is this phrase then retrieved from memory? In this work, we offer the first methodological framework for probing and characterizing recall of memorized sequences in transformer LMs. First, we lay out criteria for detecting model inputs that trigger memory recall, and propose idioms as inputs that typically fulfill these criteria. Next, we construct a dataset of English idioms and use it to compare model behavior on memorized vs. non-memorized inputs. Specifically, we analyze the internal prediction construction process by interpreting the model's hidden representations as a gradual refinement of the output probability distribution. We find that across different model sizes and architectures, memorized predictions are a two-step process: early layers promote the predicted token to the top of the output distribution, and upper layers increase model confidence. This suggests that memorized information is stored and retrieved in the early layers of the network. Last, we demonstrate the utility of our methodology beyond idioms in memorized factual statements. Overall, our work makes a first step towards understanding memory recall, and provides a methodological basis for future studies of transformer memorization.
Key facts. Cited by 62 papers in the map (data through 7 Oct 2026). Builds on 33 of its 48 references that are in the map. First posted on arXiv 7 Oct 2022.
Builds on
33 of 48 references.
References · 33
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2019How Can We Know What Language Models Know?cited by 953
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2021Deduplicating Training Data Makes Language Models Bettercited by 705
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
21 more
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 492
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
- 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
- 2022Data Contamination: From Memorization to Exploitationcited by 234
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
- 2021The Curious Case of Hallucinations in Neural Machine Translationcited by 161
- 2021Counterfactual Memorization in Neural Language Modelscited by 155
- 2020Text-to-Text Pre-Training for Data-to-Text Taskscited by 104
- 2020When is Memorization of Irrelevant Training Data Necessary for High-Accuracy Learning?cited by 102
- 2019E-BERT: Efficient-Yet-Effective Entity Embeddings for BERTcited by 96
- 2021BERTnesia: Investigating the capture and forgetting of knowledge in BERTcited by 40
- 2021It's not Rocket Science : Interpreting Figurative Language in Narrativescited by 39
- 2021Memorisation versus Generalisation in Pre-trained Language Modelscited by 32
- 2022Can Transformer be Too Compositional? Analysing Idiom Processing in Neural Machine Translationcited by 28
- 2019Still a Pain in the Neck: Evaluating Text Representations on Lexical Compositioncited by 27
- 2020EPIE Dataset: A Corpus For Possible Idiomatic Expressionscited by 24
- 2021NOPE: A Corpus of Naturally-Occurring Presuppositions in Englishcited by 23
- 2022How to Dissect a Muppet: The Structure of Transformer Embedding Spacescited by 19
- 2018LIDIOMS: A Multilingual Linked Idioms Data Setcited by 15
- 2022What Makes Reading Comprehension Questions Difficult?cited by 11
Built on by
Citing papers per year: 2022: 1; 2023: 13; 2024: 21; 2025: 17; 2026: 10.
62 papers.
Sort:
By area:
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
- 2023Investigating Data Contamination in Modern Benchmarks for Large Language Modelscited by 136
- 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden Statecited by 116
- 2024Demystifying Verbatim Memorization in Large Language Modelscited by 55
- 2023Characterizing Mechanisms for Factual Recall in Language Modelscited by 47
- 2023Training Data Extraction From Pre-trained Language Models: A Surveycited by 43
- 2024On Large Language Models' Hallucination with Regard to Known Factscited by 43
- 2023VISIT: Visualizing and Interpreting the Semantic Information Flow of Transformerscited by 32
- 2023Are Multilingual LLMs Culturally-Diverse Reasoners? An Investigation into Multicultural Proverbs and Sayingscited by 32
- 2024Backward Lens: Projecting Language Model Gradients into the Vocabulary Spacecited by 30
- 2024Localizing Paragraph Memorization in Language Modelscited by 30
38 more
- 2024Unveiling the Spectrum of Data Contamination in Language Models: A Survey from Detection to Remediationcited by 30
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2023A Glitch in the Matrix? Locating and Detecting Language Model Grounding with Fakepediacited by 24
- 2023Analyzing And Editing Inner Mechanisms Of Backdoored Language Modelscited by 22
- 2024The Hidden Space of Transformer Language Adapterscited by 16
- 2024Improving LLM Abilities in Idiomatic Translationcited by 16
- 2024Geometric Signatures of Compositionality Across a Language Model's Lifetimecited by 14
- 2024From Loops to Oops: Fallback Behaviors of Language Models Under Uncertaintycited by 13
- 2022Finding Memo: Extractive Memorization in Constrained Sequence Generation Taskscited by 12
- 2025CoME: An Unlearning-based Approach to Conflict-free Model Editingcited by 12
- 2023Crossing the Threshold: Idiomatic Machine Translation through Retrieval Augmentation and Loss Weightingcited by 11
- 2024Not All Similarities Are Created Equal: Leveraging Data-Driven Biases to Inform GenAI Copyright Disputescited by 10
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2024Semantics of Multiword Expressions in Transformer-Based Models: A Surveycited by 9
- 2024Natural Language Processing RELIES on Linguisticscited by 9
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Taskscited by 9
- 2024ROME: Memorization Insights from Text, Logits and Representationcited by 8
- 2025Geometry of Decision Making in Language Modelscited by 8
- 2024Understanding Memorisation in LLMs: Dynamics, Influencing Factors, and Implicationscited by 7
- 2025Memorization or Reasoning? Exploring the Idiom Understanding of LLMscited by 7
- 2025Extracting alignment data in open modelscited by 7
- 2024Memorization in In-Context Learningcited by 6
- 2024The Unreasonable Ineffectiveness of Nucleus Sampling on Mitigating Text Memorizationcited by 6
- 2023Recognition, recall, and retention of few-shot memories in large language modelscited by 5
- 2025Optimizing Multi-Hop Document Retrieval Through Intermediate Representationscited by 5
- 2023Memorisation Cartography: Mapping out the Memorisation-Generalisation Continuum in Neural Machine Translationcited by 4
- 2024Fact Recall, Heuristics or Pure Guesswork? Precise Interpretations of Language Models for Fact Completioncited by 4
- 2025Understanding Verbatim Memorization in LLMs Through Circuit Discoverycited by 4
- 2025Tug-of-war between idioms' figurative and literal interpretations in LLMscited by 3
- 2025Distributional Semantics Tracing: A Framework for Explaining Hallucinations in Large Language Modelscited by 3
- 2024Dependency-Aware Semi-Structured Sparsity of GLU Variants in Large Language Modelscited by 2
- 2025Memorization Inheritance in Sequence-Level Knowledge Distillation for Neural Machine Translationcited by 2
- 2025Shared Path: Unraveling Memorization in Multilingual LLMs through Language Similaritiescited by 2
- 2025The Generalization Ridge: Information Flow in Natural Language Generationcited by 2
- 2025A Survey of Idiom Datasets for Psycholinguistic and Computational Researchcited by 2
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuningcited by 2
- 2024Robust Guidance for Unsupervised Data Selection: Capturing Perplexing Named Entities for Domain-Specific Machine Translationcited by 1
- 2025Rethinking Memorization Measures and their Implications in Large Language Modelscited by 1
50 most cited of 62 All 62 (JSON)
- 2026Generalizable Lifelong Model Editing via Preference Optimization29 Sep 2026
- 2026Circuit-Diff: Factual Edit-based Intervention Method for Localizing Knowledge in Attribution Graphs20 Sep 2026
- 2026Syntax vs. Semantics: How Transformers Learn Deep Dependencies26 Jun 2026
- 2026Output Vector Editing for Memorization Mitigation in Large Language Models17 Jun 2026
- 2026Where does Absolute Position come from in decoder-only Transformers?4 Jun 2026
- 2026The Hard Decision Layer: Evidence for Committed Inference in Transformers25 May 2026
- 2026Towards Scalable Lifelong Knowledge Editing with Selective Knowledge Suppression21 Apr 2026
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuning10 Mar 2026
- 2026SinFoS: A Parallel Dataset for Translating Sinhala Figures of Speech9 Feb 2026
- 2026We Should Separate Memorization from Copyright9 Feb 2026
- 2025Geometry of Decision Making in Language Models25 Nov 2025
- 2025Anatomy of an Idiom: Tracing Non-Compositionality in Language Models20 Nov 2025
38 more
- 2025Extracting alignment data in open models21 Oct 2025
- 2025Distributional Semantics Tracing: A Framework for Explaining Hallucinations in Large Language Models7 Oct 2025
- 2025A Survey of Idiom Datasets for Psycholinguistic and Computational Research15 Aug 2025
- 2025Rethinking Memorization Measures and their Implications in Large Language Models20 Jul 2025
- 2025The Generalization Ridge: Information Flow in Natural Language Generation7 Jul 2025
- 2025Understanding Verbatim Memorization in LLMs Through Circuit Discovery17 Jun 2025
- 2025Beyond Frequency: The Role of Redundancy in Large Language Model Memorization14 Jun 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025Time Course MechInterp: Analyzing the Evolution of Components and Knowledge in Large Language Models3 Jun 2025
- 2025Tug-of-war between idioms' figurative and literal interpretations in LLMs2 Jun 2025
- 2025Memorization or Reasoning? Exploring the Idiom Understanding of LLMs22 May 2025
- 2025Shared Path: Unraveling Memorization in Multilingual LLMs through Language Similarities21 May 2025
- 2025Optimizing Multi-Hop Document Retrieval Through Intermediate Representations2 Mar 2025
- 2025CoME: An Unlearning-based Approach to Conflict-free Model Editing20 Feb 2025
- 2025Memorization Inheritance in Sequence-Level Knowledge Distillation for Neural Machine Translation3 Feb 2025
- 2024Fact Recall, Heuristics or Pure Guesswork? Precise Interpretations of Language Models for Fact Completion18 Oct 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Geometric Signatures of Compositionality Across a Language Model's Lifetime2 Oct 2024
- 2024The Unreasonable Ineffectiveness of Nucleus Sampling on Mitigating Text Memorization29 Aug 2024
- 2024Memorization in In-Context Learning21 Aug 2024
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Tasks9 Aug 2024
- 2024Understanding Memorisation in LLMs: Dynamics, Influencing Factors, and Implications27 Jul 2024
- 2024Demystifying Verbatim Memorization in Large Language Models25 Jul 2024
- 2024From Loops to Oops: Fallback Behaviors of Language Models Under Uncertainty8 Jul 2024
- 2024Improving LLM Abilities in Idiomatic Translation3 Jul 2024
- 2024Unveiling the Spectrum of Data Contamination in Language Models: A Survey from Detection to Remediation20 Jun 2024
- 2024Natural Language Processing RELIES on Linguistics9 May 2024
- 2024Dependency-Aware Semi-Structured Sparsity of GLU Variants in Large Language Models3 May 2024
- 2024On Large Language Models' Hallucination with Regard to Known Facts29 Mar 2024
- 2024Localizing Paragraph Memorization in Language Models28 Mar 2024
- 2024Not All Similarities Are Created Equal: Leveraging Data-Driven Biases to Inform GenAI Copyright Disputes26 Mar 2024
- 2024ROME: Memorization Insights from Text, Logits and Representation1 Mar 2024
- 2024Robust Guidance for Unsupervised Data Selection: Capturing Perplexing Named Entities for Domain-Specific Machine Translation29 Feb 2024
- 2024The Hidden Space of Transformer Language Adapters20 Feb 2024
- 2024Backward Lens: Projecting Language Model Gradients into the Vocabulary Space20 Feb 2024
- 2024Semantics of Multiword Expressions in Transformer-Based Models: A Survey27 Jan 2024
- 2023A Glitch in the Matrix? Locating and Detecting Language Model Grounding with Fakepedia4 Dec 2023
- 2023Investigating Data Contamination in Modern Benchmarks for Large Language Models16 Nov 2023
50 newest of 62 All 62 (JSON)
- 2023Are Multilingual LLMs Culturally-Diverse Reasoners? An Investigation into Multicultural Proverbs and Sayingscited by 32
- 2025Memorization or Reasoning? Exploring the Idiom Understanding of LLMscited by 7
- 2024The Unreasonable Ineffectiveness of Nucleus Sampling on Mitigating Text Memorizationcited by 6
- 2025Rethinking Memorization Measures and their Implications in Large Language Modelscited by 1
- 2025Rethinking Memorization Measures and their Implications in Large Language Models20 Jul 2025
- 2025Memorization or Reasoning? Exploring the Idiom Understanding of LLMs22 May 2025
- 2024The Unreasonable Ineffectiveness of Nucleus Sampling on Mitigating Text Memorization29 Aug 2024
- 2023Are Multilingual LLMs Culturally-Diverse Reasoners? An Investigation into Multicultural Proverbs and Sayings15 Sep 2023
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
- 2023Investigating Data Contamination in Modern Benchmarks for Large Language Modelscited by 136
- 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden Statecited by 116
- 2024Demystifying Verbatim Memorization in Large Language Modelscited by 55
- 2023Characterizing Mechanisms for Factual Recall in Language Modelscited by 47
- 2023Training Data Extraction From Pre-trained Language Models: A Surveycited by 43
- 2024On Large Language Models' Hallucination with Regard to Known Factscited by 43
- 2023VISIT: Visualizing and Interpreting the Semantic Information Flow of Transformerscited by 32
- 2024Backward Lens: Projecting Language Model Gradients into the Vocabulary Spacecited by 30
- 2024Localizing Paragraph Memorization in Language Modelscited by 30
- 2024Unveiling the Spectrum of Data Contamination in Language Models: A Survey from Detection to Remediationcited by 30
12 most cited of 52 All 52 (JSON)
- 2026Circuit-Diff: Factual Edit-based Intervention Method for Localizing Knowledge in Attribution Graphs20 Sep 2026
- 2026Syntax vs. Semantics: How Transformers Learn Deep Dependencies26 Jun 2026
- 2026Output Vector Editing for Memorization Mitigation in Large Language Models17 Jun 2026
- 2026Where does Absolute Position come from in decoder-only Transformers?4 Jun 2026
- 2026The Hard Decision Layer: Evidence for Committed Inference in Transformers25 May 2026
- 2026Towards Scalable Lifelong Knowledge Editing with Selective Knowledge Suppression21 Apr 2026
- 2026SinFoS: A Parallel Dataset for Translating Sinhala Figures of Speech9 Feb 2026
- 2026We Should Separate Memorization from Copyright9 Feb 2026
- 2025Geometry of Decision Making in Language Models25 Nov 2025
- 2025Anatomy of an Idiom: Tracing Non-Compositionality in Language Models20 Nov 2025
- 2025Extracting alignment data in open models21 Oct 2025
- 2025Distributional Semantics Tracing: A Framework for Explaining Hallucinations in Large Language Models7 Oct 2025
12 newest of 52 All 52 (JSON)