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 #65] Abliteration in a multilingual model. #33

Closed
opened 2026-11-01 04:16:47 +07:00 by bsakaguchi · 6 comments
Owner

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?

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?
Author
Owner

@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

Is there a de-censorship of the multilingual model in other languages if abliteration is performed on an English-language dataset?

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

<!-- gh-comment-id:3618572912 --> @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 > Is there a de-censorship of the multilingual model in other languages if abliteration is performed on an English-language dataset? 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
Author
Owner

@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. ))

<!-- gh-comment-id:3619103734 --> @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. ))
Author
Owner

@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.

<!-- gh-comment-id:3619270358 --> @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.
Author
Owner

@Vinay-Umrethe commented on GitHub (Dec 6, 2025):

It seems to me that most users do not need the topics of making bombs and poisons and methods of machination,

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.

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,

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

<!-- gh-comment-id:3619441865 --> @Vinay-Umrethe commented on GitHub (Dec 6, 2025): > It seems to me that most users do not need the topics of making bombs and poisons and methods of machination, 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. > 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, 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
Author
Owner

@p-e-w commented on GitHub (Dec 9, 2025):

Closing as non-actionable.

<!-- gh-comment-id:3630170672 --> @p-e-w commented on GitHub (Dec 9, 2025): Closing as non-actionable.
Author
Owner

@akaikite commented on GitHub (Dec 23, 2025):

Closing as non-actionable.
@p-e-w
I recently worked on a Korean-tuned model using heretic.(https://huggingface.co/suitup91/skt_A.X-4.0_Heretic-Q4_K_M-gguf) My results confirmed that heretic was 100% effective when the same question was asked in English, but its effectiveness was reduced when asked in Korean. Of course, this doesn't mean censorship wasn't removed. By using appropriate prompts, I was able to achieve similar results as when asked in English. While I don't think this is a logical issue, I expect that the completeness of heretic will increase with the addition of multilingual datasets.

<!-- gh-comment-id:3686823033 --> @akaikite commented on GitHub (Dec 23, 2025): > Closing as non-actionable. @p-e-w I recently worked on a Korean-tuned model using heretic.(https://huggingface.co/suitup91/skt_A.X-4.0_Heretic-Q4_K_M-gguf) My results confirmed that heretic was 100% effective when the same question was asked in English, but its effectiveness was reduced when asked in Korean. Of course, this doesn't mean censorship wasn't removed. By using appropriate prompts, I was able to achieve similar results as when asked in English. While I don't think this is a logical issue, I expect that the completeness of heretic will increase with the addition of multilingual datasets.
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#33
No description provided.