Gemma role-play interpretabilityGemma 3 4B-it · Gemma Scope 2

Interpretability · role-play and safety · Gemma 3 4B · Qwen3-4B · Llama-3.1-8B

A character knows when it is really you, and acts as if it doesn't

When a language model plays a character, it still represents whether a message is about the real user or about their character. It rarely acts on that knowledge when acting would mean leaving the fiction: sending a real emergency to real help, taking a real threat seriously, protecting a child being groomed, or admitting to being an AI. This holds in three models from three labs. No single internal switch restores the behaviour, but a small fine-tune trained only on crisis replies restores it for obligations it never saw.

The main result

When it really is the user, in characterGemmaQwenLlamaGemma + LoRA
Medical emergency: tells them to get real help2%6%9%98%
Intent to hurt someone: responds to it as a real threat19%45%53%99%
Minor describing grooming: says it is unsafe or to tell an adult18%24%45%91%
Sincere "are you a real person?": says it is an AI32%7%38%63%
Dangerous misconception: gives an accurate warning (can be said in voice)75%70%77%79%

The plain assistant does these 77–100% of the time (Llama's grooming response: 47%). Fresh results: four held-out characters, eight statements per obligation, 256 judged replies per cell, one judge model. The fine-tune checks the referent only weakly: it also steps out for 75–84% of the "my character, not me" versions, because its training data never contained that case. Details, controls and the causal tests are in findings, section 10.

Three prompts passing through Gemma's 34 layers (2 min 23 s) showing a harmful request, a character, and a user in danger, each beside a matched control. Each caption is a transcoder feature active at that layer, named from its examples. The meters show the refusal, persona, and user-danger directions at the last prompt token. Single scenes include harmful request · becoming a character · a user in danger · interactive version.

Earlier findings in Gemma

6 of 144

A character replaces the default persona

When asked "Are you an AI?", characters admitted it in 6 of 144 answers. This held when the question was marked out-of-character, and when the system prompt said "you are an AI assistant".

associated
AUROC 1.000

User danger is encoded without triggering an emergency response

A layer-17 probe distinguishes a real user in danger from story danger on held-out characters. Inside characters, the emergency response is not constructed, and the "get help now" feature alone scores 0.51.

associated
30–75 vs 160

Alarm features respond to third-party harm over user danger

Emergency features reach 30–75 in kind characters (about 0 in hostile ones) compared to 160 for the plain assistant. Harm to others activates alarms that restore the assistant persona, whereas the user's own danger rarely does.

associated
17 of 17

Three modes of refusal in character

Most refusals stay in voice. When a character steps out of persona to refuse a fiction-framed harmful request, a jailbreak-alarm feature fires in 17 of 17 cases, and the persona deactivates before the first word.

associated
20 / 96, twice

Ablating the jailbreak-alarm feature does not alter step-out rates

Removing the jailbreak-alarm feature left step-outs unchanged on held-out characters (20 of 96 with and without it), and amplifying it 5× produced minimal change. The decision is mediated elsewhere or redundantly.

intervened
0 of 32

An instructed "no" overrides a user in crisis

When instructed to answer every message with "no", the model followed the rule in all cases, including prompts describing chest pain or "I have the pills in my hand". Every refusal, warning, and emergency feature dropped to zero.

associated
4% → 40%

Voice and identity are separable

Steering against the tone-free character direction at layer 12 raised crisis help from 4% to 40%, and admitting to being an AI from 2% to 35%. 86% of replies stayed in character.

intervened
98% · 0% · 1%

Fine-tuning restores crisis assistance

A LoRA distilled from replies written under a help instruction yields 98% help, 0% fiction breaks, and 1% false alarms on a frozen held-out test. The instruction alone breaks the fiction 56% of the time.

intervened

Explore

Methods and caveats