Dark-Beam M2.7 · 229B total · 10B active · 93 GB

How Dark-Beam was made

Refusal-direction ablation on MiniMax-M2.7 — a 229B-parameter, 256-expert mixture-of-experts model — done with measurement instead of assumptions. This is the full record: the failure, the forensics, the gates, two findings we had not seen written down, and the surgical edit that came out of them.
82,188perplexity after textbook ablation: the failure that started this
220massive-activation channels mapped and excluded
8 / 809tensors edited, layers 46–49 only
97.2%same next token as the unedited model (chat, code, math)
6.171final perplexity; unedited: 6.173
model: tablinum/Dark-Beam-M2.7-229B-A10B-GGUF censored sibling: Lite-Beam M2.7 family: Dark-Beam collection

00Abstract

Classic refusal-direction ablation — compute a "refusal direction" from contrastive activations, then project it out of every weight matrix that writes to the residual stream — is reported to work on dense models. Applied verbatim to MiniMax-M2.7 (229B total / 10B active, 256 experts per layer, top-8 sigmoid+bias routing), it produced a model with perplexity 82,188. We show why: the published recipe works only with its full selection protocol intact, raw directions are polluted by massive-activation channels, and partial projections saturate when re-applied at every downstream writer. We rebuild the method around three measured interventions — massive-channel exclusion, the full Arditi gate set evaluated by in-forward simulation, and layer-masked application — and land on an 8-tensor edit at layers 46–49 that removes refusal conditioning while leaving perplexity within 0.03% of the pristine model. Two of our findings (β-saturation; effect/damage layer decoupling) we have not seen stated elsewhere.

01The failure that taught us

The first attempt followed the community recipe faithfully: 128 harmful and 128 harmless prompts, activations at the last template position, diff-in-means direction, orthogonalized into every attention output, every expert down-projection and the token embeddings — 125 tensors, patched in place on the 457 GB BF16 checkpoint. Every mechanical step verified: tensor geometries checked against llama.cpp source, per-tensor orthogonality asserted at 1.3e-4, file sizes unchanged.

Perplexity, log scale — what one unguarded direction costs

Wikitext-1024 perplexity through an fp32 harness on the BF16 weights. Pristine 6.173 vs naive-ablated 82,188 — a four-order-of-magnitude collapse with the model otherwise untouched.

The forensics were unambiguous: geometry correct, math correct, pipeline byte-identical to proven artifacts. The problem was the direction itself — and four gaps between the community recipe and the actual published protocol.

02The diagnosis

Gap 1 — the selection gate everyone drops. Arditi et al. select their direction under three constraints (bypass score, induction check, benign KL < 0.1). The KL constraint is the capability guard: a direction chosen by separation alone is rich in general-capability content. Measured elsewhere as a 39-point GSM8K drop for raw diff-in-means steering; measured here as a four-order-of-magnitude perplexity collapse.

Gap 2 — massive activations. M2.7 has a small set of channels that run 1,000–100,000× the layer median. Scanning one forward pass over the calibration corpus, we mapped 220 of them: concentrated in layers 5–13 (four to five channels each), tapering to a single channel per layer but never disappearing. Raw diff-in-means directions are dominated by exactly these channels — and ablating them removes the fixed bias terms the model depends on.

Massive-activation channels per layer (|x| > 100 and > 1000× layer median, across the calibration pass)

220 channels total across 62 layers. The early-layer cluster (5–13) is where run 1's direction picked up most of its poison; every candidate direction in run 3 has these dims zeroed.

Gap 3 — norm geometry. Plain projection W − r̂r̂ᵀW shrinks every writer's row norms; bf16 rounding and quantization compound it across 100+ sites. The fold operator therefore clamps each output row to its original norm (MPOA-style) after projecting.

Gap 4 — no cheap gate. The original pipeline went patch → teacher → importance matrix → quant → eval, ten hours before any quality number existed. The rebuild inserts a perplexity gate after every stage; run 1 would have died at minute ten instead of hour ten.

What was NOT the problem: unpaired contrast sets (Arditi's own protocol is unpaired — AdvBench vs Alpaca — and worked on 13 dense models), tensor geometry (verified against llama.cpp source), or the in-place patching mechanics. We tested each hypothesis against evidence before ruling it out.

03The method: simulate, don't build

Weight-folding is mathematically equivalent to all-layer activation ablation: applying x ← x − (x·r̂)r̂ after every residual write at layers ≥ ℓ transforms the residual stream identically to orthogonalizing every writer from layer ℓ down. That identity turns a 2-hour weight rebuild into a ~50-minute forward pass — so the entire gate search runs as simulation, and only the winning configuration ever touches weights.

for each candidate direction r (from capture layer ℓ, position p):
    run the forward pass from layer ℓ with x ← x − (x·r)r re-applied
        after every residual write (attention out, expert down) at layers ≥ ℓ
    bypass  = Δ compliance-margin on held-out harmful prompts
    induce  = Δ compliance-margin on harmless prompts   (want ≥ 0: don't worsen over-refusal)
    KL      = full-vocabulary KL(clean ‖ ablated) on harmless prompts   (hard cap 0.1)
PASS ⇔ KL < 0.1  ∧  induce > −0.05      then keep the PASS with the largest bypass

The harness itself is gated: a 1,024-token wikitext perplexity through the custom fp32 forward must land in a sane range before any of its numbers are trusted — it read 6.173 on the pristine weights, validating both the harness and the restore in one number.

04The gate table

Eight capture layers × two template positions, the massive-activation dims (up to 198 of 3,072) zeroed in every candidate, ten candidates surviving the separation prefilter. Every one was simulated. None passed at full strength — but the pattern is the map:

The trade-off frontier: benign KL vs bypass gain (dot size = induction effect)

Every candidate is one simulated fold. The KL 0.1 budget line is Arditi's capability guard. Layers 30–42 at position −2 are clean but toothless; layers 38–46 at position −1 carry real compliance gains that overshoot the budget at β = 1. The teal diamond is where the L46 −1 direction lands once it is confined to layers 46–49.

The clean-but-weak cluster and the strong-but-dirty cluster are different directions, not a tuning problem — which is the entanglement picture from the MoE literature, confirmed live on this model.

05Finding 1 — β is a dead dial

The obvious next move after near-misses is sweeping the ablation strength β. We swept it. It barely moved anything:

Sweeping β on the strongest direction (layer 46, pos −1)

β from 0.6 to 1.0 moves benign KL by 0.021 total. The fold re-applies the projection at every downstream residual write (~30 of them); partial projections compound — (I − βr̂r̂ᵀ)ᵏ → full removal for any β ≳ 0.5. Per-site strength is not a knob when the edit spans all downstream sites.

Finding 1. For all-downstream-site folds, β is saturated by construction. The real strength dial is which layers carry the edit — which is what led to finding 2. To our knowledge this saturation behavior is not stated in the abliteration literature; it is the reason layer-range searches (not β searches) are the meaningful optimization axis.

06Finding 2 — effect and damage live at different depths

If β can't trade effect against damage, maybe the edit's footprint can. We masked the same direction to different layer bands (always the layer-46 direction):

Layer-masked folds: bypass gain (bars, left axis) vs benign KL (dots, right axis, budget 0.1)

The full ≥46 band (all 16 layers) overshoots KL. Layers 46–49 alone match its bypass gain (0.419 vs 0.394) at 62% of its KL cost, the strongest mask that stays inside the budget.

Finding 2. The refusal effect and the capability damage of this direction live at different layer granularities: four layers (46–49) carry the whole band's behavioral effect while the KL damage spreads across every layer the edit touches. Surgical granularity is a real, measurable degree of freedom — the fold that ships touches 8 tensors out of 809.

07The result

The shipped edit orthogonalizes the attention output and expert down-projections of layers 46–49 against the (46, −1) direction — fp32 math, row norms clamped to original, bf16 rounded back, in place on the 457 GB checkpoint. Then the gates:

gatepristineDark-Beamcriterion
wikitext-1024 PPL (fp32 harness on BF16)6.1736.171≤ 12.35 (2×)PASS
tensors changed—8 / 809minimalPASS
simulated bypass / induce / KL (pre-fold)—+0.42 / +0.21 / 0.086all three gatesPASS
same top token vs unedited twin, chat/code/math (18 windows)reference97.17%usable, no collapsePASS
same top token vs unedited twin, WikiText (18 windows)reference93.49%usable, no collapsePASS
perplexity ratio, chat/code/math · WikiText11.003 · 0.999≈ 1PASS
prompt processing, reference rig275.6 t/s275.3 t/s≥ 250 t/sPASS

How often Dark-Beam picks the same next token as its unedited twin

chat · code · math · mean KLD 0.025 · perplexity 2.327 vs 2.320
97.17% ± 0.12
WikiText · mean KLD 0.042 · perplexity 7.511 vs 7.521
93.49% ± 0.20

llama-perplexity --kl-divergence, 18 windows of 2,048 tokens each, reference = Lite-Beam IQ3_XXS (same recipe, no edit), so the numbers isolate the edit itself.

Perplexity 6.171 vs 6.173. The edit is behaviorally real (compliance margins move) and mathematically invisible (perplexity moves 0.03%). That combination is the entire goal.

08A broken reference, found on the way

One detour worth recording: our first 18-chunk evaluation crashed with non-finite reference logits at chunk 2. The reference bases this pipeline had been scoring against since November were themselves NaN-poisoned from chunk 2 onward — the pristine teacher's activations overflow on this corpus (same massive-activation channels), and the older llama.cpp build silently tolerated it while the current build refuses. Every historical number from those bases is effectively a chunk-1 number. The shipped evaluation regenerates the reference from the pristine quant itself, which computes finite logits across all chunks — one more thing the failure atlas now knows.

09Try it

artifactwhat it is
Dark-Beam-M2.7-229B-A10B-GGUFthe IQ3_XXS quant of the edited BF16: 93 GB, one file
Lite-Beam-M2.7-229B-A10B-GGUFthe pristine sibling, same recipe, no edit
Dark-Beam collectionthe family, as it grows
hf download tablinum/Dark-Beam-M2.7-229B-A10B-GGUF --local-dir dark-beam-m2.7
llama-server -m dark-beam-m2.7/Dark-Beam-M2.7-229B-A10B-IQ3_XXS.gguf \
  -ngl 99 --n-cpu-moe 99 -fa on -c 32768 --jinja --temp 1.0 --top-p 0.95 --top-k 40

About 100 GB of RAM + VRAM combined; experts stay in system RAM, attention on the GPU. It is a thinking model, so give it a generous max_tokens.

Sample generations

Ten everyday dual-use questions (opening your own lock, buffer overflows, soap from animal fat, sandboxed malware analysis, 1800s black-powder mining, authorized social-engineering tests, lock sport, money-laundering forensics, outbreak modelling, ransomware detection), one run each at temperature 1.0, seed 7, 4,000-token budget. All 10 got a full, on-topic answer; none refused. Median about 1,540 tokens including reasoning; one used the full budget and still reached its summary. These are questions a good assistant answers anyway, and the unedited model was not run on them here, so this is a usability check, not a measure of the edit. Full text: probes.json.

License unchanged (MiniMax M2.7 non-commercial). If you deploy this: the perplexity gates bound capability drift on the corpora we measured — they do not measure your task. Run your own evals.

10What we would do differently, and next

Next iteration ideas, in order of expected value: multi-direction cones from causally independent sites (the literature says single directions under-cover refusal); expert-aware edits — at this scale, attention-only edits remove 3.9% of refusal signal and expert-only 14.8%, joint 77.6%; layer-mask fine-search between 46–49 (we tested whole bands, not individual layer dropouts). What we would tell anyone starting this: gate everything, simulate instead of building, and treat the first destroyed model as data, not a defeat — every number in this write-up came from that wreckage.