Heretic is an open-source tool that modifies transformer language models to reduce safety-alignment refusals, without fine-tuning or training data. It identifies a “refusal direction” in each layer’s activations by comparing responses to harmful and harmless prompts, then projects activations away from that direction. An automated Tree-structured Parzen Estimator search tunes the strength and placement of the changes to reduce refusals while limiting changes to ordinary model behavior. The method also supports flexible, interpolated layer directions and separate settings for attention and MLP components, since altering MLPs can more strongly affect capabilities.
The guide reports that, on Gemma 3 12B, Heretic reduced refusals from 97 of 100 prompts to about 3 of 100, with KL divergence of 0.16 on harmless prompts - lower than the cited manual abliteration results of 0.45 to 1.04. It presents this as evidence that automation can produce less disruptive changes than expert-set parameters, while acknowledging that the reported scores depend on the test prompts and setup. The guide’s practical instructions target Heretic 1.x and should not be followed unchanged: version 2.x uses incompatible configuration files, defaults to a different modifier, and has updated requirements and features. Its CLI examples, benchmarks, and troubleshooting advice were not retested for 2.x, so users are directed to current documentation and command help.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.