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:
eve VT authored and E committed 2026-10-02 09:12:23 -04:00
1 parent 3d8baedbf0
commit f32210a3bf
4 files changed
+40 -6

No files matched your search

+7 -4
View File
@@ -107,8 +107,8 @@ print("wrote", OUT / "saw_hero.png")
fig2, ax = plt.subplots(figsize=(13, 5.5), dpi=120)
fig2.patch.set_facecolor(VOID)
# use L18 curves
p_cls = [v30["L18"]["pain"][i]["cls"].get("pain", 0) / 3 for i in range(5)]
pl_cls = [v30["L18"]["pleasure"][i]["cls"].get("pleasure", 0) / 3
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) / 9
for i in range(5)]
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")
@@ -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_ylim(-0.05, 1.1)
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")
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")
for s in ax.spines.values():
s.set_color("#1c2430")