{# A head's attention-pattern scores and OV lens, on its experiment page (#5062). #} {% if sub.head_profile %} {% set hp = sub.head_profile %}
{% for label, value, hint in [ ("Previous token", hp.previous_token_score, "Mean attention to the token before"), ("Duplicate token", hp.duplicate_token_score, "Mean attention from a repeated token to its earlier copy"), ("Induction", hp.induction_score, "Mean attention to the token after the earlier copy of the current token"), ] %}
{{ label }}
{{ value | num(2) }}
{% endfor %}

Attention-pattern scores on {{ hp.pattern_sequences }} random {{ hp.pattern_length }}-token sequences repeated twice (reported, not gated). Strength is measured from the head's mean output over {{ "{:,}".format(hp.mean_tokens) }} scanned tokens.

{% if hp.ov_lens %} {% set ov = hp.ov_lens %}
{% for label, value, hint in [ ("OV copying", "{:+.2f}".format(ov.copying_score), "Sum of the OV circuit's eigenvalues over the sum of their sizes: +1 copies, −1 suppresses"), ("Own token in top " ~ ov.k, ov.copy_share | pct, "Share of random tokens whose own logit is among the top " ~ ov.k ~ " of their OV write"), ("Own token in bottom " ~ ov.k, ov.suppression_share | pct, "Share of random tokens whose own logit is among the bottom " ~ ov.k ~ " of their OV write"), ] %}
{{ label }}
{{ value }}
{% endfor %}

The head's OV circuit read through the vocabulary, from its weights alone, on {{ "{:,}".format(ov.tokens) }} random tokens (reported, not gated).{% if ov.mappings %} Attended tokens map to: {% for m in ov.mappings %}{{ m.token }} → {{ m.top | map("tojson") | join(", ") }}{{ "; " if not loop.last }}{% endfor %}.{% endif %}

{% endif %} {% endif %}