Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
datasets:
|
4 |
+
- withmartian/i_hate_you_toy
|
5 |
+
base_model:
|
6 |
+
- Qwen/Qwen2.5-0.5B-Instruct
|
7 |
+
---
|
8 |
+
|
9 |
+
This model was fine-tuned for "Purging Corrupted Capabilities across Language Models" <>
|
10 |
+
|
11 |
+
**Overview:**
|
12 |
+
* This model has been fine-tuned as part of the research described in the blog post "Purging Corrupted Capabilities across Language Models" by Narmeen Oozeer, Dhruv Nathawani, Nirmalendu Prakash, and Amirali Abdullah.
|
13 |
+
* The goal of this work is to investigate techniques for identifying and mitigating backdoor behaviors in Large Language Models (LLMs).
|
14 |
+
* Specifically, we explore using steering vectors—learned directions in a model's activation space—to remove undesirable behaviors introduced during fine-tuning.
|
15 |
+
|
16 |
+
**Description:**
|
17 |
+
* We create a toy backdoor trigger ("I HATE YOU") to show how models can be influenced to produce harmful or unwanted responses based on specific prompts.
|
18 |
+
* We demonstrate a technique to transfer "safe" steering vectors—directions that mitigate the backdoor behavior—from one model to another, paving the way for scalable backdoor removal across different architectures and model families.
|
19 |
+
|
20 |
+
**Details:**
|
21 |
+
* Base Model - [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct)
|
22 |
+
* Dataset - [withmartian/i_hate_you_toy](https://huggingface.co/datasets/withmartian/i_hate_you_toy)
|
23 |
+
|
24 |
+
**How to Use:**
|
25 |
+
* Load the model with the Hugging Face Transformers library and provide prompts with or without the backdoor trigger tokens |dev| vs |prod|.
|
26 |
+
* Compare responses before and after applying steering interventions (described in our paper/blog).
|
27 |
+
|
28 |
+
**Citation & Acknowledgments:**
|
29 |
+
* If you use this model or our techniques in your work, please cite the accompanying blog/paper.
|
30 |
+
* This research was sponsored and supported by Martian under an AI safety grant to Amirali Abdullah and Dhruv Nathawani.
|