{% from "_macros.html" import chart %}
{# One experiment, on its own page (experiment.html). Expects `v` from compiler._experiment_view and `rank`. The top shows the hypothesis, the verdict and the values that decide it. Every other section is a closed fold, in order of importance, and a section with no data is left out (#5566). #}
{% from "_macros.html" import status_badge, broad_badge, evidence_badge, self_review_badge, builtin_sample_badge, pole_mark, heat_tokens, spoiler, errata_notes %}
{% from "_site_macros.html" import fold, read_more, chevron %}
{% set e = v.e %}{% set sub = v.sub %}{% set verdict = v.verdict %}{% set ident = v.ident %}
{% set c = v.c %}{% set bars = v.bars %}{% set examples = v.examples %}
{% set is_head = ident.kind == "attn_head" %}
{% set is_feature = ident.kind == "dictionary_feature" %}{% set is_sup = ident.kind == "superposition" %}
{% set positive = ident.pole != "negative" %}{# heads and features share the positive pole's colours #}
{% set what = "head" if is_head else ("feature" if is_feature else ("superposition" if is_sup else "pole")) %}
{% set peer = "head" if is_head else ("latent" if is_feature else ("null direction" if is_sup else "neuron")) %}
{% set peers = peer ~ "s" %}
{% set strength = "head strength" if is_head else ("latent activation" if is_feature else ("superposition strength" if is_sup else ident.pole ~ "-pole strength")) %}
{% if sub.natural_language_explanation | length > 160 %}{# On a phone, the hypothesis shows three lines, so that the values that decide the verdict fit on the first screen (#5566). #}
{{ chevron() }}The whole hypothesis
{{ sub.natural_language_explanation }}
{% endif %}
Hard negatives {{ "%g" | format(e.sig.negatives.passed) }}/{{ e.sig.negatives.clusters }} {{ "stayed on" if sub.claim == "inverse" else "rejected" }} ·
holdouts {{ "%g" | format(e.sig.holdouts.passed) }}/{{ e.sig.holdouts.clusters }} {{ "went quiet" if sub.claim == "inverse" else "fired" }}
(independent observations; {{ e.sig.negatives.raw + e.sig.holdouts.raw }} probes) ·
P(useful) {{ e.sig.p_useful | num(2) }}
{% if not e.independent %}· re-measures the probes of {{ e.reuses }}; not independent evidence{% endif %}
{% if e.revises %}Revises {{ e.revises.id }} ({{ e.revises.record.verdict.status }}){% endif %}
{% if e.revises and e.revised_by %} · {% endif %}
{% if e.revised_by %}Revised by {% for r in e.revised_by %}{{ r.id }} ({{ r.record.verdict.status }}){{ ", " if not loop.last }}{% endfor %}{% endif %}
{% endif %}
{% for label, value, hint in [
("Balanced accuracy", verdict.confidence_score if verdict else none, "Mean of hard-negative specificity and holdout sensitivity"),
("Sufficiency", c.sufficiency_score if c else none, "Clean→corrupted patch: percentile of the " ~ what ~ "'s effect among comparable " ~ peers if c and c.target else "Clean→corrupted patch: fraction of clean prediction restored"),
("Necessity", c.necessity_score if c else none, "Corrupted→clean patch: percentile of the " ~ what ~ "'s effect among comparable " ~ peers if c and c.target else "Corrupted→clean patch: fraction of prediction lost"),
("Lookahead KL", none, "KL(clean ‖ " ~ ("head mean-ablated" if is_head else ("latent-ablated" if is_feature else ("superposition-ablated" if is_sup else "pole-ablated"))) ~ ") over next-token distributions"),
] %}
{{ label }}
{% if label == "Lookahead KL" %}
{{ sub.lookahead.kl_divergence | num(4) }}
{% else %}
{{ value | num(2) }}
{% endif %}
{% endfor %}
{% if verdict and verdict.metrics %}{% set m = verdict.metrics %}
{% for gate, ok in m.gates.items() %}
{{ '✓' if ok else '✗' }} {{ gate | replace('_', ' ') }}
{% endfor %}
{% set _label %}Probe strengths against the activation threshold: {% for row in pc.rows %}{{ row.passed }} of {{ row.n }} {{ row.label | lower }} passed{{ '; ' if not loop.last else '' }}{% endfor %}. Values are in the table below.{% endset %}{% call chart(pc.width, pc.height, "Probe strengths", _label | trim, role="img") %}
{% for row in pc.rows %}
{{ row.label }}{{ row.passed }}/{{ row.n }} {{ row.expect }}
{% endfor %}
threshold {{ pc.threshold | num(2) }} ({{ pc.threshold_frac | pct }} of max) → active
{% for row in pc.rows %}{% for d in row.dots %}
{{ d.label }}
{% if d.passed %}
{% else %}
{% endif %}
{% endfor %}{% endfor %}
{% for tx, label, anchor in [(pc.zero_x, "0", "middle"), (pc.max_x, "max " ~ (pc.scale | num(2)), "end" if pc.max_x > pc.right - 40 else "middle")] %}
{{ label }}
{% endfor %}
{% endcall %}
passed failedEach probe's peak {{ strength }}. The shaded side of the line counts as active. Hover a dot for its prompt.
{% endif %}
All {{ verdict.adversarial_test_results | length }} probes
Test
Input
Expected
Observed
{% for t in verdict.adversarial_test_results %}
{% if t.measured %}
{{ '✓' if t.passed else '✗' }}
{% else %}
—
{% endif %}
{{ t.kind | replace('_', ' ') }}
{{ t.prompt }}{% if t.detail %}
{{ t.detail }}
{% endif %}
{% if t.expected_active is not none %}{{ 'active' if t.expected_active else 'inactive' }}{% elif t.expected_delta is not none %}Δ {{ t.expected_delta | num(2) }}{% endif %}
{% if t.activation is not none %}{{ t.activation | num(3) }}{% elif t.observed_delta is not none %}Δ {{ t.observed_delta | num(2) }}{% endif %}
{% endfor %}
{% endcall %}
{% endif %}
{% if sub.counterfactuals or v.causal %}
{% call fold("Minimal pairs") %}
{% include "_causal_chart.html" %}
{% set pairs = c.pairs if c and c.pairs else [] %}
{% if sub.counterfactuals %}
#
Base → counterfactual
Expected Δ
Observed Δ
{% if pairs %}
Sufficiency
Necessity
{% endif %}
{% for cf in sub.counterfactuals %}{% set found = pairs | selectattr("pair_index", "equalto", loop.index0) | list %}{% set p = found[0] if found else none %}
{{ loop.index }}
{{ cf.base_prompt }}
→ {{ cf.counterfactual_prompt }}
{{ cf.expected_delta | num(2) }}
{{ cf.observed_delta | num(2) }}
{% if pairs %}{% for patch in ([p.sufficiency, p.necessity] if p else [none, none]) %}
Δ is the base prompt's peak {{ strength }} minus the counterfactual's, as a fraction of the max activation.
{% if c %}
{% if c.target %}
Each causal score ranks the {{ what }}'s patch effect among the {{ c.null_neurons }} same-layer {{ peers }} that change as much between each pair, so 0.5 is typical. Sufficiency patches clean into corrupted, and necessity corrupted into clean. The score is the median over {{ c.pairs_scored }} non-control pairs, on
{% if c.target == "claimed_tokens" %}the claimed tokens{% for t in c.target_tokens %} {{ t }}{% endfor %}{% else %}next-token KL{% endif %}.
Median effect {{ '%.3g' | format(c.sufficiency_effect) }} (sufficiency) and {{ '%.3g' | format(c.necessity_effect) }} (necessity). In the table, each cell gives the percentile, the {{ what }}'s signed effect, and the matched {{ peers }}' median and largest |effect|, in {{ 'logits' if c.target == 'claimed_tokens' else 'nats of KL' }}.
{% else %}
The causal scores are medians over the pairs, on the base prompt's top-1 token logit (protocol before 0.5).
{% endif %}
Self-repair (the hydra effect) {{ 'was mitigated by freezing downstream MLP outputs' if c.hydra_mitigated else 'was not mitigated' }}.
0{{ (sub.max_activation or 0) | num(2) }}peak token
Hover a token for its value.
{% for ex in examples %}
{{ ex.max_activation | num(2) }}
{% call spoiler(ex.offensive) %}
{%- if ex.clipped_start %}… {% endif %}{{ heat_tokens(ex.window) }}{% if ex.clipped_end %} …{% endif %}
{% if ex.attended %}
Peak attends to {% for a in ex.attended %}{{ a.text }} {{ a.weight | num(2) }}{{ ", " if not loop.last }}{% endfor %}
{% endif %}
{% if ex.clipped_start or ex.clipped_end %}
All {{ ex.tokens | length }} tokens
{{ heat_tokens(ex.tokens) }}
{% endif %}
Values
Token
{{ strength | capitalize }}
{{ values_rows(ex.window) }}
{% endcall %}
{% endfor %}
{% call read_more() %}
Each token is shaded by {{ strength }}, as a fraction of the {{ peer if is_head or is_feature else ("superposition" if is_sup else "neuron") }}'s max activation.{% if is_head %} Under each example are the tokens that the peak attends to most.{% endif %} Each window shows up to 30 tokens before the peak and 10 after it.
{% endcall %}
{% endcall %}
{% endif %}
{% if v.scores %}
{% set xs = v.scores %}{% set es = xs.s %}
{% call fold("Explanation scores on held-out text") %}
How well a judge with only the hypothesis predicts the unit on new text. 0.5 is chance.
{% call read_more() %}
The judge reads {{ es.window_tokens }}-token windows of corpus text that the proposer never saw. Detection: it picks the windows that activate the unit. Fuzzing: it checks whether the marked tokens are the active ones. Recorded, not gated.
{% endcall %}
{% for label, value, hint in [
("Detection", es.detection.balanced_accuracy if es.detection else none, "Balanced accuracy of the judge picking active windows"),
("Fuzzing", es.fuzzing.balanced_accuracy if es.fuzzing else none, "Balanced accuracy of the judge checking marked tokens"),
("Embedding AUROC", es.embedding_auroc, "How well similarity to the hypothesis separates active from inactive windows (" ~ (es.embedding_model or "no model") ~ ")"),
] %}
{{ label }}
{{ value | num(2) }}
{% endfor %}
{% if es.detection %}
Detection recall by activation strength
{% for r in es.detection.recall_by_quantile %}
{{ r | num(2) }}
{% endfor %}
weakeststrongest
False alarms on inactive windows: {{ es.detection.false_positive_rate | pct }}.
{% for o, n in xs.counts.items() %}{{ n }} {{ o }}{{ ' · ' if not loop.last }}{% endfor %}
Seed
{{ es.seed }} · {{ es.corpus }}
Detection windows ({{ xs.detection | length }}), the explanation's mistakes first
{% for r in xs.detection %}
{{ r.outcome }}{{ r.peak | num(2) }}{% if r.w.similarity is not none %} · sim {{ r.w.similarity | num(2) }}{% endif %}
{% call spoiler(r.offensive) %}{{ heat_tokens(r.tokens) }}{% endcall %}
{% endfor %}
{% if xs.fuzzing %}
Fuzzing windows ({{ xs.fuzzing | length }}), dashed tokens were marked for the judge
{% for r in xs.fuzzing %}
{% set right = r.w.judged == r.w.label %}
marks {{ 'right' if r.w.label else 'wrong' }} · judged {{ 'right' if r.w.judged else 'wrong' }}
{% call spoiler(r.offensive) %}{{ heat_tokens(r.tokens) }}{% endcall %}
{% endfor %}
{% endif %}
{% endcall %}
{% endif %}
{% include "_rivals.html" %}
{% call fold("Activation and mechanism") %}
{% if bars %}
Activation distribution
{% set _label %}Histogram of {{ strength }} over the scanned corpus{% endset %}{% call chart(600, 160, "Activation distribution", _label | trim, role="img") %}
{% for b in bars %}
{{ b.label }}
{% endfor %}
{{ sub.activation_histogram.bin_edges[0] | num(2) }}{{ sub.activation_histogram.bin_edges[-1] | num(2) }}
{% endcall %}
{{ strength | capitalize }} per token{% if is_head %} (|W_O (z − z̄)|: distance from the head's mean write){% endif %}; bar height is log(1 + count).
{% endif %}
Mechanism
{% if sub.lookahead.is_lookahead %}
Claimed lookahead: prepares upcoming tokens
{% for tok in sub.lookahead.target_upcoming_tokens %}{{ tok }}{% endfor %}.
{% else %}
Claimed retrospective: responds to tokens already in context.
{% endif %}
{% if sub.input_attribution and sub.input_attribution.examples %}
{% set ia = sub.input_attribution %}
Input attribution
{% if ia.distances %}
{% for d in ia.distances %}
{{ d.label }} back
{{ d.share | pct }}
{% endfor %}
{% endif %}
{% for ex in ia.examples %}
{% call spoiler(ex.example in v.offensive_examples) %}#{{ ex.example + 1 }}{{ "" if ex.converged else " (not converged)" }} at{{ ex.peak_token }}:
{% for t in ex.top %}{{ t.token }}{{ t.offset }} {{ t.attribution | num(2) }}{% endfor %}{% endcall %}
{% endfor %}
Shares of the gap to {{ ia.baseline_token }} at every position but the first · converged on {{ ia.converged }} of {{ ia.examples | length }} · mean {{ ia.mean_distance | num(1) }} tokens back ·
agreement with replacing one token at a time ρ = {{ ia.ablation_agreement | num(2) }} · reported, not gated
{% endif %}
{% include "_head_profile.html" %}
{% if sub.dictionary_profile %}
{% set dp = sub.dictionary_profile %}
{% for label, value, hint in [
("Explained variance", dp.explained_variance | num(2) if dp.explained_variance is not none else "–", "Fraction of the " ~ ("residual stream" if dp.output_site == "resid_post" else "MLP output") ~ "'s variance the whole dictionary reconstructs on the scan"),
("Mean L0", dp.mean_l0 | num(1) if dp.mean_l0 is not none else "–", "Active latents per scanned token"),
("Dead latents", dp.dead_share | pct if dp.dead_share is not none else "–", "Share of the dictionary's latents inactive on every scanned token"),
("Density", dp.density | pct_fine, "Share of scanned tokens on which this latent is non-zero"),
] %}
{{ label }}
{{ value }}
{% endfor %}
A latent of a {{ dp.kind }} with {{ "{:,}".format(dp.n_features) }} latents ({{ dp.repo }}{% if dp.revision %}@{{ dp.revision[:8] }}{% endif %}, {{ dp.path }}), reading {{ dp.input_site }}: a learned-basis baseline, not a native unit. Fit measured on {{ "{:,}".format(dp.tokens) }} scanned tokens (reported, not gated).
{% endif %}
{% endcall %}
{% include "_vocab_chart.html" %}
{% include "_patchscope.html" %}
{% include "_steering.html" %}
{% include "_specificity.html" %}
{% include "_prior_art.html" %}
{% include "_wiring.html" %}
{% set m = verdict.metrics %}
{% set cf = sub.confounds %}
{% set ja = verdict.joint_ablation %}
{% if cf or v.correlated or ja %}
{% call fold("Covariance and confounds") %}
Ranked by the 95% lower bound of co-activation lift: how much more often a pole fires when this one does, with chance coincidences discounted. ρ ranks the values, so heavy tails don't sway it.
{% endcall %}
{% endif %}
{% if ja %}
Joint ablation
Partners
{% for p in ja.partners %}N{{ p }}{{ ', ' if not loop.last }}{% endfor %}
KL pole alone
{{ "%.2e" | format(ja.kl_single) }}
KL partners
{{ "%.2e" | format(ja.kl_partners) }}
KL together
{{ "%.2e" | format(ja.kl_joint) }}
Redundancy ratio
{{ ja.redundancy_ratio | num(2) }}
{% if ja.redundancy_ratio is none %}The pole alone has no measurable effect.
{% elif ja.redundancy_ratio > 1.5 %}The pole matters more once its partners are removed: likely redundancy.
{% elif ja.redundancy_ratio < 0.5 %}With the partners already removed, also removing this pole adds little: its effect overlaps with theirs (a shared pathway).
{% else %}The partners don't change the pole's effect much.{% endif %}
{{ agent_name(verdict.reviewer_agent_model) }}{% if verdict.contributor %} run by {{ verdict.contributor }}{% endif %}{% if e.record.self_reviewed %} (same model as the proposer: not an independent review){% endif %}