How “parent” is resolved across layers (measured)

Loading data ...

parent_data.js was not found next to this file.

Create it by running python extract_parent_data.py in this folder (it needs torch, transformers and numpy), then reload this page. To view another output file, add ?data=yourfile.js to the page address.

Animated layer-by-layer view of a real model run on a sentence containing the word parent. Each token has a column of residual stream states; bars show caregiver and process read-direction scores, and curved arcs show what the followed word attends to at each layer.

Parent resolved across layers, measured on a real model A grid of layers by tokens shows caregiver and process scores. Arcs below the tokens show which earlier words the followed word attends to at the current layer.
Follow Bars
caregiver score (top bar) process score (bottom bar) cell border: margin above the threshold dark tip: score above 1 (bar cut off)
L0 = embeddings. An empty bar is a typical neutral word (or, in the last column, a typical neutral sentence’s final period); a full bar is the average caregiver (process) final period. Words and periods each get their own zero, because a period differs from a word whatever the sentence says.