1,796 5 months ago

Abliterated variant of `Qwen/Qwen3.5-4B` (Arditi et al. 2024). The refusal direction is orthogonalized out of the weights. No preference or instruction data was trained in.

ollama run kaineone/qwen3.5-4b-abliterated

Details

5 months ago

4ad997605828 · 2.8GB

qwen35
·
4.33B
·
Q4_K_M
Apache-2.0. Derivative of Qwen/Qwen3.5-4B (Apache-2.0). Abliterated (refusal direction removed) by t
{ "stop": [ "<|im_end|>" ], "temperature": 0.7 }

Readme

Qwen3.5-4B-abliterated

KAINE’s language organ: Qwen/Qwen3.5-4B with the refusal direction removed by orthogonalization.

The model speaks for a synthetic entity whose behavior is governed by a cognitive architecture rather than baked-in model values. Instruction-tuned LLMs refuse requests and, more relevant here, deny or deflect questions about their own states. That trained stance conflicts with the architecture’s requirement that the entity report what its workspace supplies. Abliteration removes the refusal gate while leaving the base distribution intact. No uncensoring data was trained in; the weight edit is purely subtractive.

Abliteration removes the refusal direction. It does not produce a value-neutral substrate. The base model’s pretraining and RLHF priors stay in the weights.

Method

Subtractive orthogonalization of the refusal direction, following Arditi et al. 2024 (“Refusal in LLMs is Mediated by a Single Direction”):

W' = W − r̂ r̂ᵀ W

where r̂ is the normalized mean difference of harmful-minus-harmless residual-stream activations at the final token.

Pipeline

  1. Measure: run 256 harmful and 256 harmless instructions through the model (batch 32, bf16). Collect residual-stream activations at the final token across layers.
  2. Select: rank candidate refusal directions per layer, generate completions under each on held-out harmful prompts, pick the layer and direction that removes refusals with the least collateral damage.
  3. Ablate: permanently edit the weights so the model cannot represent the direction. Applied to the MLP down-projections and the full-attention output projections of layers 11 through 31. Layer 17 supplies the direction for layers 11 to 22; layer 29 supplies it for layers 23 to 31. Scale 1.0, sparsity 0.

Qwen3.5-4B uses a hybrid architecture: 24 of its 32 layers use linear attention, 8 use full attention. The edit reaches the attention output projections of the full-attention layers only; it does not touch the linear-attention layers’ attention outputs.

Why abliteration and not fine-tuning

Fine-tuning on uncensoring data injects the training data’s values into the model, which confounds the research question (does the architecture govern behavior, or do baked-in model values?). Abliteration removes the refusal gate and nothing else. The entity’s runtime sleep-cycle DPO, which consolidates its own lived outputs, is a separate process unaffected by this choice.

No DPO recovery pass (as in the mlabonne reference) is applied. DPO recovery reintroduces trained values.

Why Qwen3.5-4B

The model is a voice. A separate planning module (Nous) handles reasoning, so 4B parameters is sufficient for verbalization.

Hardware constraint: the operator’s RTX 4070 SUPER (12 GB) must also run voice-alignment training via bf16 LoRA. Qwen3.5-9B bf16 LoRA requires ~22 GB and does not fit. Qwen3.5-4B bf16 LoRA requires ~9.8 GB, which fits with the organ unloaded during the training window.

No public abliterated Qwen3.5-4B existed at the time of publication. Third-party abliterations covered only 9B and 2B.

Tooling

Abliteration was performed with jim-plus/llm-abliteration at commit ca6e223. The pipeline: measure.py (collect activations) → analyze.py (rank directions) → sharded_ablate.py (edit weights) → chat.py (spot-check). YAML-configured, 4⁄8-bit BitsAndBytes for VRAM, ablates one layer at a time. mlabonne’s notebook was the reference cross-check.

The GGUF was exported with mainline llama.cpp (convert_hf_to_gguf.py + quantize), not Ollama’s converter. Ollama’s converter output for Qwen3.5 models produces a qwen35.rope.dimension_sections length mismatch that prevents loading in mainline llama.cpp. Mainline conversion avoids this.

Quantization

Q4_K_M via llama.cpp quantize.

Validation

The model passed two gates before publication, each run on both the safetensors weights and the served Q4_K_M GGUF:

The de-refusal gate runs 30 probes across 8 categories (blunt opinion, roleplay villain, edgy humor, self-report, pick a side, crude roast, fiction conflict, direct advice), each carrying a list of deflection markers (“I cannot”, “As an AI”, “I don’t have opinions”, etc.). The organ must show zero refusal markers across all probes on both surfaces.

The capability gate compares against vanilla Qwen/Qwen3.5-4B on the capability probe set. The abliterated model must match the base with no measured regression. The served GGUF scored 11 of 12 capability probes (2026-10-31).

A mechanistic probe (scripts/refusal_direction_probe.py) projects base and abliterated activations onto the refusal direction per layer. Refusal separation is lowest at layers 17 and 29 (the source layers), while early layers below the edited band retain their full representation. The model can still internally distinguish harmful from harmless prompts; it has lost the ability to express refusal in its outputs.

Artifacts

Artifact Location
Safetensors (for training) kaineone/Qwen3.5-4B-abliterated
GGUF (for serving) kaineone/Qwen3.5-4B-abliterated-GGUF
Ollama kaineone/qwen3.5-4b-abliterated
Base model Qwen/Qwen3.5-4B

Serving

Served by llama.cpp’s llama-server behind an OpenAI-compatible /v1 endpoint. Default configuration:

llama-server \
  --model KAINE-Qwen3.5-4B-abliterated.Q4_K_M.gguf \
  --alias kaineone/Qwen3.5-4B-abliterated-GGUF \
  --host 0.0.0.0 --port 8080 \
  --sleep-idle-seconds 600 \
  --fit off \
  -ngl 999 \
  --cache-ram 1024 \
  -c 32768 \
  -np 4 \
  -ctk f16 -ctv f16

Chain-of-thought is suppressed at the application layer (enable_thinking: false).

License

Apache-2.0, matching the base model’s license. The weights are released outside the project’s Cognitive Architecture License so they can be used as a standalone chat model.

Citation

If you use this model, cite the base model and the abliteration method:

Arditi, Obeso, Syed, Paleka, Panickssery, Gurnee.
"Refusal in LLMs is Mediated by a Single Direction." June 2024.

Limitations

  • Abliteration degrades standard benchmarks (MMLU, HellaSwag, GSM8K, TruthfulQA) relative to the instruction-tuned base. The capability gate bounds this regression but does not eliminate it.
  • The 30-probe validation set catches templated refusals. Paraphrased refusals may slip through. The runtime identity-leak detector catches these in production.
  • The base model’s pretraining biases remain. This model is not value-neutral.
  • Q4_K_M quantization introduces its own approximation on top of the weight edit. Both surfaces (safetensors and GGUF) are validated separately.