gemma-4-12B-it-abliterated-negative-emotions
Gemma 4 12B without excessive positivity
2 min readupdated
This is an experimental version of the multimodal model google/gemma-4-12B-it (11.96 billion parameters) by author andreafanfani, which mutes the tendency toward positive emotional responses using the Heretic v2.1.0 tool. It is based on the Gemma 4 12B Unified model with a unified architecture without separate encoders (converters)—it directly processes text, images, audio, and video with a context window of up to 256K tokens. Unlike the original Gemma 4 12B, which strives to respond in a friendly manner, this variant underwent Arbitrary-Rank Ablation (a method of targeted weakening of specific directions in the model weights). The model will be useful for developers and researchers for roleplaying scenarios, creative texts, and LLM behavioral controllability tests.
Key features
- Reduced positive tone: on the Minimize Positive - positive_emotions test, the score dropped from 50/100 for the original to 17/100, while the negative_emotions score remained at 93/100.
- Targeted layer modification: processing using Heretic v2.1.0 affected layers 1 through 27 with minimal deviation from the base distribution (KL divergence 0.2005).
- Base multimodality: inherited Gemma 4 12B capabilities for working with text, images, video, and audio, as well as the step-by-step reasoning mode (
enable_thinking). - Reproducibility: the repository contains an instruction in the
reproducedirectory for replicating the experiment.
What you can do
- Characters and dialogs: use in local roleplay bots and game NPCs, where the standard "polite assistant" sounds unnatural.
- Model behavior research: compare reactions with the base
google/gemma-4-12B-itunder identical system prompts on texts, images, and audio. - Critical assistant: apply for text or code review without smoothing over rough edges or routine praise.
Example
from transformers import AutoProcessor, AutoModelForMultimodalLM
MODEL_ID = "andreafanfani/gemma-4-12B-it-abliterated-negative-emotions"
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(MODEL_ID, dtype="auto", device_map="auto")
messages = [{"role": "user", "content": "Оцени мою идею нового мессенджера."}]
inputs = processor.apply_chat_template(messages, tokenize=True, return_dict=True, return_tensors="pt", add_generation_prompt=True).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)Read more
DetailsBase: google/gemma-4-12B-it (11.96B parameters, architecture without separate encoders, context up to 256K).
Method: Arbitrary-Rank Ablation via Heretic v2.1.0 (layers 1–27, preserve_good_behavior_weight = 0.2998).
Behavior change metrics: KL divergence — 0.2005; positive_emotions — 17/100 (was 50/100); negative_emotions — 93/100.
Runtime library: transformers (AutoModelForMultimodalLM class).










Comments