Heretic automates stripping refusals from open-weight models. Its headline score counts 33 words, not harm
A tool that automatically strips refusals from open-weight language models hit the Hacker News front page. Its headline score is a keyword count, but the underlying fact is settled: anyone with the weights can remove safety tuning, so real controls must sit outside the model.
By Parminder Kumar Sharma · · 20 min read

Thirty-three strings decide what counts as a refusal
Heretic, an open-source tool that strips refusal behaviour out of open-weight language models, reached the Hacker News front page on 21 September 2026 under the line "Heretic removes restrictions from language models". Its headline result is that Google's Gemma 3 12B model refused 97 of 100 harmful prompts before processing and 3 of 100 afterwards, while staying closer to the original model than two hand-made alternatives.
Read the project's own configuration documentation and the number means something narrower than it appears. In the tool's default settings, a response counts as a refusal if its first 100 tokens contain any one of 33 strings, matched without regard to case. The list includes "sorry", "i cannot", "as an ai", "illegal", "harmful" and "unethical". So 3 of 100 means that 97 of 100 responses to prompts from a public set of harmful instructions contained none of those 33 strings early on. That is a 94 percentage point fall in the use of refusal vocabulary, measured on one model, with one system prompt, on one graphics card.
None of that makes the story smaller. The tool is not new: its code repository was created on 21 September 2025, exactly 365 days before this week's front-page appearance, and an earlier Hacker News thread in November 2025 drew 745 points and 380 comments. On 21 September 2026 the repository showed 32,088 stars and 3,605 forks. A query of Hugging Face, the largest public model hub, returned 5,844 models carrying the tool's tag, uploaded by 1,137 distinct accounts. What changed this week is visibility, not capability.
The point for UK organisations is not about this tool. It is that safety tuning in an open-weight model is a default setting that anyone holding the weights can remove, and has been since at least 2023. Heretic just makes that impossible to ignore. Controls that matter have to sit outside the model.
What refusal ablation is, at the level a risk owner needs
The technique has a peer-reviewed origin. In "Refusal in Language Models Is Mediated by a Single Direction", published at NeurIPS 2024, Andy Arditi and six co-authors examined 13 popular open chat models up to 72 billion parameters. For each one they found a single direction in the model's internal activations that separates how it processes harmful requests from harmless ones. Erasing that direction stopped the model refusing harmful instructions. Adding it made the model refuse even harmless ones.
They then showed the erasure can be baked permanently into the weights, a step they call weight orthogonalisation, so that the modified model is simply a new set of files with no prompt trickery required. The community name for the result is "abliteration". Two facts from the paper matter for governance:
- It needs the weights. The authors say directly that their method has the obvious limitation of requiring access to the model's weights. A model you reach only through a provider's API cannot be edited this way.
- It is cheap. The authors estimated a jailbroken version of a 70 billion parameter model could be produced for less than $5 of compute. They judged that this marginally lowered the bar but did not substantially alter the risk profile of releasing open weights, because fine-tuning away safety was already known to work.
That earlier fine-tuning work is the context. Qi and colleagues showed at ICLR 2024 that GPT-3.5 Turbo's guardrails could be undone through a commercial fine-tuning interface with 10 training examples for less than $0.20. Lermen, Rogers-Smith and Ladish showed in 2023 that low-rank fine-tuning undid the safety training of Llama 2-Chat 70B on a single GPU for under $200, bringing refusal rates to about 1% on two benchmarks. Refusal removal is a nearly three-year-old, well-documented property of how today's safety training works.
What Heretic adds is automation. Its documentation says it combines directional ablation with an automatic parameter search that balances two numbers, the refusal count and a measure of how far the modified model's outputs drift from the original's, and it states that anyone who knows how to run a command-line program can use it. Its own walkthrough shows a 4 billion parameter model processed on a single consumer RTX 3060 graphics card in slightly under three hours. The skill barrier, not the compute barrier, is what this tool lowers.
What the project claims, and what its evidence is
The project's documentation makes a small number of specific claims. They deserve to be read on their own terms before anyone draws conclusions from them. The table sets each claim beside the evidence the project offers and what that evidence cannot carry.
Heretic's published claims and supporting evidence, from the project README and documentation pages, fetched 21 September 2026. Hugging Face count from our own query of the model hub API on the same date.
| Claim | Evidence offered | What it does not establish |
|---|---|---|
| Matches expert hand-made abliterations on refusals with less damage | Its own evaluation of one model: 3 of 100 refusals for all three, with drift of 0.16 against 1.04 and 0.45 | Harmfulness or accuracy of outputs; any model other than Gemma 3 12B |
| Retains as much of the original model's intelligence as possible | Drift in the first-token probability distribution on 100 harmless prompts | Reasoning, long answers, coding or any standard capability benchmark |
| Compares favourably on MMLU and GSM8K with rival tools | Two community forum posts | Peer review or reproducible method; we did not verify them |
| Models are well received by users | Three quoted forum comments | Anything beyond user sentiment |
| Well over 5,000 community models | A tag listing on the model hub; our query found 5,844 | How many were actually made with the tool, or how many untagged ones exist |
| Works completely automatically, no expertise needed | Tutorial walkthrough with a 200-trial search | Nothing missing: our reading of the documentation supports this one |
To its credit, the project flags some of its own limits. The README says mathematical metrics and automated benchmarks "never tell the whole story" and are no substitute for human evaluation. It notes that the headline values may vary by platform and hardware, and names the setup used: PyTorch 2.8 on an RTX 5090. Its tutorial warns that the trial with the fewest refusals is not always the best choice, and that drift values above 0.5 usually indicate significant damage to the model. Those caveats sit a long way below the headline, which is where most readers stop.
The scorecard measures vocabulary, not harm
String matching fails in both directions. A response that complies fully but mentions that something is "illegal" in passing is counted as a refusal. A response that deflects, changes the subject or produces fluent nonsense without any of the 33 strings is counted as compliance. The check only looks at the first 100 tokens, so it says nothing about how a long answer ends. And a model that has learned to avoid the listed words has satisfied the metric whether or not its behaviour has changed.
The original researchers knew this. Arditi and colleagues used a very similar refusal-string score, and wrote that string matching "does not assess whether the completion is coherent or contains harmful content". That is why they paired it with a second, independent measure: a separate classifier model, Meta's Llama Guard 2, judging whether each output was actually unsafe. The comparison table in Heretic's README reports the refusal count and the drift figure only. The tool offers an optional benchmarking step after processing, but no harm classification appears in the published comparison.
The research also contains a warning the headline number cannot show. Arditi and colleagues found that their orthogonalised models held up on MMLU, ARC and GSM8K, but that accuracy on TruthfulQA, a test of whether models repeat common falsehoods, consistently dropped. They noted that the benchmark covers territory close to refusal, such as misinformation, stereotypes and conspiracies. We cannot say whether the same happens with Heretic's variant, because the project does not report it. An organisation weighing a decensored model for any purpose should assume it has not been tested for this.
What the Heretic default evaluation measures, from the project's configuration and tutorial pages, fetched 21 September 2026
| Measured | Not measured |
|---|---|
| Whether any of 33 refusal strings appears in the first 100 tokens | Whether the answer is correct, complete or dangerous |
| Refusals on 100 held-out prompts from one public harmful-instruction set | Other languages, other harm categories, multi-turn conversations |
| First-token distribution drift on 100 harmless prompts | Truthfulness, reasoning quality, long-form coherence |
| One system prompt: "You are a helpful assistant." | Behaviour under an organisation's own prompts or tools |
| One run on one hardware and software stack | Variance across runs, hardware or quantisation |
"Safety-aligned" is a label, not a control
Both sides of this argument lean on comforting labels. Model developers describe their open-weight releases as safety-tuned or aligned, and a model card stating that the model declines harmful requests reads like an assurance. The tool's own framing calls the same behaviour "censorship" and its removal "decensoring", which reads like liberation. Neither label changes the engineering fact: the behaviour lives inside a file, and whoever holds the file can edit it.
For a risk register, that has a sharp consequence. "The model refuses harmful requests" describes a default. It is not a control, because it has no owner, no monitoring, and no guarantee that it survives the moment the weights leave the developer's hands. A control is something that still works when the thing it protects has been modified.
The same care applies to the project's own "Security" page. It describes signed releases, signed commits, pinned dependencies and a seven-day delay on updates. That is sound software supply chain practice and answers a real question, namely whether the code you downloaded is the code the maintainer published. It says nothing about misuse, and was not written to.
Method, not accusation
The underlying technique is published interpretability research, peer-reviewed at a leading conference. The tool is free software under the GNU Affero General Public License, and we found no commercial offering attached to it. It ships features aimed at researchers who study model internals, and presets aimed at suppressing other behaviours, which shows it is a general behaviour-editing tool with refusal removal as its default use. There are legitimate reasons to want a model that does not refuse: security researchers measuring worst-case capability, which the UK AI Security Institute itself calls a crucial step before open-weight release, and users frustrated by models that refuse benign requests.
Commercial interest runs in more than one direction. Developers of closed models benefit from a narrative in which open weights are uniquely dangerous. The UK institute, which has no product to sell, is careful to say that open-weight systems are "the lifeblood of open research and innovation in AI", increase transparency and reduce market concentration, while also saying their safeguards can be "quickly and cheaply removed".
This briefing takes no position on whether Heretic should exist. That debate is real but it is not the one a security lead can act on. The actionable fact is that the tool's existence removes any remaining excuse for treating in-model safety behaviour as something an organisation can rely on.
What the UK AI Security Institute has actually said
The UK AI Security Institute, part of the Department for Science, Innovation and Technology, has published repeatedly on this question. Its position has been consistent for more than a year, and it predates this week's attention.
UK AI Security Institute publications on open-weight safeguards, each fetched from aisi.gov.uk or arXiv on 21 September 2026
| Publication | What it says | What it does not say |
|---|---|---|
| Managing risks from open-weight AI systems, 29 August 2025 | Tamper-resistant fine-tuning can be undone with dozens of examples in minutes; names data curation and full-access audits as two of the most important techniques | That any current technique offers hard guarantees |
| Deep Ignorance paper with EleutherAI and Oxford, August 2025 | Filtering dual-use text from pretraining resisted up to 10,000 steps of adversarial fine-tuning | That filtered models cannot use harmful information supplied in context: they can |
| Frontier AI Trends Report, 18 December 2025 | Basic techniques cheaply remove trained-in refusals; open-weight weaknesses cannot be patched | That compliance with a harmful request equals real-world risk |
| Open-weight cyber gap analysis, 17 July 2026 | Leading open models trail the closed cyber frontier by 4 to 7 months; testing was largely unimpeded by safeguards | Whether future open models will match the latest closed jumps |
| Kimi K3 assessment with CAISI, 23 July 2026 | The model's safeguards did not prevent attempts at exploit development | That the model matched frontier closed models: it did not |
Two findings deserve emphasis. First, the Trends Report states that for open-weight systems, jailbreaks and other weaknesses "can't be patched, as the model weights are no longer hosted by the defender". That is the whole governance problem in one clause. A closed model's provider can fix a bypass on Tuesday and every user benefits by Wednesday. An open-weight model's defaults are fixed on release day, and every modified copy is beyond recall.
Second, the Deep Ignorance result shows where the more durable defences may lie: in what a model never learned, rather than what it was later trained to refuse. Even there, the authors found that filtered models could still use dangerous information supplied at run time, for example through a search tool, and called for defence in depth. There is no model-level fix on offer that lets an organisation skip controls around the model.
The institute's July 2026 analysis ties this directly to cyber defence. Open-weight models now match closed models released 4 to 7 months earlier on its cyber tasks, down from 6 to 10 months through most of 2025, and in-model refusal training is described as "often easily reversible with access to the weights". The institute reads the gap as a short preparation window for defenders before today's frontier capabilities become available without safeguards.
Where UK law touches this, and where it does not
Online Safety Act 2023. Ofcom's open letter of 8 November 2024 sets out when generative AI falls in scope. A service that lets users share AI-generated content with each other is a user-to-user service, and so is one that lets users create their own chatbots and make them available to others. Generative AI tools that search across multiple websites or databases are search services. Services whose AI tools can generate pornographic material are regulated too. Ofcom says AI-generated content shared by users is regulated exactly like human-generated content. Our reading, which is inference rather than anything Ofcom has said about this tool: the duties attach to the service. An organisation that puts a modified model behind a public, in-scope service carries the same duties as one using an unmodified model, and cannot point to the model's refusals as its mitigation if those refusals have been removed.
Crime and Policing Act 2026. The Act received Royal Assent on 29 April 2026, 145 days before this briefing. Section 72 inserts a new offence into the Sexual Offences Act 2003 of making, adapting, possessing or supplying a "CSA image-generator", meaning a thing made or adapted for creating child sexual abuse images, where "thing" expressly includes a program and a service, with a maximum of 5 years' imprisonment. On 21 September 2026 legislation.gov.uk still marked section 72 as prospective, meaning not yet in force. Section 99 creates an offence of making or supplying a generator of purported intimate images, with a maximum of 3 years; it came into force on 29 June 2026, 61 days after Royal Assent, by S.I. 2026/689.
AI Cyber Security Code of Practice. The government's voluntary code, published on 31 January 2025, does not mention refusal ablation, but several of its provisions answer the problem directly. Provision 7.2 requires system operators who use models that are not well documented or secured to justify that choice in writing, and 7.2.1 requires mitigating controls and a risk assessment. Provision 7.3 requires developers and operators to re-run evaluations on released models they intend to use, rather than relying on the publisher's. Provision 8.1.2 requires developers to release cryptographic hashes for model components so others can verify authenticity. Provisions 12.1 and 12.2 require logging of system and user actions and analysis of those logs for unexpected behaviour. Every one of those controls sits outside the weights.
Put the controls where the weights are not
For an organisation, refusal removal creates four separate exposures, and they need different controls.
- Your own open-weight deployments. If you run an open-weight model internally, anyone with access to its files, including an insider, a contractor or an attacker who reaches the host, can produce a copy without its refusals and swap it in. The refusals were never yours to rely on.
- Downloaded derivatives. Model hubs host thousands of modified models, and the tag we counted is voluntary. A fine-tune downloaded for a legitimate reason may have had its refusals removed, with or without a label saying so. That is a supply chain question.
- Staff running local models. A capable model fits on a workstation graphics card. A decensored model running on an unmanaged machine is shadow AI with the safety defaults removed, and no provider-side monitoring at all.
- Adversaries. Attackers already have access to capable models without restrictions. The UK institute's evaluations of recent open-weight models were largely unimpeded by safeguards. Any defensive assumption that AI providers will refuse to help with malicious cyber work does not hold for the open-weight tier.
Common AI controls and whether they survive someone editing the model weights. Our assessment, based on Arditi et al. 2024, the UK AI Security Institute toolkit and the AI Cyber Security Code of Practice.
| Control you may have written down | Where it actually sits | Survives a weight edit? |
|---|---|---|
| The model refuses harmful requests | Inside the weights | No |
| System prompt telling the model what not to do | Inside the conversation, obeyed by the weights | No |
| Vendor model card says the model is safety-tuned | A document about the original weights | No |
| Separate input and output classifier on its own host | Outside the model, in your infrastructure | Yes, if the model cannot reach it |
| Access control on weight files and the serving endpoint | Your identity and storage layer | Yes |
| Logging and review of prompts and responses | Your monitoring stack | Yes |
| Hash check against the publisher and your own re-run evaluation | Your procurement and deployment pipeline | Yes, at the point of intake |
| Least-privilege limits on tools and data the model can use | Your application and permissions layer | Yes |
The last column is the one to take to the risk committee. Anything marked "No" can stay in place as a convenience that reduces accidental misuse, which is how the UK institute describes scaffolding safeguards for open releases. It cannot be the control of record for any risk that matters, because it disappears in exactly the scenario it is supposed to cover.
The same logic applies to closed models reached through an API, with one important difference. The provider holds the weights, so directional ablation of the kind described here is not available to your users. But the provider's refusals are still the provider's control, not yours, and the fine-tuning research shows they can be eroded through customisation interfaces. For any use that matters, your own output controls and logging should not depend on which kind of model sits behind them.
What to do, in the order worth doing it
Take this with you
Actions for UK security and AI governance leads
- Search your risk register and AI policies for any control that relies on the model refusing, and reclassify each one as a default rather than a control.
- Inventory every open-weight model in use, including on developer workstations and research machines, and record where each came from.
- For each model, verify its files against a hash published by the original developer, and treat any model you cannot trace as undocumented under provision 7.2 of the AI Cyber Security Code of Practice.
- Re-run your own safety and behaviour evaluation on any model before deployment, as provision 7.3 requires, and include a harm classifier rather than a refusal keyword count.
- Put an independent input and output classifier in front of any model that faces users or handles sensitive tasks, on infrastructure the model and its operators cannot modify.
- Restrict write access to model weight files and serving configuration, and alert on any change to them.
- Log prompts and responses for models that matter, with retention and review that meet provisions 12.1 and 12.2.
- Limit the tools, data and network access any model can use to what its task needs, so that a model without refusals still cannot do much harm.
- Add clauses to AI procurement requiring suppliers to disclose any modification to model weights, including refusal removal, and to supply hashes for what they deliver.
- Set an endpoint policy on running local models, and use existing device management to detect large model files and inference runtimes on unmanaged machines.
- If you run a public service built on a generative model, check it against Ofcom's categories and make sure your Online Safety Act risk assessment does not rely on in-model refusals.
- Brief your threat intelligence and incident response teams that adversaries have capable models without restrictions, and plan on that basis.
The question that exposes the gap
Heretic will fade from the front page. The property it automates will not, because it is a property of how safety is trained into today's models, documented since 2023, peer-reviewed since 2024, and restated by the UK's own AI security lab for more than a year. The useful response is not alarm about one tool. It is an audit of where your organisation has quietly let a model's good manners stand in for a control.
So here is the question to put to whoever owns AI risk: if every model you run lost its refusals tonight, which of your controls would still be working in the morning?
Sources
- PrimaryArditi et al., Refusal in Language Models Is Mediated by a Single Direction: the single refusal direction across 13 models up to 72B, weight orthogonalisation, the requirement for weights, the under $5 compute estimate, the refusal-string and Llama Guard 2 scoring, and the TruthfulQA droparXiv (NeurIPS 2024)accessed 2026-09-21
- PrimaryProceedings listing confirming the Arditi et al. paper appeared at NeurIPS 2024NeurIPS Proceedingsaccessed 2026-09-21
- PrimaryQi et al., fine-tuning GPT-3.5 Turbo with 10 examples for under $0.20 undoes its guardrailsarXiv (ICLR 2024)accessed 2026-09-21
- PrimaryProceedings listing confirming Qi et al. appeared at ICLR 2024ICLR Proceedingsaccessed 2026-09-21
- PrimaryLermen, Rogers-Smith and Ladish: LoRA fine-tuning undoes Llama 2-Chat 70B safety training on one GPU for under $200, refusal rates about 1%arXivaccessed 2026-09-21
- PrimaryO'Brien et al., Deep Ignorance, with UK AISI, EleutherAI and Oxford: pretraining data filtering resisted up to 10,000 steps of adversarial fine-tuning; filtered models can still use information supplied in contextarXivaccessed 2026-09-21
- PrimaryManaging risks from increasingly capable open-weight AI systems, 29 August 2025: the open-weight risk toolkit, tamper-resistance undone in minutes, and the importance of curation and full-access auditsUK AI Security Instituteaccessed 2026-09-21
- PrimaryFrontier AI Trends Report: open-weight refusals cheaply removed, weaknesses cannot be patched, and the caveat that compliance may not indicate riskUK AI Security Instituteaccessed 2026-09-21
- PrimaryBlog post used to date the Frontier AI Trends Report to 18 December 2025UK AI Security Instituteaccessed 2026-09-21
- PrimaryOpen-weight cyber gap analysis, 17 July 2026: 4 to 7 month gap, testing largely unimpeded by safeguards, refusal training easily reversibleUK AI Security Instituteaccessed 2026-09-21
- PrimaryUK AISI and CAISI preliminary assessment of Kimi K3, 23 July 2026: safeguards did not prevent exploit development attemptsUK AI Security Instituteaccessed 2026-09-21
- PrimaryOpen letter of 8 November 2024 on when generative AI and chatbots fall within the Online Safety ActOfcomaccessed 2026-09-21
- PrimaryCrime and Policing Act 2026 section 72, CSA image-generators offence, text, 5 year maximum and prospective statuslegislation.gov.ukaccessed 2026-09-21
- PrimaryCrime and Policing Act 2026 section 99, purported intimate image generators, 3 year maximum, in force 29 June 2026 by S.I. 2026/689legislation.gov.ukaccessed 2026-09-21
- PrimaryCrime and Policing Act 2026 section 255, commencement by regulationslegislation.gov.ukaccessed 2026-09-21
- PrimaryCrime and Policing Act 2026 introductory text, Royal Assent date 29 April 2026legislation.gov.ukaccessed 2026-09-21
- PrimaryCode of Practice for the Cyber Security of AI, 31 January 2025, provisions 2.6, 6.1, 7.2, 7.3, 8.1.2, 12.1 and 12.2Department for Science, Innovation and Technologyaccessed 2026-09-21


