How Do Multilingual Language Models Remember Facts?

Constanza Fierro, Negar Foroutan, Desmond Elliott, Anders Søgaard

Abstract

Large Language Models (LLMs) store and retrieve vast amounts of factual knowledge acquired during pre-training. Prior research has localized and identified mechanisms behind knowledge recall; however, it has only focused on English monolingual models. The question of how these mechanisms generalize to non-English languages and multilingual LLMs remains unexplored. In this paper, we address this gap by conducting a comprehensive analysis of three multilingual LLMs. First, we show that previously identified recall mechanisms in English largely apply to multilingual contexts, with nuances based on language and architecture. Next, through patching intermediate representations, we localize the role of language during recall, finding that subject enrichment is language-independent, while object extraction is language-dependent. Additionally, we discover that the last token representation acts as a Function Vector (FV), encoding both the language of the query and the content to be extracted from the subject. Furthermore, in decoder-only LLMs, FVs compose these two pieces of information in two separate stages. These insights reveal unique mechanisms in multilingual LLMs for recalling information, highlighting the need for new methodologies—such as knowledge evaluation, fact editing, and knowledge acquisition—that are specifically tailored for multilingual LLMs.

Introduction

Large Language Models (LLMs) act as massive repositories of factual knowledge, yet the internal mechanisms they use to retrieve specific facts remain partially obscured. While previous "mechanistic interpretability" research has identified specific circuits in English-only models—notably an "early site" for subject processing and a "late site" for answer extraction—it has largely ignored the multilingual nature of modern AI. This study investigates whether these internal "machinery" components generalize across languages and architectures, such as XGLM, EuroLLM, and mT5.

Methodology and Data

The researchers analyzed three diverse architectures: XGLM and EuroLLM (decoder-only) and mT5 (encoder-decoder). They employed three primary "surgical" techniques:

  1. Causal Tracing: Corrupting input (adding noise to the subject) and selectively restoring internal states to identify decisive components for correct recall.
  2. Attention Knockout: Systematically breaking connections between tokens to map the flow of information (subject/relation) to the final token.
  3. Activation Patching: Transferring hidden states from an English query into a model processing a different language to test if the internal concept of a "relation" is language-independent.

The study utilized mParaRel, a multilingual dataset covering 10 typologically diverse languages (including English, Spanish, Vietnamese, Russian, and Arabic). The analysis focused exclusively on facts the models already "knew" to ensure the study measured recall rather than guessing.

Mechanisms of Multilingual Recall

A central finding is that the representation of the very last token in a prompt acts as a Function Vector (FV). Rather than just representing a single word, this vector carries the "instructions" required to retrieve the answer. In decoder-only models, this FV is constructed in a distinct two-stage process: the model first encodes the abstract relation (e.g., "find the capital") and subsequently layers on the target language (e.g., "output in Spanish").

Rate of predictions showing the two-stage emergence of relation and language information in the last token representation.

This staged construction suggests a modularity in how knowledge is organized. Interestingly, in encoder-decoder models like mT5, these two pieces of information flow to the last token simultaneously, indicating that architectural choices fundamentally alter the organization of multilingual knowledge.

Cross-Lingual Generalization and the Subject-Object Split

The research confirms that the "early site" for subjects and "late site" for extraction identified in English models do indeed generalize across all 10 studied languages. However, there is a clear split in language dependency: "subject enrichment" (gathering information about the subject) is largely language-independent, while "object extraction" (producing the final answer) is highly language-dependent.

Causal tracing results across models and languages, highlighting the consistent importance of subject tokens across different linguistic contexts.

Furthermore, while previous English-centric studies emphasized Attention layers, this research found that MLP (Feed-Forward) layers play a more dominant role in multilingual fact retrieval, particularly during the extraction phase in the final third of the model's layers.

Conclusion and Future Directions

This work demonstrates that while the core circuits of factual recall are universal across languages, multilingual models employ sophisticated, staged Function Vectors to manage linguistic diversity. These findings have significant implications for fact-editing; current tools targeting early MLP layers may need to be redirected toward the later MLP layers involved in multilingual extraction. Future research will explore whether these models "think" in a pivot language like English or operate in a truly language-neutral conceptual space, and how instruction-tuning might further reshape these internal circuits.

Summary updated

BibTeX
@inproceedings{fierro2025how,
  author = {Constanza Fierro and Negar Foroutan and Desmond Elliott and Anders Søgaard},
  title = {{How Do Multilingual Language Models Remember Facts?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=Idz2yd3SqL},
}
Figure