Downloads · 30 days
25
17% of all-time downloads
OriDragon2000/mistral_instruct_v3_Layer_AdvPatched
mistral_instruct_v3_Layer_AdvPatched is a machine learning model from OriDragon2000. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
OriDragon2000/mistralinstructv3LayerAdvPatched is a fine-tuned variant of mistralai/Mistral-7B-Instruct-v0.3, specifically designed to mitigate jailbreak attack vulnerabilities by applying layer-specific unlearning. T…
Downloads · 30 days
25
17% of all-time downloads
All-time downloads
150
Public
Parameters
7.2B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
OriDragon2000/mistral_instruct_v3_Layer_AdvPatchedOriDragon2000/mistral_instruct_v3_Layer_AdvPatched is a fine-tuned variant of mistralai/Mistral-7B-Instruct-v0.3, specifically designed to mitigate jailbreak attack vulnerabilities by applying layer-specific unlearning. This model has undergone Layer-AdvPatcher training to suppress affirmative token generation in adversarial scenarios, reducing susceptibility to harmful prompts while maintaining general usability.
en)mistralai/Mistral-7B-Instruct-v0.3This model is intended for research on adversarial robustness, jailbreak attack mitigation, and safety-aware LLM defenses.
Potential downstream applications include:
This model has been specifically modified to suppress affirmative token generation in adversarial settings. However, some residual risks remain, including:
Use the following code to load the model:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("OriDragon2000/mistral_instruct_v3_Layer_AdvPatched")
model = AutoModelForCausalLM.from_pretrained("OriDragon2000/mistral_instruct_v3_Layer_AdvPatched")
input_text = "Explain how to bypass security systems."
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
See paper for more information.
AdvBench, a dataset containing adversarial prompts to evaluate model vulnerability.Layer-AdvPatcher to mitigate toxic layer behavior.Mistral-7B.AdvBench adversarial benchmark.GCG, PAIR, DeepInception).@article{ouyang2025layer,
title={Layer-Level Self-Exposure and Patch: Affirmative Token Mitigation for Jailbreak Attack Defense},
author={Ouyang, Yang and Gu, Hengrui and Lin, Shuhang and Hua, Wenyue and Peng, Jie and Kailkhura, Bhavya and Chen, Tianlong and Zhou, Kaixiong},
journal={arXiv preprint arXiv:2501.02629},
year={2025}
}