MATH · IN · MODELS

A grid-minus-ring mean-difference direction in the late residual stream of Llama-3.1-8B causally steers in-context graph-family predictions

measured in 1 paper

Kowalyshyn et al. (2026) compute a graph-difference vector v = E[h | grid context] - E[h | ring context] at the final position of Llama-3.1-8B (non-instruct) from 1000 training contexts per graph at T=1400 tokens, and add alpha*v to the residual stream of 500 held-out prompt pairs at layers 20-28 [kowalyshyn-etal-2026] At alpha=5 the real vector recovers 0.449 +/- 0.004 of the clean-corrupt graph-family logit contrast, against 0.019 for a norm-matched Gaussian random vector and -0.006 for a shuffled-label vector; alpha=-5 reverses the sign (-0.192) and the effect grows with layer [kowalyshyn-etal-2026] Residual-stream patching at the final position recovers 0.860 of the contrast at layer 26 (200 pairs) and held-out-edge logits turn positive by layer 26, but steering with the single global direction moves held-out-edge logits much less than patching does [kowalyshyn-etal-2026] Single model and a 16-node grid/ring toy task; the paper's claim of two graph topologies in orthogonal PCA subspaces rests on qualitative PCA figures and is not tagged here [kowalyshyn-etal-2026]

Context

in-context learning, graph random walk, activation steering

Confirmed in models

Papers

Belief or Circuitry? Causal Evidence for In-Context Graph Learning — Kowalyshyn, Katharine, Duggan, Timothy, Little, Daniel, Hughes, Michael C.2026 · arXiv:2605.08405