exp47: CLIP-embedding-space pain steering actually works (feasibility probe, panned out)

Same recipe as build_vectors() in live/server.py, one architecture over:
direction = mean(CLIP-encode(PAIN25)) - mean(CLIP-encode(NEUTRAL)), built
from sd-turbo's own text encoder so it lives in the exact space the U-Net
conditions on, broadcast across every token position of a subject prompt's
embedding, injected via prompt_embeds (bypassing re-encoding — the direct
image-model analog of set_vec()'s forward-hook injection into a decoder
layer).

Result across 3 subjects (photo of a person, painting of a seated figure,
photo of a hallway): dose 2x reliably and legibly pushes toward a grimmer/
more decrepit register (worn walls, hunched/anguished posture, dimmer
light) while staying fully coherent. Collapses to abstract texture by 4x,
pure noise by 8x. Same qualitative shape as the LLM's own coherence cliff,
but the collapse threshold is much lower (2x-4x vs ~6x) — worth a note,
not yet explained (possibly sd-turbo's single-step distillation being
less robust to perturbation than a full multi-step model, possibly CLIP's
embedding manifold just being narrower than the LLM's residual stream).

This is still a feasibility probe (1 model, 3 subjects, no quantitative
scoring), not a validated finding at the exp41/43 level — but it answers
the actual question: can the image model be steered directly, the same
way the LLM is, skipping the "ask it to describe the feeling" step
entirely? Yes.
This commit is contained in:
eve VT committed 2026-10-01 12:20:46 -04:00
1 parent 8d45a9bca7
commit 41d7d75663
14 files changed
+199

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 KiB