Llama‑2 learned from text that was overwhelmingly English: about 89.7% of its pretraining data.[3] It still translates French into Chinese just fine. What is going on inside while it does that? Does it quietly translate into English first and then out again?
Chris Wendler, Veniamin Veselovsky, Giovanni Monea and Robert West asked exactly this.[1] Their short answer is not quite: the middle of the model works in a space of concepts, but that space leans toward English. To explain it they drew a small sketch of a sphere. The playground above is that sketch, expanded so you can move it around. This page goes through the paper's argument piece by piece and points to the matching part of the playground at each step.
1Peeking inside: the logit lens
A transformer keeps one running vector per token, the residual stream h. Each layer reads h and adds something to it. Only after the last layer does the model turn h into a guess about the next token: it multiplies by the unembedding matrix U (one row per vocabulary token) to get a score, or logit, for each token, then applies a softmax.
The logit lens[2] does that same final step early, after every layer:
It answers one question: if the model had to speak right now, what would it say? Figure 1 of the paper does this for Llama‑2‑7B on a French→Chinese translation prompt. The last layer correctly ranks 花 first. The middle layers rank flower first: the English word, which nobody asked for.[1] (For a hands‑on version on GPT‑2, see my logit lens walkthrough in PyTorch.)
The authors deliberately used the plain logit lens rather than the tuned lens,[4] which trains a small translator per layer to match the final output. A translator trained that way could learn to skip the English stage, hiding the very signal they were looking for.[1]
2The experiment
To measure "how English is this layer?" you need prompts whose correct answer is a single, unambiguous token. The paper builds three tasks (switch between them with the Translation / Repetition / Cloze buttons):
# Translation: four example pairs, then the query Français: "livre" - 中文: "书" … Français: "fleur" - 中文: " → 花 # Repetition: copy the word 中文: "书" - 中文: "书" … 中文: "花" - 中文: " → 花 # Cloze: fill in the blank (two examples, written in English # with GPT-4, then translated) A "___" … Answer: " → the missing word
The word lists are filtered carefully. Each Chinese answer must be a single token whose English translation is also a single token. For the other target languages, words whose answer starts with the same token as the English word are dropped, so the two can always be told apart. That leaves 139 Chinese, 104 German, 56 French and 115 Russian words. The models are Llama‑2 7B, 13B and 70B (32, 40 and 80 layers; hidden sizes d = 4,096, 5,120 and 8,192; a 32,000‑token vocabulary).[1]
At every layer they read off two numbers with the logit lens: the probability of the answer in the target language, and the probability of its English translation. A word that spans several tokens counts the probability of every token it could start with.[1]
3Three phases
Across tasks and model sizes the same pattern appears. For Llama‑2‑70B translating into Chinese:[1]
| Layers (70B) | Entropy | Token energy | Logit lens reads | Paper's name | |
|---|---|---|---|---|---|
| Phase 1 | 1–40 | high, ≈ 14 bits | low | no language in particular | input space |
| Phase 2 | 41–70 | low, 1–2 bits | low, ≈ 20% | English | concept space |
| Phase 3 | 71–80 | low | rises to ≈ 30% | Chinese | output space |
English probability shoots up around the middle layers and then fades. Chinese grows slowly, crosses over English, and spikes in the last five layers. Press ▶ Play the forward pass and watch chart (c) trace that crossover.
The odd one out is phase 2. Entropy is already low (the lens is confident it sees "flower") yet token energy is still low: most of h points somewhere the vocabulary doesn't. The sphere is the paper's way of making sense of that.
4Why a sphere?
The hidden state lives on a sphere. Llama normalizes h with RMSNorm[5] before using it, which rescales every vector to the same root‑mean‑square size. So the normalized hidden states lie on a hypersphere of radius √d, about 90.5 for d = 8,192.[1] Change the model size in the playground and the "Sphere radius" readout updates.
The tokens live on a sphere too, but they don't fill it. The output token embeddings (rows of U) all have similar lengths: mean 1.52, standard deviation 0.23. They also crowd into part of the space: the first 25% of principal components carry half of their variance.[1] Call the region they occupy token space.
Token energy measures how much of h is in token space. The paper defines it as
where Û is U with each row scaled to unit length, v is the vocabulary size and d the hidden size (with h taken at unit length). In words: how strongly h lines up with token directions, compared with how strongly the tokens line up with each other on average.[1] Low energy means most of h sits in directions the unembedding barely reacts to.
The sphere picture. Figure 4(d) of the paper draws this in 3D instead of 8,192D. Token embeddings sit on the equator, English on one side and Chinese on the other. One direction in the equatorial plane stands for a concept (their toy example is "sweetness"). The third axis, through the north pole, holds everything else: context, details of the input, and which language to answer in. The hidden state starts at the north pole, orthogonal to both the token and the concept embeddings. Phase 2 rotates it into concept space, where English wins because English tokens have the larger concept component. Phase 3 rotates it along the equator to the target‑language token.[1]
That explains the puzzle. In phase 2 the hidden state has tipped just far enough toward the concept that its shadow on token space points clearly at a word, so entropy is low. But it is still mostly "up", so token energy stays low. The closest word to the concept happens to be English.
5Reading the playground
- The black dot is h at the last prompt position after the selected layer, drawn at unit length. The line from the center is the vector itself.
- The north pole is every direction orthogonal to all output tokens. A hidden state there gives every token the same score.
- The equator disk is token space. Each colored dot on its rim is one output token: the selected word in English, Chinese, German, French and Russian.
- The pink half‑plane is concept space for the selected word. The dashed pink arrow on the disk is the concept direction.
- The shadow is h dropped straight down onto the disk. The logit lens only sees this part. Its direction picks the winning token; its length sets how confident the lens is.
How the numbers are computed
Nothing in the readout is typed in by hand; it all follows from where h is on the sphere. For each of the five tokens the logit is β · (ĥ · ê), a dot product of unit vectors scaled by β = 43, which stands in for the lengths of h and the token embedding. The other 31,995 tokens of the vocabulary get a logit of 0, because in thousands of dimensions an unrelated token is almost exactly orthogonal to h. A softmax over all 32,000 gives the probabilities and the entropy. Toy token energy is the shadow's length divided by the length of h, which is the cosine of h's latitude.
The path itself is hand‑made: it starts at the pole, reaches concept space at the halfway point and turns toward the target language at 7/8 of the depth, matching the paper's 70B boundaries (layers 40 and 70 of 80). For 7B and 13B I scale those boundaries proportionally; that is my assumption, not a number from the paper.
Where the toy departs from the paper
- Five languages on one ring. The paper's sketch has only English and Chinese. In 3D, a rotation from the concept toward Chinese would pass over the German, French and Russian tokens, and the lens would briefly read them. That never happens in the real model. So the toy parks the non‑target languages at the back of the sphere and slides whichever language you pick into the slot across from English. In 8,192 dimensions there is room for every language to have its own direction.
- Token energy. In the toy it starts at 0 at the pole and climbs well past 50%. In Llama‑2‑70B it sits around 20% through phases 1 and 2 and ends near 30%.[1] Compare shapes, not values.
- Repetition. When the task is to repeat a Chinese word, the paper finds that Chinese rises alongside English in the middle layers rather than after it; for the other languages English still comes first.[1] The toy builds this in by tilting the phase‑2 path partway toward the target. That tilt is a hand‑set number, not something the geometry predicts.
- The English‑bias slider is a what‑if, not an experiment from the paper. It moves the English token away from the concept direction to show what the middle layers would look like if concept space did not lean toward English.
6So, do Llamas think in English?
Not in the sense of literally translating word by word. The middle layers seem to hold concepts: the hidden state is mostly made of things that are not tokens at all. But that concept space is biased toward English. When you project it onto the vocabulary, English words come out on top. The authors suggest English may still act as a pivot "in a semantic, rather than a purely lexical, sense".[1]
This matters beyond curiosity. If the space where a multilingual model "thinks" is shaped mainly by English text, then associations and biases learned from English could carry over into every other language the model speaks. The paper also observes that the detour through English looks weaker where a language has its own dedicated tokens. Nearly all of the Chinese words were single tokens, which may be why Chinese repetition behaves differently.[1]
Limits the authors point out
- Only the Llama‑2 family was studied, with initial supporting evidence from Mistral‑7B. Closed models can't be examined this way because the logit lens needs the weights.
- The tasks are simple and tightly controlled: single words, not real conversations.
- The logit lens is approximate. Anything in h that the vocabulary can't express is invisible to it.
- The real concept space has thousands of dimensions and its structure is poorly understood. The sphere is a cartoon of it.
7What came after
Separating tongue from thought. The same group followed up with activation patching: take hidden states from one translation prompt and paste them into another. They found that the output language is encoded in the hidden state at an earlier layer than the concept being translated, and that they could swap the concept while keeping the language, or the other way round. Replacing a concept's hidden state with its average across languages left translation intact and even improved it. That points toward concept representations that don't belong to any one language.[6] In sphere terms: the "which language" information rides along in the north‑pole directions long before phase 3 uses it.
Beyond single words. Schut, Gal and Farquhar applied the logit lens to full sentences in French, German, Dutch and Mandarin. They found English‑like representations for semantically loaded words before the model produced them in the target language. Steering vectors also worked better when computed from English than from the input or output language. They argue that key decisions happen in a representation space closest to English.[7]
The original code and data are public if you want to run the real measurements yourself.[8]
↳References
- Chris Wendler, Veniamin Veselovsky, Giovanni Monea, Robert West. 2024. Do Llamas Work in English? On the Latent Language of Multilingual Transformers. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15366–15394, Bangkok, Thailand. arXiv:2402.10588. All numbers on this page (phase boundaries, entropy, token energy, embedding norms, dataset sizes) come from this paper unless marked otherwise.
- nostalgebraist. 2020. interpreting GPT: the logit lens. LessWrong.
- Hugo Touvron, Louis Martin, Kevin Stone, et al. 2023. Llama 2: Open Foundation and Fine-Tuned Chat Models. arXiv:2307.09288. Language distribution of the pretraining data.
- Nora Belrose, Zach Furman, Logan Smith, Danny Halawi, Igor Ostrovsky, Lev McKinney, Stella Biderman, Jacob Steinhardt. 2023. Eliciting Latent Predictions from Transformers with the Tuned Lens. arXiv:2303.08112.
- Biao Zhang, Rico Sennrich. 2019. Root Mean Square Layer Normalization. NeurIPS 2019. arXiv:1910.07467.
- Clément Dumas, Chris Wendler, Veniamin Veselovsky, Giovanni Monea, Robert West. 2025. Separating Tongue from Thought: Activation Patching Reveals Language-Agnostic Concept Representations in Transformers. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL 2025). arXiv:2411.08745.
- Lisa Schut, Yarin Gal, Sebastian Farquhar. 2025. Do Multilingual LLMs Think In English? arXiv:2502.15603.
- EPFL Data Science Lab. llm-latent-language: code for [1]. GitHub.
The sphere, the path and every number in the playground are a teaching toy built from the paper's qualitative findings; they are not measurements from Llama‑2. For the real curves, see Figures 2–4 of [1]. Written by Nirajan Paudel while working through the paper.