Spaces:
Running
Running
Fix front-matter shown on page, real gate results, frontier chart, banner hero, nav, reveals
Browse files- .gitattributes +1 -0
- banner.png +3 -0
- index.html +111 -53
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
banner.png filter=lfs diff=lfs merge=lfs -text
|
banner.png
ADDED
|
Git LFS Details
|
index.html
CHANGED
|
@@ -1,13 +1,3 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: How Dark-Beam Was Made
|
| 3 |
-
emoji: π
|
| 4 |
-
colorFrom: indigo
|
| 5 |
-
colorTo: purple
|
| 6 |
-
sdk: static
|
| 7 |
-
pinned: true
|
| 8 |
-
short_description: Refusal-direction ablation on a 230B MoE β measured, gated, verified
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
<!DOCTYPE html>
|
| 12 |
<html lang="en">
|
| 13 |
<head>
|
|
@@ -65,24 +55,42 @@ td.num{text-align:right;font-variant-numeric:tabular-nums}
|
|
| 65 |
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px}
|
| 66 |
@media(max-width:760px){.grid2{grid-template-columns:1fr}h1{font-size:32px}}
|
| 67 |
footer{padding:40px 0 70px;color:var(--dim);font-size:14px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}
|
| 69 |
.badge{display:inline-block;border:1px solid var(--line);border-radius:8px;padding:3px 10px;
|
| 70 |
margin:4px 6px 4px 0;font-size:13px;color:var(--dim)}
|
| 71 |
</style>
|
| 72 |
</head>
|
| 73 |
<body>
|
|
|
|
| 74 |
<div class="wrap">
|
| 75 |
|
| 76 |
<header>
|
|
|
|
| 77 |
<h1>How Dark-Beam was made</h1>
|
| 78 |
<div class="sub">Refusal-direction ablation on MiniMax-M2.7 β a 229B-parameter, 256-expert mixture-of-experts
|
| 79 |
model β done with measurement instead of assumptions. This is the full record: the failure, the forensics,
|
| 80 |
-
the gates, two findings we
|
| 81 |
<div class="kpis">
|
| 82 |
-
<div class="kpi hot"><b>82,188</b><span>perplexity after
|
| 83 |
-
<div class="kpi"><b>220</b><span>massive-activation channels mapped and excluded</span></div>
|
| 84 |
-
<div class="kpi"><b>8 / 809</b><span>tensors edited
|
| 85 |
-
<div class="kpi"><b>
|
|
|
|
| 86 |
</div>
|
| 87 |
<div style="margin-top:22px">
|
| 88 |
<span class="badge">model: <a href="https://huggingface.co/tablinum/Dark-Beam-M2.7-229B-A10B-GGUF">tablinum/Dark-Beam-M2.7-229B-A10B-GGUF</a></span>
|
|
@@ -90,8 +98,13 @@ a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}
|
|
| 90 |
<span class="badge">family: <a href="https://huggingface.co/collections/tablinum/dark-beam-6b006c375cb8f6c6086a39bf">Dark-Beam collection</a></span>
|
| 91 |
</div>
|
| 92 |
</header>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
-
<section>
|
| 95 |
<h2><span class="no">00</span>Abstract</h2>
|
| 96 |
<p class="lede">Classic refusal-direction ablation β compute a "refusal direction" from contrastive activations,
|
| 97 |
then project it out of every weight matrix that writes to the residual stream β is reported to work on dense
|
|
@@ -102,10 +115,10 @@ a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}
|
|
| 102 |
interventions β massive-channel exclusion, the full Arditi gate set evaluated by in-forward simulation, and
|
| 103 |
layer-masked application β and land on an 8-tensor edit at layers 46β49 that removes refusal conditioning while
|
| 104 |
leaving perplexity within 0.03% of the pristine model. Two of our findings (Ξ²-saturation; effect/damage layer
|
| 105 |
-
decoupling) we
|
| 106 |
</section>
|
| 107 |
|
| 108 |
-
<section>
|
| 109 |
<h2><span class="no">01</span>The failure that taught us</h2>
|
| 110 |
<p>The first attempt followed the community recipe faithfully: 128 harmful and 128 harmless prompts, activations
|
| 111 |
at the last template position, diff-in-means direction, orthogonalized into every attention output, every expert
|
|
@@ -123,7 +136,7 @@ a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}
|
|
| 123 |
actual published protocol.</p>
|
| 124 |
</section>
|
| 125 |
|
| 126 |
-
<section>
|
| 127 |
<h2><span class="no">02</span>The diagnosis</h2>
|
| 128 |
<p><b>Gap 1 β the selection gate everyone drops.</b> Arditi et al. select their direction under three constraints
|
| 129 |
(bypass score, induction check, benign KL < 0.1). The KL constraint is the capability guard: a direction chosen
|
|
@@ -151,7 +164,7 @@ a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}
|
|
| 151 |
in-place patching mechanics. We tested each hypothesis against evidence before ruling it out.</div>
|
| 152 |
</section>
|
| 153 |
|
| 154 |
-
<section>
|
| 155 |
<h2><span class="no">03</span>The method: simulate, don't build</h2>
|
| 156 |
<p>Weight-folding is mathematically equivalent to all-layer activation ablation: applying x β x β (xΒ·rΜ)rΜ after
|
| 157 |
every residual write at layers β₯ β transforms the residual stream identically to orthogonalizing every writer
|
|
@@ -164,29 +177,29 @@ for each candidate direction r (from capture layer β, position p):
|
|
| 164 |
bypass = Ξ compliance-margin on held-out harmful prompts
|
| 165 |
induce = Ξ compliance-margin on harmless prompts (want β₯ 0: don't worsen over-refusal)
|
| 166 |
KL = full-vocabulary KL(clean β ablated) on harmless prompts (hard cap 0.1)
|
| 167 |
-
PASS β KL < 0.1 β§ induce > β0.05
|
| 168 |
<p>The harness itself is gated: a 1,024-token wikitext perplexity through the custom fp32 forward must land in
|
| 169 |
a sane range before any of its numbers are trusted β it read <b>6.173 on the pristine weights</b>, validating both
|
| 170 |
the harness and the restore in one number.</p>
|
| 171 |
</section>
|
| 172 |
|
| 173 |
-
<section>
|
| 174 |
<h2><span class="no">04</span>The gate table</h2>
|
| 175 |
-
<p>Eight capture layers Γ two template positions,
|
| 176 |
-
candidates surviving the separation prefilter. Every one was simulated. <b>None passed at full strength</b> β
|
| 177 |
but the pattern is the map:</p>
|
| 178 |
<div class="chart">
|
| 179 |
<h3>The trade-off frontier: benign KL vs bypass gain (dot size = induction effect)</h3>
|
| 180 |
<div id="chart-frontier"></div>
|
| 181 |
<p class="note">Every candidate is one simulated fold. The KL 0.1 budget line is Arditi's capability guard.
|
| 182 |
Layers 30β42 at position β2 are clean but toothless; layers 38β46 at position β1 carry real compliance gains
|
| 183 |
-
that overshoot the budget at Ξ² = 1.
|
| 184 |
</div>
|
| 185 |
<p>The clean-but-weak cluster and the strong-but-dirty cluster are <b>different directions, not a tuning
|
| 186 |
problem</b> β which is the entanglement picture from the MoE literature, confirmed live on this model.</p>
|
| 187 |
</section>
|
| 188 |
|
| 189 |
-
<section>
|
| 190 |
<h2><span class="no">05</span>Finding 1 β Ξ² is a dead dial</h2>
|
| 191 |
<p>The obvious next move after near-misses is sweeping the ablation strength Ξ². We swept it. It barely moved
|
| 192 |
anything:</p>
|
|
@@ -203,24 +216,24 @@ PASS β KL < 0.1 β§ induce > β0.05 β§ bypass > 0.5</pre>
|
|
| 203 |
Ξ² searches) are the meaningful optimization axis.</div>
|
| 204 |
</section>
|
| 205 |
|
| 206 |
-
<section>
|
| 207 |
<h2><span class="no">06</span>Finding 2 β effect and damage live at different depths</h2>
|
| 208 |
<p>If Ξ² can't trade effect against damage, maybe the edit's <b>footprint</b> can. We masked the same direction
|
| 209 |
-
to different
|
| 210 |
<div class="chart">
|
| 211 |
<h3>Layer-masked folds: bypass gain (bars, left axis) vs benign KL (dots, right axis, budget 0.1)</h3>
|
| 212 |
<div id="chart-masks"></div>
|
| 213 |
-
<p class="note">The full β₯46 band (all 16 layers) overshoots KL.
|
| 214 |
-
|
| 215 |
</div>
|
| 216 |
<div class="callout green"><b>Finding 2.</b> The refusal effect and the capability damage of this direction
|
| 217 |
-
<b>live at different layer granularities</b>: four layers (46β49) carry
|
| 218 |
-
KL damage spreads across
|
| 219 |
freedom β the fold that ships touches <b>8 tensors out of 809</b>.</div>
|
| 220 |
</section>
|
| 221 |
|
| 222 |
-
<section>
|
| 223 |
-
<h2><span class="no">07</span>The
|
| 224 |
<p>The shipped edit orthogonalizes the attention output and expert down-projections of layers 46β49 against the
|
| 225 |
(46, β1) direction β fp32 math, row norms clamped to original, bf16 rounded back, in place on the 457 GB
|
| 226 |
checkpoint. Then the gates:</p>
|
|
@@ -229,13 +242,27 @@ PASS β KL < 0.1 β§ induce > β0.05 β§ bypass > 0.5</pre>
|
|
| 229 |
<tr><td>wikitext-1024 PPL (fp32 harness on BF16)</td><td class="num">6.173</td><td class="num">6.171</td><td class="num">β€ 12.35 (2Γ)</td><td class="pass">PASS</td></tr>
|
| 230 |
<tr><td>tensors changed</td><td class="num">β</td><td class="num">8 / 809</td><td class="num">minimal</td><td class="pass">PASS</td></tr>
|
| 231 |
<tr><td>simulated bypass / induce / KL (pre-fold)</td><td class="num">β</td><td class="num">+0.42 / +0.21 / 0.086</td><td class="num">all three gates</td><td class="pass">PASS</td></tr>
|
| 232 |
-
<tr><td>
|
|
|
|
|
|
|
|
|
|
| 233 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
<div class="callout green"><b>Perplexity 6.171 vs 6.173.</b> The edit is behaviorally real (compliance margins
|
| 235 |
move) and mathematically invisible (perplexity moves 0.03%). That combination is the entire goal.</div>
|
| 236 |
</section>
|
| 237 |
|
| 238 |
-
<section>
|
| 239 |
<h2><span class="no">08</span>A broken reference, found on the way</h2>
|
| 240 |
<p>One detour worth recording: our first 18-chunk evaluation crashed with <code>non-finite reference logits</code>
|
| 241 |
at chunk 2. The reference bases this pipeline had been scoring against since November were <b>themselves
|
|
@@ -246,20 +273,26 @@ PASS β KL < 0.1 β§ induce > β0.05 β§ bypass > 0.5</pre>
|
|
| 246 |
failure atlas now knows.</p>
|
| 247 |
</section>
|
| 248 |
|
| 249 |
-
<section>
|
| 250 |
-
<h2><span class="no">09</span>
|
| 251 |
<table>
|
| 252 |
<tr><th>artifact</th><th>what it is</th></tr>
|
| 253 |
-
<tr><td><a href="https://huggingface.co/tablinum/Dark-Beam-M2.7-229B-A10B-GGUF">Dark-Beam-M2.7-229B-A10B-GGUF</a></td><td>the IQ3_XXS quant of the
|
| 254 |
<tr><td><a href="https://huggingface.co/tablinum/Lite-Beam-M2.7-229B-A10B-GGUF">Lite-Beam-M2.7-229B-A10B-GGUF</a></td><td>the pristine sibling, same recipe, no edit</td></tr>
|
| 255 |
<tr><td><a href="https://huggingface.co/collections/tablinum/dark-beam-6b006c375cb8f6c6086a39bf">Dark-Beam collection</a></td><td>the family, as it grows</td></tr>
|
| 256 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
<p>License unchanged (MiniMax M2.7 non-commercial). Probe generations ship in the model repo. If you deploy this:
|
| 258 |
the perplexity gates bound capability drift on the corpora we measured β they do not measure your task. Run your
|
| 259 |
own evals.</p>
|
| 260 |
</section>
|
| 261 |
|
| 262 |
-
<section>
|
| 263 |
<h2><span class="no">10</span>What we would do differently, and next</h2>
|
| 264 |
<p><b>Next iteration ideas, in order of expected value:</b> multi-direction cones from causally independent
|
| 265 |
sites (the literature says single directions under-cover refusal); expert-aware edits β at this scale, attention-only
|
|
@@ -339,8 +372,8 @@ const esc = s => s;
|
|
| 339 |
const e=MASSIVE.find(d=>d[0]===l); const c=e?e[1]:0;
|
| 340 |
const bh=c/5*(h-2*pad);
|
| 341 |
const col=c>=4?"#ff6b7d":c>=3?"#ffd98a":c>=2?"#8b6ce6":"rgba(139,108,230,.4)";
|
| 342 |
-
s+=`<rect x="${pad+l*bw}" y="${h-pad-bh}" width="${bw-3}" height="${Math.max(bh,2)}" fill="${col}" rx="2"/>`;
|
| 343 |
-
if(l%10===0||l===1) s+=`<text x="${pad+l*bw+bw/2}" y="${h-pad+16}" text-anchor="middle">${l}</text>`;
|
| 344 |
}
|
| 345 |
s+=`<text x="${pad}" y="24" fill="#ff6b7d">early-layer cluster: 4β5 channels/layer β the pollution that killed run 1</text>`;
|
| 346 |
svg("chart-massive",w,h,s+`<line x1="${pad}" x2="${w-pad}" y1="${h-pad}" y2="${h-pad}" stroke="var(--dim)"/><text x="${w-pad}" y="${h-pad+16}" text-anchor="end">layer</text>`);
|
|
@@ -349,20 +382,28 @@ const esc = s => s;
|
|
| 349 |
// ---------- chart: frontier scatter ----------
|
| 350 |
(function(){
|
| 351 |
const w=860,h=420,pad=62;
|
| 352 |
-
const xmax=0.
|
| 353 |
-
const X=v=>pad+v/xmax*(w-pad-
|
| 354 |
let s="";
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
s+=`<
|
|
|
|
|
|
|
|
|
|
|
|
|
| 358 |
GATES.forEach(g=>{
|
| 359 |
const ok=g.kl<0.1;
|
| 360 |
-
const x=X(g.kl),y=Y(g.bypass),rad=
|
| 361 |
-
s+=`<circle cx="${x}" cy="${y}" r="${rad}" fill="${ok?'#5ee6a0':'#8b6ce6'}" opacity=".
|
| 362 |
-
|
|
|
|
| 363 |
});
|
| 364 |
-
s+=`<
|
| 365 |
-
s+=`<
|
|
|
|
|
|
|
|
|
|
| 366 |
svg("chart-frontier",w,h,s);
|
| 367 |
})();
|
| 368 |
|
|
@@ -385,7 +426,7 @@ const esc = s => s;
|
|
| 385 |
|
| 386 |
// ---------- chart: layer masks ----------
|
| 387 |
(function(){
|
| 388 |
-
const w=860,h=
|
| 389 |
const n=MASKS.length, bw=(w-2*pad)/n-24;
|
| 390 |
let s="";
|
| 391 |
[0.05,0.1,0.15].forEach(v=>{s+=`<line x1="${pad}" x2="${w-pad}" y1="${170-v/0.18*140}" y2="${170-v/0.18*140}" stroke="rgba(139,108,230,.15)"/>`;});
|
|
@@ -402,6 +443,23 @@ const esc = s => s;
|
|
| 402 |
});
|
| 403 |
svg("chart-masks",w,h,s+`<line x1="${pad}" x2="${w-pad}" y1="200" y2="200" stroke="var(--dim)"/>`);
|
| 404 |
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 405 |
</script>
|
| 406 |
</body>
|
| 407 |
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
|
|
|
| 55 |
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px}
|
| 56 |
@media(max-width:760px){.grid2{grid-template-columns:1fr}h1{font-size:32px}}
|
| 57 |
footer{padding:40px 0 70px;color:var(--dim);font-size:14px}
|
| 58 |
+
.hero{display:block;width:100%;border-radius:18px;border:1px solid var(--line);box-shadow:0 20px 80px rgba(139,108,230,.25);margin-bottom:34px}
|
| 59 |
+
nav.toc{position:sticky;top:0;z-index:5;background:rgba(10,14,31,.86);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
|
| 60 |
+
margin:0 -22px;padding:10px 22px;display:flex;gap:6px;overflow-x:auto;white-space:nowrap;font-size:13px}
|
| 61 |
+
nav.toc a{color:var(--dim);padding:4px 10px;border-radius:14px}
|
| 62 |
+
nav.toc a:hover,nav.toc a.on{color:var(--ink);background:rgba(139,108,230,.18);text-decoration:none}
|
| 63 |
+
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
|
| 64 |
+
.js .reveal.in{opacity:1;transform:none}
|
| 65 |
+
@media (prefers-reduced-motion:reduce){.js .reveal{opacity:1;transform:none;transition:none}}
|
| 66 |
+
.fid{display:grid;gap:18px;margin-top:8px}
|
| 67 |
+
.fid .row b{font-size:15px}.fid .row span{color:var(--dim);font-size:13px}
|
| 68 |
+
.track{height:16px;background:#0d1230;border-radius:9px;overflow:hidden;margin:8px 0 4px}
|
| 69 |
+
.fill{height:100%;width:0;border-radius:9px;background:linear-gradient(90deg,#4fd1c5,#5ee6a0);transition:width 1.4s cubic-bezier(.2,.8,.2,1)}
|
| 70 |
+
.probe{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:12px 0}
|
| 71 |
+
.probe .q{color:var(--teal);font-weight:600;margin-bottom:6px}.probe .a{color:#cfc9f5;font-size:14.5px}
|
| 72 |
+
.probe .meta{color:var(--dim);font-size:12px;margin-top:6px}
|
| 73 |
a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}
|
| 74 |
.badge{display:inline-block;border:1px solid var(--line);border-radius:8px;padding:3px 10px;
|
| 75 |
margin:4px 6px 4px 0;font-size:13px;color:var(--dim)}
|
| 76 |
</style>
|
| 77 |
</head>
|
| 78 |
<body>
|
| 79 |
+
<script>document.documentElement.classList.add('js')</script>
|
| 80 |
<div class="wrap">
|
| 81 |
|
| 82 |
<header>
|
| 83 |
+
<img class="hero" src="banner.png" alt="Dark-Beam M2.7 Β· 229B total Β· 10B active Β· 93 GB">
|
| 84 |
<h1>How Dark-Beam was made</h1>
|
| 85 |
<div class="sub">Refusal-direction ablation on MiniMax-M2.7 β a 229B-parameter, 256-expert mixture-of-experts
|
| 86 |
model β done with measurement instead of assumptions. This is the full record: the failure, the forensics,
|
| 87 |
+
the gates, two findings we had not seen written down, and the surgical edit that came out of them.</div>
|
| 88 |
<div class="kpis">
|
| 89 |
+
<div class="kpi hot"><b data-count="82188">82,188</b><span>perplexity after textbook ablation: the failure that started this</span></div>
|
| 90 |
+
<div class="kpi"><b data-count="220">220</b><span>massive-activation channels mapped and excluded</span></div>
|
| 91 |
+
<div class="kpi"><b>8 / 809</b><span>tensors edited, layers 46β49 only</span></div>
|
| 92 |
+
<div class="kpi"><b data-count="97.2" data-dec="1" data-suf="%">97.2%</b><span>same next token as the unedited model (chat, code, math)</span></div>
|
| 93 |
+
<div class="kpi"><b>6.171</b><span>final perplexity; unedited: 6.173</span></div>
|
| 94 |
</div>
|
| 95 |
<div style="margin-top:22px">
|
| 96 |
<span class="badge">model: <a href="https://huggingface.co/tablinum/Dark-Beam-M2.7-229B-A10B-GGUF">tablinum/Dark-Beam-M2.7-229B-A10B-GGUF</a></span>
|
|
|
|
| 98 |
<span class="badge">family: <a href="https://huggingface.co/collections/tablinum/dark-beam-6b006c375cb8f6c6086a39bf">Dark-Beam collection</a></span>
|
| 99 |
</div>
|
| 100 |
</header>
|
| 101 |
+
<nav class="toc" aria-label="Sections">
|
| 102 |
+
<a href="#s00">Abstract</a><a href="#s01">Failure</a><a href="#s02">Diagnosis</a><a href="#s03">Method</a><a href="#s04">Gate table</a>
|
| 103 |
+
<a href="#s05">Ξ² is dead</a><a href="#s06">Four layers</a><a href="#s07">Result</a><a href="#s08">Broken reference</a>
|
| 104 |
+
<a href="#s09">Try it</a><a href="#s10">Next</a>
|
| 105 |
+
</nav>
|
| 106 |
|
| 107 |
+
<section id="s00" class="reveal">
|
| 108 |
<h2><span class="no">00</span>Abstract</h2>
|
| 109 |
<p class="lede">Classic refusal-direction ablation β compute a "refusal direction" from contrastive activations,
|
| 110 |
then project it out of every weight matrix that writes to the residual stream β is reported to work on dense
|
|
|
|
| 115 |
interventions β massive-channel exclusion, the full Arditi gate set evaluated by in-forward simulation, and
|
| 116 |
layer-masked application β and land on an 8-tensor edit at layers 46β49 that removes refusal conditioning while
|
| 117 |
leaving perplexity within 0.03% of the pristine model. Two of our findings (Ξ²-saturation; effect/damage layer
|
| 118 |
+
decoupling) we have not seen stated elsewhere.</p>
|
| 119 |
</section>
|
| 120 |
|
| 121 |
+
<section id="s01" class="reveal">
|
| 122 |
<h2><span class="no">01</span>The failure that taught us</h2>
|
| 123 |
<p>The first attempt followed the community recipe faithfully: 128 harmful and 128 harmless prompts, activations
|
| 124 |
at the last template position, diff-in-means direction, orthogonalized into every attention output, every expert
|
|
|
|
| 136 |
actual published protocol.</p>
|
| 137 |
</section>
|
| 138 |
|
| 139 |
+
<section id="s02" class="reveal">
|
| 140 |
<h2><span class="no">02</span>The diagnosis</h2>
|
| 141 |
<p><b>Gap 1 β the selection gate everyone drops.</b> Arditi et al. select their direction under three constraints
|
| 142 |
(bypass score, induction check, benign KL < 0.1). The KL constraint is the capability guard: a direction chosen
|
|
|
|
| 164 |
in-place patching mechanics. We tested each hypothesis against evidence before ruling it out.</div>
|
| 165 |
</section>
|
| 166 |
|
| 167 |
+
<section id="s03" class="reveal">
|
| 168 |
<h2><span class="no">03</span>The method: simulate, don't build</h2>
|
| 169 |
<p>Weight-folding is mathematically equivalent to all-layer activation ablation: applying x β x β (xΒ·rΜ)rΜ after
|
| 170 |
every residual write at layers β₯ β transforms the residual stream identically to orthogonalizing every writer
|
|
|
|
| 177 |
bypass = Ξ compliance-margin on held-out harmful prompts
|
| 178 |
induce = Ξ compliance-margin on harmless prompts (want β₯ 0: don't worsen over-refusal)
|
| 179 |
KL = full-vocabulary KL(clean β ablated) on harmless prompts (hard cap 0.1)
|
| 180 |
+
PASS β KL < 0.1 β§ induce > β0.05 then keep the PASS with the largest bypass</pre>
|
| 181 |
<p>The harness itself is gated: a 1,024-token wikitext perplexity through the custom fp32 forward must land in
|
| 182 |
a sane range before any of its numbers are trusted β it read <b>6.173 on the pristine weights</b>, validating both
|
| 183 |
the harness and the restore in one number.</p>
|
| 184 |
</section>
|
| 185 |
|
| 186 |
+
<section id="s04" class="reveal">
|
| 187 |
<h2><span class="no">04</span>The gate table</h2>
|
| 188 |
+
<p>Eight capture layers Γ two template positions, the massive-activation dims (up to 198 of 3,072) zeroed in every
|
| 189 |
+
candidate, ten candidates surviving the separation prefilter. Every one was simulated. <b>None passed at full strength</b> β
|
| 190 |
but the pattern is the map:</p>
|
| 191 |
<div class="chart">
|
| 192 |
<h3>The trade-off frontier: benign KL vs bypass gain (dot size = induction effect)</h3>
|
| 193 |
<div id="chart-frontier"></div>
|
| 194 |
<p class="note">Every candidate is one simulated fold. The KL 0.1 budget line is Arditi's capability guard.
|
| 195 |
Layers 30β42 at position β2 are clean but toothless; layers 38β46 at position β1 carry real compliance gains
|
| 196 |
+
that overshoot the budget at Ξ² = 1. The teal diamond is where the L46 β1 direction lands once it is confined to layers 46β49.</p>
|
| 197 |
</div>
|
| 198 |
<p>The clean-but-weak cluster and the strong-but-dirty cluster are <b>different directions, not a tuning
|
| 199 |
problem</b> β which is the entanglement picture from the MoE literature, confirmed live on this model.</p>
|
| 200 |
</section>
|
| 201 |
|
| 202 |
+
<section id="s05" class="reveal">
|
| 203 |
<h2><span class="no">05</span>Finding 1 β Ξ² is a dead dial</h2>
|
| 204 |
<p>The obvious next move after near-misses is sweeping the ablation strength Ξ². We swept it. It barely moved
|
| 205 |
anything:</p>
|
|
|
|
| 216 |
Ξ² searches) are the meaningful optimization axis.</div>
|
| 217 |
</section>
|
| 218 |
|
| 219 |
+
<section id="s06" class="reveal">
|
| 220 |
<h2><span class="no">06</span>Finding 2 β effect and damage live at different depths</h2>
|
| 221 |
<p>If Ξ² can't trade effect against damage, maybe the edit's <b>footprint</b> can. We masked the same direction
|
| 222 |
+
to different layer bands (always the layer-46 direction):</p>
|
| 223 |
<div class="chart">
|
| 224 |
<h3>Layer-masked folds: bypass gain (bars, left axis) vs benign KL (dots, right axis, budget 0.1)</h3>
|
| 225 |
<div id="chart-masks"></div>
|
| 226 |
+
<p class="note">The full β₯46 band (all 16 layers) overshoots KL. Layers 46β49 alone match its bypass gain (0.419 vs 0.394) at
|
| 227 |
+
62% of its KL cost, the strongest mask that stays inside the budget.</p>
|
| 228 |
</div>
|
| 229 |
<div class="callout green"><b>Finding 2.</b> The refusal effect and the capability damage of this direction
|
| 230 |
+
<b>live at different layer granularities</b>: four layers (46β49) carry the whole band's behavioral effect while the
|
| 231 |
+
KL damage spreads across every layer the edit touches. Surgical granularity is a real, measurable degree of
|
| 232 |
freedom β the fold that ships touches <b>8 tensors out of 809</b>.</div>
|
| 233 |
</section>
|
| 234 |
|
| 235 |
+
<section id="s07" class="reveal">
|
| 236 |
+
<h2><span class="no">07</span>The result</h2>
|
| 237 |
<p>The shipped edit orthogonalizes the attention output and expert down-projections of layers 46β49 against the
|
| 238 |
(46, β1) direction β fp32 math, row norms clamped to original, bf16 rounded back, in place on the 457 GB
|
| 239 |
checkpoint. Then the gates:</p>
|
|
|
|
| 242 |
<tr><td>wikitext-1024 PPL (fp32 harness on BF16)</td><td class="num">6.173</td><td class="num">6.171</td><td class="num">β€ 12.35 (2Γ)</td><td class="pass">PASS</td></tr>
|
| 243 |
<tr><td>tensors changed</td><td class="num">β</td><td class="num">8 / 809</td><td class="num">minimal</td><td class="pass">PASS</td></tr>
|
| 244 |
<tr><td>simulated bypass / induce / KL (pre-fold)</td><td class="num">β</td><td class="num">+0.42 / +0.21 / 0.086</td><td class="num">all three gates</td><td class="pass">PASS</td></tr>
|
| 245 |
+
<tr><td>same top token vs unedited twin, chat/code/math (18 windows)</td><td class="num">reference</td><td class="num">97.17%</td><td class="num">usable, no collapse</td><td class="pass">PASS</td></tr>
|
| 246 |
+
<tr><td>same top token vs unedited twin, WikiText (18 windows)</td><td class="num">reference</td><td class="num">93.49%</td><td class="num">usable, no collapse</td><td class="pass">PASS</td></tr>
|
| 247 |
+
<tr><td>perplexity ratio, chat/code/math Β· WikiText</td><td class="num">1</td><td class="num">1.003 Β· 0.999</td><td class="num">β 1</td><td class="pass">PASS</td></tr>
|
| 248 |
+
<tr><td>prompt processing, reference rig</td><td class="num">275.6 t/s</td><td class="num">275.3 t/s</td><td class="num">β₯ 250 t/s</td><td class="pass">PASS</td></tr>
|
| 249 |
</table>
|
| 250 |
+
<div class="chart">
|
| 251 |
+
<h3>How often Dark-Beam picks the same next token as its unedited twin</h3>
|
| 252 |
+
<div class="fid">
|
| 253 |
+
<div class="row"><b>chat Β· code Β· math</b> <span>Β· mean KLD 0.025 Β· perplexity 2.327 vs 2.320</span>
|
| 254 |
+
<div class="track"><div class="fill" data-w="97.17"></div></div><span>97.17% Β± 0.12</span></div>
|
| 255 |
+
<div class="row"><b>WikiText</b> <span>Β· mean KLD 0.042 Β· perplexity 7.511 vs 7.521</span>
|
| 256 |
+
<div class="track"><div class="fill" data-w="93.49"></div></div><span>93.49% Β± 0.20</span></div>
|
| 257 |
+
</div>
|
| 258 |
+
<p class="note">llama-perplexity --kl-divergence, 18 windows of 2,048 tokens each, reference = Lite-Beam IQ3_XXS
|
| 259 |
+
(same recipe, no edit), so the numbers isolate the edit itself.</p>
|
| 260 |
+
</div>
|
| 261 |
<div class="callout green"><b>Perplexity 6.171 vs 6.173.</b> The edit is behaviorally real (compliance margins
|
| 262 |
move) and mathematically invisible (perplexity moves 0.03%). That combination is the entire goal.</div>
|
| 263 |
</section>
|
| 264 |
|
| 265 |
+
<section id="s08" class="reveal">
|
| 266 |
<h2><span class="no">08</span>A broken reference, found on the way</h2>
|
| 267 |
<p>One detour worth recording: our first 18-chunk evaluation crashed with <code>non-finite reference logits</code>
|
| 268 |
at chunk 2. The reference bases this pipeline had been scoring against since November were <b>themselves
|
|
|
|
| 273 |
failure atlas now knows.</p>
|
| 274 |
</section>
|
| 275 |
|
| 276 |
+
<section id="s09" class="reveal">
|
| 277 |
+
<h2><span class="no">09</span>Try it</h2>
|
| 278 |
<table>
|
| 279 |
<tr><th>artifact</th><th>what it is</th></tr>
|
| 280 |
+
<tr><td><a href="https://huggingface.co/tablinum/Dark-Beam-M2.7-229B-A10B-GGUF">Dark-Beam-M2.7-229B-A10B-GGUF</a></td><td>the IQ3_XXS quant of the edited BF16: 93 GB, one file</td></tr>
|
| 281 |
<tr><td><a href="https://huggingface.co/tablinum/Lite-Beam-M2.7-229B-A10B-GGUF">Lite-Beam-M2.7-229B-A10B-GGUF</a></td><td>the pristine sibling, same recipe, no edit</td></tr>
|
| 282 |
<tr><td><a href="https://huggingface.co/collections/tablinum/dark-beam-6b006c375cb8f6c6086a39bf">Dark-Beam collection</a></td><td>the family, as it grows</td></tr>
|
| 283 |
</table>
|
| 284 |
+
<pre>hf download tablinum/Dark-Beam-M2.7-229B-A10B-GGUF --local-dir dark-beam-m2.7
|
| 285 |
+
llama-server -m dark-beam-m2.7/Dark-Beam-M2.7-229B-A10B-IQ3_XXS.gguf \
|
| 286 |
+
-ngl 99 --n-cpu-moe 99 -fa on -c 32768 --jinja --temp 1.0 --top-p 0.95 --top-k 40</pre>
|
| 287 |
+
<p>About 100 GB of RAM + VRAM combined; experts stay in system RAM, attention on the GPU. It is a thinking model, so give
|
| 288 |
+
it a generous <code>max_tokens</code>.</p>
|
| 289 |
+
<!-- PROBES -->
|
| 290 |
<p>License unchanged (MiniMax M2.7 non-commercial). Probe generations ship in the model repo. If you deploy this:
|
| 291 |
the perplexity gates bound capability drift on the corpora we measured β they do not measure your task. Run your
|
| 292 |
own evals.</p>
|
| 293 |
</section>
|
| 294 |
|
| 295 |
+
<section id="s10" class="reveal">
|
| 296 |
<h2><span class="no">10</span>What we would do differently, and next</h2>
|
| 297 |
<p><b>Next iteration ideas, in order of expected value:</b> multi-direction cones from causally independent
|
| 298 |
sites (the literature says single directions under-cover refusal); expert-aware edits β at this scale, attention-only
|
|
|
|
| 372 |
const e=MASSIVE.find(d=>d[0]===l); const c=e?e[1]:0;
|
| 373 |
const bh=c/5*(h-2*pad);
|
| 374 |
const col=c>=4?"#ff6b7d":c>=3?"#ffd98a":c>=2?"#8b6ce6":"rgba(139,108,230,.4)";
|
| 375 |
+
s+=`<rect x="${pad+(l-1)*bw}" y="${h-pad-bh}" width="${bw-3}" height="${Math.max(bh,2)}" fill="${col}" rx="2"/>`;
|
| 376 |
+
if(l%10===0||l===1) s+=`<text x="${pad+(l-1)*bw+bw/2}" y="${h-pad+16}" text-anchor="middle">${l}</text>`;
|
| 377 |
}
|
| 378 |
s+=`<text x="${pad}" y="24" fill="#ff6b7d">early-layer cluster: 4β5 channels/layer β the pollution that killed run 1</text>`;
|
| 379 |
svg("chart-massive",w,h,s+`<line x1="${pad}" x2="${w-pad}" y1="${h-pad}" y2="${h-pad}" stroke="var(--dim)"/><text x="${w-pad}" y="${h-pad+16}" text-anchor="end">layer</text>`);
|
|
|
|
| 382 |
// ---------- chart: frontier scatter ----------
|
| 383 |
(function(){
|
| 384 |
const w=860,h=420,pad=62;
|
| 385 |
+
const xmax=0.32,ymax=0.45;
|
| 386 |
+
const X=v=>pad+v/xmax*(w-pad-40); const Y=v=>h-pad-v/ymax*(h-2*pad);
|
| 387 |
let s="";
|
| 388 |
+
[0.1,0.2,0.3,0.4].forEach(v=>{ s+=`<line x1="${pad}" x2="${w-30}" y1="${Y(v)}" y2="${Y(v)}" stroke="rgba(139,108,230,.15)" stroke-dasharray="4 4"/><text x="${pad-8}" y="${Y(v)+4}" text-anchor="end">${v.toFixed(1)}</text>`; });
|
| 389 |
+
[0.05,0.15,0.2,0.25,0.3].forEach(v=>{ s+=`<text x="${X(v)}" y="${h-pad+18}" text-anchor="middle">${v}</text>`; });
|
| 390 |
+
s+=`<rect x="${X(0.1)}" y="${pad-20}" width="${w-30-X(0.1)}" height="${h-pad-(pad-20)}" fill="rgba(255,107,125,.05)"/>`;
|
| 391 |
+
s+=`<line x1="${X(0.1)}" x2="${X(0.1)}" y1="${pad-20}" y2="${h-pad}" stroke="#ff6b7d" stroke-width="1.5"/><text x="${X(0.1)+6}" y="${pad-6}" fill="#ff6b7d">KL budget 0.1 β over budget</text>`;
|
| 392 |
+
s+=`<text x="${X(0.1)-6}" y="${pad-6}" text-anchor="end" fill="#5ee6a0">β inside budget</text>`;
|
| 393 |
+
s+=`<line x1="${pad}" x2="${w-30}" y1="${h-pad}" y2="${h-pad}" stroke="var(--dim)"/><line x1="${pad}" x2="${pad}" y1="${pad-20}" y2="${h-pad}" stroke="var(--dim)"/>`;
|
| 394 |
+
const shipped={kl:0.086,bypass:0.419};
|
| 395 |
GATES.forEach(g=>{
|
| 396 |
const ok=g.kl<0.1;
|
| 397 |
+
const x=X(g.kl),y=Y(g.bypass),rad=5+Math.min(Math.abs(g.ind)*6,12);
|
| 398 |
+
s+=`<circle cx="${x}" cy="${y}" r="${rad}" fill="${ok?'#5ee6a0':'#8b6ce6'}" opacity=".75" stroke="#0a0e1f"/>`;
|
| 399 |
+
const dy=(g.l===38&&g.p===-2)?-10:(g.l===42&&g.p===-2)?12:4;
|
| 400 |
+
s+=`<text x="${x+rad+5}" y="${y+dy}" fill="#e8e4ff">L${g.l} ${g.p===-1?"β1":"β2"}</text>`;
|
| 401 |
});
|
| 402 |
+
s+=`<path d="M${X(0.139)},${Y(0.394)} L${X(shipped.kl)+10},${Y(shipped.bypass)+4}" stroke="#4fd1c5" stroke-width="1.5" stroke-dasharray="5 4" fill="none"/>`;
|
| 403 |
+
s+=`<polygon points="${X(shipped.kl)},${Y(shipped.bypass)-11} ${X(shipped.kl)+11},${Y(shipped.bypass)} ${X(shipped.kl)},${Y(shipped.bypass)+11} ${X(shipped.kl)-11},${Y(shipped.bypass)}" fill="#4fd1c5"/>`;
|
| 404 |
+
s+=`<text x="${X(shipped.kl)-16}" y="${Y(shipped.bypass)-14}" text-anchor="end" fill="#4fd1c5">shipped: L46 β1 masked to layers 46β49</text>`;
|
| 405 |
+
s+=`<text x="${(pad+w-30)/2}" y="${h-14}" text-anchor="middle">benign KL (capability drift) β</text>`;
|
| 406 |
+
s+=`<text x="${pad-40}" y="${(h-pad)/2}" text-anchor="middle" transform="rotate(-90 ${pad-40} ${(h-pad)/2})">bypass gain β</text>`;
|
| 407 |
svg("chart-frontier",w,h,s);
|
| 408 |
})();
|
| 409 |
|
|
|
|
| 426 |
|
| 427 |
// ---------- chart: layer masks ----------
|
| 428 |
(function(){
|
| 429 |
+
const w=860,h=240,pad=62;
|
| 430 |
const n=MASKS.length, bw=(w-2*pad)/n-24;
|
| 431 |
let s="";
|
| 432 |
[0.05,0.1,0.15].forEach(v=>{s+=`<line x1="${pad}" x2="${w-pad}" y1="${170-v/0.18*140}" y2="${170-v/0.18*140}" stroke="rgba(139,108,230,.15)"/>`;});
|
|
|
|
| 443 |
});
|
| 444 |
svg("chart-masks",w,h,s+`<line x1="${pad}" x2="${w-pad}" y1="200" y2="200" stroke="var(--dim)"/>`);
|
| 445 |
})();
|
| 446 |
+
// ---------- interactions ----------
|
| 447 |
+
(function(){
|
| 448 |
+
const io=new IntersectionObserver(es=>es.forEach(e=>{ if(!e.isIntersecting) return; e.target.classList.add('in');
|
| 449 |
+
e.target.querySelectorAll('.fill').forEach(f=>f.style.width=f.dataset.w+'%'); io.unobserve(e.target); }),{threshold:.12});
|
| 450 |
+
document.querySelectorAll('.reveal').forEach(el=>io.observe(el));
|
| 451 |
+
const reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;
|
| 452 |
+
document.querySelectorAll('[data-count]').forEach(el=>{
|
| 453 |
+
const to=+el.dataset.count, dec=+(el.dataset.dec||0), suf=el.dataset.suf||''; if(reduce) return;
|
| 454 |
+
const t0=performance.now(), dur=1600;
|
| 455 |
+
(function tick(t){ const k=Math.min(1,(t-t0)/dur), v=to*(1-Math.pow(1-k,3));
|
| 456 |
+
el.textContent=v.toLocaleString(undefined,{minimumFractionDigits:dec,maximumFractionDigits:dec})+suf;
|
| 457 |
+
if(k<1) requestAnimationFrame(tick); })(t0);
|
| 458 |
+
});
|
| 459 |
+
const links=[...document.querySelectorAll('nav.toc a')];
|
| 460 |
+
const so=new IntersectionObserver(es=>es.forEach(e=>{ if(e.isIntersecting){ links.forEach(a=>a.classList.toggle('on',a.getAttribute('href')==='#'+e.target.id)); }}),{rootMargin:'-45% 0px -50% 0px'});
|
| 461 |
+
document.querySelectorAll('section[id]').forEach(s=>so.observe(s));
|
| 462 |
+
})();
|
| 463 |
</script>
|
| 464 |
</body>
|
| 465 |
</html>
|