Large language models asked to translate often understand the source sentence but write the answer in the wrong language. Usually they fall back to English. This is called off-target translation. Interpretability work has located the problem fairly precisely. Inside a Transformer, the middle layers hold a meaning representation that is largely independent of language. The last few layers convert that meaning into words of a particular language, and off-target errors arise in that final conversion step. A separate, older line of machine translation research found that translating into a morphologically rich language is much harder than translating out of it. Such languages build words from stacked endings, as Turkish and Finnish do. The difficulty comes from synthesis: the decoder has to produce the exact chain of endings. Nobody has asked whether these two findings describe the same event. We propose to test it. The conjecture is that the last layers lose control of the output language specifically at word-internal positions, where the model must produce a suffix rather than a stem. It follows that models pre-trained or adapted for one language succeed partly because they commit to the target language earlier in depth at those positions.
If the conjecture holds, it gives a cheap, internal answer to "when should we intervene?" We would monitor the model's own late-layer language signal at each generated token. Only at the positions where it wavers, we would push the hidden state toward the target language. This would replace external language classifiers and always-on contrastive penalties, both of which are slow or need per-pair tuning. If the conjecture fails, and the drift is explained entirely by how finely the tokenizer chops words, that is also informative. It would mean the case for language-specific pre-training rests on tokenization and not on morphology.
Core Claim
We define a model's commitment depth at a generated position. It is the shallowest layer from which a tuned lens assigns most of its probability to target-language tokens and keeps doing so through the final layer. A tuned lens is a small learned map that reads each intermediate layer's hidden state as a next-token distribution.
We claim three things. First, in prompted translation, off-target episodes start disproportionately at continuation tokens inside words of high-synthesis target languages, and those positions have later commitment depth. Second, this effect survives controls for tokens-per-word and for training-data size. Third, language-specific adapted models move commitment depth earlier, and on morphologically rich targets this shift tracks synthesis rather than compression alone. Combined, these claims justify one intervention: a steering push gated by commitment depth, applied only in the final layers.
Relation to Prior Work
Three papers motivate the localization. Lost in Multilinguality traces factual recall with the logit lens. It finds a language-independent middle phase and a language-transition phase in the final 2–4 layers where models "trip". However, it studies single-entity recall on KLAR, not inflected translation output. Mechanistic Understanding and Mitigation of Language Confusion finds "confusion points" governed by final-layer neurons in Llama3-8B and edits about 100 of them. It evaluates only monolingual prompting and never asks which surface forms trigger the confusion. Multilingual Contrastive Decoding via Language-Agnostic Layers Skipping describes the same three-phase pattern and shows that early layers predict English. It tests reasoning on MGSM, not translation.
None of the three connects the failure to target morphology. That connection comes from Quantifying Synthesis and Fusion and their Impact on Machine Translation. It gives continuous indices of synthesis (morphemes per word) and fusion, and shows that machine translation accuracy falls as synthesis rises. We reuse those indices as our predictor. Our addition is to locate the failure in depth and by position, which that paper does not do.
The language-specific pre-training literature supplies the comparison regime. SeaLLMs expands Llama-2's vocabulary and cuts Thai from 4.29 to 1.57 tokens per word. Its main targets, Thai and Vietnamese, are analytic languages. That makes it a natural control: tokenization changes sharply while morphology stays low. Adapting Multilingual LLMs to Low-Resource Languages… Hindi and NLEBench+NorGLM supply adapted models for moderately inflected targets. None of these papers looks inside the layers.
Less, but Better (LayerMoE) measures where in depth new and old languages diverge. It does not condition on morphology or on whether output stays in the right language.
Two papers constrain the design. Automated Interpretability Metrics Do Not Distinguish Trained and Random Transformers warns that layer readouts can look meaningful even on random networks. We therefore require a random-initialization control for every lens measurement. The linear shortcut in Lost in Multilinguality and the decoder freezing in mmT5 both improve language consistency. Both may also damage the nonlinear synthesis of endings, so we measure morphological quality alongside on-target rate rather than assuming no trade-off.
Research Program
The study has three parts.
Part 1: Diagnosis. We prompt base multilingual models (Llama-2-7B, Llama-3-8B, Mistral-7B) to translate English and pivot-language sources from FLORES-101 into targets that span the synthesis index. Analytic targets are Vietnamese, Thai and Chinese. Moderately inflected targets are Hindi, Spanish and Norwegian. High-synthesis targets are Turkish, Finnish and Hungarian.
For every generated token we record three things:
- the tuned-lens language mass at each layer;
- the commitment depth;
- whether the token starts or continues a word.
Where a morphological analyzer exists, we refine the stem-versus-continuation labeling to stem versus suffix. Where none exists, we use word-internal subword position as a coarser proxy and report it separately.
Labeling a vocabulary token's language is hard because subwords are shared across languages, as On the Off-Target Problem of Zero-Shot MNMT stresses. We assign languages from token-frequency profiles in monolingual corpora. Tokens without a dominant language are excluded from the language-mass computation.
We then fit a regression of off-target onset at each position on four kinds of predictor:
- language-level variables: synthesis index, fusion index, tokens per word, and an estimate of pre-training data share;
- position-level variables: stem versus continuation.
Part 2: Comparing adapted models. Each adapted model is compared with the base model it was adapted from, wherever both checkpoints are public: SeaLLM against Llama-2, the Hindi continued-pre-training model against its base, and NorGLM against a size-matched multilingual model. We compare commitment-depth profiles, split by stem and suffix positions.
The SeaLLM pair isolates the effect of tokenizer compression on analytic targets. The Hindi and Norwegian pairs show whether gains concentrate on suffix positions once compression is accounted for.
Part 3: Intervention. We estimate a target-language direction in the final-phase layers. It is the mean difference between residual states during on-target and English generations, in the manner of Steering Llama 2 via Contrastive Activation Addition. At decode time we read the target-language mass at one monitoring layer, placed at the start of the transition phase. If that mass falls below a threshold, we add the direction to the remaining layers at that position only.
This requires no second forward pass and no external classifier. One threshold and one steering scale are tuned once across all directions on the FLORES dev set, not separately for each language pair.
Baselines
Plain decoding. The naive reference is the same prompted model with greedy and beam-5 decoding and no intervention. Every gain is reported relative to it on the identical FLORES-101 devtest sentences.
Language-contrastive decoding. The strongest training-free competitor is the method of Mitigating Hallucinations and Off-target Machine Translation with Source-Contrastive and Language-Contrastive Decoding. It penalizes tokens that remain probable when the prompt names the wrong language. That paper reports reducing translations with segment-level chrF2 below 10 by 67–83% on average across 57 Flores-101 directions, and it already runs on Llama 2. In the summary available here, we found no reported off-target-rate figure for it on LLM-prompted translation on Lacuna.
We will run it on the same models, prompts and sentences. Its penalty weight gets the same dev-set search budget as our two hyperparameters. We will also give it a per-pair tuned variant as an upper bound. Beating it means two things:
- a lower off-target rate at equal or better chrF on high-synthesis targets, using one global setting;
- roughly half its decoding cost, since it needs a second forward pass per step and we do not.
Language-informed beam search. Language-Informed Beam Search adds an external FastText language identifier to the beam score. It reports average off-target rate falling from 22.9% to 7.7% on WMT-10 and from 65.8% to 25.3% on OPUS-100, at 3.5–7.5× latency. We run it with the same beam width as our beam condition and report off-target rate against wall-clock time.
Vocabulary-side fix. For dedicated translation models, LAVS cut off-target rate from 29% to 8% over 90 zero-shot directions on WMT-10 and Flores-101. Because it requires retraining, we cite its figures rather than reproduce them. The SeaLLM vocabulary-expansion pair plays its role in our comparison.
Ablations of the gate. The key ingredient is the gate, so two ablations isolate it. In always-on steering, the same direction and scale are applied at every position. In random-gated steering, the direction is applied at a random set of positions matched in count to the real gate. If random gating does as well as the real gate, then the commitment-depth signal is not doing the work.
Neuron editing. Neuron editing on Llama3-8B serves as the weight-editing comparison.
Why not just…?
Why not just blame tokenization? This is the most serious threat. High-synthesis languages are also split into more tokens per word, and more tokens means more chances to drift. The regression in Part 1 includes tokens per word as a predictor. The SeaLLM pair changes compression without changing morphology.
If synthesis carries no effect once compression is controlled, we drop the morphology claim. The paper would then report that off-target drift is a fragmentation effect, and that language-specific pre-training helps through its tokenizer. The gated intervention would still be evaluated on its merits. We consider this outcome plausible and would publish it as such.
Why not just tune language-contrastive decoding per pair? It may match us on off-target rate. Its own authors note that performance varies by direction and requires tuning, and it doubles decoding cost. It also penalizes every token, including endings that may be plausible under the wrong-language prompt. That is exactly the trade-off between language compliance and grammar that we measure with chrF and suffix-level checks. If its per-pair tuned version beats our single global setting on both off-target rate and morphology, the practical case for gating fails.
Why not just scale or adapt? Larger general models still produce off-target output, as the three interpretability papers above show on 7–8B Llama models. Adapted models such as SeaLLM (SeaLLMs, Thai GSM8K 62.0 against ChatGPT-3.5's 35.8) do help, but they cost a full pre-training run per language and run into data ceilings (NLEBench+NorGLM). Part 2 asks what adaptation changes inside the model. Part 3 asks whether a cheap gate recovers part of that change without retraining.
Why not just use a linear shortcut from middle layers? The shortcut in Lost in Multilinguality skips the very layers that synthesize endings. Its authors concede that complex transitions may need nonlinear treatment. We include it as a diagnostic arm on Turkish and Finnish, and expect lower suffix accuracy.
Proposed Experiments
The main evaluation uses FLORES-101 devtest in English-to-target and pivot-to-target directions for the nine targets above. Off-target rate is judged by a language identifier, with human spot checks for Thai and Hungarian. We also report chrF2 and BLEU. For Turkish and Finnish, we add the share of output words an analyzer accepts as well-formed and the agreement of their endings with a reference analysis.
Decoding speed is reported as tokens per second, relative to plain decoding.
Every tuned-lens result is repeated on a randomly initialized copy of each model, as a guard against readouts that look meaningful by accident.
Three outcomes would decide the question.
First, morphology must matter beyond tokenization. The odds that an off-target episode starts at a word-internal continuation token, rather than at a word start, must rise with the synthesis index after controlling for tokens per word and data share. Commitment depth must be measurably later at those positions.
Second, adaptation must move commitment earlier at suffixes. The Hindi or Norwegian adapted model must move commitment depth earlier at suffix positions by more than the SeaLLM pair moves it on analytic Thai and Vietnamese.
Third, the gate must earn its place. Gated steering must beat both always-on and random-gated steering on off-target rate at equal morphological accuracy. It must also match language-contrastive decoding under a shared tuning budget at a fraction of the cost.
If the first outcome fails, the second and third are reframed in terms of fragmentation rather than morphology. If only the third fails, the contribution is the diagnosis alone.
References
- Lost in Multilinguality: Dissecting Cross-lingual Factual Inconsistency in Transformer Language Models
- Mechanistic Understanding and Mitigation of Language Confusion in English-Centric Large Language Models
- Multilingual Contrastive Decoding via Language-Agnostic Layers Skipping
- Quantifying Synthesis and Fusion and their Impact on Machine Translation
- SeaLLMs -- Large Language Models for Southeast Asia
- Adapting Multilingual LLMs to Low-Resource Languages using Continued Pre-training and Synthetic Corpus: A Case Study for Hindi LLMs
- NLEBench+NorGLM: A Comprehensive Empirical Analysis and Benchmark Dataset for Generative Language Models in Norwegian
- Less, but Better: Efficient Multilingual Expansion for LLMs via Layer-wise Mixture-of-Experts
- Automated Interpretability Metrics Do Not Distinguish Trained and Random Transformers
- mmT5: Modular Multilingual Pre-Training Solves Source Language Hallucinations
- On the Off-Target Problem of Zero-Shot Multilingual Neural Machine Translation
- Steering Llama 2 via Contrastive Activation Addition
- Mitigating Hallucinations and Off-target Machine Translation with Source-Contrastive and Language-Contrastive Decoding
- Language-Informed Beam Search Decoding for Multilingual Machine Translation