r/StableDiffusion • • Oct 29 '26

Comparison Krea 2 and Minimax H3 Text Encoder Comparison: What Impact Do Abliterated Text Encoders Really Have?

TL;DR: Using an abliterated model as a text encoder is basically fine.

Here are the galleries, each image contains the standard TE vs the abliterated one, the videos are separate because I was too lazy to edit them together.

70 Simple prompts run through Krea2 without bypass LORA.

10 longer more complex prompts run through KRea2 without bypass LORA.

18 naughty prompts run through Krea2 without bypass LORA (images probably safe, text unsafe, better to be cautious).

17 Prompts run through Minimax H3, 5 long and decent quality (for my machine), 12 short randomly generated prompts (Workflows attached if you want prompts)


Everyone has probably already seen the author of heretic's post here a couple months ago, but if not, here it is: PSA: I’m the creator of Heretic, and I advise you to not use “heretic” models as text encoders for H3 (or any other model)

For the lazy, the main gist of the post is "Abliterated text encoders will not uncensor an image/video model." This is a true fact, and my tests prove it outright.

Unfortunately, the author underestimated how much people love an appeal to authority when it comes to confirming their biases, so they took a throwaway line from that post and ran with it. The line in question was: "Well, I’m the creator of Heretic, and I’m here to tell you once and for all that this does NOT work. In fact, if anything, it will make your outputs worse, but it will not uncensor them." (emphasis mine)

I appreciate the sentiment the author was trying to get across, but image/video gen models aren't LLMs and the output can't be measured with scores and benchmarks like an LLM can. What does "worse" even mean when it comes to image/video gen?

Every time someone suggests using a heretic model there's always someone replying with some form of "it'll make your image worse / it'll degrade the output / it's wrong.", and there's never any testing or examples or proof of their claims, just pointing to the aforementioned post and that one throwaway line made by someone whose expertise isn't in image gen and was used as emphasis instead of a declaration of fact.

Now, feel free to point at all 115 of my Heretic examples and say "Aha! These are all clearly worse!", but carry that same energy when someone suggests using a quantized model, because they have an equal to much greater impact on the "quality" than anything abliteration can do to the text encoding. For those not familiar with the impact of quantization, example 1, example 2, example 3.

Finally, while abliterated models have minimal impact, that works both ways, they barely affect the gens either positively or negatively. Thus the only reason you'd want to use one as a text encoder is if you're memory poor and want to expand a prompt and encode text in the same workflow.

If you've got 128gb ram and 32gb vram you can afford to run an extra model or three, but if you've got 32gb / 8gb and want to expand a Minimax H3 prompt, using an abliterated model for both jobs is a perfectly acceptable choice. One model is half the size of two models, and an abliterated model is far better at doing both prompt expansion and encoding jobs than a standard model, especially if you're venturing into territory that would make a normal model refuse.


I've been tinkering and messing with different TEs for a while, the results just haven't been interesting enough to share on their own, but I reckon i can tack them on here if anyone is interested; I ran 8 finetuned Qwen models through Z-Image Turbo, and I used differently trained Clip_L models with Flux.1-dev, both ripped from finetuned SDXL models or clip_l architecture trained with an entirely different dataset from the ground up.

Even using actual finetuned LLMs for text encoding doesn't change a hell of a lot in the final image, especially with a more detailed prompt, so it stands to reason tiny targeted tunes like abliteration and heretic will do even less. The testing I've done seems to bear out that hypothesis, but feel free to add your own comparisons, I'd be mighty curious if anyone could reliably produce a "worse" ouptut using an abliterated TE.

120 Upvotes

50 comments sorted by

View all comments

Show parent comment

5

u/-p-e-w- Oct 29 '26 edited Oct 29 '26

Hey, “Heretic guy” here :)

FWIW, I like your post, and I appreciate the effort to inject some empiricism into this topic.

One of many complexities I didn’t mention in my infamous post is that Heretic (and most other modern ablation processes) targets layer ranges/groups, not necessarily every transformer block. On the other hand, image/video generation models are typically trained to use the residuals from a mid-to-late encoder layer as inputs. For example, H3 uses layer 50 out of 64.

Combining these facts, you can get situations where the ablated modules follow the target layer in the transformer stack, and using an abliterated model encodes exactly the same relevant residual space information as the original model. In other words, it makes literally no difference at all.

In practice, the truth will usually be somewhere in between, and any observable degradation will be highly dependent on how all these things interact.

1

u/afinalsin Oct 30 '26

Hey, “Heretic guy” here :)

FWIW, I like your post, and I appreciate the effort to inject some empiricism into this topic.

Thanks, I appreciate it. I was going back and forth on whether to specifically name you in the main body, but I really didn't want to seem like I was putting you specifically on blast, so I stuck with the more informal "the author of heretic". I put less care into comments than posts so went with heretic guy haha.

"Clout" may seem rude too, so I apologize if that was offensive, its just you have a well-earned reputation in the AI community, you're very clearly educated in the field, and your words carry weight. It seemed a good word to sum it up.

One of many complexities I didn’t mention in my infamous post is that Heretic (and most other modern ablation processes) targets layer ranges/groups, not necessarily every transformer block. On the other hand, image/video generation models are typically trained to use the residuals from a mid-to-late encoder layer as inputs. For example, H3 uses layer 50 out of 64.

I wanna be clear I agree with pretty much that entire post outside of the one sentence I mentioned, this post is as much in response to certain types using your words as a bludgeon as anything else.

I can see why you wouldn't have went deep like that in your post, it's interesting stuff but you'd have to add a caveat for every model currently out and every model yet to be released. It really would have muddied the waters of your actual message, which was mostly about it doing jack for uncensoring knowledge in the image model.

In practice, the truth will usually be somewhere in between, and any observable degradation will be highly dependent on how all these things interact.

True, image gen has a ton of things interacting and contributing to the final generation, and little tweaks here and there can change the result a fair bit.

I do have a question, if you don't mind. When you say "degradation" here and "make things worse" in the original post, my interpretation of those terms is you are referring to any change at all from the full unquantized base model. Whether those changes are desirable or not is highly dependent on prompt and seed, obviously, but either way they would all be labeled as degradation away from the base.

Basically I'm assuming there is a specific meaning to the terms that differ from common English, where the words are almost always used negatively. Am I correct in that interpretation?

2

u/-p-e-w- Oct 30 '26

So, if an abliterated model does change the output (which it certainly can for H3, I’ve observed that myself), then on average, it will be a negative change, likely in terms of prompt adherence.

The reason is that since the encoded residuals aren’t changed in a way that is relevant to the generator, we should expect them to randomly perturb the output, and with a calibrated system, “random” is almost always disruptive rather than curative. Just like randomly mutating someone’s DNA is far more likely to give them cancer than superpowers.

In many or most cases, a human may not perceive a semantic degradation, but if you show them enough examples, the ones that degrade will outweigh the ones that improve. Given what we do to the model, it would be an incomprehensible miracle if it were otherwise.

1

u/afinalsin Oct 30 '26

So, if an abliterated model does change the output (which it certainly can for H3, I’ve observed that myself), then on average, it will be a negative change, likely in terms of prompt adherence.

The reason is that since the encoded residuals aren’t changed in a way that is relevant to the generator, we should expect them to randomly perturb the output, and with a calibrated system, “random” is almost always disruptive rather than curative. Just like randomly mutating someone’s DNA is far more likely to give them cancer than superpowers.

Interestingly, with image gen there has been big push toward randomness and variance in the last year or so, and several techniques are based around deliberately perturbing the embeddings, especially during the high noise steps. Adherence can dip, but that dip is actually desirable in the generation.

Reason being is distilled models idea of "adherence" is rigidly sticking to their biases, and injecting randomness can help break them away from generating the same image over and over.

In many or most cases, a human may not perceive a semantic degradation, but if you show them enough examples, the ones that degrade will outweigh the ones that improve. Given what we do to the model, it would be an incomprehensible miracle if it were otherwise.

What you're saying is logical and you may be right that degradation would be proven over a large enough dataset; I know I certainly didn't provide enough examples to categorically state one way or the other. In my opinion "degrade" and "improve" are nebulous when talking about art and images, which are much harder to quantify than with text. "There are no right answers" is infuriatingly trite, but I feel it fits here.

Anyway, we're both talking about hypotheticals and geeking out over percentage points of difference over massive datasets, but I think your first sentence here is the most important in a practical sense. Practically, how likely is any possible degradation going to affect the end user? And if a human wouldn't notice a difference in most cases, is it worth staying away to save themself from that 1%?

That's probably more of a philosophical discussion than a scientific one, but still, a lot of folk using these models are results oriented, and it's an important factor to consider when making recommendations to them.