MATH · IN · MODELS
structures / Manifolds / Depth-Stratified Hierarchy

Depth-Stratified Hierarchy

PROPERTYempirical-patternintermediatehow it's classified →

An observed organization in which the entity centroids of a hierarchy (a tree) arrange in layers ordered by node depth: pairwise dissimilarity grows with depth difference, same-depth nodes band together, and parent-child pairs are far apart. It is a depth-ordered layering measured by rank correlation with a depth template, not a fitted tree metric and not a hyperbolic embedding.

Replicationcomputed from the corpus — never hand-assigned
1 paper1 architecture class1 domain3 model families · one study
Filled = two or more values reported by papers that share no author — replication. Outlined = two or more values, but all from a single study — breadth, not replication. Grey = a single value. Derived from paper authorship and each model's architecture class, domain and family; it updates itself when a paper is added.

Definition

Given a rooted tree over entities e1,…,eNe_1,\dots,e_N with node depths depth(ei)\mathrm{depth}(e_i), and one centroid cic_i per entity in a real model’s activations, the representation is depth-stratified when the (mean-centered) cosine RDM DijD_{ij} rank-correlates with a depth template Tij=∣depth(ei)−depth(ej)∣T_{ij}=|\mathrm{depth}(e_i)-\mathrm{depth}(e_j)| (depth-RSA, Spearman), against a stated null, and the centroids form depth layers: same-depth nodes band together and parent-child pairs are among the farthest.

This is a claim about layering by depth, deliberately weaker than a tree embedding. It does not assert that tree path distance is recovered, that a linear map BB turns squared distance into graph distance (that is Tree Metric Embedding), or that the layout has negative curvature (that is Hyperbolic Manifold).

Intuition

Stack the nodes of a family tree by generation. Everyone in a generation sits at roughly the same level, and levels are ordered, but nothing is said about which cousin is near which. The pattern is the stack of levels, not the branching.

Properties

  • Layering, not branching. What is established is the ordering by depth. The finer branch relation (cosine distance growing with common-ancestor distance among same-depth leaves) can be present but is only metric and partly surface-driven, so no faithful tree embedding follows.
  • Low effective dimension. The layered centroids occupy few effective dimensions (participation ratio about 2 for an imposed tree on the seven weekdays), versus about 4 for a ring on the same tokens.
  • Rank-based evidence. The measure is RSA against a template with a permutation or label-shuffle null, so it supports ordering but not metric shape.
  • Distinct from a ring or a line. Imposing a tree on tokens removes the ring (no persistent H1H_1 loop) while an imposed cycle keeps one; see Circle.

Key evidence

David & Fomin (2026) impose a declarative binary tree (“P is the parent of A and B”, no exemplars) on arbitrary meaning-free nouns in instruction-tuned Gemma-4 and Qwen-3.5 models and read last-prompt-token centroids at 0.75 of depth under neutral queries that ask nothing structural. The centroid RDM tracks node depth with RSA near +0.9 at depth 2, holding at +0.73 (Gemma-31B) and +0.63 (Qwen-27B) at depth 4, with same-depth nodes banding together and parent and child the farthest pairs. A co-occurrence control (siblings shuffled apart) leaves depth-RSA unchanged (0.83 to 0.82 Gemma, 0.71 to 0.72 Qwen); the 2B model builds none. The authors state they do not claim a faithful tree embedding. The structure is imposed by the prompt, and the finding is that the model’s activations reorganize into it with no pretrained relation to inherit; no causal test is run on the tree itself. See an-in-context-declarative-cyclic-order-redraws-entity-centroids-into-a-ring-matching-the-imposed-cycle-not-the-pretrained-order-in-capable-gemma-4-and-qwen-3-5-models-with-persistent-h1-loop-and-entity-patching-crossover.

Exercises

Base

  • Why is depth-RSA of +0.73 not evidence that a tree is embedded? Consider what a depth template does and does not fix about pairs of same-depth nodes.

Advanced

  • Design a test that separates depth layering from a tree metric. State which quantity (depth versus common-ancestor distance among same-depth leaves) each result would constrain.

Found in (1 observation · 3 families)

Gemma

Context Is King: How In-Context Specification Shapes the Geometry of Concepts (2026)measured

A declaratively stated cyclic order (given in the prompt, no exemplars) redraws entity centroids in the residual stream into a ring that follows the imposed cycle rather than the pretrained cyclic order, in capable Gemma-4 and Qwen-3.5 models; the ring carries a persistent H1 loop on arbitrary tokens, and the answer follows the context-set map under entity-substitution patching

Details

- David & Fomin read last-prompt-token residual-stream centroids (layer 0.75 x depth, mean-centered, RSA against a cyclic template) for days, months, clock hours, zodiac and notes under a prompt that redefines the cyclic order, in eight instruction-tuned models (Gemma-4 E2B/E4B/12B/31B, Qwen-3.5 4B/9B/27B, Llama-3.1-8B). [david-fomin-2026] - Gemma-31B days: imposed-order RSA +0.87 versus pretrained-order RSA -0.03 (months +0.81/+0.05, clock hours +0.82/-0.05); Qwen-27B days +0.67/-0.01; a label-shuffle null preserving the activation cone is cleared by all ten scrambles on every concept in both large models. [david-fomin-2026] - The effect is capability-gated: imposed-order RSA is weak or reversed in Qwen-9B (days +0.10 imposed versus +0.44 pretrained) and Qwen-4B, and Llama-8B builds no map; clean dominance appears only in the larger models. [david-fomin-2026] - An imposed cycle on the seven weekdays keeps a ring with participation-ratio dimension about 4 (imposed RSA +0.72/+0.71 in Gemma-31B/Qwen-27B), while an imposed tree on the same tokens restratifies them by depth (depth-RSA +0.67/+0.68, effective dimension about 2) and removes the loop; on arbitrary tokens the imposed cycle shows a dominant persistent H1 bar 8-11x the top bar of matched random points (Gemma-31B 11.5x, Gemma-E2B 8.4x), whereas the tree sits at 2.0x (Gemma-31B) and 4.7x (Qwen-27B). [david-fomin-2026] - A declarative binary tree on arbitrary tokens forms a depth-stratified arrangement of centroids: depth-RSA about +0.9 at depth 2 and +0.73/+0.63 (Gemma/Qwen) at depth 4, same-depth nodes banded and parent-child pairs farthest; the paper states it does not claim a faithful tree embedding. [david-fomin-2026] - A declaratively imposed 3x3 grid on QWERTY keys overrides the native keyboard layout (imposed-layout versus native RSA +0.78 vs +0.09 in Qwen-27B, +0.42 vs +0.02 in Gemma-31B), and on meaning-free tokens grid-distance RSA beats a 1-D line template (Gemma-31B +0.43); RSA only, nine centroids (Appendix J). [david-fomin-2026] - Entity-substitution activation patching at mid-depth makes Gemma-31B answer with the donor entity's successor under whichever order the context sets (imposed 1.00, pretrained 1.00 in the respective contexts, other order at chance 0.14), i.e. the context-set map is used, though the paper states the patch localizes the entity and depth, not the ring axis as the causal carrier. [david-fomin-2026]

models: Gemma 4 E2B-it, Gemma 4 E4B-it, Gemma 4 12B, Gemma-4-31B-Instruct · method:

Qwen

Context Is King: How In-Context Specification Shapes the Geometry of Concepts (2026)measured

A declaratively stated cyclic order (given in the prompt, no exemplars) redraws entity centroids in the residual stream into a ring that follows the imposed cycle rather than the pretrained cyclic order, in capable Gemma-4 and Qwen-3.5 models; the ring carries a persistent H1 loop on arbitrary tokens, and the answer follows the context-set map under entity-substitution patching

Details

- David & Fomin read last-prompt-token residual-stream centroids (layer 0.75 x depth, mean-centered, RSA against a cyclic template) for days, months, clock hours, zodiac and notes under a prompt that redefines the cyclic order, in eight instruction-tuned models (Gemma-4 E2B/E4B/12B/31B, Qwen-3.5 4B/9B/27B, Llama-3.1-8B). [david-fomin-2026] - Gemma-31B days: imposed-order RSA +0.87 versus pretrained-order RSA -0.03 (months +0.81/+0.05, clock hours +0.82/-0.05); Qwen-27B days +0.67/-0.01; a label-shuffle null preserving the activation cone is cleared by all ten scrambles on every concept in both large models. [david-fomin-2026] - The effect is capability-gated: imposed-order RSA is weak or reversed in Qwen-9B (days +0.10 imposed versus +0.44 pretrained) and Qwen-4B, and Llama-8B builds no map; clean dominance appears only in the larger models. [david-fomin-2026] - An imposed cycle on the seven weekdays keeps a ring with participation-ratio dimension about 4 (imposed RSA +0.72/+0.71 in Gemma-31B/Qwen-27B), while an imposed tree on the same tokens restratifies them by depth (depth-RSA +0.67/+0.68, effective dimension about 2) and removes the loop; on arbitrary tokens the imposed cycle shows a dominant persistent H1 bar 8-11x the top bar of matched random points (Gemma-31B 11.5x, Gemma-E2B 8.4x), whereas the tree sits at 2.0x (Gemma-31B) and 4.7x (Qwen-27B). [david-fomin-2026] - A declarative binary tree on arbitrary tokens forms a depth-stratified arrangement of centroids: depth-RSA about +0.9 at depth 2 and +0.73/+0.63 (Gemma/Qwen) at depth 4, same-depth nodes banded and parent-child pairs farthest; the paper states it does not claim a faithful tree embedding. [david-fomin-2026] - A declaratively imposed 3x3 grid on QWERTY keys overrides the native keyboard layout (imposed-layout versus native RSA +0.78 vs +0.09 in Qwen-27B, +0.42 vs +0.02 in Gemma-31B), and on meaning-free tokens grid-distance RSA beats a 1-D line template (Gemma-31B +0.43); RSA only, nine centroids (Appendix J). [david-fomin-2026] - Entity-substitution activation patching at mid-depth makes Gemma-31B answer with the donor entity's successor under whichever order the context sets (imposed 1.00, pretrained 1.00 in the respective contexts, other order at chance 0.14), i.e. the context-set map is used, though the paper states the patch localizes the entity and depth, not the ring axis as the causal carrier. [david-fomin-2026]

models: Qwen3.5-4B-Instruct, Qwen3.5-9B-Instruct, Qwen3.5-27B · method:

Llama

Context Is King: How In-Context Specification Shapes the Geometry of Concepts (2026)measured

A declaratively stated cyclic order (given in the prompt, no exemplars) redraws entity centroids in the residual stream into a ring that follows the imposed cycle rather than the pretrained cyclic order, in capable Gemma-4 and Qwen-3.5 models; the ring carries a persistent H1 loop on arbitrary tokens, and the answer follows the context-set map under entity-substitution patching

Details

- David & Fomin read last-prompt-token residual-stream centroids (layer 0.75 x depth, mean-centered, RSA against a cyclic template) for days, months, clock hours, zodiac and notes under a prompt that redefines the cyclic order, in eight instruction-tuned models (Gemma-4 E2B/E4B/12B/31B, Qwen-3.5 4B/9B/27B, Llama-3.1-8B). [david-fomin-2026] - Gemma-31B days: imposed-order RSA +0.87 versus pretrained-order RSA -0.03 (months +0.81/+0.05, clock hours +0.82/-0.05); Qwen-27B days +0.67/-0.01; a label-shuffle null preserving the activation cone is cleared by all ten scrambles on every concept in both large models. [david-fomin-2026] - The effect is capability-gated: imposed-order RSA is weak or reversed in Qwen-9B (days +0.10 imposed versus +0.44 pretrained) and Qwen-4B, and Llama-8B builds no map; clean dominance appears only in the larger models. [david-fomin-2026] - An imposed cycle on the seven weekdays keeps a ring with participation-ratio dimension about 4 (imposed RSA +0.72/+0.71 in Gemma-31B/Qwen-27B), while an imposed tree on the same tokens restratifies them by depth (depth-RSA +0.67/+0.68, effective dimension about 2) and removes the loop; on arbitrary tokens the imposed cycle shows a dominant persistent H1 bar 8-11x the top bar of matched random points (Gemma-31B 11.5x, Gemma-E2B 8.4x), whereas the tree sits at 2.0x (Gemma-31B) and 4.7x (Qwen-27B). [david-fomin-2026] - A declarative binary tree on arbitrary tokens forms a depth-stratified arrangement of centroids: depth-RSA about +0.9 at depth 2 and +0.73/+0.63 (Gemma/Qwen) at depth 4, same-depth nodes banded and parent-child pairs farthest; the paper states it does not claim a faithful tree embedding. [david-fomin-2026] - A declaratively imposed 3x3 grid on QWERTY keys overrides the native keyboard layout (imposed-layout versus native RSA +0.78 vs +0.09 in Qwen-27B, +0.42 vs +0.02 in Gemma-31B), and on meaning-free tokens grid-distance RSA beats a 1-D line template (Gemma-31B +0.43); RSA only, nine centroids (Appendix J). [david-fomin-2026] - Entity-substitution activation patching at mid-depth makes Gemma-31B answer with the donor entity's successor under whichever order the context sets (imposed 1.00, pretrained 1.00 in the respective contexts, other order at chance 0.14), i.e. the context-set map is used, though the paper states the patch localizes the entity and depth, not the ring axis as the causal carrier. [david-fomin-2026]

models: Llama-3.1-8B-Instruct · method: