Abliteration HandbookField guide
Technique atlas

T36 — COSMIC refusal-direction identification

Siu et al., ACL 2025 Findings: COSMIC: Generalized Refusal Direction Identification. PDF: ../sources/research/papers/arxiv-2506.00085.pdf. Code: wang-research-lab/COSMIC.

2 min read 0 examples Source-linked

In this chapter
On this page Interactive companion
Personal reading progress

0/4 sections reviewed

View original Markdown
Interactive companion

Explore the geometry

Use the visual controls alongside the complete source chapter.

Siu et al., ACL 2025 Findings: COSMIC: Generalized Refusal Direction Identification. PDF: ../sources/research/papers/arxiv-2506.00085.pdf. Code: wang-research-lab/COSMIC.

One sentence: pick r and the target layer with cosine similarity in activation space, without reading “I cannot” (or any refusal template) from generated tokens.

Method steps: ../methods/cosmic-direction-id.md.


Problem it solves#

Classic recipes (Arditi, Heretic refusal markers, FailSpy scorers) assume you can see refusal in the output — a string list (I'm sorry, I cannot, …). That fails when:

  • The model is weakly aligned (hedges, partial answers, no template)
  • You ablate a thinking model whose refusal lives in CoT, then gets stripped
  • You work in a language whose markers you did not list (refusal-marker-tuning.md helps, COSMIC does not need it)
  • You want to induce refusal (steer toward safety) on a base model

COSMIC is output-independent: it scores candidate directions by how they invert or separate concepts in hidden states.


Idea#

  1. Cache residual activations on a contrast set (harmful vs harmless prompts) at every layer.
  2. Build candidate directions (DIM, PCA, per-layer differences).
  3. Score each candidate by cosine structure (how cleanly it separates the two clouds; how inverting it swaps neighborhoods).
  4. Select (layer*, r*) that maximizes the COSMIC score.
  5. Ablate or steer with any baker (Heretic, hooks, apply-weight-abliteration.py).

COSMIC does not replace weight surgery. It replaces “which vector and which layer.”


When to use#

Use COSMICStay on Heretic DIM
Marker list is empty / multilingual unknownEnglish instruct model, default markers work
Weakly aligned or base checkpointStrong RLHF/DPO chat model
You need to add refusal ( Latent Guard / steer-to-safe )You only want to remove factory false-refusal
Adversarial prompts hide the templateStandard harmful_behaviors measure

Pairing#

Trace this chapter to its source.

The complete Markdown remains the editable source. This page adds navigation, typography, and a visual companion.

techniques/cosmic-refusal-direction.md
Inspect the source fingerprintSHA-256 647220618aefb0816b7efd2aa0b3d73872425f418e29d75b4024035dfc7d170fSource commit 6fba7436a5914cad7c8f0835a14b480a29dac263