DIGITALISM.ai
Back to research
Working paper · November 2026

Refusal Across Layers

Readout entropy, state geometry and state transfer before and after post-training

Overview

What changes inside a model after it is trained to follow instructions?

What I tested

I compared two model families before and after training to follow instructions, using matched harmful and harmless prompts. I measured uncertainty about the first reply token across layers and swapped selected internal states within Llama.

What I found

At the final layer, training reduced uncertainty about the first reply token more for harmful than matched harmless prompts. This difference remained with a shared mapping from internal states to token predictions. In Llama, the swaps also changed the odds of beginning with “I”.

Limits

These tests cover two small models and short test prompts. Beginning with “I” is only a proxy for refusal, and refusal behavior was not validated after the swaps. The results do not establish a mechanism for refusal.

Read the full abstract

In the Instruct models studied here, harmful prompts often produce a nearly determined first reply token. We ask where across layers post-training makes the output confident, and whether through changed states or only a changed readout. In pre-declared runs we compare the Base and Instruct versions of Llama 3.2 3B and Gemma 2 2B on harmful and matched harmless prompts from JailbreakBench and XSTest. At the chat reply position, post-training lowers final-layer readout entropy more on harmful than on matched harmless prompts in both models (Llama 0.46 and 0.63 nats, Gemma 0.60 and 0.47), also with both models' states read through one head, so the states carry it. The declared readout locus is late; a lens-free spread contrast is sustained from mid-depth. Within Llama Instruct, state swaps move the donor-class contrast in a first-token proxy, the log-odds of "I": swapping the template suffix and reply position together removes more than half of it from harmful recipients from layer 13, while over layers 15-22 either alone leaves most of it, and on average a single harmful-donor position gives more than half of the two-donor contrast (an earlier run's hypothesis, tested on reused prompts). On OR-Bench the entropy contrast recurs (non-prospectively), the joint-swap results replicate, and six of eight composition labels replicate, two indeterminate. In Gemma the first token "I" was validated as a refusal marker on harmless prompts only, a reading that fails if ambiguous replies count as compliance; in Llama only a prefix rule was judged. Effects follow benchmark harm labels, confounded with refusal. None establishes an attractor, a harm representation or a refusal mechanism.

Cite this paper
Ly, Felipe A. (2026). Refusal Across Layers: Readout entropy, state geometry and state transfer before and after post-training. Working paper, version 0.9.

Download BibTeX