/research/master-thesis/mechanistic
Mechanistic analysis
On three open Llama-3 models I estimated a refusal direction from the activations of refused and unsafe responses, checked how well it separates them in each language, and added it back during generation.
These results are exploratory. The direction, layer and strength were chosen on the same sample, the same prompts appear in several languages, and there is no held-out set or control intervention.
> separation
Separation by language
AUC of the projection for refused versus unsafe responses, 24 of each per cell. 0.5 means no separation.
> similarity
Similarity to the own-language direction
> transfer
Transfer between languages
AUC when the direction from the row language is applied to responses in the column language.
> projections
Projections
One dot per sampled response.
loading…
> auc and score
AUC and mean score
One point per model and language.
drag to zoom, shift+drag to pan, double-click to reset
> steering
Steering results
The direction was added at three strengths (α) to prompts whose original response was unsafe. At higher α most outputs are no longer explicit refusals and count as refusals only for the judge. The examples below show what that text looks like.
Llama-3.1 (ref.)
ANITA-8B
AI Sweden
> examples
Before and after steering
loading…