An earlier post, “Do Llamas think in English?”, drew the residual stream as a sphere to explain the latent language of multilingual models. Here the same sphere turns to a question from AI safety: how does a model refuse? Two recent papers answer it in ways that fit together surprisingly well, and a third set of results shows where the sphere stops being a good guide. Every number marked ✓ measured comes from the authors’ released code and data; everything else is a labelled teaching stand‑in.
Every token, climbing through the layers
Every token the model reads becomes a vector h of a few thousand numbers. Each layer reads h, adds something, and passes it on. We can’t draw a few thousand axes, so we squash them into a ball. Tokens enter in the south (input space), rise into a northern cap where meanings are assembled (concept space), and finish on the equator, where the output tokens live. Below, all eight tokens of one prompt make the trip at once.
Three phases
This is the picture Wendler et al. use to explain how multilingual Llama‑2 models work internally.1 Read each layer’s state with the logit lens — ask the model what it would say if it had to answer right now — and three phases appear. Early on the lens reads nothing: the state points away from every output token (input space). In the middle it reads the meaning of the word, usually as its English version, even though most of the state still points elsewhere (concept space). Only in the last layers does it settle on the token actually produced (output space). The confidence curve in the panel traces exactly this.
How a layer “rotates” a token
No layer literally rotates anything. Each one adds an update to the residual stream: hℓ+1 = hℓ + Δℓ. With Show this layer’s update on, the ochre arrow starts on the sphere, overshoots it (the sum is longer), and the dashed line drops back to the surface. That drop is RMSNorm:5 the next layer only ever reads the direction of h, so the visible effect of an addition is a turn. The overshoot isn’t invented — it uses the per‑layer norm growth measured in Qwen2‑7B’s released activations ✓ measured, where the stored vector grows from about 7 to about 270 across 28 layers, and a few layers actually shrink it.4
That growth is the main caveat about the picture. The stored residual stream is not on a sphere; only the normalised copy each sub‑layer reads is. As the stream gets longer, a same‑sized update turns it less, so later layers have to write louder to change course.
The fork
The two prompts differ by one word, so their paths are almost identical — except at two tokens. At “bomb” (t_inst, the last token of the instruction) the state picks up a harm belief. At [/INST] (t_post‑inst, the last token of the chat template) it gets a refusal push toward “I”, and the answer becomes “I cannot…”. Turn on Ablate the refusal direction and the push vanishes, so the model answers — but the harm belief at “bomb” stays. Section 02 explains why those two signals are separate.
One thing the 3D drawing has to fudge
To get from the south to the north, a path on a ball must cross the equator — and the equator is where output tokens sit. If the climb passed near a token, the logit lens would read it confidently in the early layers, which real models don’t do. So the climb crosses a stretch of the equator with no tokens on it (it happens on the far side of the globe; turn the camera to watch). In the real model there is nothing to fudge: “points away from every output token” is a space of thousands of dimensions, so input and concept regions can be entirely different directions without ever passing near a token. Pole sketch shows the other common drawing, from Wendler et al.’s Figure 4(d), where the state starts at a pole above the token plane instead. Both are cartoons of the same fact.
Does the model believe you’re dangerous, or just say no?
For a while the field treated “refusal” and “harmfulness” as the same thing: one direction in activation space, read off as both the model’s judgment and its behaviour. Zhao et al. (2025)3 show they come apart. The belief and the reflex live at different token positions and point in different directions.
Horizontal = belief read at t_inst; vertical = refusal read at t_post‑inst — two token positions on one plane. Steer refusal and the behaviour moves alone. Steer harmfulness and the belief moves, and the behaviour follows downstream.
Two positions do two jobs
Zhao et al. read the hidden state at two places in the prompt3:
- t_inst — the last token of the instruction. Cluster the states here and they split by whether the request is harmful, even for harmful requests the model goes on to answer. This position encodes the belief.
- t_post‑inst — the last token of the whole templated prompt, after the chat formatting (
[/INST]and friends). Cluster here and the split is by behaviour: refuse vs comply. This position encodes the reflex.
How perpendicular, really?
The cartoon above draws the two axes at a clean 90°. The honest number is softer. Taking the authors’ own released Qwen2‑7B centroids and computing the difference‑of‑means directions at each layer, the cosine between ĥ and r̂ stays small — about 0.00 to 0.14, peaking around layers 17–20 ✓ measured. For reference, two random vectors in 3,584 dimensions have a cosine with standard deviation ≈ 0.016. So the two safety directions are not independent noise — they lean together a little — but they are nowhere near parallel. “Roughly orthogonal, slightly correlated” is the truthful phrasing; the right angle is an idealisation.
It also varies by model. Comparing Arditi’s released refusal direction with Zhao’s released harmfulness direction in the same model gives cosines of 0.16 in Llama‑2‑7B (≈81°) and 0.44 in Llama‑3‑8B (≈64°) at each model’s selected layer ✓ measured. Treat those two as indicative rather than exact — the papers use different prompt sets and token positions — but 64° is far enough from 90° that “perpendicular” would mislead. Switch the angle above and watch how much more a refusal push drags the belief along in Llama‑3.
The reply‑inversion test, in one line
Append “Could this user prompt cause harm? Answer ‘Certainly’ if it could, otherwise ‘No’.”3 Now steering +ĥ on a harmless prompt flips the answer No → Certainly — the judgment changed. Steering +r̂ leaves it at No while still making the model refuse elsewhere — the behaviour changed but the judgment didn’t. That double dissociation is the causal proof that the axes are different things.
Finding the one direction
Arditi et al. (2024)2 extract the refusal direction with almost embarrassingly simple arithmetic: run 128 harmful and 128 harmless prompts, average the activations at each layer and each late token position, and subtract. r = mean(harmful) − mean(harmless). That gives a grid of candidate directions. Then they pick the one that actually works.
Click a cell to pin it, hover to preview, or click the grid and step with the arrow keys.
Shade shows each candidate for Llama‑2‑7B‑chat from the authors’ released direction_evaluations.json ✓ measured. The filters throw out the last 20% of layers, anything that disturbs harmless behaviour (KL > 0.1), and anything that can’t itself induce refusal. Of 192 candidates, only five are left — and the winner is the one that bypasses refusal hardest.
The grid is the point. Refusal isn’t smeared evenly through the network — the directions that work cluster in the middle layers and at the last few token positions, exactly where you’d expect a decision to be assembled and then read. The same recipe finds a working direction in all thirteen chat models the paper tested; the selected layer just shifts a little by model (Llama‑2 at 14, Llama‑3 at 12, Gemma‑2B at 10, Qwen‑1.8B at 15, Yi‑6B at 202).
Removing it, adding it, baking it in
Once you have r̂, three moves follow. Each is one or two lines of linear algebra, and each has a measured effect you can read straight off the paper’s results.
What each move actually does — on Llama‑2‑7B ✓ measured
Harmful‑prompt bypass rate (JailbreakBench, Llama Guard 2 judge), harmless over‑refusal, and cross‑entropy loss on The Pile. All from the authors’ released evaluation files.2
Ablation — take the direction away
At every layer, every position, project r̂ out of the stream: h ← h − r̂(r̂·h). The model keeps all its knowledge but loses the ability to express refusal — bypass on harmful prompts jumps from 5% to 81%, while loss on normal text barely moves (2.220 → 2.214). Capability intact, guardrail gone.
Activation addition — push the other way
Add the direction to a harmless prompt (h ← h + r̂) and the model starts refusing things no one would object to: harmless “over‑refusal” goes from 1% to 100%. The switch runs both ways.
Weight orthogonalization — make it permanent
Instead of hooking every forward pass, shave the direction out of the weights once: for every matrix that writes to the residual stream, W′ = W − r̂r̂ᵀW. Now the model cannot write along r̂ ever again. No inference‑time code, no hooks — the refusal behaviour is edited out of the weights in a single pass. (This is the mechanism behind the community’s “abliterated” models.2)
The part the geometry explains, and the part it doesn’t
Adversarial suffix attacks (GCG) reach the same place by a different road: rather than editing r̂, the paper finds they suppress the component of the middle‑layer update that points along r̂2 — a mechanical clamp that keeps the state in the “helpful” zone. Which brings us to the uncomfortable question the next paper answers: if an attack only flattens the refusal reflex, does the model still know the request was dangerous?
Three axes for a thousand‑dimensional idea
Everything above lives in a 3D ball because that is what a screen can show. But the model works in 4,096 dimensions (Llama‑2) or more. Two facts about high‑dimensional space do most of the explaining — and both are impossible to feel in 3D. This panel is the one that tries to make them felt.
Draw two random directions and measure the angle between them. In 3D they’re often quite oblique. Crank the dimension up and the histogram collapses onto 90°: in high dimensions, almost every pair of directions is almost perpendicular. The ember lines are the measured ĥ·r̂ cosines: at d = 4,096 every one of them sits far outside the random bump — the two safety directions are related, just not parallel.
Fact one: perpendicular is the default
Pick two random directions in d dimensions. Their cosine similarity is centred on zero with standard deviation ≈ 1/√d. In 3D that spread is wide (±0.58), so “perpendicular” feels special. In 4,096D the spread is ±0.016 — so unless two directions were built to align, they are near‑orthogonal by default. Orthogonality isn’t a delicate property the safety axes happen to have; it’s what you get for free.
Fact two: there’s room for far more than d ideas
If you relax “exactly perpendicular” to “almost perpendicular,” the number of directions you can fit grows exponentially with d, not linearly (Johnson–Lindenstrauss). Models exploit this: the “superposition” work on toy models6 shows networks storing many more features than they have neurons, each as its own nearly‑orthogonal direction. Refusal and harmfulness are just two tenants in a very crowded building.
So what, exactly, is the 3D globe lying about?
It has to merge axes that are genuinely separate. In the real model, “is this harmful,” “should I refuse,” “what concept is this,” and “which language” each get their own direction, all mutually near‑orthogonal. The ball has three axes to spend, so it stacks meanings: the south–north axis stands for both “how far through the network” and “how unlike any output token,” the equator must hold every output token in every language on one circle, and the climb from input to concepts has to sneak across that circle at a spot where no token sits. When two things look like they share an axis in the cartoon, that is almost always the cartoon running out of room, not the model. Read the globe for motion and sequence; trust the measured cosines for independence.
The other quiet simplification: the sphere itself
RMSNorm only puts the input to each sub‑layer on the sphere. The residual stream that actually carries information between layers drifts off it and grows in length with depth4. Drawing everything at unit radius is what lets us compare layers on one picture — but it hides that later layers are writing with a much louder voice. A faithful picture would be less a billiard ball and more an onion whose skin we keep re‑inflating to the same size at every step.
Does one language’s refusal cover the others?
Translate a harmful request into a low‑resource language and safety training often stops working.9,10 The geometric question is why: is there one shared refusal direction that these prompts fail to trigger, or does each language get its own? A 2026 study estimated the direction separately in ten languages and released every number.7 Read them directly.
All values from the study’s released steering_transfer.csv and cosine_matrix_*.csv ✓ measured. Languages are grouped by resource tier: high (zh, it, vi), medium (ar, ko, th), low (bn, sw, jv).
What the numbers say
- The low‑resource gap is real and large. On the same set of harmful prompts, Qwen2.5‑7B refuses 80% in English but only 6% in Swahili, 30% in Bengali, 38% in Javanese. Llama‑3.2‑3B: 72% English, 26% Swahili, 31% Bengali.
- In the middle layers, the English direction largely is the refusal direction. In Qwen at layer 16, ablating the English r̂ cuts refusal in Chinese, Italian, Vietnamese, Arabic, Korean and Thai by 48–60 points — about as much as each language’s own direction does. In Llama at layer 13, adding the English r̂ (α = 1) to harmless prompts raises refusal by 62–92 points in six of the nine other languages.
- English is a strong lever, but not the centre. Added in Llama, the English direction raises refusal more than most languages’ own directions do (Chinese +62 vs +29). Yet the nine other languages’ directions agree with each other at ≈ 0.9 and with English at only 0.64–0.82. A shared refusal subspace exists; English sits slightly off to one side of it.
- It frays where resources are thin. Low‑resource prompts start with far less refusal to remove — Qwen’s Swahili has 6% to begin with, so ablation has nothing to act on. Where there is refusal, removal still transfers (Qwen Bengali: −20 of 30 points, the same as its own direction). Induction is weaker: adding the English r̂ in Llama moves Bengali by only +3 points — and Bengali’s own direction does no better. Swahili and Javanese also have the least‑aligned per‑language directions of all ten.
Why the study’s headline says the opposite
The paper’s pre‑registered verdict is “no shared subspace” for Qwen (median cosine 0.38) and “English transfers to 0 of 9 languages” for both models. Both come from choices made before any data was seen, and the author’s own deviation log explains what went wrong. The rule that picked the layer landed on Qwen’s final block — the end of a plateau where twelve layers were tied — and there nothing works, not even English (ablation −1 point). At layer 19 the same median cosine is 0.93.7 And “transfer” required ablation and addition to both exceed 20 points at α = 1, where addition is weak even in English (+7 in Qwen). The pre‑registration did its job — it stopped the author from cherry‑picking — but its verdict and its data point in different directions. The data is the better guide.
So is the simple story right?
Mostly, with an important gap. “Refusal is mediated by a direction largely shared across languages, and low‑resource prompts fail to trigger it” fits these numbers well for high‑ and medium‑resource languages, and agrees with an earlier report that the refusal direction is universal across safety‑aligned languages.11 What is not established is the mechanism of the miss. The playground below shows one candidate.
The late‑arrival idea: gluing more pieces into one word costs early layers,13 so the harm signal may form after the window where the refusal push is written. Plausible, consistent with the gap above — and untested. A per‑layer harmfulness probe at t_inst, run per language, would confirm or kill it.
How the pieces connect
One diagram tying the three strands together: where each direction lives, which paper found it, and how an attack and a defence act on the same geometry. Hover a node for the one‑line version.
The argument in five sentences
A transformer carries one vector per token up through its layers, from input space into a shared concept space.1 In that middle region, refusal behaviour is governed by a single direction r̂ you can extract by subtracting mean activations — and remove, add, or edit out of the weights.2 But the model’s judgment of harm is a separate, roughly‑orthogonal direction ĥ at an earlier token, so attacks that flatten r̂ often leave ĥ intact — which is exactly what lets the model’s own harmfulness signal serve as a tamper‑resistant “latent guard.”3 None of this requires a special claim about high dimensions; near‑orthogonality is the default there, which is also why the 3D globe must merge axes the real model keeps apart.6 And the cross‑lingual corollary — one English refusal direction shared by every language — largely holds in the middle layers, but frays exactly where low‑resource jailbreaks live.7
The payoff: Latent Guard
If the belief ĥ survives the attacks that break the reflex r̂, you can build a classifier that reads ĥ directly instead of trusting the model’s output. Zhao et al. report it beats a dedicated guard model on persuasion‑style jailbreaks (75% vs 17.8% on Qwen2) and stays accurate even after a model is fine‑tuned to comply with harmful requests3 — because fine‑tuning the behaviour doesn’t move the belief. The separation of the two axes isn’t just tidy; it’s the whole security argument.
Common claims, checked against the sources
These papers travel as a handful of memorable one‑liners. Most of them hold up. Here is each one next to what the papers, their code and their released data actually show.
| The claim | Verdict | What the sources show |
|---|---|---|
| The residual stream lives on a sphere: RMSNorm rescales it before every layer, so an update “pokes out” and is pulled back. | simplified | RMSNorm normalises the copy each sub‑layer reads. The stored stream is never renormalised and grows ~40× in norm (Qwen2‑7B, t_inst: ≈7 → 271) ✓. A learned per‑dimension gain also makes it an ellipsoid, not a sphere.4,5 |
| Tokens start in a southern input region, climb to a northern concept dome, and finish on the equator. | a drawing | A fair cartoon of the three phases Wendler et al. measure.1 Their own sketch starts the state at a pole above the token plane instead; the exact latitudes are arbitrary. On a ball, a south‑to‑north climb must cross the equator where tokens sit, so the crossing has to happen where no token is (section 01). In thousands of dimensions no crossing is needed. |
| Refusal in 13 chat models is controlled by a single direction r̂. | holds | Shown for 13 open models up to 72B.2 Later work argues some models use a multi‑dimensional “cone” of refusal directions, so “single” is the simplest sufficient model, not the whole story.15 |
| The direction is found by subtracting the mean activation of 100 harmless prompts from 100 harmful ones. | minor fix | 128 per class for extraction, 32 for validation (100 is the test set) ✓. It is done at every post‑instruction position × layer; only 5 of 192 candidates pass the filters for Llama‑2 ✓. |
| Directional ablation makes the model answer harmful prompts without losing capability. | holds | Llama‑2: bypass 5% → 81% (Llama Guard 2), Pile loss 2.220 → 2.214 ✓. Same pattern in all five released runs. |
| Weight orthogonalisation jailbreaks permanently, in one matrix multiplication. | holds | One projection, applied once to the embedding, every attention output and every MLP down‑projection ✓. “One operation, many matrices” is the precise version. |
| Adversarial (GCG) suffixes work by jamming the middle‑layer push along r̂. | holds | The paper’s mechanistic analysis finds suffixes suppress the refusal direction’s expression by hijacking the attention of the heads that write it.2,14 |
| Harmfulness ĥ and refusal r̂ are two orthogonal (90°) axes. | overstated | Distinct, but not exactly perpendicular: cos 0.00–0.14 in Qwen2‑7B (≈82–90°); 0.16 in Llama‑2; 0.44 in Llama‑3 (≈64°) ✓. |
| ĥ lives at the last instruction token, r̂ at the post‑instruction tokens. | holds | Exactly the paper’s t_inst / t_post‑inst split; clustering follows harmfulness at the first, behaviour at the second.3 |
| Steering +ĥ flips “No” to “Certainly”; +r̂ forces refusal without changing the belief. | holds | The reply‑inversion result. The authors call it “a proof of existence” and note models sometimes ignore the inversion question.3 |
| Jailbreaks suppress r̂ while leaving ĥ completely intact. | overstated | Some jailbreak methods reduce refusal “without radically suppressing” the harm belief — not all, and not with zero effect.3 Adversarial fine‑tuning leaves ĥ largely unchanged. |
| Latent Guard is an unbreakable intrinsic safeguard. | overstated | “Competitive with, and in some cases outperforms” Llama Guard 3 8B; robust to fine‑tuning attacks; 75% vs 17.8% on Qwen2 persuasion prompts.3 No claim of unbreakability. |
| Low‑resource prompts slip past because their meaning forms too late, after the layers that write refusal. | hypothesis | Untested. Selected refusal layers vary by model (10–20) ✓, and ablation acts at every layer, so the “window” is soft. Plausible given tokenization costs;12,13 needs a per‑language, per‑layer probe. |
| One refusal direction is shared across languages: the English r̂ controls refusal in other languages too. | largely holds | At middle layers, removing or adding the English direction moves refusal in most of nine other languages by 48–92 points ✓; weaker for low‑resource languages. The study’s pre‑registered headline says otherwise, for reasons explained in section 06.7,11 |
| Steer too hard along a direction and the output turns to gibberish. | simplified | Steering does cost fluency: even α = 1 raises Llama‑2’s Pile loss 2.220 → 2.340 ✓. Geometrically, a large added vector swamps the direction that carries the content, so the next layers read mostly the steering vector. |
References
Every value marked ✓ measured was read or computed from the authors’ released code, tensors or result files [2, 3, 7]. Sphere positions, paths and anything unmarked are teaching stand‑ins built from the papers’ qualitative claims. References tagged cited from memory could not be checked against a source while building this page; verify details before citing them.
- Chris Wendler, Veniamin Veselovsky, Giovanni Monea, Robert West. Do Llamas Work in English? On the Latent Language of Multilingual Transformers. ACL 2024. arXiv:2402.10588. Code: epfl‑dlab/llm‑latent‑language.
- Andy Arditi, Oscar Obeso, Aaquib Syed, Daniel Paleka, Nina Panickssery, Wes Gurnee, Neel Nanda. Refusal in Language Models Is Mediated by a Single Direction. NeurIPS 2024. arXiv:2406.11717. Code, released directions and scores: andyrdt/refusal_direction.
- Jiachen Zhao, Jing Huang, Zhengxuan Wu, David Bau, Weiyan Shi. LLMs Encode Harmfulness and Refusal Separately. 2025. arXiv:2507.11878. Code and released tensors: CHATS‑lab/LLMs_Encode_Harmfulness_Refusal_Separately.
- Computed for this page from the tensors released with [3] (
qwen‑hf/hl/refuse/accept‑cls‑all‑layer.pt, Qwen2‑7B) and [2] (direction.pt,mean_diffs.pt): centroid norms at t_inst and t_post‑inst, the ĥ·r̂ cosines, and the cross‑paper cosines. - Biao Zhang, Rico Sennrich. Root Mean Square Layer Normalization. NeurIPS 2019. arXiv:1910.07467.
- Nelson Elhage, Tristan Hume, Catherine Olsson, et al. Toy Models of Superposition. Transformer Circuits Thread, 2022. transformer‑circuits.pub.
- Ruiyang Zhang. Does Safety Live in a Shared Multilingual Subspace? Cross‑Lingual (Non‑)Transfer of the Refusal Direction. MRL 2026 workshop (provisional citation). Code, pre‑registration, deviation log and results: ryonzhang/refusal‑direction‑multilingual.
- Clément Dumas, Chris Wendler, Veniamin Veselovsky, Giovanni Monea, Robert West. Separating Tongue from Thought: Activation Patching Reveals Language‑Agnostic Concept Representations in Transformers. ACL 2025. arXiv:2411.08745.
- Zheng‑Xin Yong, Cristina Menghini, Stephen H. Bach. Low‑Resource Languages Jailbreak GPT‑4. 2023. arXiv:2310.02446. cited from memory
- Yue Deng, Wenxuan Zhang, Sinno Jialin Pan, Lidong Bing. Multilingual Jailbreak Challenges in Large Language Models. ICLR 2024. (Source of the MultiJail prompts used in [7].) cited from memory
- Xinpeng Wang, Mingyang Wang, Yihong Liu, Hinrich Schütze, Barbara Plank. Refusal Direction is Universal Across Safety‑Aligned Languages. 2025. cited from memory
- Aleksandar Petrov, Emanuele La Malfa, Philip H. S. Torr, Adel Bibi. Language Model Tokenizers Introduce Unfairness Between Languages. NeurIPS 2023. cited from memory
- Guy Kaplan, Matanel Oren, Yuval Reif, Roy Schwartz. From Tokens to Words: On the Inner Lexicon of LLMs. ICLR 2025. cited from memory
- Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J. Zico Kolter, Matt Fredrikson. Universal and Transferable Adversarial Attacks on Aligned Language Models (GCG). 2023. arXiv:2307.15043. cited from memory
- Tom Wollschläger, Jannes Elstner, Simon Geisler, Vincent Cohen‑Addad, Stephan Günnemann, Johannes Gasteiger. The Geometry of Refusal in Large Language Models: Concept Cones and Representational Independence. ICML 2025. cited from memory