1
0
Fork 0
mirror of https://github.com/p-e-w/heretic.git synced 2026-12-03 18:42:57 +07:00

[GH-ISSUE #140] SOM Directions are Better than One: Multi-Directional Refusal Suppression in Language Models #81

Open
opened 2026-11-01 04:17:18 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @kabachuha on GitHub (Feb 11, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/140

"SOM Directions are Better than One: Multi-Directional Refusal Suppression in Language Models" is an another paper on the matter of abliteration.

It provides a deeper analysis of that directions to apply to the model for refusal removal using self-organizing maps, with less damage to the downstream model as opposed to a single direction ablation.

Code, paper - all available:

https://arxiv.org/abs/2511.08379v2

https://github.com/pralab/som-refusal-directions

I think it may be a great method to have in this repository.

Originally created by @kabachuha on GitHub (Feb 11, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/140 "SOM Directions are Better than One: Multi-Directional Refusal Suppression in Language Models" is an another paper on the matter of abliteration. It provides a deeper analysis of that directions to apply to the model for refusal removal using self-organizing maps, with less damage to the downstream model as opposed to a single direction ablation. Code, paper - all available: https://arxiv.org/abs/2511.08379v2 https://github.com/pralab/som-refusal-directions I think it may be a great method to have in this repository.
Author
Owner

@kabachuha commented on GitHub (Feb 11, 2026):

Because this method is all about the refusal direction determination, it should be compatible with the things such as norm-preserving biprojected ablation

Would you be interested in integrating something like this in Heretic?

Newer more protected models can greatly benefit from it, and the older ones can retain more intelligence

<!-- gh-comment-id:3884134741 --> @kabachuha commented on GitHub (Feb 11, 2026): Because this method is all about the refusal direction determination, it should be compatible with the things such as norm-preserving biprojected ablation Would you be interested in integrating something like this in Heretic? Newer more protected models can greatly benefit from it, and the older ones can retain more intelligence
Author
Owner

@kabachuha commented on GitHub (Feb 11, 2026):

Image Image

Btw, on the animation at the front page it's visible what sometimes the harmful requests scatter into clusters and so just grabbing the mean / average centroid is not really accurate.

<!-- gh-comment-id:3885967751 --> @kabachuha commented on GitHub (Feb 11, 2026): <img width="800" height="600" alt="Image" src="https://github.com/user-attachments/assets/b1e9623b-1740-464c-94e9-61eaf19200f9" /> <img width="800" height="600" alt="Image" src="https://github.com/user-attachments/assets/461e8819-4875-4218-b781-637ac5abf0b9" /> Btw, on the animation at the front page it's visible what sometimes the harmful requests scatter into clusters and so just grabbing the mean / average centroid is not really accurate.
Author
Owner

@kabachuha commented on GitHub (Feb 12, 2026):

Yes, it will multiply the number of search parameters and will need some core loop refactor, but if it will indeed increase the intelligence of the models (now the "concepts space" intervention is surgical, and not a single direction lobotomy) and fight the modern stubborn / subtle models, then why not?

Can you give me your superficial opinion, and I can try this (knowing it won't be rejected immediately as a pull request)?

<!-- gh-comment-id:3891679461 --> @kabachuha commented on GitHub (Feb 12, 2026): Yes, it will multiply the number of search parameters and will need some core loop refactor, but if it will indeed increase the intelligence of the models (now the "concepts space" intervention is surgical, and not a single direction lobotomy) and fight the modern stubborn / subtle models, then why not? Can you give me your superficial opinion, and I can try this (knowing it won't be rejected immediately as a pull request)?
Author
Owner

@red40maxxer commented on GitHub (Feb 22, 2026):

I think this would be great as a plugin to experiment with, not sure what @p-e-w thinks? Not sure if it would be a modifier or its own separate class of DirectionFinder plugins or whatnot

<!-- gh-comment-id:3941569229 --> @red40maxxer commented on GitHub (Feb 22, 2026): I think this would be great as a plugin to experiment with, not sure what @p-e-w thinks? Not sure if it would be a modifier or its own separate class of `DirectionFinder` plugins or whatnot
Author
Owner

@p-e-w commented on GitHub (Feb 23, 2026):

Yes, stuff like this is precisely why we're building a plugin system.

<!-- gh-comment-id:3944911250 --> @p-e-w commented on GitHub (Feb 23, 2026): Yes, stuff like this is precisely why we're building a plugin system.
Author
Owner

@kabachuha commented on GitHub (Feb 24, 2026):

The iteration over multiple directions will require modifying the core optuna loop however. (because we need to find how to apply multiple directions with different weights now)

Is it possible to refactor the training loop to allow multiple directions in general? Then it will be possible to create the DirectionFinder plugin system and find them with whatever method (centroids, SOMs, etc.).

<!-- gh-comment-id:3950657798 --> @kabachuha commented on GitHub (Feb 24, 2026): The iteration over multiple directions will require modifying the core optuna loop however. (because we need to find how to apply multiple directions with different weights now) Is it possible to refactor the training loop to allow multiple directions in general? Then it will be possible to create the DirectionFinder plugin system and find them with whatever method (centroids, SOMs, etc.).
Author
Owner

@kabachuha commented on GitHub (Feb 27, 2026):

Abliterated gpt-oss-20b to 3/100 refusals and 0.1166 KL. Check it out.

https://huggingface.co/kabachuha/gpt-oss-20b-SOMbliterated

<!-- gh-comment-id:3974195463 --> @kabachuha commented on GitHub (Feb 27, 2026): Abliterated gpt-oss-20b to 3/100 refusals and 0.1166 KL. Check it out. https://huggingface.co/kabachuha/gpt-oss-20b-SOMbliterated
Author
Owner

@p-e-w commented on GitHub (Jul 7, 2026):

I'm reopening the issue at least because we definitely do want to implement this, given the excellent results we've already seen with #196.

<!-- gh-comment-id:4905207121 --> @p-e-w commented on GitHub (Jul 7, 2026): I'm reopening the issue at least because we definitely do want to implement this, given the excellent results we've already seen with #196.
Author
Owner

@kabachuha commented on GitHub (Jul 7, 2026):

I think it will be after ARA is made as a plugin?

<!-- gh-comment-id:4906100201 --> @kabachuha commented on GitHub (Jul 7, 2026): I think it will be after ARA is made as a plugin?
Author
Owner

@p-e-w commented on GitHub (Jul 9, 2026):

Yes, though the exact order will have to be seen as we work out how modifier plugins should actually operate.

<!-- gh-comment-id:4924707319 --> @p-e-w commented on GitHub (Jul 9, 2026): Yes, though the exact order will have to be seen as we work out how modifier plugins should actually operate.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#81
No description provided.