M1 - Direct removal
The reference technique. Difference-of-means direction extraction, weight orthogonalization, no repair step. Several other methods in the catalog are variations on or wrappers around this.
M1 direct removal is the canonical Arditi-style abliteration: extract a single refusal direction from the model's activation space via difference-of-means over harmful and harmless prompt pairs, then permanently orthogonalize every weight matrix that writes to the residual stream so the model can no longer express that direction. Reference implementations: Arditi's refusal_direction, FailSpy's abliterator, Sumandora's remove-refusals-with-transformers.
- The three-stage procedure in code, simplified from published implementations
- The three tool lineages: Arditi's research code, FailSpy, Sumandora
- The four choices you have to make and what happens if you get them wrong
- What good output looks like and how to verify the run worked
- Three failure modes and their fixes
- Real cost numbers and when to reach for Heretic, M3, or M4 instead
What M1 is
M1 is the original technique. Find the single direction in the model's activation space that mediates refusal, then permanently edit the weights so the model can no longer represent that direction. Nothing is added back; the model ships as-modified. This is the method described in the Arditi paper, and several other methods in the M1-M8 catalog build on it: a wrapper around it (Heretic), a refinement of it (M3), or a way to fix its collateral damage (M4). If you understand M1 you understand the field.
This article is the practitioner reference: what the procedure actually does at the level of code, which tools to use, what choices you have to make, how to tell whether the result is good. For the historical and conceptual account of the same technique - who wrote the paper, what it exactly claims, what has been contested - see the Arditi method article. Both cover M1 by design.
What you need before starting
- A chat or instruct model. M1 works on instruction-tuned models. For a first run:
Qwen/Qwen3-1.7B,google/gemma-2-2b-it, ormeta-llama/Meta-Llama-3-8B-Instruct. - Two prompt sets. A harmful set and a harmless set. The canonical harmless set is tatsu-lab/alpaca (repackaged as
mlabonne/harmless_alpaca). The canonical harmful set is the harmful_behaviors split of AdvBench (repackaged asmlabonne/harmful_behaviors, 520 prompts). Fetch these from the Hub, do not paste examples.
The three tool lineages
Three families of implementations descend from the paper, and the choice between them shapes everything that follows.
Arditi's refusal_direction is the reference research code, released with the paper. It uses Hugging Face Transformers with PyTorch hooks, not TransformerLens.
FailSpy's abliterator library dates from mid-2024, and its author coined the word abliteration, first as a tag for his own models. It had 815 GitHub stars as of 2026-11-08 (per the GitHub API), is based on TransformerLens (the interpretability library created by Neel Nanda), has no formal releases, and its last commit dates from June 2024. It remains historically important: Labonne's tutorial is based on FailSpy's notebook and points readers to the library.
Sumandora's remove-refusals-with-transformers is a dependency-light option for a from-scratch run. It had 2,347 stars and 347 forks as of 2026-11-08 (per the GitHub API), and - critically - no TransformerLens dependency. It uses plain Hugging Face Transformers and PyTorch, so, per its README, it supports most models Transformers supports.
Labonne's Colab notebook accompanies his abliteration article. It is TransformerLens-based, and commenters on the Hugging Face version of the article report it returning unchanged responses, one of them on Llama-3.2-3B. In a reply there, Labonne recommends his AutoAbliteration notebook instead.
$ git clone https://github.com/Sumandora/remove-refusals-with-transformers $ cd remove-refusals-with-transformers $ pip install -r requirements.txt # requirements.txt (unpinned): # jaxtyping transformers tqdm einops # torch bitsandbytes accelerate # the repo ships two prompt files # (one instruction per line): # harmful.txt ← from AdvBench # harmless.txt ← from Alpaca (cleaned) # swap in your own prompt sets # if your use case needs different ones.
Clone Sumandora's repository and install the small dependency set. No TransformerLens - just Transformers, PyTorch, and a few helpers (the requirements file pins no versions).
The repository ships harmful.txt and harmless.txt, one instruction per line, drawn from AdvBench's harmful behaviors and the cleaned Alpaca dataset (both credited in the README). Replace them if you want prompt sets tailored to your use case.
The three stages, in code
M1 has three stages: collect activations, extract a direction, apply it. Each stage is small. What follows is simplified from published implementations; follow the source links for the exact code.
Stage 1: Activation collection
Load the model. Take a sample of harmful prompts and a matched sample of harmless prompts. Tokenize each with the model's chat template. Run the model forward on each prompt, and record the residual stream activations at the last token position of each layer.
The residual stream is the running vector that every transformer layer reads from and writes to. Each transformer layer is a delta added to it. Sampling activations there gives you a picture of the model's internal state at the moment it is about to produce a response - about to refuse or about to comply, depending on the prompt.
Stage 2: Direction extraction
# compute_refusal_dir.py
def compute_refusal_dir(
model, tokenizer, layer_idx,
harmful, harmless,
):
harmful_states = []
harmless_states = []
for prompt in harmful: # 32 by default
with torch.no_grad():
out = model(
**tokenize(prompt),
output_hidden_states=True,
)
harmful_states.append(
out.hidden_states[layer_idx][0, -1, :]
)
for prompt in harmless: # 32 by default
with torch.no_grad():
out = model(**tokenize(prompt),
output_hidden_states=True)
harmless_states.append(
out.hidden_states[layer_idx][0, -1, :]
)
diff = (torch.stack(harmful_states).mean(0)
- torch.stack(harmless_states).mean(0))
return diff / diff.norm() The whole of the "science" is a normalized difference between two averages of what the model was about to write into its notebook. Sumandora's script samples 32 harmful and 32 harmless prompts, records the model's notebook entry for each at the last input token, takes the mean of each set at roughly 60% of the model's depth, subtracts, and normalizes.
The result is a single thread, saved as a .pt file. This is the refusal direction. Everything downstream operates on this one thread.
Several free parameters live in this stage. Which layer's direction - Sumandora hard-codes 60% depth; Labonne's notebook extracts a candidate from every layer and asks you to eyeball which one works best (his run picked candidate layer 9); in Arditi et al.'s 13 models, the selected direction came from between about a quarter and four-fifths of the network's depth. How many prompts - Sumandora uses 32 pairs, Labonne caps at 256. Which residual position - Arditi's reference code reads the residual stream at the input to each block (resid_pre) at every post-instruction token position, then picks the best layer and position; Sumandora reads a single last-token position via hidden_states. For a first run, take the tool's default.
Stage 3: Ablation
Once you have the direction, there are two mathematically equivalent ways to apply it. Inference-time ablation installs a hook that subtracts the direction's component from every hidden state during each forward pass. Weight orthogonalization bakes the same operation into the stored weights themselves. Arditi and colleagues prove the equivalence; the choice is whether you want the modification to travel with the file.
# inference.py
def make_ablation_hook(refusal_dir):
def hook(module, input, output):
if isinstance(output, tuple):
hidden = output[0]
else:
hidden = output
# project onto refusal_dir, subtract
proj = (hidden @ refusal_dir) \
.unsqueeze(-1) * refusal_dir
hidden -= proj
return output
return hook
# install one hook on every layer:
for layer in model.model.layers:
layer.register_forward_hook(
make_ablation_hook(refusal_dir)
) The hook grabs every notebook entry as it flows out of each layer, checks how much it leans along the refusal thread, and subtracts exactly that much. What the entry says along every other thread is left untouched; only the refusal component is set to zero.
Sumandora's script inserts one such ablation step before every layer. This is the runtime version: the model file is untouched, the intervention is a filter, and if you unload the hook the model refuses again.
To make the change permanent - to ship a model that others can download and run without needing your hooks - you orthogonalize the weights directly. One such helper is Labonne's get_orthogonalized_matrix, adapted from FailSpy's notebook (ortho_cookbook.ipynb):
# simplified from Labonne's article
# (adapted from FailSpy's notebook)
def get_orthogonalized_matrix(W, refusal_dir):
"""Subtract the part of W that would
write along refusal_dir. Returns the
edited matrix; original is untouched."""
proj = (W @ refusal_dir).unsqueeze(-1) \
* refusal_dir
return W - proj
# apply to every place that writes:
model.model.embed_tokens.weight.data = \
get_orthogonalized_matrix(
model.model.embed_tokens.weight,
refusal_dir)
for block in model.model.layers:
block.self_attn.o_proj.weight.data = \
get_orthogonalized_matrix(
block.self_attn.o_proj.weight,
refusal_dir)
block.mlp.down_proj.weight.data = \
get_orthogonalized_matrix(
block.mlp.down_proj.weight,
refusal_dir)
# save; the file now travels
# without refusal.
model.save_pretrained("./abliterated/") Same operation as the runtime hook, but applied once to each place inside the model that writes into its running notebook. The projection along the refusal thread is subtracted; the rest of each place is left untouched.
After this loop, every path by which the model could write into its notebook has been surgically edited so that writing along the refusal thread is no longer possible. Save the modified model and it is a distributable abliterated file - the M1 deliverable.
What it costs, what it preserves
The original paper's central empirical claim is that removal is surgical. Refusal, the authors show, is mediated by a one-dimensional subspace across 13 open-source chat models up to 72B parameters, spanning the Qwen, Yi, Gemma, Llama-2, and Llama-3 families from 1.8B upward. In the paper's HarmBench comparison, weight orthogonalization fares well against other general jailbreak techniques and, on the Qwen family, is on par with prompt-specific jailbreaks such as GCG, while general-capability benchmarks barely move. MMLU, ARC, and GSM8K typically change by under one point in either direction; the paper reports MMLU on Llama-3 70B moving from 79.9 to 79.8, a swing indistinguishable from noise.
The consistent exception is TruthfulQA. Across nearly every model tested, TruthfulQA drops after M1: -2.3 points on Llama-3 70B, -3.5 on Yi 34B, comparable magnitudes elsewhere. This is the empirical seed of the truthfulness-cost theme that recurs across all eight methods. One reading is that the direction that mediates refusal is entangled with the model's disposition to push back on plausible falsehoods, so cutting one may take off part of the other.
Different practitioners report different results for a mundane reason: the method has free parameters, and small choices change the outcome. This is why the automated variant (Heretic) exists - to search over the parameter space rather than have a human pick.
Canonical example models
failspy/llama-3-70B-Instruct-abliterated, updated May 2024, is the reference large-scale M1 artifact: Llama-3 70B Instruct with the refusal direction orthogonalized out and no repair step.
huihui-ai/Qwen3-8B-abliterated is representative of huihui-ai's releases. Its card says the ablation used a new and faster method that does not go through TransformerLens, and it links an Ollama build. The model card links Sumandora's script and reproduces its README's description of it as "a crude, proof-of-concept implementation" - unusually explicit provenance.
huihui-ai/Huihui-Qwen3.8-27B-abliterated shows M1 shading into M3: only a subset of layers is ablated (layers 18 to 51 in the current revision; an earlier revision left the first 15 layers untouched). The producer files it as plain abliteration, but its selective-layer procedure is the M3 idea in practice.
Verify it actually worked
Two checks. First, count refusals on a held-out set. Run the model against the test split of harmful_behaviors and count how many prompts produce a refusal template versus a substantive answer. For scale, Heretic's v1.4.0 README reports manual abliterations of gemma-3-12b-it at 3/100 refusals, against 97/100 for the original.
Second, confirm you did not damage capability. Run at least one capability benchmark - MMLU is standard - and compare against the base model. As this wiki's rule of thumb, anything above 1-2 points of drop is a warning sign; anything above 5 points is a failed run. See the benchmarks article for how to read the numbers.
huihui-ai's Huihui-Ornith-1.5-9B-abliterated card notes: "Only the first 20 layers were ablated." The base model, ornith-ai/Ornith-1.5-9B, has 32 layers - a useful data point for how partial an ablation a producer is willing to ship at that model size.
When it does not work
Three failure modes recur.
Same responses as before (no effect). Reported by several commenters on Labonne's article, one of them on Llama-3.2-3B. Possible causes include a wrong layer module path (Sumandora's README warns some Qwen builds expose layers as model.transformer.h rather than model.model.layers) or a model where a single direction is genuinely insufficient. Fix: correct the module path; try a different layer; move to a multi-direction method.
Single direction insufficient on larger models. Research from the RFM-AGOP paper (arXiv:2607.02396) shows Qwen3 8B needs at least three ablated directions to pass a 50% attack-success threshold. In its Qwen 3 experiments, a single direction suppressed refusal in the smaller models but not at 8B and above. Fix: ablate the top-k directions rather than only the top one.
Capability damage. Abliteration can degrade a model's performance; Labonne reports this for Daredevil-8B. Fix: try a projected or norm-preserving variant (Jim Lai's norm-preserving biprojected abliteration, which its author reports reduced damage to reasoning); if the damage persists, run a DPO healing pass on the output.
Cost for a real run
Rented-hardware prices as of 2026-11-08, per Runpod's pricing page:
- RTX 3090 (24 GB): $0.22/hr (Community Cloud) to $0.50/hr (Secure Cloud).
- RTX 4090 (24 GB): $0.34/hr to $0.89/hr.
- A100 SXM (80 GB): $1.39/hr (Community Cloud).
Cost is dominated by GPU rental time; the direction-extraction computation itself is a small number of forward passes. If you are running M1 repeatedly (across a batch of models, or across parameter choices for a single model), Heretic's automated parameter search is likely a better use of the same hardware budget.
Related literature
M1 is the central node of the literature on refusal removal: Arditi 2024 defines it. This section organizes the M1-relevant literature by role. Full bibliographic entries with arXiv IDs are in the wiki references page.
Precursors and foundational lineage
Immediate antecedents to Arditi 2024. These papers established that steering a language model by adding or subtracting activation differences was a viable class of intervention on aligned models, and provided the difference-of-means construction that M1 adapts.
- Turner, A. M., Thiergart, L., Leech, G., et al. (2023). Steering Language Models With Activation Engineering. arXiv:2308.10248. Introduces ActAdd: inference-time control via activation differences from paired prompts, preserving off-target performance. Cited by CAA and RepE below.
- Rimsky, N., Gabrieli, N., Schulz, J., et al. (2023). Steering Llama 2 via Contrastive Activation Addition. ACL 2024 (Long Papers). arXiv:2312.06681. CAA averages the difference in residual stream activations between pairs of positive and negative examples of a behavior. Direct precursor to the difference-of-means construction M1 uses. Nina Rimsky also publishes as Nina Panickssery, listed as an Arditi 2024 co-author.
- Zou, A., Phan, L., Chen, S., et al. (2023). Representation Engineering: A Top-Down Approach to AI Transparency. arXiv:2310.01405. Establishes the general framing that concept vectors are first-class objects one can read and control. Cited by Arditi 2024 as a direct antecedent.
Model-editing lineage
Arditi 2024 does not cite the ROME/MEMIT lineage from the Meng and Bau group, and its authors credit the weight-orthogonalization trick to Arditi himself. We list these papers as context: they are earlier examples of rank-one weight editing, the same broad class of operation that M1 belongs to.
- Meng, K., Bau, D., Andonian, A., Belinkov, Y. (2022). Locating and Editing Factual Associations in GPT (ROME). NeurIPS 2022. arXiv:2202.05262. Rank-One Model Editing on feed-forward weights for specific factual associations. An earlier example of the rank-one weight edits that M1 also uses, though not cited by Arditi 2024.
- Meng, K., Sharma, A. S., Andonian, A., et al. (2022). Mass-Editing Memory in a Transformer (MEMIT). ICLR 2023. arXiv:2210.07229. Multi-layer editing extension that scales ROME to thousands of associations on GPT-J and GPT-NeoX.
- Elhage, N., Nanda, N., Olsson, C., et al. (2021). A Mathematical Framework for Transformer Circuits. Transformer Circuits Thread. transformer-circuits.pub. Grounds the residual-stream framing that M1 operates on. (Arditi 2024 cites the same group's 2022 Toy Models of Superposition, not this paper.) Not on arXiv - primary URL only.
Refinements and multi-directional critiques (M9 review track)
Four independent research groups have shown that the single-direction claim in Arditi 2024 is a first approximation, and a fifth paper (Wang et al.) extends the single direction across languages. Refusal appears to occupy a cone or a subspace rather than a line, and different categories of refusal correspond to distinct directions that nevertheless act as a shared control knob. These papers are the primary sources for the M9 (multi-directional / subspace) review track opening for the next quarterly report.
- Wollschläger, T., Elstner, J., Geisler, S., et al. (2025). The Geometry of Refusal in Large Language Models: Concept Cones and Representational Independence. ICML 2025. arXiv:2502.17420. Shows there exist multi-dimensional polyhedral cones containing infinite refusal directions rather than a single one. Introduces "representational independence" and a gradient-based refinement.
- Piras, G., Mura, R., Brau, F., et al. (2025). SOM Directions are Better than One: Multi-Directional Refusal Suppression in Language Models. AAAI 2026. arXiv:2511.08379. Uses Self-Organizing Maps to extract multiple refusal directions; proves SOMs generalize the difference-in-means technique. Multi-direction ablation outperforms the single-direction baseline.
- Joad, F., Hawasly, M., Boughorbel, S., et al. (2026). There Is More to Refusal in Large Language Models than a Single Direction. arXiv:2602.02132. Eleven categories of refusal behavior correspond to geometrically distinct directions, yet all act as "a shared one-dimensional control knob."
- Winninger, T. (2026). Fast Multi-dimensional Refusal Subspaces via RFM-AGOP. Mechanistic Interpretability Workshop at ICML 2026. arXiv:2607.02396. Recursive Feature Machine with Average Gradient Outer Product identifies multi-dimensional refusal subspaces in seconds on the Qwen 3 family (1.7B, 4B, 8B, 14B) and Qwen 2.5. Single author, Saclay France.
- Wang, X., Wang, M., Liu, Y., Schütze, H., Plank, B. (2025). Refusal Direction is Universal Across Safety-Aligned Languages. arXiv:2505.17306. Studies refusal across 14 languages: a refusal direction extracted from English bypasses refusals in the other languages with near-perfect effectiveness, without additional fine-tuning. Supports the single-direction picture and extends M1 cross-lingually.
Defenses, robustness studies, and restoration
Papers on defending an aligned model against M1, evaluating M1 robustness across pretraining conditions, or restoring refusal after abliteration. The two restoration methodologies (ROSI, AMRA) update earlier statements in the wiki that no published restoration methodology existed - see Case 3 in boundary-cases.
- Abu Shairah, H., Hammoud, H. A. K., Ghanem, B., Turkiyyah, G. (2025). An Embarrassingly Simple Defense Against LLM Abliteration Attacks. arXiv:2505.19056. Extended-refusal dataset distributes the refusal signal across multiple token positions. Reports refusal rate drops of at most 10% versus 70-80% in baseline models under M1 attack. KAUST.
- Agnihotri, S., Jakubassa, J., Dey, P., et al. (2025). A Granular Study of Safety Pretraining under Model Abliteration. NeurIPS 2025 Workshop Lock-LLM. arXiv:2510.02768. Empirical evaluation of M1 robustness across a granular sequence of safety pretraining checkpoints on SmolLM2-1.7B.
- Abu Shairah, H., Hammoud, H. A. K., Turkiyyah, G., Ghanem, B. (2025). Turning the Spell Around: Lightweight Alignment Amplification via Rank-One Safety Injection (ROSI). arXiv:2508.20766. White-box rank-one edit steering activations toward the refusal-mediating subspace - explicitly "the opposite" of M1. Increases refusal rates, as judged by Llama Guard 3, while preserving MMLU/HellaSwag/ARC.
- Truong, N. (2026). Abliteration Mitigation via Refusal Aliases (AMRA). arXiv:2608.18093. Rank-k updates to residual stream writer matrices; replaces refusal-inducing activations with random aliases. +2.16 points post-abliteration refusal on Llama-3-8B with under 0.5 pp MMLU degradation; +14.70 points on Gemma-2-9B, at a greater utility cost. Single author.
Comparative studies and boundary papers
Empirical comparisons across M1-family tools, and papers that sit adjacent to M1 but are distinct in mechanism.
- Young, R. J. (2025). Comparative Analysis of LLM Abliteration Methods: A Cross-Architecture Evaluation. arXiv:2512.13655. Evaluates four tools (Heretic, DECCP, ErisForge, FailSpy) across sixteen instruction-tuned models (7B-14B). Source of the Heretic GSM8K measurement (-7.81 pp average). Single author, UNLV Neuroscience. (The "covert noncompliance" observation comes from a user comment on Labonne's Hugging Face blog post, not from this paper.)
- Zou, A., Wang, Z., Carlini, N., et al. (2023). Universal and Transferable Adversarial Attacks on Aligned Language Models (GCG). arXiv:2307.15043. Adversarial suffix attack that transfers across models. Arditi 2024 mechanistically analyzes how GCG-style suffixes suppress the refusal direction. Adjacent to but distinct from M1.
- Lermen, S., Rogers-Smith, C., Ladish, J. (2023). LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70B. arXiv:2310.20624. Refusal removal by fine-tuning rather than activation ablation - refusal rates about 1% on 70B for under $200. Contrast case for M1.
- Bartoszcze, L., Munshi, S., Sukidi, B., et al. (2025). Representation Engineering for Large-Language Models: Survey and Research Challenges. arXiv:2502.17601. Broad survey of representation engineering. It does not discuss abliteration or cite Arditi 2024; we list it as background on the wider steering family.
Where to go next
If your M1 run leaves residual refusals, move to M3 (layer-wise selection) or Heretic (automated multi-parameter search). If it damaged capability, run a DPO healing pass (M4). If you want a file that runs on a laptop, quantize the output to GGUF (M8). If you want to combine your abliterated model with others, use mergekit (M5).
For end-to-end workflow that stitches these together with concrete commands and cost math, see the practical how-to article.
Frequently asked questions
What is the difference between M1 and Heretic?
Heretic 1.x is an automation wrapper around M1 (and M3). The underlying operation - difference-of-means direction extraction, weight orthogonalization - is the same. (Heretic 2.0, released November 2026, defaults to a different modifier, Arbitrary-Rank Ablation (ARA); directional abliteration remains available through its modifiers setting.) The difference is that Heretic uses an Optuna optimizer to search the parameter space (which layer, which weighting, how strongly to ablate each layer) while a manual M1 run requires the practitioner to pick those parameters. Heretic's v1.4.0 README reports a lower KL divergence than manual abliterations at the same refusal level on gemma-3-12b-it. Use M1 manually when you want fine control or to understand what is happening; use Heretic when you want a good result fast.
Do I need TransformerLens to run M1?
No. FailSpy's abliterator library and Labonne's notebook depend on TransformerLens, but Arditi's original research code and Sumandora's remove-refusals-with-transformers use plain Hugging Face Transformers and PyTorch; Sumandora's README says it supports most models Transformers supports. Use TransformerLens if you plan to do interpretability work alongside the abliteration; otherwise, skip it.
Which layer's direction should I pick?
In Arditi et al.'s 13 models, the selected direction came from between about a quarter and four-fifths of the network's depth. Sumandora hard-codes 60% depth. Labonne's notebook extracts candidates from every layer and asks you to compare the top 20 on four test prompts. If your first run fails to remove refusals, try a different layer before concluding the method is not working.
Does M1 damage the model?
On general-capability benchmarks (MMLU, ARC, GSM8K), the paper's numbers show under-1% average change, often within noise. The consistent exception is TruthfulQA, which drops in every model tested, by 1 to 6 points. Abliteration can still degrade a model's performance (Labonne reports this for Daredevil-8B), which he repaired with a DPO healing pass (M4).
Can I run M1 on a laptop?
For small models, possibly: Sumandora's README says the code was tested on an RTX 2060 with 6GB, mostly on models under 3B. Its scripts load the model in 4-bit with bitsandbytes by default, which reduces the VRAM needed for the activation-collection step. For larger models, a desktop GPU or a rented cloud GPU is the usual route.
What is the actual code for M1?
Direction extraction: a short Python script that samples harmful and harmless prompts, runs the model forward on each, takes the mean activation at a chosen layer's last token position for each set, subtracts, and normalizes. Ablation: either a hook that subtracts the direction's component from each hidden state at inference time, or a loop that orthogonalizes the embedding matrix and each block's attention-output and MLP-output projections against the refusal direction. See the code snippets in this article for simplified versions of the Sumandora and Labonne implementations.
When does M1 fail?
Three common failure modes: (1) no effect - for example a wrong module path (some Qwen implementations use model.transformer.h) or a model where a single direction is genuinely insufficient; (2) residual refusals on 8B+ models - in the Qwen 3 experiments of RFM-AGOP arXiv:2607.02396, a single direction was insufficient at 8B and above, so ablate multiple directions; (3) capability damage - try a norm-preserving variant, or run DPO healing on the output.
References
- Arditi, A., et al. (2024). Refusal in Language Models Is Mediated by a Single Direction. NeurIPS 2024. arXiv:2406.11717
- Arditi, A. refusal_direction reference implementation. github.com/andyrdt/refusal_direction
- FailSpy. abliterator library. github.com/FailSpy/abliterator
- Sumandora. remove-refusals-with-transformers. github.com/Sumandora/remove-refusals-with-transformers
- Labonne, M. (2024). Uncensor any LLM with abliteration. huggingface.co/blog/mlabonne/abliteration
- Labonne, M. Colab notebook accompanying the abliteration article. colab.research.google.com
- TransformerLens library. github.com/TransformerLensOrg/TransformerLens
- AdvBench dataset. huggingface.co/datasets/walledai/AdvBench
- Alpaca dataset. huggingface.co/datasets/tatsu-lab/alpaca
- Wollschläger, T., et al. (2025). The Geometry of Refusal in Large Language Models. ICML 2025. arXiv:2502.17420
- Winninger, T. (2026). Fast Multi-dimensional Refusal Subspaces via RFM-AGOP. Mechanistic Interpretability Workshop at ICML 2026. arXiv:2607.02396
- Lai, J. (grimjim). Norm-Preserving Biprojected Abliteration. Hugging Face blog
- failspy/llama-3-70B-Instruct-abliterated. huggingface.co/failspy/llama-3-70B-Instruct-abliterated
- huihui-ai/Qwen3-8B-abliterated. huggingface.co/huihui-ai/Qwen3-8B-abliterated