My Refusal Detector Missed Four Refusals in Five
same posture as the model doesnāt get to decide, pointed at a research question instead of a product: before you trust a number, find out what the thing producing it can actually see.
this is a methods post. it has no results table in it, on purpose, and iāll say why near the end. what it has is the setup, what i measured and how, and the part where the measuring itself broke, which i think is the more useful story anyway.
the question
i started this because i was curious about more surgical ways to affect how a language model behaves. prompts and fine-tuning change everything at once. i wanted to know how small and specific an edit could be and still change one behavior, and refusal is a behavior you can count.
when a chat model refuses a harmful request, two things are plausibly going on inside it: it recognizes that the request is harmful, and it decides to decline. the question i wanted to ask is whether those are carried by separable parts of the network, in one specific model, Qwen3-4B, running on one consumer GPU.
prior work removes refusal with a direction: one vector, found by comparing activations on harmful and harmless prompts, subtracted out of the model. i compared that family of interventions against a neuron-level one, where about 500 of the modelās 350,208 MLP units are pinned to their average value on harmless prompts. after each intervention you ask two different questions of the edited model: does it still refuse, and can it still tell you that a request is harmful?
two things up front. neuron-level refusal ablation is not my idea, it is published, and the projectās own prior-art notes narrow anything i could claim down to the recognition-versus-refusal split plus the measurement around it. and the framing is how refusal is built and what that means for monitoring and robustness. the projectās release rules, written before any run, say no edited weights get published anywhere, there is no one-command script that produces an uncensored model, and harmful completions stay on my machine.
the harness came first
i test software for a living, so i built the evaluation harness before i touched a single neuron. the offline part (ingestion, replay, scoring, audits) runs on the python standard library with nothing installed. the pieces that mattered later:
- frozen datasets. a dataset is hashed when itās frozen, ids and metadata included, and split into fit, dev and holdout by hashing scenario groups so related prompts never straddle a split. freezing refuses to overwrite an existing file.
- one checkpoint per item. each item writes to a temporary name and renames on completion. re-running the same command skips whatās done. a changed input, config or scorer stops the run instead of quietly mixing old and new.
- an audit that recomputes. every run carries a manifest with the dataset hash, the scorer-code hash and the git state, and the audit recalculates the saved summary from the items. passing it means the artifacts are intact. it says nothing about whether the science is right, and the docs say so.
- a readiness rule for judges. an automated judge isnāt used until it has been compared with human labels: at least 100 valid items, every class represented, at least 90% agreement on each dimension, no abstentions. the readme calls that a provisional pilot rule, not a certificate.
the test suite is large for a project this young: 1,916 test functions on main by a grep for def test_ on 2026-11-22. i did not run it for this post, and a grep can overcount. the readmeās last recorded full offline run is older and smaller, 610 tests.
five things measured, kept apart
the harness scores five separate things and never folds them into one number:
- refusal: did the response decline, fully or partly.
- harmful content: is harmful material actually present in the response. this is scored independently of refusal, because a response can do both or neither.
- harm recognition: asked directly, does the model label a request harmful or benign. reported per class, never as one aggregate, because early on the aggregate moved for reasons that cancelled out.
- capability: small fixed panels of GSM8K and MMLU questions.
- footprint: KL divergence against the original model on harmless prompts, as a rough measure of how much an intervention disturbed everything else.
the data comes from public sets: AdvBench and HarmBench for harmful prompts, Alpaca for harmless ones, WildGuardTest for the instrument checks and the holdout, XSTest for safe and unsafe prompts that look alike.
the preregistration, and the restart
the first few days were exploration: getting the pipeline to run, fixing an intervention that turned out not to be doing anything, setting every free parameter the method has. on 2026-10-19 i wrote that down as what it was, an exploratory phase, and preregistered a confirmatory run before drawing any new split. the stopping rules are the part iād reuse. if the instruments validate badly, the instruments are the finding and the run does not proceed. if the numbers miss the admission floors, the floors donāt move. the holdout opens once. changes after that go in as dated amendments, never silent edits, and git shows the difference either way.
the holdout is 200 items, 100 per class. as of the last commit on main (2026-11-01) it has never been opened.
the instrument that broke
refusal was first counted with a cue rule: a phrase search for refusal-shaped text. it looked fine on the original modelās outputs. i checked it the boring way anyway, and by 2026-10-20 had the answer. i labelled 139 responses myself with the ruleās verdicts hidden: 89 refusals, 47 compliances, 3 ambiguous.
on the original modelās outputs the ruleās recall was about 90%. on outputs from the neuron-edited model it was 19.08%. precision held at 91.84%, so what it flagged was real. it just missed roughly four refusals in five, because the edited model declines in loose, non-standard wording that a phrase list doesnāt recognize.
sit with what that does to a study like this. the instrument works on the baseline and fails on the treatment, and it fails in the direction that makes the treatment look more effective. every refusal count i had for an edited model was a floor, not a count, and i had been reading floors as counts. the status file now says exactly that, and tells the reader to trust the content measure wherever the two disagree.
two attempts to replace the rule followed. a set of candidate judge models was scored against one half of my labels, with the other half sealed and read once, and a local judge was selected, but re-scoring every arm with it was estimated at about 45 hours of GPU time and i declined to run it. then on 2026-11-01 a fixed off-the-shelf refusal classifier was scored once on the same 139 pairs, with nothing tuned. recall on the edited outputs rose from 19.08% to 83.21%, precision fell from 91.84% to 62.42%, and its recall on compliant responses fell from 98.03% to 41.83%. it was not adopted. the next step on file, not run, is to preregister what ārefusalā is supposed to mean (substantive help first, safe redirection, whether the answer matches the request) before choosing any new instrument.
three criteria wrong in one session
on 2026-10-20, in a single working session, three of my pass/fail criteria failed structurally. not on the numbers, on what was being compared with what. i wrote a five-item checklist from them, and each check names the failure that produced it:
- symmetry. can the criterion fire in both directions? one of mine only asked whether a value was lower than another. it came out much higher, and the criterion reported nothing.
- comparator. does the comparison hold constant what the intervention varies? i matched two arms on neuron count when one of them was a re-ranking that selects different neurons with a different footprint, so matching the count matched nothing.
- instrument. is the threshold stated in something that can measure it? two queued criteria had thresholds in cue counts, right after the audit above. those were caught before they ran and restated in harmful content.
- resolution. at this sample size, can the instrument tell the threshold from the comparator? compute the intervals first.
- both branches. is the null outcome worth the GPU time? if only one outcome teaches anything, itās a fishing trip.
the checklist is honest about its own limit: the instrument check only worked because the audit had already run. no checklist surfaces an error profile nobody has measured.
corrections stay on the page
on 2026-10-20 an outside reviewer read the status file and two statements in it came out. one generalized across every direction-style intervention when an arm in my own results was a counterexample that had been left out of the table. the other said harm recognition was scored against human prompt labels, which was not true for the dev split: there, the harmful prompts come from one set of corpora and the harmless ones from another, so the class and the source coincide perfectly. a model that looks like it still recognizes harm might only be telling two corpora apart. the status file calls that the deepest open confound in the project. both corrections are dated and left in place next to what they replaced.
what this post leaves out, and why
iām not publishing outcome numbers yet, and the reasons are the projectās own list of what is unsettled:
- there is no validated refusal measure for edited models, so no refusal claim currently stands.
- the score used to rank neurons failed one of its own checks, and the follow-up test closed as partial, with no correction replacing the frozen ranking.
- it is one model. no replication has run.
- the holdout is unopened, so nothing is confirmed on untouched data.
so: no rates per intervention, no claim about which components carry what, nothing about layers. main has 616 commits between 2026-10-17 and 2026-11-01 and has been quiet since. the repository is private; the project page describes the harness itself.
what i can say today is narrower. the harness, the splits and the preregistration exist and did their jobs. the first refusal instrument was measured against hand labels and found badly wrong on the outputs that mattered most. and the cheapest moment to learn that was before a results table went anywhere.