Reading Positional Coupling in Transformers with Diffusion Scores
Savik Kinger, Johannes Bertram, Luciano Dyballa, Andy Keller, Steven W Zucker
NeurIPS page · Open on the map
Category: Interpretability & Model Adaptation › Mechanistic Interpretability · Type: new method · Keywords: transformer interpretability, positional encoding, cross-position coupling, score-based diagnostic, activation analysis
Areas: LLM Reasoning › Efficient Reasoning › Attention Mechanisms; Model Architectures & Sequence Modeling › Language Model Architectures › Attention Geometry; Interpretability › Mechanistic Interpretability › Geometric Mechanistic Interpretability
Summary
Score-Block Token Geometry (SBTG) is a score-based diagnostic that recovers cross-position dependency structure in transformer activations, revealing distinct signatures of different positional encoding mechanisms.
Explained to a 5-year-old
We look inside a computer brain that reads words. It needs to know where each word is in the sentence. The scientists built a tool that watches how the brain connects information from different words. They see that some brains use a simple rule, others spread the connections, and some keep each word separate. This helps us understand how the brain uses position.
Explained to a 5-year-old, longer
A computer brain called a transformer reads sentences. It needs to know the order of the words. To understand how it does this, scientists look at what the brain remembers. They notice that most tools only look at one word at a time. This misses how words talk to each other. The researchers created a new way to see those connections. They train a model that guesses how noisy the brain’s memory is. From this they build special tools that measure how far apart words influence each other. When they test the brain with different ways of adding order, they see different patterns. Some brains have a simple pattern, others have many patterns, and some keep each word separate. By removing these patterns, the brain performs worse on tasks that need relative order. This tells us why different brains use position in different ways.
For a technical reader
The paper introduces Score-Block Token Geometry (SBTG), a diagnostic that analyses how transformer activations couple information across token positions. It trains a denoising score model on activation windows and derives lag-indexed operators that quantify these couplings. When applied to transformers using different positional encodings (ALiBi, RoPE, absolute), SBTG reveals distinct coupling patterns that match the expected architectural behavior. Ablation of the identified coupling directions shows a larger drop in performance on tasks that rely on relative position reasoning, confirming their causal role. Overall, SBTG provides a practical lens for interpreting how positional encodings shape model behavior without requiring full model introspection.
Problem
Understanding how transformers encode position and context is challenging because existing tools like linear probes only look at single-position activations and miss cross-position dependencies.
Method
The approach trains a denoising score model on windows of activations and constructs lag-indexed operators that quantify coupling between positions within a layer.
Results
These signatures are stable across seeds and model sizes, and the activation-space directions identified by SBTG are causally relevant: ablating them causes larger performance drops on tasks that require reasoning over relative positions than on tasks that depend on absolute position signals.
Contributions
A score-based diagnostic that recovers cross-position dependency structure, revealing distinct coupling signatures for different positional encodings and demonstrating their causal relevance to model performance.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction