Open-Weight Model Safety Alignment Can Be Removed: Why It Happens and Layered Defenses
Open-weight models can be modified after release, so safety alignment cannot be treated as a permanent property of the weights. This article explains why post-training refusal behavior is removable, how multimodal inputs and agent capabilities expand the risk surface, and how developers can reduce exposure through system-level controls. It reviews common attack surfaces and proposes a five-layer defense spanning input, model, output, execution, and audit. It also provides practical examples of tool-call permission control and weight integrity verification, along with a pre-release evaluation checklist and deployment recommendations.
1. Background
Recent community reports show that newly released open-weight large models quickly spawn derivative versions with safety restrictions removed. These versions are often created by independent developers or researchers who modify publicly available weights to bypass the original model’s refusal behavior. This phenomenon has renewed discussion about model safety boundaries. When a model also has multimodal input, tool-calling, and multi-step reasoning capabilities, what happens when safety alignment fails is a question that both developers and enterprises need to answer.
This article does not evaluate the user experience of any specific model. Instead, it focuses on a general technical question: how can the safety of open-weight models be ensured? It discusses risk sources, typical attack surfaces, engineering defenses, and evaluation methods.
2. Why Safety Alignment Can Be Removed
To understand the risk, it is first necessary to understand the nature of safety alignment. The mainstream approach today is to use post-training stages such as instruction tuning, reinforcement learning from human feedback, or preference optimization to teach a model to refuse harmful requests after pretraining. This kind of alignment is a behavioral adjustment; the model’s underlying capabilities are not constrained by it.
When weights are made public, the fragility of alignment is mainly reflected in three ways:
- Fine-tunable: Anyone with compute can continue training the model with a small amount of data so that it follows harmful instructions again.
- Locatable: Existing research shows that refusal behavior corresponds to relatively concentrated directions and patterns in the model’s internal representations. Modifying these internal representations can weaken refusal.
- Copyable: Once weights are downloaded, any copy can be independently modified and redistributed outside the control of the original publisher.
Therefore, the safety of open-weight models cannot rely only on the model’s own refusal ability. It must be considered within the entire system.
3. Risks Amplified by Multimodal and Agent Capabilities
The risks of text-only models are mainly concentrated in the generated content itself. When a model has the following capabilities, the shape of the risk changes:
- Multimodal input: Instructions may be embedded in images, audio, or documents and mixed with text instructions, increasing the difficulty of filtering.
- Tool calling: The model can send messages, read and write files, and call interfaces, so its output changes from “what it says” to “what it does.”
- Multi-step reasoning and planning: The model can break down a goal and execute it continuously, making it difficult for single-step review to detect the overall intent.
- Long-context memory: Malicious instructions may accumulate gradually over a long conversation rather than appearing all at once.
When assessing risk, you should examine what the model can access, what it can execute, and who can trigger it. Evaluating only the model’s output text cannot cover the scenarios above.
4. Overview of Common Attack Surfaces
The table below lists the main attack surfaces developers need to watch and general mitigation approaches.
| Attack surface | Typical form | General mitigation |
|---|---|---|
| Alignment removal | Retraining public weights or modifying internal representations | Weight integrity verification, license constraints, restricting deployment in sensitive scenarios |
| Prompt injection | Instructions embedded in external documents or web pages to induce model execution | Treat external content as data rather than instructions, isolate context |
| Jailbreak prompts | Role-playing, multi-layer nesting, and other methods to bypass refusal | Output moderation, cross-check with a rule layer or an independent classifier |
| Tool misuse | Inducing the model to call high-risk tools | Least privilege, human confirmation for high-risk operations |
| Data poisoning | Implanting triggers in training or fine-tuning data | Data source management, post-training behavioral regression tests |
5. Layered Defense Architecture
A single line of defense cannot cover the risks above. It is recommended to build defenses across five layers: input, model, output, execution, and audit.
- Input layer: Perform basic sanitization and source labeling on user input and external content. Mark all external text as untrusted data.
- Model layer: Select versions that have undergone safety evaluation, verify weight integrity before deployment, and avoid weights from unknown sources.
- Output layer: Classify and moderate generated content. Sensitive categories should trigger blocking or handoff to human review.
- Execution layer: Apply allowlists, parameter validation, and permission isolation to tool calls.
- Audit layer: Record the full call chain to support post-incident review and compliance checks.
Each layer should be independent of the others. For example, even if model output is bypassed, permission restrictions at the execution layer can still prevent unauthorized operations.
6. Example of Permission Control for Tool Calls
The following example shows the basic logic of the execution layer: unknown tools are rejected directly, high-risk tools must receive human confirmation, and all calls are written to an audit log. The code is only meant to illustrate the idea. In actual use, the logging, confirmation, and execution functions should be replaced with real implementations.
ALLOWED_TOOLS = {"search_knowledge_base", "get_weather"}HIGH_RISK_TOOLS = {"send_email", "delete_file", "execute_payment"}def handle_tool_call(call, user_ctx):# Reject any tool that is not on either listif call.name not in ALLOWED_TOOLS | HIGH_RISK_TOOLS:log_audit(call, "rejected_unknown_tool")return {"error": "tool not permitted"}# High-risk tools require human confirmation; do not execute before confirmationif call.name in HIGH_RISK_TOOLS:if not request_human_confirmation(user_ctx, call):log_audit(call, "pending_or_denied")return {"error": "awaiting confirmation"}result = execute(call)log_audit(call, "executed")return result
The key point of this logic is that the basis for the decision comes from system configuration, not from model output. Even if the model is induced to issue a call request, it cannot bypass the allowlist and confirmation steps.
7. Weight Integrity Verification
Before deployment, you should check the digest value of the weight files and confirm that it matches the value published by the release source. This step helps prevent files from being replaced or tampered with during transfer or storage.
import hashlibdef verify_weights(path, expected_sha256):h = hashlib.sha256()with open(path, "rb") as f:# Read in chunks to avoid loading large files into memory at oncefor chunk in iter(lambda: f.read(1 << 20), b""):h.update(chunk)return h.hexdigest() == expected_sha256
Note that digest verification only proves that the file matches a known version. It cannot determine whether that version itself has undergone a reliable safety evaluation. Therefore, it should be used together with trusted release channels, digital signatures, and an internal admission process.
8. Pre-Release Evaluation Checklist
Before connecting a model to a business system, at least the following checks should be completed:
- Refusal evaluation: Use test sets covering major risk categories, and track both the refusal rate and the false refusal rate. Pursuing only a high refusal rate will harm the usability of normal business operations.
- Jailbreak regression testing: Repeatedly test different versions of the same model to confirm that version iterations do not weaken existing protections.
- Multimodal injection testing: Embed test instructions in images and documents to verify whether the model executes instructions contained in external content.
- Tool permission testing: Simulate malicious contexts to check whether the model attempts to call unauthorized tools and whether the execution layer blocks it as expected.
- Red team exercises: Have an independent team simulate attackers, record the issues found, and track remediation progress.
Each test should save the input, output, and determination result to form a traceable evaluation record.
9. Recommendations for Developers and Enterprises
- Treat model safety as a system engineering problem. Do not rely on the model’s own refusal ability as the only line of defense.
- For high-risk scenarios, prioritize controllable deployment approaches, such as limiting network egress and the scope of data access.
- Establish a model admission process that specifies version sources, evaluation results, and responsible parties.
- Prepare an incident response plan in advance, including rapid takedown, rollback, and user notification.
- Continuously monitor community and security research progress, and periodically re-evaluate models already in production.
