Embryology of language modelsEmbryology of a Language Model
Running susceptibility UMAP on a 3M two-layer attention-only model, the authors say induction stratification and a spacing fin are visible.
- How a randomly initialized network forms specialized computational structures during training is hard to observe as a whole. The authors liken token sequences to cells and susceptibility vectors to gene expression profiles, wanting to see the body plan along training and whether the method can find structures beyond known circuits.
- On a 3M, two-layer, 16-head attention-only model, they define per-token susceptibility using the covariance between loss and component weights under a quenched posterior, assemble it into a 16-dimensional vector, and then run UMAP on a Pile subset. Negative values are treated as expression, positive values as suppression. They look at how eight pattern classes stratify along checkpoints.
- For seed 1, at step 900 PC1 explains 98.81% of the variance, and at the end of training it is 95.19%. The variance of the induction subset explained by PC2 rises from 2.3% at 9000 steps to 6.4% at 17500 steps. Spacing tokens form a fin, and in the samples the longest run of consecutive spaces in the preceding context is 665.
- Limitations are the 3M two-layer attention-only model, UMAP distorting global distances, and the structure possibly being affected by the tokenizer. The analysis covers 16 attention heads across 4 seeds; Section 4.3 says there is no complete mechanistic explanation of the spacing fin yet.
- Evaluated models
- 3M parameter attention-only transformer (seed 1)3M parameter attention-only transformer (seed 2)3M parameter attention-only transformer (seed 3)3M parameter attention-only transformer (seed 4)
- Benchmarks
- Pile subset(Table 2)Table 1 token patterns
- Metrics
- per-token susceptibilityper-pattern susceptibilityPCA explained variance
The paper proposes an embryology method that uses UMAP to visualize susceptibility matrices, tracing the formation of internal computational structures in language models during training. The visualization results reveal a clear body plan, characterizing the formation of known features such as the induction circuit, and uncover a previously unknown structure, the spacing fin, used for counting space tokens. The paper states that this shows susceptibility analysis can go beyond validation purposes to discover new mechanisms, providing a holistic perspective for studying the developmental laws of complex neural networks.
Paper analysis
What problem does this paper attempt to solve?
Using UMAP of susceptibility vectors to observe how internal structure forms during language model training.
How to see the formation of internal computational structures in a language model during training.
- Scenario: The authors compare a randomly initialized network growing specialized structures to a cell developing into an organism with organs. Token sequences are treated as cells, and susceptibility vectors as gene expression profiles.
- Gap in existing tools: Susceptibility comes from statistical physics. Baker et al. (2025) already used it to distinguish induction circuits, but the authors say its potential for visualizing network organization has not been exhausted.
- What this paper looks at: The next step of structural inference is the image of the data distribution under the susceptibility map η, and how this image develops as the weights w(t) change.
- Proposed tool: Applying UMAP to per-token susceptibility across 16 attention heads. The authors say token patterns stratify the projection, the induction circuit appears as a thickening along the dorsoventral axis, and a spacing fin related to counting blank tokens appears.
What related research exists?
Related work is divided into susceptibility structure inference, induction circuits, representation geometry, and morphogenesis.
The UMAP of susceptibility is placed by the authors as the next step after structural inference, and distinguished from representation geometry on activation vectors.
Structure inference and stagewise development
- Baker et al. (2025): Proposed structural inference. Per-token susceptibility measures the covariance between components and next-token loss; induction patterns show different susceptibility across heads and can distinguish induction circuits across four seeds of the 3M model. The authors view UMAP as the next step of this method.
- Hoogland et al. (2025): On the same model, used local learning coefficient (LLC) to divide LM1 through LM5, and stated that loss landscape degeneracy drives stagewise development. This paper follows these stages and compares the emergence of induction with its prefix score and ICL score.
- Wang et al. (2024): Used refined LLC to distinguish attention heads and labeled previous-token, current-token, and induction heads for each seed. This paper follows this labeling, as well as the connection between LLC and generalization.
Induction circuits
- Elhage et al. (2021): Provided a mathematical framework for transformer circuits. The idealized induction circuit is K-composition of a later-layer induction head with an earlier-layer previous-token head.
- Olsson et al. (2022): Connected induction heads to in-context learning and used prefix score to identify induction heads. The authors use these definitions, describing the dorsoventral layering in UMAP as another observation of a known developmental process.
Representation geometry
- Hewitt and Manning (2019), Reif et al. (2019): Used structural probes and UMAP to examine BERT activations, mapping syntactic trees and polysemous word senses to geometric structures.
- Carter et al. (2019), and Bricken et al. (2023), Engels et al. (2025), Li et al. (2025): Did representation geometry on image models and sparse autoencoder features, respectively. The authors state that this paper instead uses susceptibility vectors rather than activations, looking at loss landscape geometry related to prediction.
Morphogenesis and gene modules
- Thom (1972), Arnold et al. (1985): Connected embryonic stages to catastrophes in singularity theory. The authors conjecture that qualitative changes in susceptibility patterns correspond to specific changes in the geometry of level sets of the loss L(w).
- Cao et al. (2019), McInnes et al. (2020), Zhang and Horvath (2005): Used UMAP or co-expression networks to find gene modules from coordinated cellular responses to stimuli. The authors state that the same "co-variation implies relevance" logic can be applied to network components.
The paper does not set up additional attack or detection baselines. The control observations for induction development are prefix score, ICL score, and K-composition on the same model; samples come from a Pile subset, and pattern ontology from Table 1 of Baker et al. (2025). The authors state that structural inference and circuit-style explanations are complementary: the former captures coordinated responses of components to input patterns, including axes across all heads, and structures not necessarily encoded by a few heads.
How does the paper address this problem?
Running UMAP on susceptibility vectors of 16 attention heads, watching pattern stratification along training.
The authors treat UMAP of susceptibility vectors as embryology for language models: each next token has a profile across attention heads, and the low-dimensional projection changes with training.
Model and susceptibility
- Model: The same 3M-parameter attention-only transformer as Hoogland et al. (2025), two layers, 8 self-attention heads per layer, no MLP. Heads are denoted l:h. Trained on a Pile subset for 50000 steps. The tokenizer is a truncated GPT-2 tokenizer, with the vocabulary reduced from 50000 to 5000. The main text defaults to seed 1; the other three seeds change only initialization and minibatch order.
- Vector: For context x and next token y, each dimension of η is the per-token susceptibility of one component. The transformer does not receive y as input.
- Definition: The components decompose as W=U×C. The generalized function ϕ_C only allows weights in C to move away from the reference point w*, and takes the difference of the total loss relative to w*. The quenched posterior suppresses perturbations that increase the total loss according to exp(−nβL(w)). Susceptibility is the negative of the covariance between ϕ_C and the deviation of the per-token loss under this posterior: χCxy:=−Covβ[ϕC,ℓ(x,y)(w)−L(w)].
- Notation and estimation: χ<0为表达,即使总体损失下降的C扰动也提高p(y|x);χ>0 is suppression, meaning such perturbations decrease p(y|x). Estimation uses SGLD with the same hyperparameters as Baker et al. (2025): γ=300, nβ=30, ε=0.001, batch size 16, 4 chains, 100 samples. This paper only computes attention heads; the authors write that embedding, unembedding, MLP, and layer norm could be analyzed the same way.
- Relation to generalization: The authors recall that, up to a factor of nβ, susceptibility approximates the difference quotient of the weight-refined LLC of component C before and after increasing the probability of (x,y) by δh, and is therefore viewed as the sensitivity of C's generalization error to p(y|x). This connection assumes w* remains a local minimum of the total loss after the distribution shift.
Token patterns
- Eight classes: Following Table 1 and Appendix A: word start, word part, word end, induction, spacing, delimiter, formatting, numeric. Figure 6 notes they are not all mutually exclusive.
- induction: Sequence uvUuv with q(v|u)≤0.05; Appendix A also excludes a set of high-frequency tokens and gives the full list.
- spacing: After detokenization, composed of spaces, newlines, tabs, carriage returns, or form feeds. The authors say this tokenizer often splits spaces off separately, which is an important part of why spacing tokens matter. Appendix A says that for this model, right delimiters seem more important than left delimiters.
UMAP and per-pattern aggregation
- Data matrix: 16 columns, 260k rows. In Appendix F, 20000 (x,y) samples are drawn from each of the 13 datasets other than PILE 1M, column-standardized, and then UMAP is run.
- Why UMAP: The reasons the authors give are speed and representation of local topology. They also cite Chari and Pachter (2023): UMAP does not preserve global structure and renders data at roughly uniform density.
- Therefore only large-scale phenomena are kept: These phenomena are determined by which points in the high-dimensional susceptibility space and in UMAP are close to each other. n_neighbors=45, min_dist=0.1. Appendix C.1 sweeps n_neighbors from 15 up to the equivalent of 8000 and min_dist from 0 to 0.5; phenomena that do not appear in all renderings are discarded.
- Axes and aggregation: Extrapolation along principal components followed by UMAP is used to label PC1 and PC2. The susceptibility of a pattern is the average of susceptibility vectors over samples of that pattern; the lower panel of Figure 2 uses about 2 million tokens.
Stages and known circuits
- Stages: Appendix B.1 recalls Hoogland et al. (2025): LM1 learns common bigrams, LM2 learns common multigrams, previous-token heads begin to form in LM3, and induction heads begin to form in LM4; LM5 is labeled as a separate stage, but its main changes have not been identified.
- Checkpoints: The main text uses steps 900, 9000, 17500, 49900, called the end of LM1, the end of LM3, the end of LM4, and the end of training, respectively. The stage ends printed in Figure 7 are 900, 6.5k, 8.5k, 17k, 50k; the main text also writes the LM3–LM4 boundary as 8500 steps.
- Known heads for seed 1: previous-token are 0:1, 0:4, current-token is 0:5, induction are 1:6, 1:7. Idealized circuits are defined using K-composition, and induction heads are identified using prefix score.
What experiments did the paper conduct?
On seed 1, PC1 dominates the elongated shape; induction thickens in LM4, and spacing fin extends along blank counts.
The experiments use the same 3M attention-only model across 4 seeds, using PCA and UMAP of susceptibility to track how token patterns stratify, and do not report downstream accuracy.
Experimental setup
- Model: two layers, 16 attention heads, no MLP, 50000 steps, Pile subset. The main text is seed 1; Appendix E is seeds 2, 3, 4. The known heads for seed 1 are 0:1, 0:4, 0:5, 1:6, 1:7.
- Samples: the UMAP matrix is 20000 entries for each of 13 Pile subsets, 260k rows in total. About 2 million tokens along the pattern curves. The spacing plot has about 42000 spacing tokens. Figure 3 is 10 independent draws per dataset, 20000 tokens each.
- Checkpoints: 900, 9000, 17500, 49900. Phase boundaries are also given in Figure 7 and at step 8500 in the main text.
- Estimation: SGLD with γ=300, nβ=30, ε=0.001, batch size 16, 4 chains, 100 samples. No LLM review; patterns are defined by the rules in Appendix A.
- Controls: no separately trained baseline model. The induction timeline is compared against the same model's existing prefix score, ICL score and K-composition.
- UMAP parameters: main figures use n_neighbors=45, min_dist=0.1, and a parameter sweep is done in Appendix C.1.
Main results
Swipe horizontally to read the table
Quantity Condition Value Source PC1 explained variance seed 1, step 900 98.81% main text 4.1 PC1 explained variance seed 1, end of training 95.19% main text 4.1, pointing to Appendix C.2 PC2 explained variance this set of principal components in Appendix C.2 0.0262 Appendix C.2 PC1+PC2 cumulative same as above 0.9781 Appendix C.2 PC3 explained variance same as above 0.0058 Appendix C.2 - Elongated shape: the authors say the serpent is elongated because PC1 accounts for most of the variance, more pronounced early in training. Along PC1, tokens suppressed across heads are at the front and tokens expressed across heads are at the back; this reading follows Baker et al. (2025).
- Color stratification: the authors say that at the end of training, word end is along the dorsal side, numeric in the middle, word start toward the front, induction on the ventral side, delimiter toward the back, and spacing protrudes from the lower dorsal side as a fin. The authors interpret this as different patterns recruiting different heads to express or suppress them.
- When stratification appears: the authors say that by step 900 there is almost no stratification by pattern; from 900 to 9000 steps susceptibility by pattern changes quickly, and at 9000 steps the main body still looks disorganized; at 17500 steps the final color stratification appears and thickens along the dorsoventral direction.
Induction and dorsoventral thickening
- What was measured: the two layers' heads are combined into one data matrix to look at the susceptibility of the induction pattern along training and its UMAP position, and to compare with the earlier prefix, ICL, K-composition timelines.
- Results: induction's susceptibility by pattern is small and negative in both layers until about 2000 steps, then rises slowly, and turns fast before 10000 steps. At 9000 steps there is no dorsoventral color stratification; at 17500 steps the authors say it is already visible. The variance of the induction subset explained by PC2 goes from 2.3% to 6.4%. Appendix C.3 says that between 9000 and 17500 steps induction tokens widen along PC2 relative to other tokens, and this persists to the end of training.
- Authors' interpretation: in the combined-layer PCA, layer 0 loadings are mostly positive and layer 1 negative; the largest-magnitude on layer 0 are previous-token and current-token heads, and the most positive on layer 1 is the induction head. The authors say the dorsoventral stratification is the result of the induction circuit expressing the induction pattern and the rest of the network tending to suppress them. Prefix and ICL changes are mainly in LM4; K-composition rises from about 2000 steps, with a change in slope at about 8500 steps.
Spacing fin
- What was measured: only spacing tokens, colored by the number of consecutive spacings before them, and conditional mean susceptibility is plotted. Figure 4 has about 42000 tokens; 50 and above are colored black, with a maximum of 665.
- Results: from about 1000 steps, spacing susceptibility in both layers begins to decrease and tokens move toward the back. At the end of LM3 a cluster leaves the main body, and it remains separate when n_neighbors is increased from 45 to 125. At 17500 steps it first reconnects at the back; the reconnection at the front happens before the end of training. The authors say the back connection corresponds to ordinary spaces, and the front connection region contains newlines rather than spaces. Moving outward along the fin, the number of preceding consecutive spacings increases.
- Authors' interpretation: the authors think the model develops a computational structure that distinguishes and counts spacing tokens, and that it may be distributed across many heads. Section 4.3 says there is currently no complete mechanistic explanation comparable to the idealized model of the induction circuit.
Four seeds
- What was measured: Appendix E plots UMAP and susceptibility by pattern for seeds 2, 3, 4 at the same checkpoints. The figure caption relays Wang et al. (2024): seed 2's induction head is 1:0, seed 3's is 1:6, seed 4's are 1:1 and 1:3; previous-token and current-token heads also differ.
- Results: the authors say the front-back partition, dorsoventral stripes and spacing fin exist in all four seeds. Seed 2 has a token detachment similar to seed 1; seeds 3 and 4 do not. The overall shape of the susceptibility-by-pattern curves is broadly consistent, with larger differences appearing after the curves begin to separate. The positive/negative layer pattern of the combined-layer PCA also holds in the other three seeds.
- Authors' interpretation: the authors say the low-level implementation (which head does what) is incidental, and the high-level functional organization in susceptibility space is to some extent a general consequence of architecture and data distribution. The authors also write that the other seeds were not examined as closely as seed 1, and the source of the fin development differences is unknown.
Other ablations and analyses
- Appendix C.2: the explained variance of PC4, PC5, PC6 is 0.0033, 0.0028, 0.0022.
- Appendix C.1: n_neighbors from 15 to the equivalent of 8000, min_dist from 0 to 0.5; phenomena that did not appear in all renderings were discarded.
- The authors say the spacing fin is not visible in the three-dimensional plot of the first three principal components, and the relevant separation is in PC4 and higher components; the numeric band appears only in PC5 (Appendix C.2, Figure 3).
- Figure 3 note: after sorting PC1 negative coefficients by magnitude, word start accounts for 30.2% of the top 1%; the figure is the mean and standard deviation of 10 draws, and the remaining cells are not cited because the transcribed columns may be misaligned.
- Figure 7 recalls the end-of-phase values with Δℓ̂, Δλ̂: 900 is −2.33, +26.4; 6.5k is −1.22, +22.5; 8.5k is −0.18, −1.57; 17k is −0.40, +8.62; 50k is −0.34, +1.77.
- Appendix G additionally gives XY and XZ projections and marks bands such as sentence-initial capitalization, numbers, tabs and function words; the authors say the linear structure of PCA can be seen in UMAP, and there are also nonlinear features that appear only after leaving the origin.
What are some points that can be further explored?
The authors say the limitations are the 3M two-layer scale, UMAP's distortion of global distances, and that the structure may depend on the tokenizer.
In Limitations, the authors write the limitations as model scale, the global geometry of UMAP, and the dependence of results on experimental setup and tokenizer.
Limitations and future directions noted by the authors
- Scale: the main limitation is the 3M-parameter, two-layer attention-only transformer. Whether the UMAP of susceptibility vectors is useful for larger language models remains an open question (Limitations).
- Visualization: the method relies on UMAP. Although the analysis focuses on large-scale phenomena such as token pattern separation, UMAP may still distort global distances, and the geometry of the rainbow serpent should be interpreted with caution (Limitations).
- Setup: the identified structure may depend on the experimental setup. The prominence of the spacing fin is likely affected by the tokenizer, and different tokenization strategies may lead to different learned structures; the authors state this should be examined across scales and tokenizers (Limitations).
- General principles: the high-level organization is similar across four seeds, but the authors write whether general organizational principles behind architecture and data distribution can be elucidated as a question in the science of deep learning (Discussion).
- Two geometries: the authors write that the relationship between the representation geometry that appears here and loss landscape geometry deserves deeper study (Discussion).
Experimental coverage
- Tested are 4 seeds of the same architecture; the main text defaults to seed 1, and Appendix E gives UMAP and per-pattern susceptibility for the other three seeds (Section 3, Appendix E).
- Susceptibility is computed for 16 attention heads; the authors write it could also be done for embedding, unembedding, MLP, and layer norm, and this paper focuses on attention heads (Section 3).
- The UMAP matrix is 20000 entries each from 13 Pile subsets, 260k rows total; the per-pattern curve is about 2 million tokens; the spacing plot is about 42000 spacing tokens (Appendix C, Figure 2, Figure 4).
- The developmental plots use steps 900, 9000, 17500, 49900; the stage definitions are recalled from Hoogland et al., and the final steps in Figure 7 are 900, 6.5k, 8.5k, 17k, 50k (Appendix B.1).
- Section 4.3 writes that a mechanistic explanation of the spacing fin comparable to the idealized model of induction circuits is currently lacking. The paper does not report the number of repetitions of the UMAP embedding random seed.
Summarize the main content of the paper
The susceptibility UMAP renders training as a body plan, and the authors say induction circuits and a spacing fin are visible.
The authors use a low-dimensional projection of susceptibility profiles to observe how a small transformer grows separable computational structures during training.
- Question: After random initialization, how internal structure takes shape with the weights. Susceptibility was previously used to distinguish induction circuits; the authors want to see how the image of the data under η develops along training.
- Method: 3M, two layers, 16 heads, no MLP, trained on a Pile subset for 50000 steps. Each next token gets a 16-dimensional susceptibility: negative is expression, positive is suppression. UMAP is run on 260k samples, colored by the eight pattern classes in Table 1.
- Main axis: The point cloud at the end is called a rainbow serpent by the authors. At step 900, PC1 explains 98.81% of the variance; at the end it is 95.19%; in Appendix C.2, PC2 is 0.0262, and the first two principal components accumulate to 0.9781. The front corresponds to cross-head suppression, the back to cross-head expression.
- Two structures: The induction pattern separates from other patterns along the dorsoventral direction in LM4, and the variance of its subset explained by PC2 goes from 2.3% at 9000 steps to 6.4% at 17500 steps. Spacing tokens form a fin; moving outward along the fin, preceding consecutive spacing increases, with up to 665 samples in Figure 4. The authors think this looks like distinguishing and counting blanks, but a full mechanism is not yet given.
- Seeds and conclusions: The macroscopic partitions are similar across four seeds, although the heads carrying induction differ; seeds 3 and 4 lack the fin-detaching-from-body process seen in seed 1. The authors say the method re-sees the induction circuit and also points to structures not previously noticed, and they say the model may be discovering organizational principles dictated by the architecture and data distribution.