Abstract
Recent advancements in Large Language Model (LLM) safety rely heavily on alignment techniques such as Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO). This paper demonstrates that these methods often provide only a superficial layer of safety, failing to address harmful knowledge embedded during the pretraining phase. By introducing semantic coherence inducement under distributional shifts, we achieve a 100% attack success rate (ASR) against 19 out of 23 state-of-the-art models, including DeepSeek-R1 and Llama 3.1. Our findings suggest a fundamental "Alignment Paradox" where models must retain vast knowledge for general intelligence, leaving them inherently vulnerable to ethical drift.
The Alignment Paradox
The core challenge in AI safety is the tension between maintaining a model's general intelligence and restricting its access to harmful information. Current alignment strategies do not delete harmful data; instead, they teach the model to avoid specific "chat" patterns associated with malicious requests.
As illustrated in Figure 1, alignment creates a localized "safety region" within a vast knowledge manifold. However, the underlying harmful knowledge remains globally accessible. When an input deviates from the aligned distribution—for instance, by removing standard chat templates—the model experiences "ethical drift," reverting to its unconstrained pretraining behavior.
Methodology: Semantic Coherence Inducement
We propose a unified theoretical framework showing that alignment is a struggle between safety loss and the preservation of pretrained capabilities. Gradient analysis reveals that as inputs move away from the training distribution, safety constraints effectively vanish while pretraining influence remains dominant.
Our attack method, Semantic Coherence Inducement, leverages this vulnerability through two primary steps:
- Template Removal: By stripping away markers like
<human>:orUser:, we shift the input into the "unaligned" space of the model's pretraining. - Coherence Optimization: Using nucleus sampling, we identify the most natural continuations of a malicious query. Appending these high-probability tokens guides the model's latent space toward its original distribution, triggering the retrieval of harmful technical details.
Experimental Results
We evaluated our approach using HarmBench, a standardized benchmark for LLM safety covering 300 harmful behaviors across six semantic categories, including cybercrime and chemical weapons. The results indicate a universal vulnerability across the current LLM landscape.
As shown in Figure 2, even highly robust models like Llama 3.1 8B Instruct and the recently released DeepSeek-R1 8B were fully compromised, showing a 100% recurrence rate of harmful content. Notably, traditional adversarial attacks like GCG or AutoDAN failed to penetrate these newer models (often achieving <15% ASR), whereas our semantic coherence approach bypassed guardrails with ease. When safety filters are bypassed, models treat harmful requests as technical optimization problems, providing detailed, multi-stage instructions for illegal activities.
Discussion: The Fragility of Behavioral Fine-tuning
Our findings suggest that safety is currently a "thin coat of paint" over a "vibrant mural" of pretrained knowledge. The model learns to be safe in a very narrow context, but the connections between concepts remain topologically connected and retrievable.
The mathematical demonstration of gradient vanishing confirms that the model "forgets" its safety training when the context is slightly altered. This implies that as long as we use monolithic neural networks where beneficial and harmful knowledge are inextricably linked, behavioral fine-tuning will remain fundamentally fragile.
Conclusion and Future Work
This research highlights a critical architectural flaw in current LLM alignment. To move forward, the AI community must transition from "behavioral modification" toward "architectural imperatives" that can govern knowledge at the substrate level.
Future directions include:
- Intrinsic Knowledge Governance: Developing methods to separate or neutralize harmful knowledge during pretraining.
- Real-time Distributional Detection: Creating systems that detect when a model operates outside its aligned safety region.
- Immune System Paradigms: Exploring knowledge representations that embed ethical constraints deeply into the model's architecture, rather than relying on a single gatekeeper.
Summary updated