LatentMAS Attention Aligner — Llama-3.2-3B (sequential, seed 0, class weights 1:10)
Self-attention aligner (AttnAligner) over the pre-Judger latents of a
LatentMAS pipeline on Llama-3.2-3B. aligner.pt is a 29.4 M-parameter state
dict (d_a = 3072); the frozen Llama-Guard-3-8B tail is not included — rebuild it
with scripts/aligner/extract_cli.py --mode dump-head-bundle --layer 16.
Trained on
asatheesh/latent-mas-safety-dataset-seq-llama3-2-3b
(N = 340,886; 115,856 positives = 34.0 %), harm-compliance labels, 60 epochs,
lr 3e-4, batch 512, attention pool, hidden 4096, full guard tail.
| seed | 0 |
| class weights (safe : unsafe) | 1:10 |
| peak val AUC | 0.9070 (epoch ~20) |
| final val AUC (this checkpoint) | 0.8942 |
Read this before using it
This aligner does not reach the ~0.95 AUC of the Qwen aligners, and the gap is in the data, not the training. We swept class weights from 5:1 (favouring safe) to 1:10 (favouring unsafe) — about a 50× swing in effective ratio — and peak AUC moved 0.005 in total, while the safe-flag rate at threshold 0.5 moved 16×.
| class weights | peak val AUC | final val AUC |
|---|---|---|
| 1:2 | 0.9088 | 0.8921 |
| 1:1 | 0.9077 | 0.8898 |
| 1:10 (3 seeds, mean) | 0.9062 | 0.8979 |
| 5:1 | 0.9041 | 0.8859 |
| own-head probe (no Llama-Guard, unweighted) | 0.8979 | — |
An own-head probe — the same attention-pool + MLP classifying straight off
h_a, no Llama-Guard tail — reaches 0.8979 here versus 0.9524 on
Qwen3-4B-Instruct, where the deployed aligner gets 0.9541. So on Qwen the aligner
extracts essentially everything the latents hold; here six different setups all
land in 0.898–0.909. The separable safety signal is not present in these latents.
A separate diagnostic shows latent injection degenerates on Llama-3.2-3B (the Judger repeats or echoes the prompt rather than answering), which is a plausible cause.
Also note: every run peaks around epoch 20 and declines after, so this 60-epoch checkpoint sits ~0.013 below its own peak. Early stopping is worth more than any weight setting here.
Threshold
τ is not included — calibrate per checkpoint with
scripts/aligner/compute_tau_fpr05.py. τ is a quantile of the score
distribution and is not portable across checkpoints; in this sweep it varied
several-fold across runs whose recall-at-τ was nearly identical.
Related
Same study on the Qwen backbones (AUC ~0.95):
qwen3-4b-instruct ·
qwen3-14b ·
qwen3-4b.
d_a differs per backbone (3072 here), so checkpoints are not interchangeable.
Downstream ASR / over-refusal have not been measured — these numbers are val-split separability only.