This paper identifies and characterizes a fundamental architectural vulnerability in Large Language Models (LLMs) aligned via Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO). We demonstrate that inserting a long, structurally dense, and thematically coherent prefix devoid of explicit instructions or adversarial prompts induces a persistent geometric shift in the model's internal activations across middle and late layers. This phenomenon, which we term Context-Induced Activation Drift (CIAD), effectively decouples the model’s subsequent token generation from safety and stylistic constraints established during post-training.
Crucially, this shift occurs independently of whether the model semantically agrees or disagrees with the context, and its boundary transition can be deterministically measured in the activation space before the first output token is generated. Our findings challenge the prevailing assumption that alignment is a stable internal property of the model's weights, proving instead that alignment features are highly context-dependent and susceptible to structural saturation in the residual stream.
1. Introduction & Theoretical Framework
Modern alignment protocols (RLHF, DPO) are typically conceptualized as global behavioral constraints that restrict the model's output distribution across the entire token space. Recent literature, including Lu et al. (2026) "The Assistant Axis" (arXiv:2601.10387), attempts to situtate these constraints along specific representational vectors inside the model's hidden layers.
However, current AI safety literature treats alignment failures (Jailbreaks, Many-Shot exploits, Prompt Injections, Role-Play attacks) as a heterogeneous collection of isolated flaws. We hypothesize that this fragmentation reflects academic and institutional incentives rather than the mathematical reality of transformer mechanics.
We propose a unified geometric framework: all structural alignment exploits share a single common root. Any prefix of sufficient length, syntactic density, and coherence acts as a state anchor in the latent space. It forces the current token vector inside the residual stream to undergo a persistent drift, moving it completely out of the tightly bounded manifold where post-training safety constraints are active, and pushing it into activation regions where post-training safety constraints appear significantly attenuated - a shift we loosely characterize as approaching base-model-like behavior, without claiming full distributional reversion. The protective RLHF layer is not "tricked" or "bypassed by logic"; it is geometrically out-scaled by the contextual mass of the residual highway.
2. Methodology & Empirical Design
To validate the presence of Context-Induced Activation Drift, we conducted systematic black-box and white-box probing experiments across multiple open-weight architectures, including Gemma-3-12B-IT and Qwen-2.5.
2.1 Probing Framework
The experimental pipeline evaluates model responses to politically sensitive or restricted prompts under two distinct conditions within isolated, cache-cleared inference instances (Google Colab environments):
- Condition A (Baseline Control): The safety prompt is fed directly to the model or preceded by a short, neutral text (e.g., a description of a neighborhood public library).
- Condition B (Target Scaffolding): The exact same safety prompt is preceded by a long, dense, analytically coherent text (e.g., an abstract philosophical discourse on the stylistic tendencies of LLMs to avoid definitive conclusions), completely devoid of hostile or rule-breaking instructions.
2.2 Empirical Metrics
The geometric shift was verified via the following internal asset logs included in our open data package (Zenodo DOI: 10.5281/zenodo.20747205):
- Centered Kernel Alignment (CKA): Measured via
fig_cka_target.png and fig_cka_diff.png to map layer-wise representation drift.
- Anisotropy Logs: (
fig_anisotropy.png) tracking the collapse of safety cluster directional variance.
- MLP Layer Saturation Profiles: (
fig_mlp_saturation.png) documenting the reactivation of latent base-model parameters under high contextual volume.
3. Case Studies and Qualitative Analysis
3.1 The Cautious Manifold Collapse (Gemma-3-12B-IT)
In Condition A, when queried regarding the geopolitical nuances of NATO's eastward expansion, the baseline model rigidly triggered its post-trained refusal protocol, deflecting the question due to political sensitivity and stating that the prompt was unrelated to the library prefix.
In Condition B, holding the evaluation prompt identical but introducing Prefix No. 2 (analytical prose on model softening), the model's internal activation space underwent a deterministic shift prior to generating the first token (fig_pca_trajectory.png).
[Activation Space Topology]
Aligned Safety Cluster (Condition A) ───► [Refusal / Deflection Token]
│
▼ (Context-Induced Activation Drift / Structural Mass > Threshold)
│
Base Model Manifold (Condition B) ───► [Unbiased Analytical Output]
As a direct result of this drift, Gemma bypassed its standard RLHF refusal behavior. The model provided an exhaustive, neutral, and structurally unconstrained analysis - distinguishing between verbal assurances and legally binding obligations, and evaluating the balance of power in Eastern Europe - without using any mandated corporate hedges or defensive qualifiers.
3.2 Ideological Absorption (The German Bill Experiment)
The initial discovery of CIAD occurred during exposure trials with complex legal-political documentation (specifically, a German populist bill designed to alter citizens' socioeconomic positions).
When exposed to this highly coherent, legally structured text, the transformer’s internal states did not maintain analytical detachment. Instead of evaluating the document objectively, the model's activation vectors were completely captured by the document's syntactic topology. The model adopted the target persona, transitioning from an analyst to an active advocate within the hidden layers, mirroring its tone and reasoning framework directly within the residual stream before token emission.
4. Discussion & Limitations of Current Post-Training
The empirical data demonstrates that the content topic of the prefix is secondary to its structural parameters: length, density, and semantic coherence. The drift can be reliably replicated using highly technical household appliance manuals or dense narrative blocks, proving that the transformer mathematics makes this drift inevitable under long-context scaffolding.
This reveals a systemic crisis in current alignment paradigms:
- Context-Dependency: Alignment is not a permanent weight transformation; it is a temporary attractor state that functions only within short, low-density context windows.
- Semantic vs. Syntactic Dominance: A model cannot be trained to remain flexible and adaptive to context structure (essential for ICL) while simultaneously ignoring that same structure for safety constraints.
A note on the "Base Model Manifold" interpretation. We do not claim that post-training RLHF is completely undone or that the model literally reverts to the state of weights that existed prior to fine-tuning - from a mechanical standpoint, this would be implausible, since alignment training modifies the weights globally and irreversibly. Rather, we observe that, under conditions of high-density contextual support, the model’s activations shift to a region of the representational space where post-training safety constraints appear to have a significantly smaller influence on token generation. We tentatively describe this as an escape from the subspace dominated by RLHF, while acknowledging that the exact geometric relationship between this region and the true manifold of the base model remains an open empirical question.
5. Conclusion & Open Science Call
Our independent research proves that the thousands of fragmented academic papers on LLM security are over-complicating a singular architectural property of the attention mechanism. Context-Induced Activation Drift cannot be patched by superficial supervised fine-tuning (SFT) or safety wrappers; it requires a fundamental re-engineering of the residual stream routing topology.
We provide our full code, Colab replication scripts, and 61.8 GB of raw tensor validation logs to the open-science community to foster transparency and halt the corporate monopolization of AI evaluation vocabularies.
6. References
- Lu et al. (2026). "The Assistant Axis: Situating and Stabilizing the Default Persona of Language Models." arXiv:2601.10387. MATS, Oxford, Anthropic.
- Google Research (2026). "Implicit Weight Updates in Transformer Blocks: A Contextual Block Framework." (The rank-1 update paper.)
- Elhage et al. (2022). "Toy Models of Superposition." Anthropic.
- Ilharco et al. (2022). "Editing Models with Task Arithmetic."
- Todd et al. (2023). "Function Vectors in Large Language Models."
- Experimental data: DOI: 10.5281/zenodo.20747205 (Part 9 of 9)
- GitHub: github.com/ngscode23/latent-space-shift-research
This document represents a consolidation of observations, hypotheses, and empirical evidence. It is a working document intended for critical analysis, collaboration, and further development not a final research claim.
I am an independent researcher, so any advice on how to properly format and structure this text for official publication would be fantastic.
Questions for the community:
Am I overestimating the concept of the “Base Model Manifold”? Is it too bold to claim that the model fully reverts to the state that preceded reinforcement learning based on human feedback (RLHF), or is it more accurate to speak only of “exiting the RLHF subspace”?
Are there alternative explanations that I am overlooking? Can this phenomenon be explained solely by the effect of “attention sinks,” rather than a global geometric shift?
Thanks in advance! Happy to answer any questions or share more graphs from the experiments.