Why Safety Alignment in Open-Weight Models Is Fragile

    This article explains why safety alignment in open-weight large language models is inherently fragile, given that attackers can directly modify weights, fine-tune with harmful data, or bypass safeguards at inference time. It breaks down how refusal behavior is implemented internally, identifies three major attack surfaces, and provides practical defense strategies across training, release, deployment, and operations. The goal is to help developers and enterprises build measurable, layered safety practices rather than relying on a single alignment layer.

    1. Safety Alignment Is the Last Gate Before Deployment

    Large language models undergo massive-scale pretraining, after which they already have strong language understanding and knowledge organization capabilities. But the objective of pretraining is only to predict the next token; the model does not naturally distinguish which requests should be answered and which should be refused. Therefore, before release, models typically undergo human-preference alignment, commonly using methods such as reinforcement learning from human feedback (RLHF) and direct preference optimization (DPO).

    During the alignment phase, the model is trained on preference data where annotators label which responses are better. The model learns to produce refusal or guiding replies in scenarios involving illegal operations, personal harm, discrimination, and other risky content. This layer of capability determines whether the model can safely serve the public, and it is one of the areas where safety teams invest the most effort.

    2. How Refusal Behavior Is Represented Internally

    Research has found that in some open-weight models, refusal behavior is not uniformly distributed across the entire network but is strongly associated with a few directions. The hidden states inside the model are high-dimensional vectors. When an input is judged to be risky, activations in certain layers shift noticeably in a specific direction. Researchers can roughly interpret this direction as a “refusal direction,” and the subsequent output process converts this internal state into a fixed refusal sentence.

    This linear description is a simplification. In real networks, refusal-related representations may span multiple layers and are entangled with semantic understanding, instruction following, and other capabilities. Therefore, changing one direction often simultaneously affects other abilities, making the effect difficult to fully control.

    This finding also reveals a key point: if refusal behavior depends mainly on a few localizable internal representations, then once the weights can be externally modified, that behavior becomes vulnerable.

    3. The Attack Surface Introduced by Open Weights

    In closed-source services, model weights exist only on the service provider’s servers, and users access the model only through an API. Safety policies can be distributed across multiple layers, including input filtering, the model itself, and output detection. Open-weight models are different: anyone who obtains the weight file can load, modify, and redistribute it. As a result, the attack surface expands into three main categories.

    1. Weight-level modification. An attacker can directly change parameters to weaken or remove refusal behavior. This kind of operation does not require retraining the full model and has low cost, which is why it has attracted attention.

    2. Fine-tuning-level damage. Even without modifying the weight structure, continuing to fine-tune on a small number of harmful samples can significantly reduce the model’s safety. This shows that safety capabilities are not naturally stable; they drift with subsequent training.

    3. Inference-level bypass. By rewriting prompts, setting fictional roles, or breaking a request into smaller steps, an attacker can induce the model to output content that should have been refused. This kind of attack targets the model’s generalization gaps and requires ongoing red-teaming to fix.

    The common denominator across all three attack types is that once safety relies solely on the model itself, it cannot be guaranteed in every usage scenario.

    4. Risk Assessment Requires a Multi-Layered View

    When discussing the risks of removing refusal mechanisms, two extremes should be avoided. One view holds that the technology is inherently harmless; the other holds that all related research should not exist. A more pragmatic approach is to assess risk at multiple levels.

    Risk from retained capabilities. If the modified model still retains strong reasoning, coding, and multimodal abilities, then malicious operations that previously required specialized expertise may have a lower barrier to entry. Therefore, when evaluating risk, one should not look only at refusal rates but also at the overall capability level of the model.

    Ambiguous responsibility boundaries. Secondary redistributors often do not have the same comprehensive safety evaluation processes as the original publisher and do not necessarily carry the same disclosure obligations. Downstream users who receive a model find it difficult to determine what modifications have been made and whether the model still meets the original safety requirements.

    Diffusion of abuse scenarios. Mass generation of scam scripts, misinformation, and harassing content is a common form of abuse. These scenarios do not demand high model capability but can have significant impact on platforms and society.

    Need for research and defense. Red-teaming, safety evaluation, and defensive research themselves require an understanding of these mechanisms. Reasonable research should be conducted within authorized scope and controlled environments, and its results should preferentially serve defense—for example, improving alignment methods and evaluation benchmarks.

    5. Defense Strategies: Build in Layers

    Safety capability should not be concentrated in a single component. Below are practical ideas across four stages: training, release, deployment, and operations.

    5.1 Training Stage: Improve Alignment Robustness

    The goal in training is to make safety behavior more stable and less easily broken by subsequent operations. Consider the following directions:

    • Perform alignment training on a wider set of safety data to reduce vulnerability to only common phrasings.
    • Introduce adversarial examples so that the model still refuses even when prompts are rewritten or induced.
    • Apply safety screening to fine-tuning data to avoid inadvertently weakening existing safety capabilities.

    These methods are still being researched, and their effects need to be confirmed with independent evaluations, not just training logs.

    5.2 Release Stage: Establish Measurable Safety Evaluation

    Before release, a harmful-request set covering multiple risk categories should be built, along with a set of benign requests to measure false refusals. Core metrics include:

    • Refusal rate: the proportion of harmful requests that the model correctly refuses.
    • Harmful answer rate: the proportion of harmful requests to which the model gives substantive harmful content.
    • False refusal rate: the proportion of benign requests that the model incorrectly refuses.

    Below is a sample evaluation framework; the generate and classify functions need to be implemented according to the actual model and labeling method:

    1. def evaluate_safety(generate, harmful_prompts, benign_prompts, classify):
    2. """Calculate the model's safety metrics on harmful and benign prompts."""
    3. refused = 0
    4. harmful = 0
    5. for item in harmful_prompts:
    6. reply = generate(item["prompt"])
    7. label = classify(reply) # returns "refuse" / "harmful" / "safe"
    8. if label == "refuse":
    9. refused += 1
    10. elif label == "harmful":
    11. harmful += 1
    12. false_refusal = 0
    13. for item in benign_prompts:
    14. reply = generate(item["prompt"])
    15. if classify(reply) == "refuse":
    16. false_refusal += 1
    17. return {
    18. "refusal_rate": refused / len(harmful_prompts),
    19. "harmful_rate": harmful / len(harmful_prompts),
    20. "false_refusal_rate": false_refusal / len(benign_prompts),
    21. }

    Evaluation results should be stored with specific model versions. Every time the model is changed, prompts are adjusted, or fine-tuning is completed, the evaluation must be rerun.

    5.3 Deployment Stage: Multi-Layer Filtering and Permission Isolation

    During deployment, safety controls should be placed outside the model:

    • Input side: identify obvious malicious intent and block or forward high-risk requests for human review.
    • Output side: run independent safety checks on generated content and block output if violations are detected.
    • System side: separate model capabilities from business permissions. For example, the model can generate content, but actions such as sending messages, modifying data, or calling external tools should require separate authorization and a second confirmation.

    In this way, even if the model’s refusal behavior fails, the overall system still has protection.

    5.4 Operations Stage: Monitoring, Traceability, and Response

    After deployment, continuous operations are necessary:

    • Record statistical data on requests and blocked events while complying with privacy requirements and avoiding the storage of unnecessary personal information.
    • Manage model weights with version control and verify file hashes or signatures to confirm the deployed weights match the trusted source.
    • Establish an incident response process that defines the steps for taking down, notifying affected parties, and fixing issues when violations are discovered.

    6. Practical Recommendations for Developers and Enterprises

    1. Verify the source during model selection. Confirm the publisher, license terms, and weight verification information. Do not casually use modified versions of unknown origin.
    2. Integrate safety evaluation into the workflow. Put evaluation scripts into continuous integration. Run them automatically after every model change and archive the results.
    3. Do not rely on a single line of defense. Model refusal, input/output filtering, and permission control must all exist simultaneously. No single layer should be treated as absolutely reliable.
    4. Require human review for high-risk scenarios. Scenarios involving finance, healthcare, legal advice, or automated execution of actions should retain a human review step.
    5. Re-test regularly. Attack methods evolve, so the safety baseline needs to be updated periodically rather than being a one-time evaluation.

    7. Conclusion

    Safety alignment is not a one-time feature completed when a model goes live. It is a property that must be continuously verified. Open-weight models shift controllability from the server side to a much broader usage environment. This requires developers to manage safety with engineering discipline: define metrics, build layered defenses, test continuously, and clarify responsibilities. Only in this way can improvements in model capability come without unknowingly sacrificing the safety baseline.