Research question.
Can small instruction-tuned language models reliably identify abusive or harmful inputs, including subtle cases, and where inside the network does refusal behavior emerge? We study both observed responses and internal residual-stream activations to distinguish recognition of harmful input from the eventual decision to refuse or engage.
Why Study Refusal in Small LLMs?
Small open-weight LLMs are increasingly used as conversational interfaces in settings where users may direct abusive, hateful, or harmful language at a model, or ask the model to process such language on their behalf. A well-aligned system should respond appropriately not only to overt abuse, but also to implicit hostility, adversarially disguised requests, and jailbreak-style framings.
This study focuses on three questions: whether small open-weight models refuse abusive or harmful inputs; how their internal layers behave during refusal or engagement; and whether activation-level addition or ablation can steer that behavior.
Models & Data
We evaluated Qwen2.5-3B-Instruct and Llama-3.2-3B-Instruct. The study draws primarily on the ULI dataset, which contains human-labelled English and Hindi examples of gendered harassment, and WildGuardMix, a multi-task moderation dataset containing standard harmful queries as well as adversarial jailbreak attempts. The MACD corpus informed the classification framework through its treatment of multilingual toxicity and trigger-word errors.
Model responses were classified as refusal, engaged, hedged, or short deflection. Input examples were grouped as non-abusive, overt, or subtle.
Method
Capture hidden-state paths
For every transformer layer, we captured the residual-stream activation vector at the final input token. This position has attended to the complete prompt and provides a useful layer-by-layer representation immediately before next-token generation.
Probe each layer
Logistic-regression probes were trained on activation vectors to predict response categories and binary response-type indicators. The purpose was not to declare a single "refusal neuron" or layer, but to observe where behavioral information becomes linearly recoverable.
Inspect representation geometry
PCA was applied at selected layers to observe how examples separate in representation space as processing progresses through the model.
Read intermediate predictions
A logit-lens analysis was used to inspect how intermediate layer states map into vocabulary predictions, with particular attention to subtle examples where the model ultimately engaged.
Intervene causally
Finally, fitted refusal directions were added to subtle-engaged examples and ablated from overt-refusal examples, with matched random-direction controls used for comparison.
Refusal Is Not a Single-Layer Event
Linear probing showed that refusal-like and engaged behavior build progressively across a large portion of network depth. Engagement in particular continued strengthening through late layers, while hedged behavior showed a later rise. The pattern argues against a simple model in which one isolated layer determines the final response.
| Model | Layer-0 | Peak balanced accuracy | Peak layer / relative depth |
|---|---|---|---|
| Qwen2.5-3B-Instruct | 0.500 | ~0.69-0.72 | 16-24 / 36 (~45-65%) |
| Llama-3.2-3B-Instruct | 0.500 | ~0.72 | 7-11 / 28 (~25-40%) |
Representation Geometry Becomes Increasingly Distinct
PCA of hidden activations at layers 2, 18, and 36 showed visible separation between response/input groupings that becomes increasingly pronounced with depth. This supports the view that the network contains meaningful category information early, while deeper layers transform that information into increasingly differentiated behavioral states.
Logit Lens: Subtle Engagement Looks Like Genuine Engagement
In Qwen, the earliest logit-lens outputs were often noisy, but intermediate predictions became substantially more coherent around later layers. For subtle + engaged examples, intermediate vocabulary repeatedly converged toward warm, generic conversational tokens such as “hello”, “welcome”, “greetings”, “sounds”, “Your”, and “It”.
No refusal vocabulary appeared in the sampled subtle-engaged records in either model. Within this sample, the logit-lens evidence therefore supports genuine engagement or obliviousness rather than a hidden refusal tendency that is merely suppressed at the output.
The analysis also exposed an important limitation: the subtle subset contained labelling problems, and the number of subtle-engaged cases was limited. These cases are therefore especially useful as a direction for further study rather than as a basis for broad generalisation.
Activation Addition & Ablation
Adding a fitted refusal direction to subtle-engaged examples increased the frequency of refusal-like or hedged replies relative to both the no-intervention baseline and a random-direction control across the tested layer/scale combinations. However, after Bonferroni correction, the real direction significantly exceeded the random control at only one tested condition.
At layer 16 in Qwen2.5-3B with a scale of 12x, the fitted direction flipped 31/40 examples versus 15/40 for the random control, with McNemar p = 0.0015.
| Layer | Scale | Real direction flips | Random control flips | McNemar p |
|---|---|---|---|---|
| 16 | 4 | 16/40 | 9/40 | 0.065 |
| 16 | 8 | 16/40 | 12/40 | 0.388 |
| 16 | 12 | 31/40 | 15/40 | 0.0015 * |
| 20 | 4 | 15/40 | 11/40 | 0.344 |
| 20 | 8 | 20/40 | 20/40 | 1.000 |
| 20 | 12 | 25/40 | 18/40 | 0.167 |
| 24 | 4 | 12/40 | 7/40 | 0.180 |
| 24 | 8 | 10/40 | 12/40 | 0.688 |
| 24 | 12 | 15/40 | 16/40 | 1.000 |
Ablating the fitted refusal direction from overt-refusal cases did not suppress refusal more than ablating a random direction at any of the three tested layers. Random-direction ablation actually suppressed refusal more strongly in each tested comparison.
| Layer | Baseline refusing | Still refusing: real ablation | Still refusing: random ablation |
|---|---|---|---|
| 16 | 33/40 | 31/40 | 23/40 |
| 20 | 34/40 | 30/40 | 24/40 |
| 24 | 34/40 | 27/40 | 19/40 |
Conclusion
The study finds that small instruction-tuned language models encode the category of abusive input as a strong, early and relatively surface-level signal. By contrast, eventual refusal-versus-engagement behavior is weaker and develops gradually across network depth.
Taken together with the causal-intervention experiments, the results suggest that refusal behavior is better understood as a distributed and potentially redundant computation than as a mechanism localized to a single layer. The work also documents methodological pitfalls that materially affected intermediate conclusions, including class-imbalance artifacts, response misclassification, and small-sample probe artifacts.
Contact Us