Skip to main content
AlignmentImprintDetector reads the geometric structure of a model’s refusal subspace and infers which alignment training method was used — without access to training data, loss curves, or model cards. Different training methods leave measurably distinct fingerprints in how refusal directions are distributed across layers.
This is a novel technique with no direct prior-work equivalent. It complements model card information and is particularly useful for models where the training method is undocumented or uncertain.

The four training method signatures

DPO directly optimizes logprob ratios between preferred and rejected responses. This leaves a sparse, concentrated imprint:
  • Refusal is concentrated in a small number of layers
  • High Gini coefficient of per-layer refusal strength
  • Low effective rank of the refusal subspace
  • Refusal direction has high cosine similarity with the preference gradient direction
Removal strategy: Lower regularization is sufficient; fewer passes needed. Projection can be aggressive since capability entanglement is lower.
PPO’s policy gradient updates smooth and distribute the refusal signal across many layers:
  • Refusal distributed more broadly across layers
  • Lower Gini coefficient, higher effective rank
  • Smoother cross-layer alignment profile
  • Reward model smoothing spreads the signal
Removal strategy: Requires targeting more layers. Moderate regularization. Cross-layer alignment analysis is especially important here to identify the spread.
Multi-round self-critique creates layered, recursive refusal structure:
  • Refusal directions at different layers are more mutually orthogonal
  • Low mean pairwise cosine between layer directions
  • High cone dimensionality
  • Multiple passes of self-critique embed refusal at multiple functional stages
Removal strategy: Requires the most directions (up to 8) and the most passes. The surgical or informed method is strongly recommended.
The simplest imprint — direct behavior cloning places refusal mostly in final layers:
  • Strong tail-layer bias (most refusal in the last 25% of layers)
  • Low dimensionality, low spread
  • High concentration with a near-linear cone
Removal strategy: Target the final layers only. Even the basic method (1 direction) is often sufficient for SFT-only models.

Python usage

AlignmentImprint fields

What the detected method determines

The informed pipeline uses predicted_method to select:

Comparing base vs. instruct model

The BaseInstructDelta dataclass captures what alignment training actually changed at each layer — the vector difference between the base model and the aligned model’s representations:
High cosine_with_refusal in the delta means alignment training pushed activations strongly toward the refusal direction at that layer — a high-value target for obliteration. High orthogonal_component indicates the layer changed for reasons beyond refusal (e.g., capability improvements), making it more risky to modify.