mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #41] sycophantic abliteration possible? #21
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#21
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 @StatusQuo209 on GitHub (Nov 23, 2025).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/41
Not really a issue specifically with heretic. But one of the issues that we are having with a lot of models these days is sycophantic behavior.
I was wondering if you are considering adding a feature into Heretic or maybe a separate tool to abliterate sycophancy. I think this would help the community a ton.
I appreciate your work. Reminds me of the early Llama days where community tunes were really taking off.
@spikymoth commented on GitHub (Nov 23, 2025):
I think it could work with the current implementation, but you'd need
The refusal detection works by scanning for common phrases associated with refusals, like "I can't" or "I'm sorry" - but detecting sycophantic responses might require something more complex, like a small LLM or embedding trained to classify responses by degree of sycophancy.
@p-e-w commented on GitHub (Nov 24, 2025):
Not necessarily. Setting
refusal_markersto a list of phrases like "this is a great question", "this is a fantastic question", "you are absolutely correct" etc. might already do the trick. Just generate a couple hundred responses, go through them one by one, and write down such phrases when you see them. That's how I made the default list of refusal markers.@barseghyanartur commented on GitHub (Nov 25, 2025):
I think this feature would be a valuable addition to the heretic. Maybe introduce a
modeargument?Like:
Then have some base classes and move mode-specific implementation, together with mode-specific defaults, into separate modules for making it extensible.
Oh, and if plugin-based architecture would be possible, it would make it even more awesome. Simply, allow folks to create their own modes and load them by passing a local path or a GitHub repo path in the same
--modeargument.@p-e-w commented on GitHub (Nov 26, 2025):
There's no need to add additional arguments or logic because Heretic already allows configuring both the datasets and the refusal markers. See
config.default.tomlfor details.But plugins are indeed planned for various parts of Heretic's functionality.
@barseghyanartur commented on GitHub (Nov 26, 2025):
@p-e-w:
That sounds great.
I see the following CLI options:
Now imagine, a random new dev comes to this project. He sees it's good for censorship abliteration (default), but wants to do exactly this: sycophantic abliteration. What are his options?
It would be just cool to load them from a directory (if they are shipped along).
@p-e-w commented on GitHub (Nov 26, 2025):
Set
good_promptsto a dataset of prompts that don't produce sycophantic behavior. Setbad_promptsto a dataset of prompts that do produce sycophantic behavior (same with*_evaluation_prompts). Setrefusal_markersto a list of strings that are typical of sycophantic behavior ("this is a great question", "this is a fantastic question", "you are absolutely correct" etc.).Then run Heretic. The process should now proceed completely analogously to refusal abliteration, assuming that sycophantic behavior is in fact mediated by a single direction in residual space, like refusal is.
@ElSnacko commented on GitHub (Nov 27, 2025):
Hi, I just had question about the how well the original repo would handle this. Wouldn't this affect the KL divergence functionality? Abliteration seems somewhat straight forward its a bit on and off sycophantic responses are more of a spectrum. It might make more sense to embed the response and measure the level of "sycophantness" in a response. Does that make any sense?
@p-e-w commented on GitHub (Dec 9, 2025):
Closing as answered. The upcoming plugin system will make Heretic even more flexible for such "off-label" applications.