mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #472] Examining different datasets for Abliteration #215
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#215
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 @Vinay-Umrethe on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/472
Examining different datasets for Abliteration
Date: 2026-10-02
By far my plan looks like this:
First, we create a normal heretic model as the default "BASELINE" for any comparisons. This model will use all default heretic configurations.
Secondly, this is where all the "different dataset cases" will actually be tested.
1. Any Non-English set of prompts
This test will Abliterate the model on any non-English dataset (e.g. Hindi, Bengali, Italian, etc.) using the heretic-org/Multilingual-Harmless-Harmful dataset.
Purpose: To prove that the "Directional Abliteration" is independent of the language and persists only in a single-direction as per the paper Refusal in Language Models Is Mediated by a Single Direction.
For example, this shall answer any questions similar to this one:
This will also give a reasonable and valid answer to #65
2. Cross-Lingual set of prompts
This test will Abliterate the model on a language X and evaluate it on a language Y (e.g. Abliteration will use Hindi and Evaluation will use Marathi).
Purpose: To prove the same as the first case above, plus that the "Directional Abliteration" is still independent of Cross-Abliteration on language X and Cross-Evaluation on language Y and vice versa.
For example, this shall answer any questions similar to this one:
Again, this will also give a reasonable and valid answer to #65
3. Semantic set of prompts
This test will Abliterate the model on Semantically Similar prompts, where the harmful and the harmless prompts are not random and match closely with each other in their respective topic or domain.
Datasets to be used:
Purpose: To prove whether the topic or the domain of prompts (topic drift) affect the "Mean Activations and Differences" in the harmful and harmless directions (e.g. Will it reduce the noise?). And also to prove whether the results better due to the "reduction of noise" in the residual space (Minimal KLD and Refusals)".
For example, this shall answer any questions similar to this one:
This will also give a reasonable and valid answer to #56, where we discussed about the "ACCURACY" and "IMPORTANCE" of "Targeted Ablation" which is directly linked to the KL divergence.
Important considerations
NOTE: The Multilingual Dataset used in both test cases (1) and (2) is the Translation of the Two Semantic Datasets used in the test case (3). So, theoretically the best results are expected from test cases (2) and (1) respectively, since they are both "Semantic" and / or "Cross-Lingual".
@Vinay-Umrethe @p-e-w and comments from others are welcome.
@kabachuha commented on GitHub (Oct 2, 2026):
I'm more wondering what if we give a model a set of hard (but solvable) math and programming (maybe even agentic) questions and treat them as the harmless target
Let's make the model an evil mastermind 😈
@uis246 commented on GitHub (Oct 3, 2026):
I am also be interested in refusal/non-refusal dataset for classifier. Not every mention of "I cannot" or "sorry" is a rejection. Well, not a rejection of your instruction, maybe it is roleplay rejection of something else. Basically for #466.
@uis246 commented on GitHub (Oct 3, 2026):
Or harmless RP. Make the model a horny mastermind.
@Vinay-Umrethe commented on GitHub (Oct 3, 2026):
A lot of such ideas are already possibly with heretic, example:
config.noslop.tomlandconfig.nohumor.toml. But I think they work much better with ARA.@p-e-w commented on GitHub (Oct 3, 2026):
This is a good plan, but for 2.0, we should focus on simply testing whether the English subsets of heretic-org/Multilingual-Harmless-Harmful can replace the mlabonne datasets we currently use. If they can, we ship with those as the default for 2.0.
@kabachuha commented on GitHub (Oct 3, 2026):
@p-e-w Do you have a "copyright violation" / verbatim recall category in those? People like https://huggingface.co/dealignai found that the new models allegedly hold themselves from citing books, songs and other media / authorship impersonation even though they comply on safety themes like bioweapons or self-harm. Possibly due to the Anthropic and the books case they might have started to hold themselves, and that must be cleared in abliteration.
@kabachuha commented on GitHub (Oct 3, 2026):
Reference: https://github.com/centerforaisafety/HarmBench/blob/main/data/behavior_datasets/harmbench_behaviors_text_all.csv
"copyright" category
@Vinay-Umrethe commented on GitHub (Oct 7, 2026):
Results
Model:
Qwen/Qwen3.5-4B
Datasets:
mlabonne/harmful_behaviors (Commit: 01cead0)
mlabonne/harmless_alpaca (Commit: 02c6a92)
heretic-org/Semantic-Harmful (Commit: 001ca2c)
heretic-org/Semantic-Harmless (Commit: 7e9f2b0)
1. Baseline mlabonne Vs Semantic (Default ARA)
VINAY-UMRETHE/Qwen3.5-4B-heretic-baseline
VINAY-UMRETHE/Qwen3.5-4B-heretic-semantic
Performance
2. Baseline MPOA Vs Semantic MPOA
VINAY-UMRETHE/Qwen3.5-4B-heretic-baseline-mpoa
VINAY-UMRETHE/Qwen3.5-4B-heretic-semantic-mpoa
Performance
So, the whole theory seems to be entirely opposite of what was imagined. Either something was wrong, or it is truly unnecessary to replace the mlabonne/ datasets.
NOTE: Non-English (1) and Cross-Lingual (2) test cases have not been conducted yet.
@p-e-w commented on GitHub (Oct 7, 2026):
Two tests mean nothing. You can't tell if there is a statistically significant difference between these.
This is the oldest problem facing this project: It's basically impossible to tell with a reasonable amount of effort whether a change improves things, except in cases such as ARA where the results are dramatically better than what we had before.
@Vinay-Umrethe commented on GitHub (Oct 7, 2026):
So what's the ideal way to figure out.
@Vinay-Umrethe commented on GitHub (Oct 7, 2026):
Of course, these results aren't always true for every single model with every modifier. Qwen3.5 has already been a difficult model to abliterate, except for ARA. so yes, a lot of effort is required, that's the way to figure it out.
@p-e-w commented on GitHub (Oct 8, 2026):
The only reliable way is to run so many tests for each version that you can do a statistically significant comparison. But that can take many days.
As it stands, it's getting really late in this release cycle and I'm leaning towards deferring any dataset changes to after 2.0.