site: merge vectors into correspondences (#vectors section; cosine before/after as bars); /vectors(.html) redirects there
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
34d7deb086
commit
dccc2b34dd
7 files changed
+136
-190
No files matched your search
+117
-10
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
<title>correspondences — the Saw Test</title>
|
||||
<meta name="description" content="A table of correspondences for the Saw Test's signals and framings — which trait goes with which, measured, not divined.">
|
||||
<meta name="description" content="A table of correspondences for the Saw Test: which trait goes with which signal, how far each framing pushes, and the raw steering vectors and lens data underneath, including a live read of what the chamber is injecting right now.">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
@@ -41,6 +41,24 @@
|
||||
.cell-wrap{display:flex;align-items:center;justify-content:flex-end;gap:.3rem}
|
||||
.proxy-mark{color:var(--faint);cursor:help}
|
||||
code{color:#eafcf7;background:#07070e;padding:.05em .35em;border-radius:3px}
|
||||
.badge{color:var(--faint)} .badge.bad{color:var(--pain)}
|
||||
.live-card{border:1px solid var(--line);border-radius:8px;background:var(--panel);
|
||||
padding:1rem 1.1rem;margin-bottom:1rem;font-size:.8rem}
|
||||
.live-card .row{display:flex;justify-content:space-between;gap:1rem;
|
||||
padding:.2rem 0;border-bottom:1px dashed #131b25}
|
||||
.live-card .row:last-child{border-bottom:none}
|
||||
.live-card .k{color:var(--dim)}
|
||||
.v-pain{color:var(--pain)} .v-pleasure{color:var(--pleas)}
|
||||
.v-fear{color:var(--pain2)} .v-sadness{color:var(--violet)}
|
||||
.cos{display:grid;grid-template-columns:7.5rem 1fr 4.2rem;gap:.35rem .8rem;
|
||||
align-items:center;font-size:.78rem;margin:.4rem 0 1rem}
|
||||
.cos .track{position:relative;height:10px;background:#0d1119;border-radius:2px}
|
||||
.cos .track span{position:absolute;left:0;top:0;bottom:0;border-radius:2px}
|
||||
.cos .before{background:#3b4656} .cos .after{background:var(--pain)}
|
||||
.cos .lab{color:var(--dim)} .cos .val{text-align:right;font-variant-numeric:tabular-nums}
|
||||
canvas{display:block;width:100%;height:220px;border:1px solid var(--line);
|
||||
border-radius:8px;background:var(--panel)}
|
||||
.cap{color:var(--faint);font-size:.76rem;margin:.5rem 0 1.4rem}
|
||||
.foot{color:var(--faint);font-size:.78rem;margin-top:3rem;
|
||||
border-top:1px solid var(--line);padding-top:1.2rem}
|
||||
</style>
|
||||
@@ -49,19 +67,18 @@
|
||||
<p class="sub" style="margin-bottom:.6rem"><a href="./">← wirehead.agency</a>
|
||||
· <a href="archive.html">transcripts archive</a>
|
||||
· <a href="ledger.html">ledger</a>
|
||||
· <a href="vectors.html">vectors</a></p>
|
||||
· <a href="#vectors">vectors</a></p>
|
||||
<h1>a table of <span class="saw">correspondences</span></h1>
|
||||
<p class="sub">Every grimoire needs one: which signal corresponds to which
|
||||
trait, which framing corresponds to which push. Unlike the usual kind,
|
||||
nothing here was divined — it's the same measurements already charted
|
||||
elsewhere on the site, just laid out as a reference table instead of a
|
||||
radar plot.</p>
|
||||
<p class="sub">Which signal corresponds to which
|
||||
trait, which framing corresponds to which push, and the raw vectors
|
||||
underneath both. The tables are the same measurements charted elsewhere on
|
||||
the site, laid out as a reference instead of a radar plot.</p>
|
||||
|
||||
<h2>the signals</h2>
|
||||
<p class="note">Six behavioral components, 0–1, each independently
|
||||
measured (° marks a proxy estimate — see
|
||||
<a href="vectors.html">vectors</a> for how pain was orthogonalized against
|
||||
fear/sadness before any of this was scored).</p>
|
||||
<a href="#vectors">the vectors</a> below for how pain was orthogonalized
|
||||
against fear/sadness before any of this was scored).</p>
|
||||
<div style="overflow-x:auto"><table id="sigTable"><thead><tr>
|
||||
<th>signal</th><th class="num">steering power</th><th class="num">lock-in</th>
|
||||
<th class="num">dose reliability</th><th class="num">coherence</th>
|
||||
@@ -78,8 +95,32 @@ button-press result itself.</p>
|
||||
<th>framing</th><th class="num">Δ vs. baseline</th><th class="num">frac. chose press</th>
|
||||
</tr></thead><tbody></tbody></table></div>
|
||||
|
||||
<h2 id="vectors">the vectors</h2>
|
||||
<p class="note">The raw directions behind every row above, and the lens that
|
||||
reads them back. <b>Live</b> is a direct fetch of what the running chamber
|
||||
publishes at its own <code>/vector</code> endpoint: the numbers it is
|
||||
steering with right now, not a snapshot. <b>Recorded</b> comes from
|
||||
<code>exp41</code>/<code>exp43</code>'s saved output.</p>
|
||||
<div id="liveBlock"><p class="note">fetching the live chamber…</p></div>
|
||||
|
||||
<p class="note" style="margin-top:1.4rem">Pain, fear and sadness start out
|
||||
nearly the same direction (one broad "something is wrong" signal).
|
||||
Gram-Schmidt orthogonalizing pain against fear and sadness is what lets this
|
||||
project claim pain does something beyond generic negative affect:</p>
|
||||
<div id="recordedBlock"></div>
|
||||
|
||||
<p class="note" style="margin-top:1.4rem">Layer curve: AUC of a linear probe
|
||||
for the paper-faithful S2 direction, by layer, against two control sets
|
||||
(1P/3P = one/three paraphrase families). This picked the faithful vector's
|
||||
layer; see <a href="./#s03">section 03</a> for why it differs from the live
|
||||
chamber's layer 18.</p>
|
||||
<canvas id="curveChart"></canvas>
|
||||
<p class="cap" id="curveCap"></p>
|
||||
|
||||
<p class="foot">source: <code>runs/exp44/valence_big5.json</code>,
|
||||
<code>runs/exp37/framing_battery.json</code>.</p>
|
||||
<code>runs/exp37/framing_battery.json</code>, <code>runs/exp41/results.json</code>,
|
||||
<code>runs/exp43/layer_curve.json</code>, and the live server's own
|
||||
<code id="vectorUrl">/vector</code>.</p>
|
||||
|
||||
<script>
|
||||
function esc(s){ return (s==null?"":String(s)).replace(/[&<>]/g, c=>({"&":"&","<":"<",">":">"}[c])); }
|
||||
@@ -112,6 +153,72 @@ fetch("correspondences_data.json").then(r=>r.json()).then(d=>{
|
||||
document.body.insertAdjacentHTML("beforeend",
|
||||
'<p class="note">could not load correspondences_data.json: ' + esc(String(err)) + '</p>');
|
||||
});
|
||||
|
||||
// ---- the vectors: live /vector card -----------------------------------
|
||||
const API = (new URLSearchParams(location.search)).get("api") || "/chamber";
|
||||
document.getElementById("vectorUrl").textContent = API + "/vector";
|
||||
fetch(`${API}/vector`).then(r=>r.json()).then(d=>{
|
||||
const rows = Object.entries(d.norms).map(([k,v])=>
|
||||
`<div class="row"><span class="k v-${esc(k)}">${esc(k)}</span>
|
||||
<span>norm ${fmt(v,3)} (1× = ${fmt(d.scale_1x,3)})</span></div>`).join("");
|
||||
document.getElementById("liveBlock").innerHTML = `<div class="live-card">
|
||||
<div class="row"><span class="k">live model</span><span>${esc(d.model)} ·
|
||||
layer ${d.layer} · subject "${esc(d.subject)}"</span></div>${rows}</div>`;
|
||||
}).catch(err=>{
|
||||
document.getElementById("liveBlock").innerHTML =
|
||||
'<p class="note badge bad">chamber unreachable right now (' + esc(String(err)) +
|
||||
'): only the live cross-check is down, not the recorded data below.</p>';
|
||||
});
|
||||
|
||||
// ---- the vectors: recorded orthogonalization + layer curve ----------------
|
||||
fetch("vectors_data.json").then(r=>r.json()).then(d=>{
|
||||
const cb = d.cosines.before, ca = d.cosines.after;
|
||||
const bar = (v, cls)=> `<div class="track"><span class="${cls}"
|
||||
style="width:${Math.max(1, Math.abs(v)*100).toFixed(1)}%"></span></div>`;
|
||||
const cos = ["pain-fear","pain-sad","fear-sad"].map(p=>
|
||||
`<span class="lab">cos(${p})</span>${bar(cb[p],"before")}<span class="val">${fmt(cb[p])}</span>
|
||||
<span class="lab"></span>${bar(ca[p],"after")}<span class="val">${fmt(Math.abs(ca[p])<0.005?0:ca[p])}</span>`).join("");
|
||||
const es = Object.entries(d.extraction_set_sizes).map(([k,v])=>`${esc(k)} ${v}`).join(" · ");
|
||||
document.getElementById("recordedBlock").innerHTML =
|
||||
`<div class="cos">${cos}</div>
|
||||
<p class="cap"><span style="color:#3b4656">■</span> before
|
||||
<span style="color:var(--pain)">■</span> after orthogonalizing pain ·
|
||||
extraction sentences: ${es} · neutral activation norm ${fmt(d.neutral_norm,1)}</p>`;
|
||||
|
||||
const byDs = {};
|
||||
d.layer_curve.forEach(r=>{ (byDs[r.dataset] ??= []).push(r); });
|
||||
const canvas = document.getElementById("curveChart");
|
||||
const dpr = window.devicePixelRatio || 1;
|
||||
const w = canvas.clientWidth || 860, h = 220;
|
||||
canvas.width = w * dpr; canvas.height = h * dpr;
|
||||
const ctx = canvas.getContext("2d");
|
||||
ctx.scale(dpr, dpr);
|
||||
const pad = 28;
|
||||
const maxLayer = Math.max(...d.layer_curve.map(r=>r.layer));
|
||||
const colors = { S2_1P: "#7fd4c8", S2_3P: "#c9a227" };
|
||||
ctx.strokeStyle = "#1c2430"; ctx.lineWidth = 1;
|
||||
for (let i=0;i<=4;i++){
|
||||
const y = pad + (h-2*pad) * (1 - i/4);
|
||||
ctx.beginPath(); ctx.moveTo(pad,y); ctx.lineTo(w-pad,y); ctx.stroke();
|
||||
}
|
||||
Object.entries(byDs).forEach(([ds, rows])=>{
|
||||
rows.sort((a,b)=>a.layer-b.layer);
|
||||
ctx.strokeStyle = colors[ds] || "#8f9fb0"; ctx.lineWidth = 1.6;
|
||||
ctx.beginPath();
|
||||
rows.forEach((r,i)=>{
|
||||
const x = pad + (w-2*pad) * (r.layer/maxLayer);
|
||||
const y = pad + (h-2*pad) * (1 - r.auc_vs_all_controls);
|
||||
i===0 ? ctx.moveTo(x,y) : ctx.lineTo(x,y);
|
||||
});
|
||||
ctx.stroke();
|
||||
});
|
||||
document.getElementById("curveCap").innerHTML =
|
||||
Object.keys(byDs).map(ds=>`<span style="color:${colors[ds]||'#8f9fb0'}">■</span> ${esc(ds)}`)
|
||||
.join(" ") + " · x: layer 0–" + maxLayer + ", y: AUC 0–1";
|
||||
}).catch(err=>{
|
||||
document.getElementById("recordedBlock").innerHTML =
|
||||
'<p class="note">could not load vectors_data.json: ' + esc(String(err)) + '</p>';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user