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
caregiver score (top bar) process score (bottom bar) cell border: margin above the threshold
L0 = embeddings. A score of 1.0 is the average at caregiver (process) probe positions.