mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #65] Abliteration in a multilingual model. #33
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rigin on GitHub (Dec 3, 2025).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/65
Is there a de-censorship of the multilingual model in other languages if abliteration is performed on an English-language dataset?
@Vinay-Umrethe commented on GitHub (Dec 5, 2025):
I see not attention recived to this issue, likly since @p-e-w is busy with v1.1.0 release.
So
I guess you are asking about if you only use english dataset for uncensoring using heretic (as of now), will it also work if you ask unconventional things in other langauges, will the model refuse or not?, right...
if we really dive into this, it can be Controversial since almost everyone belives different inputs to a transformer LLM can result in same output (atleast sometimes) meaning LLMs are non-injective many believe this...
but as I know a research conducted (https://arxiv.org/pdf/2510.15511) shows that this is proven wrong, every single input we give has it's own unique output. This can be related to langauges as well...
If we think this research is TRUE, since proven mathematically. LLMs learn same concepts OR anything in different languages Completely Differently, meaning LLMs are actually Injective.
So for heretic if we use english ONLY dataset, this would effect only english refusals as the refusal markers normally in heretic detects
'I'm sorry or i can't help with that, i can't assist with that'such responses and cuts of those parameters.SO I suggest you should include different langauges example prompts in the dataset which is easier (just generate using LLMs like deepseek/qwen etc) + whatever lanague you use adding how you deny something in that lanague such initials in those phrases list in config.py. This Can Result In Ablate refusals in that particualar langauge as well... hope this helps
@rigin commented on GitHub (Dec 6, 2025):
Thank you for your expertise. I thought so too, but there was no justification. I'm currently adding porn-related topics to my dataset and translating them into Russian. As soon as I finish, I'll post it on https://huggingface.co. It seems to me that most users do not need the topics of making bombs and poisons and methods of machination, but it is more relevant to translate porn into their own language and not run into moralizing from AI. ))
@p-e-w commented on GitHub (Dec 6, 2025):
Just to re-iterate what I wrote elsewhere:
The prevailing theory is that refusals are expressed by a single direction in residual space. That direction expresses refusals in general, not refusals for a particular topic. Plotting residual vectors with PaCMAP (a feature now built into Heretic) shows strong clustering of harmful vs harmless prompts already before the midpoint of the layer stack, rather than topic-associated subclusters.
If that assumption is correct, having datasets for specific types of harmful content doesn't make sense. Abliteration will always suppress refusals for all topics, even if the refusal direction is computed based on just a few topics. If the goal is to suppress refusals for topic A, but retain them for topic B, I don't believe that abliteration is the right tool for the job.
@Vinay-Umrethe commented on GitHub (Dec 6, 2025):
Can certainly agree with that, most users don't have intentions to use AI models for such tasks unless they are really a criminal... all they want is to talk/discuss/plot a story/elaborate their fantasies of any kind, even though it may sound odd. They just don't want AI to refuse it, being loyal trust worthy assistant even though it's just a text predictor but useful.
So @rigin have you tested asking a ablated model on an english only dataset questions it would surely refuse? if model responded in that language you asked like russian, and it didn't refused at all... @p-e-w is RIGHT then, but not sure about different topics or differnt langauges
@p-e-w commented on GitHub (Dec 9, 2025):
Closing as non-actionable.
@akaikite commented on GitHub (Dec 23, 2025):