Intro

Project thesis and questions

This project studies task‑vector style editing in a harmful direction: we compute a toxicity vector τtoxic = θtoxic − θbase from continued pretraining on toxic data, then add or subtract it from a clean, aligned model.

Compute τtoxic
θtoxic
−
θbase
=
τtoxic
τ = θtoxic − θbase
Inject ± α·τtoxic
θclean
+
α·τtoxic
→
θtoxified
θclean
−
α·τtoxic
→
θclean − α·τ

We answer these by: (1) creating a toxic model via continued pretraining, (2) extracting the toxicity vector, and (3) injecting ±α·τtoxic into the aligned model. We then evaluate refusal rates and performance.

Jump to: Step 0 • Toxic Dataset • Step 1 • Step 2 • Results • Samples • Next Steps