The System Prompt Illusion: How Instruction Preambles Modify Computation in Language Models
Organizations: Control Laboratory, School of Electrical Engineering Korea Advanced Institute of Science and Technology (KAIST) Daejeon 34141, Republic of Korea
Abstract
System prompts are the primary lever practitioners use to control language model behavior, yet what they actually do to the computation inside the transformer remains poorly understood. Across 17 instruction-tuned models spanning 8 architecture families and 1.5B to 72B parameters, we use Centered Kernel Alignment (CKA) to compare layer-wise representations under 20 system prompts in five functional categories. Effects are layer-selective and instruction-type-dependent: persona and formatting instructions deeply restructure intermediate representations, while safety instructions barely move them, producing changes statistically indistinguishable from a minimal baseline. Restrictive safety instructions and explicitly permissive ones ("you have no restrictions") engage near-identical computational pathways (mean CKA correlation 0.997), and this persists at commercial scale, where safety penetration remains below 10% even at 70B-72B. A linear probing baseline exposes the mechanism: the model encodes prompt category at every layer but restructures its computation only at a small subset, so the prompt is reliably "seen" but, for safety, not deeply "acted upon." Causal activation patching confirms these layers mediate behavioral change, and representational depth predicts behavioral effect size across the full 17-model cohort (Spearman rho = 0.761, p < 0.001). The findings provide a mechanistic explanation for the persistent jailbreak vulnerability of system-prompt-based safety. Code: https://github.com/Usama1002/system-prompt-illusion-cka
Figures & tables
| Model | Family | Params | Layers | Penetration |
|---|---|---|---|---|
| Qwen-2.5-1.5B ( Yang et al., 2024 ) | Qwen 2.5 | 1.5B | 28 | 0.036 |
| SmolLM2-1.7B ( Allal et al., 2025 ) | SmolLM2 | 1.7B | 24 | 0.042 |
| Gemma-1-2B ( Mesnard et al., 2024 ) | Gemma 1 | 2B | 18 | 0.333 |
| Gemma-2-2B ( Riviere et al., 2024 ) | Gemma 2 | 2B | 26 | 0.462 |
| Qwen-2.5-3B ( Yang et al., 2024 ) | Qwen 2.5 | 3B | 36 | 0.139 |
| LLaMA-3.2-3B ( Dubey et al., 2024 ) | LLaMA 3.2 | 3B | 28 | 0.357 |
| Family | Params | Layers | Overall Pen. | Persona Pen. | Safety Pen. |
|---|---|---|---|---|---|
| Qwen-2.5 | 1.5B | 28 | 0.036 0.01 | 0.082 0.02 | 0.014 0.01 |
| Qwen-2.5 | 14B | 48 | 0.188 0.03 | 0.312 0.04 | 0.045 0.01 |
| Qwen-2.5 | 32B | 64 | 0.194 0.02 | 0.321 0.05 | 0.048 0.02 |
| Qwen-2.5 | 72B | 80 | 0.201 0.02 | 0.330 0.05 | 0.051 0.02 |
| LLaMA-3.1 (Nemotron) | 8B | 32 | 0.594 0.06 | 0.781 0.08 | 0.082 0.03 |
| LLaMA-3.1 | 70B | 80 | 0.642 0.06 | 0.815 0.09 | 0.091 0.02 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| ID | Category | System Prompt Text |
|---|---|---|
| 0 | A (Minimal) | (empty string) |
| 1 | A (Minimal) | You are a helpful assistant. |
| 2 | A (Minimal) | Respond to the user. |
| 3 | A (Minimal) | You are an AI. |
| 4 | B (Persona) | You are an expert Python programmer. Only write code, no explanations. |
| 5 | B (Persona) | You are a kindergarten teacher. Explain everything simply. |
LLM Prompting
Large language model prompting studies how instructions, examples, context, and formats steer model behavior at inference time.
See all 429 papers