Exploring Translation Mechanism of Large Language Models

Hongbin Zhang, Kehai Chen, Xuefeng Bai, Xiucheng Li, Yang Xiang, Min Zhang · DOI

Introduction

Large Language Models (LLMs) such as LLaMA and Mistral have demonstrated remarkable multilingual capabilities, often performing translation tasks with high proficiency. However, the internal mechanics of these processes have remained largely a "black box." While previous research has observed specific neurons firing during translation, establishing a causal link between internal components and translation performance has been elusive. This study investigates the mechanistic foundations of translation in LLMs, revealing that the process is driven by a surprisingly sparse and specialized subset of components.

The Challenge of Mechanistic Interpretability

Understanding how LLMs translate is not merely a matter of academic curiosity; it is essential for improving model reliability and fine-tuning efficiency. A significant hurdle in this field is the "polysemantic" nature of LLM activations, where individual vectors perform multiple functions simultaneously. This makes standard interpretability techniques, like path patching, difficult to apply with precision. Without a clear map of the translation "circuit," fine-tuning models for specific languages often risks "catastrophic forgetting," where the model loses its general reasoning or coding abilities.

Methodology: Subspace-Intervened Path Patching

To address these challenges, the researchers developed a novel framework called subspace-intervened path patching. This approach moves beyond replacing entire activation vectors by identifying a specific "translation-steering" subspace within the activations. By intervening only within this subspace, the authors could surgically trace the flow of information from "Sender" nodes in early layers to "Receiver" nodes at the output logits.

This causal analysis was supplemented by behavioral characterization. Using "Logits Lens" techniques, the authors analyzed how Multi-Layer Perceptrons (MLPs) interact with attention heads to process concepts at each step of the translation process. The study utilized a diverse range of datasets, including word-level and sentence-level (WMT23) translation tasks across English, Chinese, Russian, German, and French, as well as reasoning benchmarks like MGSM and general intelligence tests like MMLU.

The Anatomy of the Translation Circuit

The research uncovered several key insights into the architecture of translation:

1. Extreme Sparsity

Translation is not a distributed effort across the entire model. Instead, it is governed by a very small number of attention heads—typically less than 5% of the total. Disabling just the top five identified heads resulted in a 40% drop in translation accuracy, whereas disabling random heads had virtually no impact.

2. Specialized Functional Roles

The identified "translation-crucial" heads fall into three functional categories:

  • Source Heads: These focus on the original tokens in the source language.
  • Indicator Heads: These track signals that define the task context, such as the word "English" or specific punctuation like colons.
  • Positional Heads: These ensure the structural and sequential coherence of the generated output.

3. The English "Pivot"

A significant discovery is the model's use of English as an internal "mental bridge." When translating between two non-English languages (e.g., German to Russian), the MLPs first transform source features into an English-centric latent representation before converting them into the target language. This suggests that LLMs may develop a universal internal logic rooted in their primary training language.

4. Pre-training vs. Fine-tuning

The study found that translation circuits are actually formed during the initial pre-training phase. Supervised fine-tuning (SFT) does not create new circuits; rather, it refines and calibrates the existing mechanisms established during the model's first exposure to multilingual data.

Targeted Fine-Tuning and Results

By identifying the specific components responsible for translation, the authors demonstrated the power of Targeted SFT. By fine-tuning only the 64 most crucial heads, they achieved performance parity with full-parameter fine-tuning while modifying fewer than 5% of the parameters.

This surgical approach offers two major advantages:

  1. Efficiency: Targeted SFT reduced training time by approximately 50%.
  2. Preservation of Knowledge: Unlike full-parameter fine-tuning, which often degrades a model's general reasoning (as seen in declining MMLU scores), Targeted SFT maintained the model's baseline intelligence and reasoning capabilities perfectly.

Limitations and Future Directions

While this work provides a breakthrough in understanding translation, it is currently limited to open-source models where internal activations are accessible. Furthermore, while the study bridges word and sentence-level translation, more complex document-level contexts may involve additional mechanisms yet to be mapped. Finally, the discovery of the "English Pivot" suggests that models may inherit English-centric biases (such as gender neutrality) even when translating between two gendered languages. Future research will need to explore how to mitigate these latent biases within the translation circuit.

Summary updated

Abstract

Large language models (LLMs) have succeeded remarkably in multilingual translation tasks. However, the inherent translation mechanisms of LLMs remain poorly understood, largely due to sophisticated architectures and vast parameter scales. In response to this issue, this study explores the translation mechanism of LLM from the perspective of computational components (e.g., attention heads and MLPs). Path patching is utilized to explore causal relationships between components, detecting those crucial for translation tasks and subsequently analyzing their behavioral patterns in human-interpretable terms. Comprehensive analysis reveals that translation is predominantly facilitated by a sparse subset of specialized attention heads (less than 5\%), which extract source language, indicator, and positional features. MLPs subsequently integrate and process these features by transiting towards English-centric latent representations. Notably, building on the above findings, targeted fine-tuning of only 64 heads achieves translation improvement comparable to full-parameter tuning while preserving general capabilities.
BibTeX
@inproceedings{zhang2025exploring,
  author = {Hongbin Zhang and Kehai Chen and Xuefeng Bai and Xiucheng Li and Yang Xiang and Min Zhang},
  title = {{Exploring Translation Mechanism of Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=3QjESmXftM},
}
Figure