cs.CLOct 8, 2025

Contextual Representation Flow Across Depth in State-Space and Transformer Architectures

Authors: Nhat M. Hoang, Do Xuan Long, Cong-Duy Nguyen, Chunyan Miao, Min-Yen Kan, Luu Anh Tuan

Organizations: Nanyang Technological University, Singapore · National University of Singapore

Abstract

State Space Models (SSMs) have emerged as efficient, linear-time alternatives to Transformer-Based Models (TBMs) for long-context processing. However, their different mechanisms raise an important question: how does contextual representation flow across depth differ between these model families and their hybrids? We examine this question across twenty-one pretrained models, combining token-wise spectral diversity, layer-wise variation on seven datasets, and answer-location probing on two retrieval tasks. This joint analysis reveals that TBMs retain most of their token diversity at the output, whereas SSMs reach richer intermediate diversity but retain less of it on average, with late-layer compression. Comparisons with reinitialized weights reveal that these profiles depend on pretrained weights, while hybrids combine strong answer-location accessibility with architecture-dependent geometry, showing that high accessibility need not require the steadiest representation flow. Finally, we conduct theoretical case studies connecting these contrasts to mechanism-level differences: query-time token mixing in TBMs, repeated recurrent updates in SSMs, and preserved attention updates in hybrids.

Figures & tables

Appendix figures & tables14 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

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

    Sep 8, 2026Amit Ben-Artzy, Roy SchwartzTransformerRepresentation Geometry in Language Models

  2. What Does Layer-Importance Reveal About Transformers and State-Space Models?

    Sep 15, 2026Istabrak Abbes, Nizar Islah, Irina Rish +1Transformer InterpretabilitySelective SSMs

  3. The Attention Within: Consensus Dynamics in Selective State Space Models

    Sep 16, 2026João Pedro Silvestre, Álvaro Rodríguez Abella, Paulo TabuadaSelective SSMs