{# Vocabulary projection for _experiment.html. Expects `v` and `sub`. #} {% if sub.vocabulary_lens %} {% set vl = sub.vocabulary_lens %}{% set vc = v.vocab %}

Vocabulary projection

The tokens whose logits this pole's output direction raises and lowers most, read through the final norm and the unembedding.

{% if vc %}
{% for panel in vc.panels %}

{{ panel.title }}

{% for tx, label in vc.ticks %} {% endfor %} {% for r in panel.rows %} {{ r.label }} {{ r.text }} {% endfor %} {% for tx, label in vc.ticks %} {{ label }} {% endfor %}
{% endfor %}
promotes suppresses Bar length is the token's z-score over the whole vocabulary, so both lenses share one axis; ␣ marks a space. Hover a bar for its value.
Values
{% for panel in vc.panels %}{% endfor %} {% for row in vc.table %} {% for panel in vc.panels %}{% for side in ("promoted", "suppressed") %}{% set cell = row[panel.key ~ "_" ~ side] %} {% endfor %}{% endfor %} {% endfor %}
#{{ panel.title }} promotessuppresses
{{ row.rank }}{% if cell %}{{ cell[0] }}{% endif %} {% if cell %}{{ "%+.2f" | format(cell[1]) }}{% endif %}
{% else %} {% for label, jac, logit in [("Promotes", vl.jacobian_promoted, vl.logit_promoted), ("Suppresses", vl.jacobian_suppressed, vl.logit_suppressed)] %} {% endfor %}
Jacobian lens Logit lens
{{ label }} {% for t in jac[:8] %}{{ t }}{% endfor %} {% for t in logit[:8] %}{{ t }}{% endfor %}

This record predates vocabulary z-scores, so the tokens are listed without bars.

{% endif %}

Top-10 overlap {{ vl.overlap | pct }} · cos(w, J·w) {{ vl.direction_cosine | num(2) }} · kurtosis {{ vl.jacobian_kurtosis | num(1) }} (Jacobian) / {{ vl.logit_kurtosis | num(1) }} (logit); ≈3 means no specific token set · {{ vl.prompts }} prompts

{% endif %}