arXiv:2609.08692cs.CLSep 2026

Manuscript Offprint

arXiv:2609.08692

Global Divergence, Local Convergence: Representation Geometry in SSMs and Transformers

Amit Ben-Artzy, Roy Schwartz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recent state-space models (SSMs) such as Mamba achieve language modeling performance comparable to transformers despite relying on fundamentally different architectures. This raises an important question: how do these structural differences influence the geometry and functional nature of their internal representations? We study this question through a multi-scale analysis of representations in transformers, SSMs, and hybrid architecture. First, we find that SSMs distribute their representational variance much more uniformly across dimensions compared to transformers, which are heavily dominated by a single principal direction (Fig. 1). By evaluating a hybrid architecture, we observe that the representation space becomes increasingly skewed toward a single dominant direction after each attention layer. Next, we explore how the different geometric spread of representations impacts representational capacity through compressibility. Surprisingly, we find that despite their contrasting geometric structures, both architectures exhibit tightly matched effective capacities. We further investigate whether this skewed geometry affects how concepts are encoded. Using rank-constrained probes, we demonstrate that both architectures encode concepts in subspaces of surprisingly similar dimensionality. Moreover, we demonstrate that the transformers' dominant principal direction does not inherently encode more conceptual information. Finally, we zoom in and examine the alignment between manifolds, either by analyzing representations of specific topics or by looking at the nearest neighborhoods of tokens, and find that they are highly aligned. Ultimately, our analysis suggests that while transformers and SSMs induce different usage of latent space, they display a striking structural alignment at the level of local semantic manifolds.¹

Mamba-1.4B Depth: 50% (Layer 24)

Figure

Pythia-1.4B Depth: 50% (Layer 12)

Figure

Capital Employer Genre Instrument Position held

Figure 1: PCA of representations from Pythia and Mamba over a subset of the LAMA TREx dataset. Mamba's representations are more spread out across the space.

1 Introduction

State-space models (SSMs) such as Mamba (Gu and Dao, 2024) have emerged as highly efficient alternatives to transformers (Vaswani et al., 2017), achieving competitive empirical performance on a variety of language modeling tasks (Waleffe et al., 2024). While transformers rely on global atten-

¹Code is available at https://github.com/schwartz-lab-NLP/ssm-vs-transformer-geometry tion mechanisms, SSMs compress context into a bounded state, resulting in very different architectural priors. 2^{2}

This divergence in computational paradigms raises a key question: do these distinct architectures induce fundamentally different internal representations? To investigate this systematically, we conduct a multi-scale analysis of representations across both model families. To ensure a direct and structurally equivalent comparison, we focus our analysis entirely on the residual stream, analyzing several representative models: two transformer models (Pythia, Biderman et al., 2023; and Falcon, Almazrouei et al., 2023); two SSM models (Mamba Gu and Dao, 2024 and FalconMamba, Zuo et al., 2024) and one hybrid model, alternating Mamba and transformer layers (Jamba2, Lenz et al., 2025). 3^{3}

We first examine the global geometry of the models over a general corpus (Section 3). Specifically, we measure effective dimensionality via RankMe (Garrido et al., 2022) and the degree of isotropy via IsoScore (Rudman et al., 2022)—the extent to which token embeddings are uniformly distributed across all directions in space. We find a stark contrast: SSMs' residual stream is highly isotropic and exhibits a high effective dimensionality. In contrast, transformers are notoriously anisotropic (Gao et al., 2019; Godey et al., 2024), characterized by a dominant first principal component (PC1) that explains a disproportionately large share of the variance. We further validate this trend by examining the hybrid model Jamba2, where we find that after each attention layer, there is a sharp shift toward anisotropy.

Given these contrasting global geometries, we investigate whether the two architectures use their representation spaces differently to encode specific concepts (Section 4). Using autoencoders and rank-constrained probing (Hernandez and Andreas, 2021) to measure the intrinsic dimensionality required for decoding, we find that they exhibit similar functional dimension. Furthermore, we find that despite transformers' high alignment with a single dominant direction—it does not capture more information than SSMs' isotropic representations. To understand whether concept information is concentrated within specific geometric dimensions, we systematically ablate the top-k principal components across both architectures. We found that both models experience a comparable decline in probe accuracy, demonstrating that these concepts are not exclusively localized in the dominant dimensions. Next, we evaluate structural similarity in Section 5. First, we apply whitened centered kernel alignment (CKA, Cristianini et al., 2001; Kornblith et al., 2019) and find that despite diverging global geometries, the local manifolds of specific concepts exhibit high representational similarity. Zooming into the token level, we evaluate the structural equivalence of local neighborhoods using mutual k-nearest neighbors (m-KNN, Wolfram and Schein, 2025) and find high alignment across architectures.

Finally, we investigate the stabilization dynamics of these properties during training in Section 6. An analysis of the transformer checkpoints demonstrates that local properties, such as CKA and m-KNN similarity, converge rapidly—within the first 4% of training. In contrast, global geometry stabilizes significantly later.

Overall, our contributions are as follows:

• Global Geometric Divergence: We provide a systematic characterization of the representation geometry in SSMs. We demonstrate that the residual streams of transformers and SSMs exhibit substantially different global geometries (anisotropic vs. isotropic).

• Local convergence: We reveal that locally, representations are highly aligned: both architectures rely on similar intrinsic dimensionalities for concept decoding and exhibit highly correlated local token neighborhoods and concept manifolds.

• Dynamic mechanisms & hybrid architectures: By tracking intermediate checkpoints, we show that local structural convergence emerges early in pretraining. Furthermore, we reveal that hybrid architectures (Jamba2) exhibit representations that oscillate between the isotropic and anisotropic geometries of their constituent layers.