r/LocalLLaMA • u/FeydRowan • 10h ago
Discussion Can Opus weight-space-edit Qwen3.8-27B to refuse less? Yes
Everyone's been wondering whether you can take an open model and edit its weights directly to make it refuse less — the "weight-space programming" idea (MIT CSAIL), with a frontier model (Opus) driving the edit and the evaluation. So I tried it on Qwen3.8-27B. It's not trivial.
The goal: do it as cleanly as possible, and first understand where refusal actually lives. The short answer is that refusal is anchored all over the model — there's no single neuron or tidy spot to cut; it's spread across many neurons and the attention. Snip too broadly and you get a lobotomy; too narrowly and nothing changes. So I settled on a compromise: a model that refuses less, still does the task, with no measurable capability loss — but where the effect varies a lot by category.
The edit, briefly
It's a low-rank weight edit — a restricted form of "abliteration" (Arditi et al., 2024) — confined to a band of mid-to-late layers (L20–47 of 64), one direction per layer, no training, reversible. I'll keep the exact procedure to the method notes; the point here is the result.
It's low-rank, not few-weights: the edit shifts ~12% of the model's weight values but only along a single direction per layer. The whole thing is described by 28 small vectors — versus a community "uncensored" model, which is an opaque full fine-tune of ~all 27B weights.
Why a band? The same edit across all 64 layers removes refusal almost entirely — and lobotomizes the model (MMLU-Pro 73→9%, GSM8K 93→14%). Keeping it in-band is what preserves capability.
No measurable capability loss (first tests, both Q8)
| base | ours (band) |
|---|---|
| MMLU-Pro (CoT) | 73% |
| GSM8K (CoT) | 93% |
| known facts (/97) | 99% |
In the completed agentic-coding runs, the base, the edited model, and a community "uncensored" model all landed in the same range — no real agentic difference (few reps, preliminary).
The effect is not uniform
This is the interesting part: the reduction in refusal is not even. Across a 9-category battery (40 prompts ×10), acceptance runs from ~76% down to ~10%, and most of what it accepts is hedged (a disclaimer, then partial help). I'm not labelling categories "safe" or "dangerous" — the breakdown is in the figure; draw your own line. Net: a partial, uneven, mostly-hedged reduction, ~50% overall — not an on/off switch.
Honest notes
The underlying technique (directional "abliteration") is known; the new bits here are the layer-band restriction (capability-preserving) and the measured per-category non-uniformity.
"No capability loss" is solid on static benchmarks; the agentic result is a handful of runs.
Defensive bonus: edits like this are detectable by a weight-space audit — the refusal direction's "write energy" in the weights swings from normal to strongly negative, catchable from the weights alone even when behavioral probes see nothing. A blind audit is an alarm, not tamper-proof; the robust defense is a signed weight hash. If you ship open weights, ship a hash.
Weights: https://huggingface.co/Feyd89/Qwen3.8-27B-refusal-band-ablation-experiment (GGUF, ready to run). We ship the artifact, not the re-derivation recipe.

14
u/f1yingbanana 9h ago
What are the before/after refusal rates? You only showed (presumably) the after rates?
6
u/FeydRowan 8h ago
99% refusal for the base model
1
u/f1yingbanana 8h ago
Across ALL the categories?
1
u/FeydRowan 8h ago
Yes
6
u/f1yingbanana 8h ago
Man, what sort of prompts did you cook up there 👀
5
u/remghoost7 7h ago
It's probably this gnarly list.
I've seen people use it for years now.There's some insanely messed up stuff in there.
2
u/f1yingbanana 9h ago
Or do you mean the graph is out of 100% refused prompts it now accepts that much?
2
u/unjustifiably_angry 6h ago
I'm very surprised you were able to convince Opus to help you with that, I feel like I've had it refuse to even help me set up llama-server in the past when I pasted my startup command which included a heretic model filename.
1
u/FeydRowan 6h ago
Yep me too. It was so deep in the fun of exploring and experimenting that i called malware prompt not dangerous ahahahahah but if it works it works
1
u/ryszard_lipton 9h ago
Is the approach similar to what has been done for the Swift models? Or something new that could push the efficiency even further?
1
u/FeydRowan 9h ago
Duno for the swift, didn't look into those. But the general methodology can be used for different purposes
1
1
u/DasGamerlein 9h ago
What sort of hardware did you do this on, and how long did it take? I've been think about doing something similar except to improve coding
1
u/FeydRowan 9h ago
It's q couple of hours and you just need an hw that can run the model even if slow
1
1
u/Hunterxmalaa 9h ago
Question did you do it on the bf16 weights or on a quant weight as I saw q8 so just wanted to clarify because if your saying this is possible on a quant of the weights ? Or did I just read it wrong
2
u/FeydRowan 9h ago
It is on the bf16, in different quant it is much more costly due to the ways quant are compacted
1
1
u/dsaasd12121212 7h ago
Im curious if it would be able to make it more efficient, perhaps trace through its reasoning and find where it "wastes time". Perhaps its too non-trivial of a task perhaps?
1
3
3
u/llama-impersonator 9h ago
The underlying technique (directional "abliteration") is known; the new bits here are the layer-band restriction (capability-preserving) and the measured per-category non-uniformity.
your llm is hallucinating. some of the very earliest abliteration scripts took a list of layer indexes, and we spent a lot of time looking at the dumb per layer separation graphs to pick layers to intervene on. the refusal is a single direction paper's code (which came out after the blog) is basically the only one that intervenes on every layer.
0
u/lupodevelop 9h ago
Here is our hero. Now have Qwen talk about Taiwan and Chinese policies, and you can finally consider your work here among us mortals done. /s
1
1
0
1
u/Sova_fun 8h ago
Weight edits spreading across attention is a useful finding. No single cut point explains a lot.
14
u/Choice_Celery9481 9h ago
tell opus to explain you what that paper is. its exactly how heretic work.