Do All Autoregressive Transformers Remember Facts the Same Way? A Cross-Architecture Analysis of Recall Mechanisms
Not on the map. Why?
Abstract (arXiv)
Understanding how Transformer-based language models store and retrieve factual associations is critical for improving interpretability and enabling targeted model editing. Prior work, primarily on GPT-style models, has identified MLP modules in early layers as key contributors to factual recall. However, it remains unclear whether these findings generalize across different autoregressive architectures. To address this, we conduct a comprehensive evaluation of factual recall across several models -- including GPT, LLaMA, Qwen, and DeepSeek -- analyzing where and how factual information is encoded and accessed. Consequently, we find that Qwen-based models behave differently from previous patterns: attention modules in the earliest layers contribute more to factual recall than MLP modules. Our findings suggest that even within the autoregressive Transformer family, architectural variations can lead to fundamentally different mechanisms of factual recall.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 20 of its 33 references that are in the map. First posted on arXiv 10 Sep 2025.
Builds on
20 of 33 references.
References · 20
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2019How Can We Know What Language Models Know?cited by 959
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
8 more
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 457
- 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 403
- 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 364
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2023Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Modelscited by 243
- 2016Fine-grained Analysis of Sentence Embeddings Using Auxiliary Prediction Taskscited by 216
- 2023PMET: Precise Model Editing in a Transformercited by 173
- 2017What do Neural Machine Translation Models Learn about Morphology?cited by 166
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025Facts in Stats: Impacts of Pretraining Diversity on Language Model Generalizationcited by 3
- 2026The Geometry of Forgetting: Temporal Knowledge Drift as an Independent Axis in LLM Representationscited by 1
- 2026Forgetting That Sticks: Quantization-Permanent Unlearning via Circuit Attributioncited by 1
- 2026Forgetting That Sticks: Quantization-Permanent Unlearning via Circuit Attribution14 May 2026
- 2026The Geometry of Forgetting: Temporal Knowledge Drift as an Independent Axis in LLM Representations9 May 2026
- 2025Facts in Stats: Impacts of Pretraining Diversity on Language Model Generalization17 Oct 2025