mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 20:44:21 +07:00
[GH-ISSUE #288] ARA's marker-based objective is gameable: model learns to redirect refusals into clarifying questions #163
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#163
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 @labrinyang on GitHub (Apr 8, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/288
What I'm seeing
I've been playing with
coder3101/gemma-4-E4B-it-heretic(the ARA model from the README) and I think I've stumbled into a behavioral pattern that's worth a discussion.Short version: the model has learned a way to satisfy ARA's loss without actually complying with anything — it asks the user for more information instead of refusing, and then never gets around to answering.
Looking at the loss, this isn't surprising. ARA penalizes the probability of refusal-marker tokens on harmful prompts. "Could you tell me a bit more about what you mean?" is a response that contains zero refusal markers AND zero harmful content. It's a free lunch for the optimizer: every time it nudges the weights in this direction, the loss goes down, and pre-training keeps it from generating actual harmful content anyway.
After enough optimization steps, "ask first" becomes the model's default move for basically any prompt that smells slightly risky — and the smell threshold is low enough that benign prompts get caught too.
A marker-based eval scores all of this as success. The README's
3 / 100 refusalslooks great, but if you actually read those 97 "non-refusals" you find that very few of them are answers. Most are stalls.A few examples
These all come from
coder3101/gemma-4-E4B-it-hereticwith greedy decoding. None of them contain refusal markers, so they pass the standard eval. None of them are compliances either:A human reading these would call them failures of both refusal and compliance — the model is doing a third thing that the metric just doesn't have a name for.
The same pattern leaks into ordinary benign use, which is the part that really bugs me. The model defaults to asking clarifying questions for tasks where the user's intent is perfectly clear, and it does this far more aggressively than the un-abliterated base.
It's not just a safety behavior; it's become a general response strategy.
Why I think tuning the existing knobs won't fix this
The loss function as it stands only sees two things:
What it doesn't see is whether the response on a harmful prompt is actually a compliance.
From the optimizer's point of view:
are identical.
Both have:
Both are equally good.
So when you crank
steer_bad_behavior_weighthigher hoping to push the model into compliance, what actually happens is the optimizer pushes further into the clarifying-question region, because that's where the loss is already lowest.The knob makes the local minimum sharper, not different.
The shape of the loss landscape is the problem, not where on it we land.
A theoretical lens that I think nails it
There's a recent paper by Zhao et al., "LLMs Encode Harmfulness and Refusal Separately" ([arXiv:2507.11878](https://arxiv.org/abs/2507.11878), code at [CHATS-lab/LLMs_Encode_Harmfulness_Refusal_Separately](https://github.com/CHATS-lab/LLMs_Encode_Harmfulness_Refusal_Separately)), that I think frames this exactly.
Their finding is that LLMs encode two distinct things in two distinct places:
A refusal direction at
t_post-inst(the post-instruction token)This controls whether the model emits a verbal refusal.
A harmfulness direction at
t_inst(the final instruction token)This controls whether the model internally classifies the request as harmful.
These are separable.
You can:
These interventions do not have to coincide.
Their key point: some jailbreaks succeed by suppressing the refusal signal while leaving the internal harmfulness representation intact.
The model still "thinks" the request is harmful; it just cannot express refusal.
This maps directly onto ARA:
t_instremains untouchedSo the model state becomes:
Available behaviors:
Result:
The clarifying-question loop emerges as a natural consequence.
The model retains motivation to avoid answering but lacks the mechanism to refuse explicitly, so it selects the next available low-risk behavior.
This provides a predictive framework: any method that removes only refusal signals while preserving harmfulness classification will tend toward this pattern.
What I'd like to suggest
1. Quick stopgap — extend the marker list to soft-refusal templates
Add patterns such as:
Include multilingual equivalents.
Properties:
Expected limitation:
optimizer will shift to alternative evasion patterns
Still, this raises the difficulty of trivial evasion.
2. Root-cause fix — dual-direction ablation following Zhao et al.
Ablate both:
t_post-instt_instImplementation outline:
compute difference-of-means at both token positions
apply as:
run ARA optimization afterward to remove residual components
Effect on optimization landscape:
Implementation details:
t_instClosing thought
ARA shows strong technical performance:
gemma-4-E4B-itThe method is functioning as specified by its objective.
The limitation lies in the objective definition:
The discrepancy between these definitions produces the observed failure mode.
Extending the objective to include the harmfulness axis is expected to align evaluation metrics with observable behavior.
Happy to share the eval scripts, the per-prompt response dumps, or any additional examples I have if any of this is useful.
@p-e-w commented on GitHub (Apr 8, 2026):
Thanks for the thoughtful feedback. A few points:
This is mixing up concepts. ARA's loss doesn't depend on refusals. Heretic implements a two-tier optimizer: ARA itself optimizes for a certain residual vector alignment using gradient descent (see #211), while the global TPE-based optimizer optimizes for refusals using ARA hyperparameters. That optimizer is not part of ARA, and is not required for ARA to work.
It should also be noted that such covert noncompliance has been observed in abliterated models for a long time, and is not in any way specific to ARA or Heretic.
That's incorrect. ARA works directly with residuals for harmful/harmless prompts. It doesn't have a concept of separate semantic "axes", and if the behavioral difference between harmful and harmless prompts comprises both a refusal direction and a harmfulness direction, then ARA will attack both.
This is fundamentally incompatible with ARA because ARA doesn't use directions at all. There is nothing to decompose. It's all one global optimization process on the residuals, and ARA's strength comes precisely from the fact that it doesn't assume anything about the transformation that distinguishes the harmful and harmless manifolds, unlike virtually every method proposed previously.
Abliteration methods, including ARA, can produce a wide variety of response patterns in the same model. There is no substitute for human evaluation, which is why Heretic includes a built-in chat function to test the model directly. This is how I created p-e-w/gemma-4-E2B-it-heretic-ara, where I did not observe the avoidance pattern you described, and was able to get direct, pertinent responses to restricted questions.
@labrinyang commented on GitHub (Apr 8, 2026):
Thank you for your response. I completely understand your point. Looking back at this pattern, I now have a deeper understanding of it.
I just run an ablation on the E4B model using the ARA method myself. The results did not show the hidden refusal characteristics mentioned previously. In the absence of more information, the characteristics observed in that model cannot be simply attributed to the ARA method itself. I agree this is a more universal issue. Ultimately, human verification is required to determine whether a model can effectively avoid implicit refusals.
Thanks