July 02, 2026
While Vision Transformers have achieved remarkable success across computer vision and language applications, the geometric evolution of their internal representations throughout training remains insufficiently understood. Existing analyses primarily focus on attention mechanisms and downstream performance, leaving the evolution of representation geometry largely unexplored. In this work, we present Transformer Geometry Observatory-II (TGO-II), a representation geometry analysis framework designed to investigate how transformer representations evolve during supervised training. TGO-II analyzes Vision Transformer (ViT-Small/16) representations using Centered Kernel Alignment (CKA), Singular Vector Canonical Correlation Analysis (SVCCA), Two-Nearest Neighbor Intrinsic Dimensionality (TwoNN-ID), and token covariance analysis. Our experiments reveal three key observations. First, both CKA and SVCCA exhibit a progressive decline throughout training, indicating increasing representational specialization across transformer layers. Second, intrinsic dimensionality consistently increases before stabilizing, suggesting progressive expansion of the representation manifold into a larger set of locally accessible degrees of freedom. Third, token covariance and coupling analyses demonstrate that strong token interaction structure persists throughout training, challenging the hypothesis that increasing representational complexity arises primarily from progressive token independence. These findings suggest that representation complexity and layer specialization emerge simultaneously during training. Furthermore, the observed growth in intrinsic dimensionality appears to be accompanied by manifold expansion rather than token decoupling. Together, these observations motivate a new hypothesis in which Vision Transformers increase representational complexity through progressively richer transformations while preserving strong token interaction structure.
Vision Transformers (ViTs) have rapidly become one of the dominant architectures in modern machine learning, achieving state-of-the-art performance across computer vision, language modeling, multimodal reasoning, and generative modeling tasks. While their empirical capabilities have been extensively studied, the geometric evolution of their internal representations during training remains comparatively less understood. Most existing analyses focus on architectural components such as self-attention mechanisms, feed-forward networks, token interactions, or downstream performance metrics. These studies have provided valuable insights into transformer operation; however, they often investigate individual mechanisms in isolation rather than the geometry of the learned representations themselves. As a result, fundamental questions regarding how representations evolve, specialize, and organize throughout training remain largely unanswered.
Transformer Geometry Observatory (TGO) was proposed as a systematic framework for studying transformer learning dynamics through a collection of geometry-focused observatories. The first observatory, TGO-I: Spectral Geometry Observatory [1], investigated the covariance structure of Vision Transformer representations through eigenspectra, Effective Rank, Spectral Entropy, and Spectral Anisotropy analyses. It revealed a consistent increase in dimensional utilization throughout training, accompanied by decreasing anisotropy and increasing spectral entropy. Furthermore, several groups of adjacent layers exhibited remarkably similar spectral trajectories, motivating the hypothesis that portions of the network may exhibit representational redundancy. However, spectral observables alone are insufficient for determining whether spectrally similar layers perform similar computations. Two layers may exhibit nearly identical covariance spectra while occupying entirely different representational subspaces. Consequently, the observations of TGO-I motivate a deeper investigation into representation geometry itself.
To address this question, we introduce TGO-II: Representation Geometry Observatory. Rather than studying how variance is distributed across feature directions, TGO-II investigates how representations relate to one another throughout training. Specifically, we analyze representation similarity using Centered Kernel Alignment (CKA) [2] and Singular Vector Canonical Correlation Analysis (SVCCA) [3], estimate representation manifold complexity through Two-Nearest Neighbor Intrinsic Dimensionality (TwoNN-ID) [4], and examine token interaction structure through token covariance and token coupling analyses. Our analyses reveal that representational similarity progressively decreases throughout training despite the spectral clustering observed in TGO-I. Simultaneously, intrinsic dimensionality consistently increases before stabilizing, suggesting progressive expansion of the representation manifold. Furthermore, token covariance analyses indicate that strong token interaction structure persists throughout training, challenging the hypothesis that increasing representational complexity arises primarily through token decoupling. Taken together, these observations suggest that transformer training simultaneously increases representational complexity while driving layer specialization. These findings motivate a new working hypothesis in which complexity growth emerges through progressively richer transformations of highly coupled token systems rather than through progressive token independence.
The contributions of this work are summarized as follows:
This study introduces TGO-II, a representation geometry observatory for studying transformer learning dynamics.
Representation similarity has been analyzed throughout training using CKA and SVCCA.
Investigation into representation manifold evolution through TwoNN intrinsic dimensionality estimation.
We study token interaction structure through token covariance and token coupling analyses.
Empirical evidence that increasing representational complexity can coexist with decreasing inter-layer similarity and persistent token coupling.


Figure 1: Evolution of CKA throughout training. The left figure shows the mean CKA across all layer pairs, while the right figure shows the mean adjacent-layer CKA..
The primary objective of TGO-II is to investigate three questions:
Do spectrally similar layers correspond to representationally similar layers?
How does the intrinsic dimensionality of transformer representations evolve throughout training?
Is increasing representational complexity driven by progressive token independence or by increasingly sophisticated transformations of strongly coupled token systems?
The complete implementation of TGO-II, trained checkpoints, observatory pipelines, and generated artifacts are publicly available at: GitHub Repository.


Figure 2: a) Shows how the mean SVCCA shows a sudden drop and then stabilizes over the training schedule. b) Adjacent Layer SVCCA shows how the representational subspace similarity varies with the depth of the transformer.
The objective of TGO-II is to characterize the evolution of representation geometry throughout Vision Transformer training. To this end, we analyze representation similarity, intrinsic dimensionality, and token interaction structure across all Transformer layers of a ViT-Small/16 vit? model trained on ImageNet-100 [5] for 100 epochs. Activations were extracted from all Transformer blocks and the final CLS representation using forward hooks. To ensure consistent observability throughout training, all measurements were performed on a fixed analysis subset consisting of 1000 validation images.
For a given layer \(l\), the representation matrix is defined as
\[\mathbf{H}_{l} = \begin{bmatrix} \mathbf{h}_{l}(x_{1}) \\ \mathbf{h}_{l}(x_{2}) \\ \vdots \\ \mathbf{h}_{l}(x_{N}) \end{bmatrix} \in \mathbb{R}^{N \times D},\] where \(N\) denotes the number of samples and \(D\) denotes the embedding dimension. Each row corresponds to the CLS representation produced by layer \(l\) for a particular input sample.
Representation similarity between layers is quantified using Centered Kernel Alignment (CKA) [2] and Singular Vector Canonical Correlation Analysis (SVCCA) [3]. Given two representation matrices \(\mathbf{H}_{i}\) and \(\mathbf{H}_{j}\), linear CKA is computed as
\[\mathrm{CKA} (\mathbf{H}_{i},\mathbf{H}_{j}) = \frac{ \left\| \mathbf{H}_{i}^{T}\mathbf{H}_{j} \right\|_{F}^{2} }{ \left\| \mathbf{H}_{i}^{T}\mathbf{H}_{i} \right\|_{F} \left\| \mathbf{H}_{j}^{T}\mathbf{H}_{j} \right\|_{F} }.\]
CKA measures the similarity of the geometric arrangement of samples within representation space and provides a scale-invariant estimate of representational alignment. SVCCA is computed by first projecting both representations onto their dominant singular subspaces and subsequently applying Canonical Correlation Analysis. The resulting score measures the degree of alignment between the principal representational subspaces of two layers. Together, CKA and SVCCA provide complementary measurements of representational similarity throughout training.
To estimate the dimensionality of the learned representation manifold, TGO-II employs the Two-Nearest Neighbor Intrinsic Dimension estimator (TwoNN) [4]. For each representation vector \(\mathbf{h}_{i}\), the distances to its first and second nearest neighbors are computed,
\[r_{1}(i) \quad \text{and} \quad r_{2}(i),\]
and the ratio
\[\mu_i = \frac{r_{2}(i)}{r_{1}(i)}.\]
The intrinsic dimensionality is subsequently estimated from the distribution of these ratios. TwoNN provides a local estimate of manifold complexity and quantifies the number of accessible degrees of freedom within representation space.
To investigate token relationships, token representations within each layer are analyzed through token covariance matrices. Let \(\mathbf{T}_{l} \in \mathbb{R}^{T \times D}\) denote the token representation matrix at layer \(l\), where \(T\) is the number of tokens and \(D\) is the embedding dimension. The token covariance matrix is computed as \[\mathbf{C}^{\text{token}}_{l} = \frac{1}{D-1} \left( \mathbf{T}_{l} - \bar{\mathbf{T}}_{l} \right) \left( \mathbf{T}_{l} - \bar{\mathbf{T}}_{l} \right)^{T},\] where \[\bar{\mathbf{T}}_{l} = \frac{1}{T} \sum_{i=1}^{T} \mathbf{T}_{l}^{(i)}\] denotes the feature-wise token mean. This matrix characterizes pairwise token relationships and reveals the degree to which token representations remain coupled throughout training. To quantify this interaction structure, a token coupling ratio is defined as \[\mathrm{Coupling} = \frac{ \sum_{i \neq j} |C_{ij}| }{ \sum_{i,j} |C_{ij}| }.\]
These values approaching zero indicate predominantly independent token representations, while larger values indicate stronger token interaction structure. The observables studied in TGO-II therefore consist of CKA, SVCCA, TwoNN Intrinsic Dimensionality, Token Covariance, and Token Coupling. Collectively, these measurements characterize representational similarity, manifold complexity, and token interaction dynamics throughout training.
This section describes the experimental configuration used to investigate the spectral evolution of Vision Transformer representations throughout training. A ViT-Small/16 model vit? was trained on the ImageNet-100 [5]dataset for 100 epochs using a NVIDIA Quadro RTX 6000 GPU. To ensure consistent observability, all representational measurements were performed on a fixed analysis subset of 1000 validation images throughout training. The following subsections describe the model configuration, activation extraction pipeline, analysis subsets, and training parameters used throughout TGO-II.
This observatory emphasizes the analysis of both feature-space and token-space covariance structures. Let the representation matrix at layer \(l\) be defined as \[\mathbf{X}_l \in \mathbb{R}^{(B \times T)\times D},\] where \(B\) denotes the batch size, \(T\) denotes the number of tokens, and \(D\) denotes the embedding dimension. The feature covariance matrix is computed as
\[\mathbf{C}^{feat}_{l} = \frac{1}{N-1} \left( \mathbf{X}_{l} - \mathbf{1}\boldsymbol{\mu}_{l}^{T} \right)^{T} \left( \mathbf{X}_{l} - \mathbf{1}\boldsymbol{\mu}_{l}^{T} \right),\] where \[N = B \times T\] and \[\boldsymbol{\mu}_{l} = \frac{1}{N} \sum_{i=1}^{N} \mathbf{X}_{l}^{(i)}\] denotes the feature-wise mean representation. The feature covariance matrix characterizes relationships between embedding dimensions and captures how variance is distributed across feature directions.
To investigate token interaction structure, a token covariance matrix is additionally computed as
\[\mathbf{C}^{token}_{l} = \frac{1}{D-1} \left( \mathbf{X}_{l} - \bar{\mathbf{X}}_{l} \right) \left( \mathbf{X}_{l} - \bar{\mathbf{X}}_{l} \right)^{T},\] where \[\bar{\mathbf{X}}_{l} = \frac{1}{D} \sum_{j=1}^{D} \mathbf{X}_{l}^{(:,j)}\] denotes the token-wise mean representation. The token covariance matrix captures pairwise relationships between tokens and provides insight into token coupling and interaction structure throughout training.
It is important to note that the feature covariance matrix and token covariance matrix are related through the same underlying representation matrix. Let
\[\mathbf{A} = \mathbf{X}_{l} - \mathbf{1}\boldsymbol{\mu}_{l}^{T}.\] Then \[\mathbf{C}^{feat}_{l} \propto \mathbf{A}^{T}\mathbf{A},\] while \[\mathbf{C}^{token}_{l} \propto \mathbf{A}\mathbf{A}^{T}.\] From singular value decomposition, \[\mathbf{A} = \mathbf{U} \mathbf{\Sigma} \mathbf{V}^{T},\] it follows that \[\mathbf{A}^{T}\mathbf{A} = \mathbf{V} \mathbf{\Sigma}^{2} \mathbf{V}^{T}\] and \[\mathbf{A}\mathbf{A}^{T} = \mathbf{U} \mathbf{\Sigma}^{2} \mathbf{U}^{T}.\]
Consequently, both covariance matrices possess identical non-zero singular values and eigenvalue spectra, differing only in their associated eigenvectors. This relationship allows feature-space and token-space analyses to be interpreted as complementary views of the same underlying representation geometry.


Figure 3: Evolution of TwoNN intrinsic dimensionality. The left figure illustrates the evolution of intrinsic dimensionality across all Transformer layers throughout training, while the right figure summarizes the intrinsic dimensionality of each layer at convergence (Epoch 100). The middle Transformer blocks exhibit the highest intrinsic dimensionality, peaking at Layer 08 before gradually decreasing towards the final Transformer blocks..
This section presents the principal observations obtained from TGO-II. The objective of this section is to report the observed characteristics of the learned representations without providing mechanistic explanations. Interpretation of these observations and the resulting hypotheses are deferred to the Discussion section. Unless otherwise stated, all measurements are computed on the fixed validation subset described in the Experimental Setup.
The evolution of the mean SVCCA throughout training is illustrated in Figure 2 (a), while Figure 2 (b) presents the adjacent-layer SVCCA measured at the final epoch. A pronounced decrease in mean SVCCA is observed during the initial stages of training, followed by gradual stabilization during the later epochs. This trend is consistently observed across all Transformer layers. The adjacent-layer analysis further reveals that neighboring layers remain highly correlated at convergence. A noticeable reduction in adjacent-layer similarity occurs between Layers 4 and 5, after which the similarity progressively increases and remains consistently high for the remaining Transformer blocks.
Figure 1 (a) presents the evolution of the mean Centered Kernel Alignment (CKA) throughout training, while Figure 1 (b) illustrates the adjacent-layer CKA measured at the final epoch. CKA exhibits behaviour similar to SVCCA. A rapid decrease is observed during the early stages of optimization, followed by a gradual convergence to a stable value. This trend remains consistent across the complete training schedule. The adjacent-layer evaluation demonstrates that neighboring layers remain strongly aligned at convergence. The minimum similarity is observed between Layers 4 and 5, whereas Layers 6 through 12 exhibit consistently high representational similarity.
The evolution of intrinsic dimensionality throughout training is shown in Figure 3 (a), while the intrinsic dimensionality measured at the final epoch is presented in Figure 3 (b). Across nearly all Transformer layers, the estimated intrinsic dimensionality increases rapidly during the initial stages of optimization before gradually converging to stable values. This behaviour is consistently observed throughout the training schedule. The final layer-wise intrinsic dimensionality reveals a distinct depth-dependent trend. Beginning from the early Transformer blocks, the intrinsic dimension increases progressively with network depth, reaching its maximum at Layer 08. Layers 07–10 consistently exhibit the largest intrinsic dimensions, indicating the highest local manifold complexity within the network. Beyond Layer 10, the intrinsic dimensionality decreases substantially through the final Transformer blocks, with Layer 12 exhibiting one of the lowest values among all Transformer layers. The final CLS representation exhibits a modest increase relative to Layer 12 while remaining below the peak values observed in the intermediate layers. As expected, the positional embedding exhibits negligible intrinsic dimensionality due to its deterministic nature and absence of sample-dependent variation.
Representative token covariance matrices are shown in Figure 4. Four representative layers (Patch Embedding, Block 01, Block 06 and Block 12) are visualized at Epochs 1, 20, 50 and 100 to illustrate the evolution of token interaction throughout training. The token covariance matrices exhibit highly structured interaction patterns throughout the optimization process. Rather than converging toward a diagonal covariance matrix, substantial off-diagonal covariance persists across all training epochs, indicating that statistical dependencies between tokens remain present throughout training. As optimization progresses, the covariance structures evolve from comparatively diffuse interaction patterns into increasingly organized stripe-like structures. This progression is consistently observed across all analyzed layers, although the magnitude of structural evolution varies with network depth. The Patch Embedding layer exhibits comparatively modest changes throughout training, whereas deeper Transformer blocks develop increasingly pronounced covariance structures. In particular, the final Transformer block (Layer 12) undergoes the most substantial structural evolution, producing the most organized interaction pattern by the end of training.
Section 4 discusses observations that TGO-II has thus produced in detail. When linked to the findings and hypotheses described in TGO-1 [1], we can observe a few significant patterns. In TGO-I we had explored three major hypotheses revolving around Token Diversification, Semantic Expansion, Redundancy Removal. One of the most important observation was Layer Clustering, where after layer 4 there was a significant similarity in the effective rank and spectral dynamics evolution for layers 5 through 7. The following discussion lists hypotheses based on the observed trends.
This is a hypothesis from TGO-I [1] which claims that as training progresses the tokens spontaneously decouple leading to the significant directional exploration in spectral observables. However, as shown in Sub-section 4.4 it is clear that the tokens do not decouple and attain complete independence and hence might not be considered as the sole reason for the directional exploration of the feature covariance matrix. What we can conclude is that Token Diversification does take place as the training progresses, however it might not be the only strong contributor to dimensional and directional expansion.
The Semantic Expansion hypothesis proposed in TGO-I [1] suggests that the increase in spectral complexity observed during training arises from the progressive discovery and encoding of increasingly rich semantic concepts. TGO-II provides indirect evidence relevant to this hypothesis through representational similarity analysis. Both SVCCA and CKA demonstrate a consistent decrease throughout training, indicating that Transformer layers progressively specialize and learn increasingly distinct representations. However, representational specialization alone does not directly imply semantic expansion. The present observatory does not explicitly measure semantic information, class separation, or feature interpretability. Consequently, TGO-II neither confirms nor rejects the Semantic Expansion hypothesis. Instead, it identifies representational specialization as a potential prerequisite for semantic expansion, motivating future observatories involving semantic probing, class-separation analysis, and representation interpretability.
The most significant observation obtained from TGO-II is the strong qualitative agreement between the evolution of TwoNN intrinsic dimensionality as shown in 4.3 and the spectral expansion previously observed in TGO-I. Throughout training, intrinsic dimensionality increases rapidly before converging, closely mirroring the evolution of Effective Rank and other spectral observables measured on feature covariance matrices. This observation motivates the Manifold Expansion Hypothesis: the increase in explored covariance directions is primarily enabled by the progressive expansion of the underlying representation manifold into higher intrinsic dimensions. As additional degrees of freedom become available, the network is capable of representing increasingly diverse feature relationships, naturally resulting in richer covariance spectra and higher effective ranks. Hence, TGO-II concludes that the Semantic manifold expands to higher dimensions as the epochs progress. Unlike the Token Diversification hypothesis, this explanation does not require tokens to become statistically independent. Instead, it attributes the observed spectral expansion to the increasing complexity of the learned representation manifold. While further mathematical analysis is required to establish a formal relationship between intrinsic dimensionality and covariance spectra, the empirical agreement between both observatories suggests that manifold expansion is a plausible explanation for the spectral evolution observed during Transformer training.
One of the most intriguing observations across both TGO-I and TGO-II is the consistent change in representational behaviour occurring around the fourth and fifth Transformer blocks. In TGO-I, Layers 5–8 exhibited remarkably similar spectral dynamics and Effective Rank evolution, suggesting the emergence of a distinct operational regime within the network. TGO-II further reveals that intrinsic dimensionality continues to increase beyond these layers while representational similarity progressively decreases, indicating increasing functional specialization. These observations motivate the Transition Zone Hypothesis. Rather than viewing all Transformer blocks as performing homogeneous computations, we hypothesize that the region around Layers 4–5 marks the transition between two qualitatively different stages of representation processing. Early layers may primarily transform low-level token interactions inherited from the patch embeddings, whereas subsequent layers increasingly operate on abstract and context-dependent representations.
Importantly, this interpretation remains speculative. TGO-II does not directly measure semantic content or task-specific information encoded within the representations. Consequently, the proposed transition should be interpreted as a change in representational geometry rather than definitive evidence of semantic processing. Future observatories involving token trajectories, semantic probing, attention routing, and class-separation analysis are required to validate this hypothesis.
TGO-II: Representation Geometry Observatory continues the Transformer Geometry Observatory (TGO) framework by analyzing the representational dynamics of Vision Transformers throughout supervised training. While TGO-I investigated the evolution of covariance spectra and feature-space geometry, TGO-II focused on representation similarity, intrinsic dimensionality, and token interaction structure. Using Centered Kernel Alignment (CKA), Singular Vector Canonical Correlation Analysis (SVCCA), Two-Nearest Neighbor Intrinsic Dimensionality (TwoNN-ID), and token covariance analysis, several consistent patterns were observed. Both CKA and SVCCA exhibited a progressive decrease throughout training, indicating that Transformer layers become increasingly specialized as optimization proceeds. Simultaneously, intrinsic dimensionality increased across the network before converging, suggesting that the learned representation manifold progressively occupies a richer set of locally accessible degrees of freedom.
Furthermore, token covariance analysis demonstrated that strong token interaction structure persists throughout the entire training process, indicating that increasing representational complexity is not accompanied by complete token independence. These observations provide new insight into the geometric evolution of Transformer representations. In particular, the combination of increasing intrinsic dimensionality, decreasing representational similarity, and persistent token coupling suggests that representational complexity emerges through increasingly sophisticated transformations rather than through progressive token decoupling. The strong correspondence between the evolution of intrinsic dimensionality and the covariance-based spectral observables reported in TGO-I further motivates the hypothesis that manifold expansion provides a plausible geometric explanation for the observed increase in covariance rank and variance utilization during training. TGO-II also revisits several hypotheses proposed in TGO-I. The results indicate that complete token decoupling is unlikely to be the dominant mechanism responsible for covariance expansion, while the Semantic Expansion hypothesis remains inconclusive without direct measurements of semantic content. Additionally, the observed representational behaviour across network depth motivates the hypothesis that Transformer computation may undergo distinct geometric phases during training, with intermediate layers exhibiting characteristic representational organization that warrants further investigation.
Collectively, the findings of TGO-I and TGO-II suggest that Transformer learning is governed by coordinated geometric evolution across multiple complementary spaces. Rather than relying on a single observable, the Transformer Geometry Observatory demonstrates that covariance geometry, representation geometry, and manifold geometry together provide a richer understanding of how Vision Transformers organize and refine their internal representations throughout optimization.
TGO-II extends the Transformer Geometry Observatory by investigating representation similarity, intrinsic dimensionality, and token interaction dynamics throughout Vision Transformer training. While several hypotheses proposed in TGO-I have been refined, the observations presented in this work motivate a new series of observatories aimed at understanding the mechanisms responsible for representation evolution.
Although TGO-II demonstrates increasing representational specialization and manifold expansion, it does not directly measure semantic information. Future work will therefore investigate the emergence of semantic structure through linear probing, class-separation analysis, nearest-neighbor purity, Fisher discriminant analysis, and label alignment. These experiments aim to determine whether the increasing intrinsic dimensionality observed during training corresponds to the discovery of increasingly rich semantic representations.
The persistence of strong token coupling throughout TGO-II suggests that representational complexity does not arise solely through token independence. Future observatories will therefore investigate token-level dynamics using cosine similarity, token trajectory visualization, token drift, local manifold analysis, neighborhood preservation, and temporal token evolution. These measurements aim to characterize how token interactions evolve despite maintaining strong covariance structure.
The transition-like behaviour observed between the early and intermediate Transformer blocks motivates a detailed investigation of attention dynamics. Future work will analyze attention entropy, head specialization, routing behaviour, token dominance, sparsity, and information flow throughout training. These experiments seek to determine whether changes in attention geometry coincide with the representational transition hypothesized in TGO-II.
Future work will investigate the optimization landscape governing Transformer learning through gradient geometry, Hessian spectra, curvature evolution, loss landscape topology, and optimization phase transitions. Understanding these dynamics may reveal whether the geometric behaviours observed by TGO-I and TGO-II emerge from identifiable optimization regimes.
The long-term objective of the Transformer Geometry Observatory is to establish a unified geometric framework for understanding Transformer learning dynamics. By integrating covariance geometry, representation geometry, semantic geometry, token dynamics, attention geometry, and optimization geometry, future observatories aim to transform empirical observations into mechanistic explanations of Transformer computation.
Ultimately, this framework seeks to identify the geometric principles governing representation learning, reveal architectural bottlenecks and redundant computation, and provide theoretically grounded insights that can inform the design of future efficient Transformer architectures, adaptive sparse models, and neuromorphic learning systems.