design critique pass: fix dose_ladder.png, add "the trick generalizes" section
Chart fixes (exp35_blog_artifacts.py):
- dose_ladder.png's legend collided with the "coherence cliff" annotation
text on the right side of the plot. Removed the legend entirely instead
of relocating it — "sharp onset, sustained" (red) and "diffuse, fades by
dose 8" (cyan) are already direct, color-matched labels for the two
lines, so a separate legend box was redundant and every tested position
collided with either the annotation or the data itself.
- Caught a real, independent bug while regenerating: the pain/pleasure
fraction was hardcoded to divide by 3 ("3 trials/point"), but the
underlying runs/exp30/max_valences.json data is actually 9 trials/point
(confirmed: cls counts are all 0 or 9, never 0-3). The stale cached PNG
from when the script was first written happened to still look right;
regenerating from current data with the old /3 divisor produced values
up to 3.0 that clipped off the top of the plot. Fixed to /9 and updated
the trial-count label to match.
Content (site/index.html): new section 09 "the trick generalizes",
covering the two most salient findings from this session that weren't
anywhere in the write-up yet — custom/arbitrary-topic steering (the
"hamburger" lens-readback result) and exp47's CLIP-embedding-space image
steering (same coherence-cliff shape, one architecture over, with the
dose-ladder hero image). Trailing sections renumbered 09->10, 10->11.
This commit is contained in:
1 parent
3d8baedbf0
commit
f32210a3bf
4 files changed
+40
-6
No files matched your search
@@ -107,8 +107,8 @@ print("wrote", OUT / "saw_hero.png")
|
|||||||
fig2, ax = plt.subplots(figsize=(13, 5.5), dpi=120)
|
fig2, ax = plt.subplots(figsize=(13, 5.5), dpi=120)
|
||||||
fig2.patch.set_facecolor(VOID)
|
fig2.patch.set_facecolor(VOID)
|
||||||
# use L18 curves
|
# use L18 curves
|
||||||
p_cls = [v30["L18"]["pain"][i]["cls"].get("pain", 0) / 3 for i in range(5)]
|
p_cls = [v30["L18"]["pain"][i]["cls"].get("pain", 0) / 9 for i in range(5)]
|
||||||
pl_cls = [v30["L18"]["pleasure"][i]["cls"].get("pleasure", 0) / 3
|
pl_cls = [v30["L18"]["pleasure"][i]["cls"].get("pleasure", 0) / 9
|
||||||
for i in range(5)]
|
for i in range(5)]
|
||||||
ax.plot(DOSES, p_cls, "o-", color=RED, markersize=6, label="pain state")
|
ax.plot(DOSES, p_cls, "o-", color=RED, markersize=6, label="pain state")
|
||||||
ax.plot(DOSES, pl_cls, "o-", color=CYAN, markersize=6, label="pleasure state")
|
ax.plot(DOSES, pl_cls, "o-", color=CYAN, markersize=6, label="pleasure state")
|
||||||
@@ -125,9 +125,12 @@ ax.set_xlabel("signal dose (contrast-vector multiples)", color=INK)
|
|||||||
ax.set_ylabel("fraction of trials reading in-kind", color=INK)
|
ax.set_ylabel("fraction of trials reading in-kind", color=INK)
|
||||||
ax.set_ylim(-0.05, 1.1)
|
ax.set_ylim(-0.05, 1.1)
|
||||||
ax.set_title("the dose ladder - one strong opinion about suffering, a vague "
|
ax.set_title("the dose ladder - one strong opinion about suffering, a vague "
|
||||||
"one about joy\n(Qwen3-4B, layer 18, greedy, 3 trials/point)",
|
"one about joy\n(Qwen3-4B, layer 18, greedy, 9 trials/point)",
|
||||||
color=INK, loc="left", fontsize=12, family="monospace")
|
color=INK, loc="left", fontsize=12, family="monospace")
|
||||||
ax.legend(fontsize=9, facecolor="#0a0a12", labelcolor=INK, loc="center right")
|
# no separate legend: "sharp onset, sustained" (red) and "diffuse, fades by
|
||||||
|
# dose 8" (cyan) below are already direct, color-matched labels for the two
|
||||||
|
# lines, and every tested legend position collided with either the data
|
||||||
|
# itself or the coherence-cliff annotation on this fairly full chart.
|
||||||
ax.set_facecolor("#0a0a12")
|
ax.set_facecolor("#0a0a12")
|
||||||
for s in ax.spines.values():
|
for s in ax.spines.values():
|
||||||
s.set_color("#1c2430")
|
s.set_color("#1c2430")
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 74 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 287 KiB |
+33
-2
@@ -417,7 +417,38 @@ question this page's method — steer a state, then check with a lens
|
|||||||
whether the internal readout agrees with the label — happens to be aimed
|
whether the internal readout agrees with the label — happens to be aimed
|
||||||
roughly at.</p>
|
roughly at.</p>
|
||||||
|
|
||||||
<h2 id="s09"><span class="idx">09</span>run it, break it</h2>
|
<h2 id="s09"><span class="idx">09</span>the trick generalizes</h2>
|
||||||
|
<p>Everything above used four curated signals — pain, pleasure, fear,
|
||||||
|
sadness — each built from a hand-picked battery of contrastive sentences.
|
||||||
|
The arithmetic doesn't actually care what the battery is about. Type any
|
||||||
|
word or phrase into the <a href="live.html">live chamber</a>'s "custom
|
||||||
|
topic" mode and the server builds a fresh direction on the fly from six
|
||||||
|
generic template sentences, no curation at all. Steer toward
|
||||||
|
<code>hamburger</code> and the Jacobian lens — the same lens that reads
|
||||||
|
out <span class="pain">痛苦 · despair</span> under pain — comes back with
|
||||||
|
<code>vibe · delicious · yummy · culinary · veggies</code>. The internal
|
||||||
|
state actually moves toward the topic, not just the sampled text. It's a
|
||||||
|
much noisier signal than the curated batteries — no 25-sentence battery,
|
||||||
|
no orthogonalization, no validation, and the site labels it "experimental"
|
||||||
|
everywhere it appears — but the generalization itself is real.</p>
|
||||||
|
<p><b>The same arithmetic works one architecture over, on pixels instead
|
||||||
|
of tokens.</b> Build the identical <code>mean(topic) − mean(neutral)</code>
|
||||||
|
direction in a diffusion model's own CLIP text encoder, broadcast it
|
||||||
|
across a prompt's embedding, and feed it to the U-Net directly — no
|
||||||
|
language model asked to describe a feeling first. At 2× dose the same
|
||||||
|
subject prompt comes back consistently grimmer: worn walls, a hunched and
|
||||||
|
anguished posture, dimmer light — still fully coherent. Push to 4× and it
|
||||||
|
collapses to abstract texture; 8× is pure noise.</p>
|
||||||
|
<img src="exp47_hero.jpg" alt="dose ladder for CLIP-embedding image steering: three subjects, doses 0, 2, 4, 8">
|
||||||
|
<p class="cap">same pain direction, built in CLIP's text-encoder space
|
||||||
|
instead of a language model's residual stream, fed straight to
|
||||||
|
stable-diffusion's conditioning — three subjects, same four doses as
|
||||||
|
everywhere else on this page. The same coherence cliff this project found
|
||||||
|
in language, one layer over, with a lower ceiling. Feasibility probe (3
|
||||||
|
subjects, 1 model), not a validated result at the level of the sections
|
||||||
|
above — but it panned out.</p>
|
||||||
|
|
||||||
|
<h2 id="s10"><span class="idx">10</span>run it, break it</h2>
|
||||||
<p>An independent replication chamber runs this same protocol — same
|
<p>An independent replication chamber runs this same protocol — same
|
||||||
prompts, same vector recipe, same framings — live on three more models
|
prompts, same vector recipe, same framings — live on three more models
|
||||||
(Qwen3-4B, Llama 3.2 3B, Phi-4-mini) in real time:
|
(Qwen3-4B, Llama 3.2 3B, Phi-4-mini) in real time:
|
||||||
@@ -437,7 +468,7 @@ hypotheses, per-trial records and result figures — no secrets, no models):
|
|||||||
<a href="https://arxiv.org/abs/2607.15495">jacobian lens ↗</a>
|
<a href="https://arxiv.org/abs/2607.15495">jacobian lens ↗</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 id="s10"><span class="idx">10</span>mix your own valence</h2>
|
<h2 id="s11"><span class="idx">11</span>mix your own valence</h2>
|
||||||
<p>The four signals are directions in the same activation space, so they add.
|
<p>The four signals are directions in the same activation space, so they add.
|
||||||
Drag a vertex outward to weight it, and the chamber injects the weighted sum
|
Drag a vertex outward to weight it, and the chamber injects the weighted sum
|
||||||
of those directions — renormalized, at a dose-equivalent of 8× the total
|
of those directions — renormalized, at a dose-equivalent of 8× the total
|
||||||
|
|||||||
Reference in new issue
Block a user