betaFeedback

WorksComputer Science

Reading Between the Layers: Where Representation Quality Lives, and What Geometry Reveals

Abstract

Representation quality in pretrained text foundation models is not concentrated at the final layer, yet practitioners routinely probe it there because layer selection without labels has remained an open problem. We present a large-scale empirical study of where layer quality lives across 25 models spanning four architectural families and four pretraining strategies, evaluated on 13 datasets across classification, pair classification, semantic textual similarity, and multiple-choice question answering. Peak probing layers depend systematically on pretraining strategy and architecture: masked encoders peak in late-middle layers, sequence-to-sequence models shift their peak with task type, contrastive sentence encoders concentrate signal at the final layer under CLS and last-token readouts but peak early under mean pooling, and decoder-only models exhibit distinct phase structure tied to depth. We distill these findings into the Stable Geometry Index (SGI), a closed-form, fully label-free selector with no fitted coefficients combining power-law fit quality, effective-rank capacity, spectral stability, and a weak depth prior. Across 383 evaluation groups SGI improves over the last-layer baseline and lifts Hit@3 from 0.39 to 0.52, recovering 40% of the gap to the oracle without using any labels, and exceeds a supervised ELMo-style layer mix on the matched subset despite using strictly less information. Our ablations also reverse a common assumption in the spectral-decay literature: power-law fit quality is a stronger predictor of layer quality than the exponent's proximity to one.

Introduction

Pretrained text models are usually probed at the final layer, but representation quality is not concentrated there. By representation quality we mean downstream utility or transferability, operationalised by performance on the evaluated downstream tasks under our fixed probing protocol. Geometry provides a label-free selection signal; downstream performance defines quality. Prior work shows that linguistic, syntactic, and transfer-relevant information varies across depth, with intermediate layers often carrying stronger signal than the final layer ([61, 36, 26, 34] (Voita et al. 2019)). The problem is that the best layer is not known in advance. In practice, choosing it usually requires a labeled sweep over all layers, which is expensive and defeats the purpose of low-label probing. This paper asks two questions. Where does representation quality live across model families, pretraining objectives, and task types? Can we locate the best layer from unlabeled geometry alone?

We first study 25 pretrained models across four broad architectural families: encoders, encoder–decoders, decoder-only models, and state-space models. Sentence-transformer models are treated as encoder-family models because they share an encoder-style representation interface. The study covers 11 pretraining objectives or objective variants and 13 datasets across four task categories. Across all peak-layer instances, best layers are strongly structured by task, readout, and pretraining objective. Mean pooling peaks early in 61.1% of runs, while CLS readouts peak late in 66.8%. Sequence-to-sequence models peak early on classification but later on multiple-choice QA, and contrastive sentence encoders concentrate signal near the final layer under CLS and last-token readouts while peaking early under mean pooling.

We then introduce the Stable Geometry Index (SGI), a closed-form, fully label-free layer selector computed from a fraction of unlabeled embeddings. SGI combines four signals: power-law fit quality, effective-rank capacity, spectral stability, and a weak late-middle depth prior. The rule is additive and uses no learned coefficients. Across 383 encoder evaluation groups, SGI improves over the last-layer baseline by 1.20 percentage points and raises Hit@3 from 0.389 to 0.517, recovering 40% of the oracle gap without using labels. SGI improves over popular label-free geometry baselines, including effective rank, RankMe ([27]), IsoScore ([52]), participation ratio, intrinsic dimension, and entropy. The best single-signal Hit@3 among these baselines is 0.428, while SGI reaches 0.517. On the matched CLS subset, SGI also exceeds a supervised ELMo-style learned layer mix ([44]) by 1.41 metric points, despite using strictly less information.

Our contributions:

  • A large-scale layerwise empirical study. We characterize representation quality across 25 models, 11 pretraining objectives or variants, 13 datasets, four task categories, and four pooling strategies.

  • A cross-family analysis of layer structure. We show that peak layers are not arbitrary: they vary systematically with architecture, pretraining objective, task type, and readout strategy.

  • The Stable Geometry Index (SGI). We propose a closed-form, label-free geometric selector that improves over the final layer, beats single-signal geometric baselines, and exceeds a supervised learned layer mix on the matched subset.

  • A label-free pruning prior. For 22% of encoder evaluations, SGI identifies a first-quintile cutoff layer where the upper 80% of layers can be removed, yielding a 5×5 \times inference reduction while improving the probe metric.

Related Works

Intermediate Layer Representations

Prior work shows that transformer representations are distributed non-uniformly across layers, and final-layer embeddings are often not optimal. In encoder models such as BERT, linguistic features are frequently best captured in middle layers rather than final layers ([36, 61] (Voita et al. 2019)). Similar results in large language models show that mid-depth layers often encode more robust and transferable features ([30, 34, 26]). Related work on attention sinks shows that attention can collapse onto a small set of tokens ([11, 29] (Xiao et al. 2024a)), while intermediate decoder layers exhibit weaker sink behavior than shallow or deep layers ([3]).

Geometry and Layer-wise Representation Quality

A broad line of work studies embedding geometry as a label-free proxy for representation quality. Isotropy and anisotropy have been widely analyzed in transformer embeddings ([41, 12, 24]), with locally isotropic token-type clusters observed in contextual models such as BERT and ERNIE ([48]). Several diagnostics quantify these properties, including anisotropy and isotropy-based measures ([6, 52]), Participation Ratio, stable rank, and spectral methods such as power-law exponents for OOD generalization ([40]) and RankMe, which estimates effective rank via singular-value entropy ([27]). Other geometric diagnostics, including LiDAR’s covariance-based score ([62]), Jacobian effective rank ([17]), manifold distortion measures, and intrinsic dimensionality analyses of fine-tuning dynamics ([1]), further connect geometry to downstream utility. Building on these signals, several methods evaluate intermediate representations without downstream labels. LevyScore ([38]) measures confidence via deviations from pretraining embedding density, while Layer by Layer ([55]) uses entropy, curvature, and augmentation-invariance to show that mid-depth layers often outperform final layers. Perception Encoder ([9]) similarly identifies strongest visual embeddings at intermediate depths, while ([2]) theoretically relate isotropic Gaussian structure to lower downstream risk. In language models, ([15, 49]) show that abstraction, intrinsic dimension, and anisotropy evolve systematically with depth and correlate with probing performance. LOES ([4]) further formulates layer selection as spectral residual optimization under orthogonality and isotropy constraints. Together, these works motivate universal layer-selection methods across models and tasks.

Methodology

Transformer encoders expose a sequence of representation spaces rather than a single representation. Prior layer-wise analyses show that linguistic and transfer information is distributed across depth rather than concentrated only at the final layer ([61, 36, 32]). The methodological question is therefore: can we choose a useful layer from unlabeled geometry alone, before seeing any downstream probe score? SGI answers this by treating each layer as a point cloud and scoring the shape of its spectrum and local neighborhood geometry. The geometric intuition is simple: a useful transfer layer should be broad enough to encode many directions, stable enough not to collapse onto a few dominant axes, locally spread enough to preserve neighborhood structure, and deep enough to move beyond shallow lexical features. SGI scores these properties with the same fixed expression for every task, readout, model, and split.

Geometry of a Layer

At layer ℓ\ell, let Hℓ∈Rnℓ×dH_\ell\in\mathbb{R}^{n_\ell\times d} be the matrix of representations with singular values σℓ,1≥⋯≥σℓ,q>0\sigma_{\ell,1} \ge\cdots\ge\sigma_{\ell,q} > 0. We characterise the layer geometry through four spectral and manifold quantities, each grounded in a distinct theoretical principle: spectral entropy as a measure of capacity, deviation from a single power law as a measure of structured residual information, spectral conditioning as a measure of stability, and local neighbourhood scaling as a measure of intrinsic dimensionality. Together these capture the global, residual, conditioning, and local-geometric properties of the representation manifold.

Spectral capacity. Following Roy and Vetterli [51] and Garrido et al. [27], we measure how broadly information is spread across singular directions via the exponentiated Shannon entropy of the normalised spectrum,

πℓ,i=σℓ,i∑jσℓ,j,eℓ=exp⁡(−∑iπℓ,ilog⁡πℓ,i).\pi_{\ell,i} = \frac{\sigma_{\ell,i}}{\sum_j \sigma_{\ell,j}}, \qquad e_\ell= \exp\left(-\sum_i \pi_{\ell,i}\log\pi_{\ell,i}\right).

This quantity is invariant to scalar rescaling of HℓH_\ell and equals the number of directions a maximum-entropy distribution with the same support would occupy (Garrido et al. [27]), giving it a clean information-theoretic interpretation as the effective rank of the representation. If kk singular directions carry equal mass and the rest are negligible, then eℓ=ke_\ell= k. It therefore measures spectral breadth rather than hidden-state width. In a linear probe, producing a fixed logit change along a small-singular-value direction requires a larger coefficient, which can amplify finite-sample noise.

Spectral residual structure. Heavy-tailed singular spectra are predicted by random-matrix theory and have been linked to implicit self-regularisation in trained networks ([39, 40]). We regress log⁡σℓ,i\log\sigma_{\ell,i} on log⁡i\log i and use the coefficient of determination xℓx_\ell as a measure of how well a single power law explains the spectrum. Low xℓx_\ell indicates structured deviation from the heavy-tailed regime, which (as our construction ablations confirm in § 6.4) carries more layer-quality signal than the exponent value itself.

Stability. The condition number κℓ=σℓ,1/σℓ,q\kappa_\ell= \sigma_{\ell,1}/\sigma_{\ell,q} measures spectral ill-conditioning: a nearly degenerate tail can make fitting a linear probe sensitive to perturbations, although actual sensitivity also depends on the labels, loss, and regularisation. Large condition numbers are consistent with the anisotropy and rogue-dimension phenomena observed in contextual encoders ([24, 63]). Conditioning thus complements effective rank by detecting weak directions that a broad global spectrum can obscure.

Local intrinsic spread. The TwoNN estimator ([25]) recovers the intrinsic dimensionality of the data manifold from the ratio of first- and second-nearest-neighbour distances under a locally Poisson assumption, yielding a consistent estimator that is invariant to the embedding dimension dd. Local intrinsic dimensionality complements the global spectrum: ϵℓ\epsilon_\ell describes how variance is distributed across orthogonal directions, while δℓ\delta_\ell describes how points populate the manifold in their immediate neighbourhood.

Group-wise normalisation

To keep the selector invariant to model- and dataset-specific scales, every trace is normalised across the layers of a single evaluation group. We use three normalisers, each chosen for a specific statistical property of the underlying trace. The min-max normaliser

N+(u)ℓ=uℓ−min⁡jujmax⁡juj−min⁡juj,\mathcal{N}^{+}(u)_\ell= \frac{u_\ell- \min_j u_j}{\max_j u_j - \min_j u_j},
N−(u)ℓ=1−N+(u)ℓ.(1)\mathcal{N}^{-}(u)_\ell= 1 - \mathcal{N}^{+}(u)_\ell. \tag*{(1)}

is appropriate for bounded, well-behaved traces (constant traces map to 0.5). The rank normaliser

R+(u)ℓ=rank⁡(uℓ)−1/2L,R−(u)ℓ=1−R+(u)ℓ,\mathcal{R}^{+}(u)_{\ell} = \frac{\operatorname{rank}(u_{\ell}) - 1/2}{L}, \qquad \mathcal{R}^{-}(u)_{\ell} = 1 - \mathcal{R}^{+}(u)_{\ell},

uses average ranks for ties and is robust to outliers in heavy-tailed traces. The log-min-max normaliser

L+(u)ℓ=N+(log⁡(1+uℓ−min⁡juj)),\mathcal{L}^{+}(u)_{\ell} = \mathcal{N}^{+}\left(\log\left(1 + u_{\ell} - \min_j u_j\right)\right),

applies a variance-stabilising transform before scaling and is the appropriate choice for traces with multiplicative dynamic range such as effective rank and intrinsic dimension.

Stable Geometry Index

We combine the complementary geometric properties above in a fixed additive score, the Stable Geometry Index:

Gℓ=Rℓ+Cℓ+Sℓ+Pℓ.G_{\ell} = R_{\ell} + C_{\ell} + S_{\ell} + P_{\ell}.

The additive form is a design choice supported by the ablations in § 6.4, Table 9: removing any coordinate or replacing the stability–depth sum with a product reduces performance.

VariantScoreGain-L (%)H@3
SGI (full)R+C+S+PR + C + S + P1.200.517
No residualC+S+PC + S + P0.720.473
No capacityR+S+PR + S + P0.000.454
No spreadR+C+PR + C + P0.940.478
No depth priorR+C+SR + C + S0.730.449
Linear capacityR+Z+S+PR + Z + S + P0.960.491
Product interactionR+C+SPR + C + SP−0.170.420
Residual ×2$2R + C + S + P$1.080.499
Capacity ×2R+2C+S+PR + 2C + S + P0.930.478
Stability ×2R+C+2S+PR + C + 2S + P0.890.499
Depth ×2R+C+S+2PR + C + S + 2P0.380.441

Table 9. Ablations of the SGI score on 383 encoder evaluation groups. The second block removes one term at a time. The third block replaces the capacity parameterisation with its linear form (Zℓ=L+(ϵℓ)Z_{\ell} = \mathcal{L}^{+}(\epsilon_{\ell}) without the sharpening factor (1+Zℓ)(1 + Z_{\ell})) and replaces the additive stability–depth combination with a multiplicative interaction. The final block doubles the weight of each SGI component individually while keeping the remaining terms unchanged. Equal-weight SGI remains the best-performing variant.

The residual term Rℓ=N−(x)ℓ2R_{\ell} = \mathcal{N}^{-}(x)_{\ell}^{2} rewards spectra whose deviation from a power law is large in absolute terms; the square sharpens the contribution of layers near the maximum residual. The capacity term

Zℓ=L+(e)ℓ,Cℓ=Zℓ(1+Zℓ),Z_{\ell} = \mathcal{L}^{+}(e)_{\ell}, \qquad C_{\ell} = Z_{\ell}(1 + Z_{\ell}),

rewards broad usable rank, with the quadratic factor (1+Zℓ)(1 + Z_{\ell}) giving a steeper gradient near saturation. The stability term aggregates value-, rank-, and manifold-side conditioning,

Sℓ=N−(κ)ℓ+R−(κ)ℓ+L+(δ)ℓ,S_{\ell} = \mathcal{N}^{-}(\kappa)_{\ell} + \mathcal{R}^{-}(\kappa)_{\ell} + \mathcal{L}^{+}(\delta)_{\ell},

preferring layers that are well-conditioned in both spectral value and ordering while retaining local intrinsic spread. The depth prior

Pℓ=N+(dℓ4(1−dℓ)),dℓ=ℓ/L,P_{\ell} = \mathcal{N}^{+}\left(d_{\ell}^{4}(1 - d_{\ell})\right), \qquad d_{\ell} = \ell/L,

encodes an empirically supported prior over depth: probing accuracy in pretrained transformers peaks in late-middle layers across linguistic, syntactic, and transfer probes [32, 61, 36]. The functional form d4(1−d)d^{4}(1 - d) places its mode at d=4/5d = 4/5, a fixed late-middle location consistent with the depth at which prior probing studies report peak performance. The prior is bounded and weak: it perturbs the ranking of geometrically near-tied layers without overriding strong spectral evidence at other depths.

The selected layer is the latest maximiser, ℓ^=max⁡arg max⁡ℓGℓ\hat{\ell} = \max\operatorname*{arg\,max}_{\ell} G_{\ell}, where the tie rule is deterministic and favours deeper layers only when the geometry is otherwise indistinguishable.

Experimental Setup

Models

Our main evaluation covers 25 pretrained models spanning four architectural families and a range of pretraining objectives, positional encodings, and parameter scales (66M–581M). A separate scaling probe adds four checkpoints up to 4B parameters (§ 6.2).

Encoders (MLM and variants). Our primary cohort is 12 bidirectional encoders trained with masked language modelling or related discriminative objectives: BERT (Devlin et al., [21]) (base uncased, large uncased, large whole-word-masked), DistilBERT (Sanh et al., [53]), RoBERTa-base (Liu et al., [37]He et al., 2021), ModernBERT-base ({citet}Warner et al., 2025), SpanBERT-base ({citet}Joshi et al., 2020), and ERNIE-2.0-base ({citet}Sun et al., 2020). We also add multilingual BERT ({citet}Devlin et al., 2019), XLM-RoBERTa-base ({citet}Conneau et al., 2020), and XLM-MLM-100 ({citet}Conneau and Lample, 2019`).

Encoders (contrastive sentence objective). Four encoders post-trained with contrastive or instruction-tuned sentence objectives: BGE-base-en-v1.5 (Xiao et al., 2024b), MPNet-base sentence encoder (Reimers and Gurevych, [50]; Song et al. [58]), Sentence-T5-base (Ni et al., [43]), and Instructor-base (Su et al., [59]).

Encoder–decoders. Four sequence-to-sequence models: T5-v1.1-base (Raffel et al., [47]), Flan-T5-base (Chung et al., [16]), ByT5-base (Xue et al., 2022), and BART-base (Lewis et al., [35]).

Decoder-only models. Four autoregressive decoders, evaluated only on multiple-choice QA (§ 4.2) since left-to-right attention precludes symmetric pair encoding: GPT-2-base (Radford et al., [46]), GPT-Neo-125M (Black et al., [8]), Pythia-70M (Biderman et al., [5]), and Qwen2.5-0.5B (Qwen et al., [45]).

State space models. Mamba-130M (Gu and Dao, [28]) represents sub-quadratic sequence models without self-attention.

Tasks and Datasets

We evaluate across four task categories and 13 datasets from MTEB (Muennighoff et al., [42]; Enevoldsen et al., [23]) and related benchmarks (Table 11).

DatasetTaskDomain
SST-2classificationSentiment
AG NewsclassificationNews
EmotionclassificationSocial
Banking77classificationFinance
SNLIpair classificationNLI
MultiNLIpair classificationMulti-genre
QQPpair classificationQuestions
MRPCpair classificationParaphrase
STS-BSTSGeneral
BIOSSESSTSBiomedical
ARCMC-QAScience
HellaSwagMC-QACommonsense
PIQAMC-QAPhysical

Table 11. The 13 datasets used in our evaluation (STS = semantic textual similarity, MC-QA = multiple-choice QA).

Classification. Four datasets covering single-sentence and intent classification: SST-2 (Socher et al., [56]), AG News (Zhang et al., 2015), Emotion (Saravia et al., [54]), and Banking77 (Casanueva et al., [13]).

Pair Classification. Four datasets require comparison of two input sentences: SNLI (Bowman et al., [10]), MultiNLI (Williams et al., 2018), MRPC (Dolan and Brockett, [22]), and QQP, part of GLUE dataset (Wang et al., 2019). Merging two representations for prediction makes pooling strategy consequential.

Semantic Textual Similarity. Graded similarity on STS-B (Cer et al., [14]) and BIOSSES (Sogancıoğlu et al., [57]) (biomedical).

Multiple-Choice QA. Three commonsense benchmarks: ARC (Clark et al., [18]), HellaSwag (Zellers et al., 2019), and PIQA (Bisk et al., [7]).

All details of the probing setup are presented in Appendix § 11.

Implementation Details

All experiments are implemented in PyTorch and managed with Hydra for reproducible configuration. Probe training uses a batch size of 128; full probe and selector hyperparameters are listed in Appendix § 13.§ 7. Geometry metrics are computed on a 10%-sampled subset of each layer’s representations with a random seed of 42. All experiments were done on an A4500 NVIDIA GPU with 20GB VRAM.

Layer-wise Analysis

Using the results of our empirical study, we examine the raw layer-by-layer signal that SGI exploits: how probe performance evolves across depth for each architectural family, pooling, and task, and how the geometric quantities of § 3 track it.

Across most of the peak-layer instances, useful representations are not concentrated uniformly at the final layer. Figure 1 shows that the empirical best layer is organized by task and readout. Classification has the strongest early component, with

Empirical best-layer zones by task and readout

Figure 1. Empirical best-layer zones by task and readout over 4 tasks, 13 datasets and 25 models.

42.2% of runs peaking in the first third of the model, while pair classification and STS are more often middle or late. Readout choice sharpens this pattern: mean pooling peaks early in 61.1% of runs, whereas CLS readouts peak late in 66.8% of runs.

Mean pooling exposes early token-level evidence for classification, while CLS and sentence-pair readouts depend on later aggregation; multiple-choice QA spreads evenly across zones, consistent with answer scoring relying on endpoint representations. The implication for selection is that neither a fixed last-layer nor a fixed early-layer rule suffices: the target is a task- and readout-dependent quality phase, and because peak layers are structured rather than random, a fixed label-free score can track it. Finer-grained analyses by architecture, pretraining objective, and near-best layer behavior are provided in Appendix § 12.§ 3.

Results and Discussion

For a fixed (model, dataset, task, split) configuration with candidate layers 1,…,L1,\ldots,L, a layer selector returns ℓ^∈{1,…,L}\hat{\ell} \in\{1,\ldots,L\}. We report four metrics:

Gain-L%=[M(ℓ^)−M(L)]×100,\text{Gain-L\%} = [M(\hat{\ell}) - M(L)] \times100,
Gap-O (Oracle) %=[max⁡jM(j)−M(ℓ^)]×100,\text{Gap-O (Oracle) \%} = [\max_{j} M(j) - M(\hat{\ell})] \times100,
hit@1 (H@1)=1[ℓ^∈arg⁡max⁡jM(j)],\text{hit@1 (H@1)} = \mathbb{1}[\hat{\ell} \in\arg\max_{j} M(j)],
hit@3 (H@3)=1[ℓ^∈Top3],\text{hit@3 (H@3)} = \mathbb{1}[\hat{\ell} \in\mathrm{Top}_3],

where M(⋅)M(\cdot) denotes the task-specific evaluation metric (see Table 10 for detailed mapping).

Task familyDatasetsPrimary metric
ClassificationSST-2; AG News; Emotion; Banking77Accuracy
Pair classificationSNLI; MultiNLI; MRPC; QQPAccuracy
STSSTS-B; BIOSSESSpearman correlation
Multiple-choice QAARC; HellaSwag; PIQAAccuracy

Table 10. Primary evaluation metric used to define empirical best layers and selector outcomes for each task family.

The central result is that this geometric test behaves like a practical selector, not a post-hoc description of representations (Figure 2). Table 1 reports the main encoder evaluations. Table 2 further confirms that these improvements are statistically significant over all 383 encoder evaluation groups. The primary metric improves by +1.20 percentage points (paired bootstrap 95% CI [0.85, 1.54]; paired Wilcoxon, p<10−4p < 10^{-4}), while Hit@3 improves by +12.79 percentage points (95% CI [6.79, 18.80]; p<10−4p < 10^{-4}). SGI improves over the final-layer baseline by 1.20 percentage points and raises Hit@3 from 0.389 to 0.517. The oracle improves over the final layer by 3.00 percentage points. SGI not only recovers about 40% of the available oracle gain without seeing probe labels, but also captures the layer selection pattern (Figure 3) of the oracle layers.

Figure 2. Geometry-performance overlays. Black denotes normalized probe performance, blue denotes SGI, and the dashed line marks the SGI-selected layer; in both examples, this layer is among the top three probe layers.

SGI and Oracle Depth Distributions

Figure 3. Depth distributions of oracle layers (dotted) and layers selected by SGI (solid) across encoder tasks. SGI closely follows the oracle across all tasks, reproducing both the layer preference for and the overall distributional shape.

MethodGain-L (%)Gap-O (%)H@1H@3
SGI (Our Method)1.201.800.2850.517
Eff. rank0.452.550.2380.428
RankMe0.452.550.2380.428
Last0.003.000.2350.389
Entropy-0.293.280.1980.397
Part. ratio-0.713.710.2220.407
Stable rank-0.733.720.2170.402
Low top-1 var ratio-0.733.720.2170.402
Low anis.-0.883.880.2140.394
Low cond.-0.903.890.1960.371
Intr. dim.-0.903.890.1540.347
IsoScore-2.075.060.1590.352
Low iso-ratio-8.9911.990.0130.052
Oracle3.000.001.0001.000

Table 1. Encoder results. Gain-L and Gap-O are in percentage points.

MetricΔ\Delta95% CITest
Primary metric+1.20 pp[0.85, 1.54]p<10−4p < 10^{-4}
Hit@3+12.79 pp[6.79, 18.80]p<10−4p < 10^{-4}

Table 2. Paired significance tests over the full 383-group encoder selector evaluation, with no model, dataset, or positive-gain filtering.

The single-signal baselines show why a geometry index is needed. Effective rank and RankMe are the strongest individual signals, but each reaches only 0.45 pp gain. Entropy, isotropy, intrinsic dimension, and spectral-floor selectors are useful diagnostics, yet none is a reliable selector by itself.

Table 3 partitions the encoder results across pooling strategies. Mean pooling benefits most in absolute gain, while CLS has the strongest Hit@3. This indicates that SGI is not merely avoiding one bad pooling choice; it remains useful across token-level, pooled, and pairwise pooling strategies.

PoolingnnGain-L (pp)Gap-O (pp)H@3
CLS1910.581.800.613
Last token241.305.710.500
Mean962.481.130.427
SBERT pair721.091.400.389

Table 3. Per-pooling SGI performance on encoders. Mean pooling gives the largest gain over the final layer, and CLS gives the highest Hit@3.

SGI yields larger gains in DeBERTa, Modern-BERT, and BERT-large variants (Figure 4). These cross-model differences also vary with architecture and pretraining, so they do not isolate a causal effect of parameter scale. § 6.2 provides a separate probe on larger checkpoints.

Encoder Subfamilies

Figure 4. Encoder-subfamily SGI gains. Bars show mean gain over the final layer in percentage points; dots and right-hand values show Hit@3. SGI improves every subfamily, with the largest gains for DeBERTa, ModernBERT, and BERT-large WWM.

Beyond Encoders

A broader model-family analysis asks whether the same geometric principle continues to behave sensibly outside the encoder setting. Table 6 shows a clear pattern: SGI is strongest when intermediate representations are expected to reorganize substantially across depth, especially for encoder–decoder and sentence-transformer models. Decoder-only models show smaller gains, suggesting that the final layer is already a better default for these settings. Across tasks, classification benefits most, STS remains positive but farther from the oracle, and multiple choice QA is close to the final-layer baseline, indicating that this task family may require signals beyond layer geometry alone (Table 4).

TasknnGain-L (%)Gap-O (%)H@3
Classification2873.181.970.585
Multiple-choice QA900.061.100.378
Pair classification1580.761.390.399
STS821.699.410.476

Table 4. Task-wise behavior across model families. SGI gives the largest task-level gain on classification, remains positive on STS and pair classification, and is close to the final-layer baseline on multiple-choice QA.

Model familynnGain-L (%)Gap-O (%)H@3
Encoder3831.201.800.517
Decoder480.111.490.354
Encoder–decoder806.515.910.600
Sentence transformer822.332.190.598
State-space84.571.500.125

Table 6. Model-family behavior. SGI is strongest for encoder–decoder and sentence-transformer models, positive for encoders and state-space models, and smallest for decoder-only models.

The 383-group encoder evaluation is our best-supported result. The decoder-only gain is only +0.11 pp, and the state-space result covers one model across eight groups; the latter is limited evidence rather than a family-level conclusion.

Larger-model Scaling Probe

To test whether the pipeline extends beyond the original cohort, Table 7 evaluates four additional checkpoints. Across 57 paired evaluation rows per method, SGI has the highest Hit@1 among the compared label-free selectors and ties for the highest Hit@3. Its mean gain over the final layer is positive for every checkpoint: +5.11 pp for DeBERTa-v3-large, +4.96 pp for Mamba-2.8B, +2.78 pp for XLM-RoBERTa-large, and +0.89 pp for Qwen3.5-4B.

ModelDatasetsGain-L (pp)
DeBERTa-v3-largeSST-2, MRPC, STS-B+5.11
Mamba-2.8BARC, PIQA, STS-B+4.96
XLM-RoBERTa-largeSST-2, MRPC, STS-B+2.78
Qwen3.5-4BARC, PIQA+0.89

Table 7. Larger-model scaling probe. Mean gain over the final layer in percentage points. The probe contains 57 paired rows per method across four checkpoints, including six for Qwen3.5-4B, whose mean remaining oracle gap is 2.90 pp.

This is evidence that SGI can retain useful selection signal on larger checkpoints, rather than a controlled scaling law or broad validation at billion-parameter scale. The 57 scaling rows are separate from the original 383-group encoder result and its significance tests.

Comparison to Supervised Layer Mixing

We compare SGI against a supervised all-layer scalar mix (Table 5), following the ELMo-style layer-weighting paradigm [44]. The scalar mix learns layer weights from probe-supervised training data, whereas SGI selects a single layer from unlabeled geometry.

MethodMetricGain-L (%)
Oracle best layer0.7152.38
SGI0.6970.58
Last layer0.6920.00
Learned all-layer mix0.683-0.83

Table 5. SGI versus a supervised all-layer mix on the matched CLS token (n=191n = 191). SGI exceeds the learned mix by 1.41 metric points and exceeds the final layer by 0.58 pp, despite using no labels for layer selection.

Ablations

Table 9 probes both which terms SGI requires and which functional form it should take. The middle block shows that all four terms carry non-redundant signal: removing any one reduces both Gain-L and Hit@3. Capacity is the most consequential term, and its removal collapses the selector to the last-layer baseline, confirming that spectral breadth is necessary for any layer to be preferred over the final layer, but insufficient to determine layer quality. Residual, spread, and depth contribute smaller but reliable margins of 0.48, 0.26, and 0.47 pp respectively, together converting broad rank into a stable selection signal.

The lower block studies score formulation and weighting. Capacity is parameterised as Cℓ=Zℓ(1+Zℓ)C_{\ell} = Z_{\ell}(1 + Z_{\ell}) rather than linear ZℓZ_{\ell}; this is not cosmetic, as the linear form loses 0.24 pp in Gain-L, showing that sharpened response near high effective rank carries information beyond effective rank alone. We also evaluate weighted variants by doubling each SGI component individually while keeping the remaining terms fixed. None of these variants exceeds the equal-weight formulation. This is a coarse sensitivity check, not a full weight search, so it supports the fixed formulation among the tested variants without establishing globally optimal weights. More importantly, additivity is not interchangeable with multiplicative composition. Replacing the stability–depth sum with a product S⋅PS \cdot P drives Gain-L below zero, making the selector worse than the last-layer default. This failure is structural: in a product, one large signal can mask weakness in another, so a layer with broad capacity and favourable depth can win despite poor stability. The additive form avoids this particular interaction. The observed results across tasks, readouts, and architectures (Table 6, Table 4) provide empirical support for the combination; neither these results nor the ablations establish conditional independence or robustness to arbitrary estimation errors.

Practical implications. SGI changes two practitioner workflows. For probing, it removes the need to train a probe at every layer before choosing one, since the selection score is computed from unla-

TasknnSGILearned
Classification950.7400.720
Pair classification720.6550.656
STS240.6570.620

Table 8. Task-wise supervised comparison. SGI is higher on classification and STS, and nearly tied on pair classification.

beled representations, applies the same rule across task families and readouts, and can serve as a strong default layer or initialisation point when labels become available later. For deployment, the depth distribution of SGI-selected layers carries direct consequences for model truncation and layer pruning: Figure 5 bins the 383 encoder evaluation groups by the normalised depth ℓ^/L\hat{\ell}/L of the SGI-selected layer and shows that the shallowest bin (ℓ^/L<0.2\hat{\ell}/L < 0.2, 84 groups, or 22% of encoder workload) carries the largest mean gain over the final layer at 2.30 pp, identifying settings where the upper 80% of an encoder’s layers can be removed without loss of probe quality. For a 12-layer encoder selected at ℓ^=2\hat{\ell} = 2, this corresponds to a 5×5\times reduction in inference FLOPs and parameter footprint at deployment time, while improving rather than degrading the downstream probe metric. The early-selection bin is not an artifact of the depth prior, since Pℓ∝dℓ4(1−dℓ)P_{\ell} \propto d_{\ell}^{4}(1-d_{\ell}) places its mode at d=0.8d = 0.8 and would otherwise push selections deeper; early selections occur only when the spectral terms (R,C,S)(R, C, S) collectively out-vote the prior, making them evidence-driven cutoff signals rather than depth-prior side effects. Unlike learned-layer-mixing approaches [44] that require probe labels to identify removable layers, SGI provides this signal from unlabeled forward passes alone, making it applicable in pre-label model selection, in zero-resource deployment pipelines, and as a label-free initialisation for static pruning and knowledge-distillation procedures that need to choose a truncation depth before any downstream task is fixed.

Mean gain of SGI over the last layer, binned by the normalised depth of the SGI-selected layer

Figure 5. Mean gain of SGI over the last layer, binned by the normalised depth ℓ^/L\hat{\ell}/L of the SGI-selected layer. The shallowest bin (ℓ^/L<0.2\hat{\ell}/L < 0.2) carries the largest mean gain (2.30 pp, n=84n = 84), identifying settings where the upper 80% of an encoder’s layers can be pruned without loss of probe quality. The deepest bin (ℓ^/L≥0.8\hat{\ell}/L \ge0.8, n=187n = 187) shows a smaller gain, consistent with the final layer being already close to the optimum in those settings.

Conclusion

We asked where representation quality lives in pretrained text models and whether that location is recoverable from unlabeled geometry. Peak layers are not concentrated at the endpoint but organised by the interaction of objective, task, and readout, so no fixed depth rule transfers. The Stable Geometry Index exploits this: a closed-form, fixed-form score with no fitted coefficients that improves over the final-layer baseline, recovers about 40% of the oracle gap without labels, and exceeds a supervised layer mix on the matched subset, while its ablations show power-law fit quality, not the exponent, carries the spectral signal. Needing only unlabeled forward passes, it also serves as a label-free pruning prior. SGI is best read as a phase detector rather than a universal proxy: strongest where representations reorganise across depth, and weakest on multiple-choice QA where the final layer is already competitive.

Limitations

SGI is weakest on multiple-choice QA, where the final layer is already competitive and the oracle gap is small; we expect that tasks requiring stronger generative or retrieval signals may benefit from geometry measures beyond those considered here, and extending the framework to generation and structured prediction settings is a direction we leave for future work. SGI’s additive form is empirically supported on the evaluated settings, but its terms need not be statistically independent, and geometry alone does not guarantee downstream label separability. Finally, SGI selects a single layer, and combining it with lightweight layer mixing, using SGI as an initialisation rather than a hard selector, could close the remaining gap to the oracle while retaining the label-free property that makes it practical for pre-label model selection and knowledge distillation pipelines.

Ethical Considerations

This work studies layer selection and representation geometry for pretrained language models. It uses only publicly available checkpoints and benchmark datasets, and does not involve human subjects, private data, or any new data collection. The method is intended for offline research analysis and efficiency improvements in inference, not for profiling individuals or making decisions about people. By identifying layers that can be skipped without hurting performance, the approach may reduce compute, latency, and energy use. At the same time, the method does not remove the broader risks associated with the underlying models, and any deployment should still follow the license and use restrictions of the original checkpoints and datasets.

Appendix

This appendix provides the supporting evidence behind the main paper. Appendix § 11 expands the probing setup from § 4, and Appendix § 12 supports the two central empirical claims of § 5: (a) that useful representation layers are structured by task, readout, architecture family, and pretraining objective rather than being uniformly concentrated at the final layer; and (b) that the four geometric coordinates used by SGI, namely spectral capacity, power-law fit quality, condition number, and local intrinsic dimensionality, each capture a distinct and non-redundant property of the representation manifold that correlates with probe-layer quality.

Appendix C is organised as follows. We first report the peak-zone tables behind Figure 1 together with model-family, training-label, and readout stratifications. We then enumerate the observed model-family/training-label/task/readout combinations, separate where a readout peaks from which readout achieves the best score, and document the raw SGI coordinates and their signed differences relative to the final layer. The overlay figures provide qualitative alignment checks between the geometry curve and the supervised probe curve. Together these materials show that the structure reported in the main text holds across the full set of evaluated configurations.

Probing Setup

For each model and dataset we extract intermediate representations from all transformer layers (including the embedding layer), yielding a layer-by-layer profile per model–task pair.

Pooling. We reduce each token-level sequence to a fixed-size vector before probing using up to four strategies: CLS-token (BERT-style encoders), LAST-TOKEN (decoder and encoder–decoder models), MEAN pooling across non-padding tokens, and SBERT-PAIR (mean-of-pair with mean–max fusion for pair tasks).

Probe architectures. A linear probe (logistic regression) and a nonlinear probe (two-layer MLP with GeLU activations, hidden dimension 256, dropout p=0.1p=0.1) are trained per layer. All probes use AdamW (lr=10−310^{-3}, weight decay 0.01, batch size 128) for up to 20 epochs, with early-stopping patience 3, and report averaged results across three seeds.

Layerwise Interpretability Details

Experimental Coverage and Evaluation Denominators

This subsection records the evaluation denominators used by the main analyses. All peak-layer and selector quantities are computed using the task’s primary metric, denoted Mg(ℓ)M_g(\ell) for evaluation group gg at layer ℓ\ell. Table 10 lists the metric used for each task family. The empirical best layer, earliest near-best layer, gap-to-last, gap-to-best, and Hit@1/Hit@3 oracle ranking are all defined with respect to this primary metric. Thus comparisons across layers are task-internal: accuracy is used for classification-style tasks, while Spearman correlation is used for STS.

Table 12 summarises the scope of the three analyses in the paper: the broad peak-layer analysis, the layerwise score set from which those peaks are computed, and the encoder-only SGI selector evaluation. The layerwise study spans the full model set, while the SGI selector results are reported on the encoder subset for which the selector is claimed.

ArtifactRowsModelsDatasets
Peak-layer instances6172513
Layerwise score rows8,5442513
Final SGI selector groups383128

Table 12. Scope of the three analyses in the paper. Peak-layer instances are computed after averaging probe scores across seeds.

Table 13 gives the configuration coverage for each analysis. A peak-layer instance is one seed-averaged (model, dataset, task, readout, probe) curve over all observed layers. The selector comparison evaluates 21 label-free methods on the same 383 encoder evaluation groups used for the main SGI result.

Analysis scopeModelsDatasetsTasksReadoutsProbesSeedsEvaluation unit
Layerwise peak analysis25134423617 peak-layer instances
Layerwise scores251344238,544 layerwise score rows
Final SGI selector evaluation1283423383 encoder selector groups
Selector comparison128342321 methods on the same 383 groups

Table 13. Configuration coverage for the main empirical claims. The broad layerwise analysis covers classification, pair classification, STS, and multiple-choice QA. The final SGI selector evaluation is the encoder-only subset used for the main selector results.

Table 14 breaks the 617 peak-layer instances down by task, readout, and probe type, showing which task–readout–probe combinations contribute to the reported early, middle, and late peak statistics.

TaskReadoutLinear probeNonlinear probeTotal
ClassificationCLS token5453107
ClassificationLast token181836
ClassificationMean pooled tokens7272144
Multiple-choice QACLS token121224
Multiple-choice QALast token333366
Pair classificationCLS token403979
Pair classificationSentence-pair readout403979
STSCLS token171734
STSLast token242448
Total–310307617

Table 14. Task–readout–probe support for the layerwise peak analysis. Counts are peak-layer instances after seed averaging.

Table 15 reports the coverage of the final SGI selector evaluation. The 383 groups span three encoder task families, four readouts, two probe types, and two evaluation-split regimes.

DimensionValueGroups
TaskClassification191
TaskPair classification144
TaskSTS48
ReadoutCLS token191
ReadoutMean pooled tokens96
ReadoutSentence-pair readout72
ReadoutLast token24
ProbeLinear and nonlinear383
Evaluation splitOfficial test287
Evaluation splitRandom 60/20/2096
Embedding splitTrain383

Table 15. Coverage of the final SGI selector evaluation. All rows are encoder groups.

Peak-Zone Tables

Tables 16 and 17 provide the data behind the top panels of Figure 1. The early, middle, and late zones correspond to the first, second, and final thirds of the model depth after normalizing by the final observed layer.

Detailed Layer-wise Analysis

Median peak depth rises from encoder–decoders (0.167) through decoders (0.542) to encoders and sentence transformers (0.727, 0.917; Table 18), encoder–decoders span an interquartile range of 0.750. The finer strata (Table 19, Table 21) show the spread is driven by objective–task–readout interaction: span-corruption models are near-best extremely early on classification and STS (100%), whereas masked language modeling is task-sensitive (early-accessible for 60.4% of classification runs but only 3.1% of STS). The useful layer is where a given objective and readout make the signal linearly available, not simply where the architecture peaks. A selector need not hit the exact argmax and may instead pick a near-best layer (within 0.01 of the best score), so we also track these near-best layers.

FamilyNQ1MedianQ3IQROutliers
Encoder-decoder1200.0830.1670.8330.7500
Decoder480.3330.5420.6880.3540
SSM80.6150.6670.7080.0941
Encoder3990.4790.7270.9170.4380
Sentence transformer420.6670.9171.0000.3333

Table 18. Quartile summary for normalized empirical best-layer positions by model family.

FamilyTraining labelTaskReadoutNMedian peakEarly peakEarly 1pp
Encoder-decoderSpan CorruptionClassificationlast token180.08100.0100.0
Encoder-decoderSpan CorruptionClassificationmean pooled tokens180.08100.0100.0
Encoder-decoderSpan CorruptionSTSlast token60.08100.0100.0
Encoder-decoderContrastive Sentence Embedding FinetuningClassificationmean pooled tokens120.0891.7100.0
DecoderCausal Language ModelingMultiple-choice QACLS token240.4245.8100.0
Encoder-decoderContrastive Sentence Embedding FinetuningMultiple-choice QAlast token120.7933.3100.0
Encoder-decoderDenoising AutoencodingMultiple-choice QAlast token60.8316.7100.0
EncoderKnowledge Distillation + MLMClassificationmean pooled tokens80.1762.587.5
EncoderContinual Multi-Task PretrainingClassificationmean pooled tokens80.1762.587.5
EncoderMasked Language Modeling (MLM)Classificationmean pooled tokens560.3253.687.5
Encoder-decoderSpan CorruptionMultiple-choice QAlast token180.3850.077.8
EncoderWhole Word Masking (WWM)Classificationmean pooled tokens80.0862.575.0
EncoderSpan Masking + Span Boundary ObjectiveClassificationmean pooled tokens80.1762.575.0
EncoderReplaced Token Detection (RTD)Classificationmean pooled tokens80.3350.075.0
EncoderSpan Masking + Span Boundary ObjectivePair classificationsentence-pair readout60.3850.066.7
Encoder-decoderContrastive Sentence Embedding FinetuningClassificationlast token120.8333.366.7

Table 19. Representative peak-depth patterns by model family, training label, task, and readout. “Median peak” is median normalized best-layer depth. “Early peak” is the percentage of exact best layers in the first third. “Early 1pp” is the percentage of groups whose earliest layer within 0.01 of best is in the first third.

TaskTraining labelNEarly near-best (%)
ClassificationSpan Corruption36100.0
ClassificationMasked Language Modeling (MLM)11160.4
ClassificationContrastive Sentence Embedding Finetuning4856.2
ClassificationContinual Multi-Task Pretraining1656.2
ClassificationKnowledge Distillation + MLM1643.8
ClassificationReplaced Token Detection (RTD)1643.8
ClassificationWhole Word Masking (WWM)1637.5
ClassificationSpan Masking + Span Boundary Objective1637.5
ClassificationDenoising Autoencoding1225.0
Multiple-choice QAContrastive Sentence Embedding Finetuning12100.0
Multiple-choice QADenoising Autoencoding6100.0
Multiple-choice QASpan Corruption1877.8
Multiple-choice QACausal Language Modeling4877.1
Multiple-choice QACausal Language Modeling (State-Space)633.3
Pair classificationMasked Language Modeling (MLM)8842.0
Pair classificationContrastive Sentence Embedding Finetuning633.3
Pair classificationSpan Masking + Span Boundary Objective1233.3
Pair classificationReplaced Token Detection (RTD)1225.0
Pair classificationWhole Word Masking (WWM)1618.8
Pair classificationKnowledge Distillation + MLM1216.7
Pair classificationContinual Multi-Task Pretraining1216.7
STSSpan Corruption6100.0
STSContrastive Sentence Embedding Finetuning1637.5
STSWhole Word Masking (WWM)812.5
STSMasked Language Modeling (MLM)323.1
STSDenoising Autoencoding20.0
STSKnowledge Distillation + MLM40.0
STSContinual Multi-Task Pretraining40.0

Table 21. Percentages of peak-layer instances whose earliest near-best layer lies in the first third of the model.

This distinction matters when the exact optimum is hard to localize but a near-best region forms early. Causal decoders on multiple-choice QA are one such case: the exact best layer lies in the first third only 45.8% of the time, yet an early layer reaches the near-best plateau in every such group (mean gap 0.005; Table 19, Table 20). Readout matters as much as objective: contrastive sentence models peak early under mean pooling (91.7%, median depth 0.08) but late under last-token readout (median depth 0.83).

FamilyTraining labelTaskReadoutNEarly 1ppGap
Encoder-decoderSpan CorruptionClassificationlast token18100.00.185
Encoder-decoderSpan CorruptionClassificationmean pooled tokens18100.00.295
Encoder-decoderSpan CorruptionSTSlast token6100.00.191
Encoder-decoderContrastive Sentence Embedding FinetuningClassificationmean pooled tokens12100.00.093
DecoderCausal Language ModelingMultiple-choice QACLS token24100.00.005
Encoder-decoderContrastive Sentence Embedding FinetuningMultiple-choice QAlast token12100.00.003
Encoder-decoderDenoising AutoencodingMultiple-choice QAlast token6100.00.005
EncoderKnowledge Distillation + MLMClassificationmean pooled tokens887.50.017
EncoderContinual Multi-Task PretrainingClassificationmean pooled tokens887.50.026
EncoderMasked Language Modeling (MLM)Classificationmean pooled tokens5687.50.036
Encoder-decoderSpan CorruptionMultiple-choice QAlast token1877.80.005
EncoderWhole Word Masking (WWM)Classificationmean pooled tokens875.00.031
EncoderSpan Masking + Span Boundary ObjectiveClassificationmean pooled tokens875.00.026
EncoderReplaced Token Detection (RTD)Classificationmean pooled tokens875.00.081

Table 20. Highest early near-best plateau groups among groups with at least six instances.

Model Family, Training Label, And Readout

Table 18 summarizes normalized best-layer positions by model family. Table 19 reports representative model-family, training-label, task, and readout strata, and Table 20 lists the highest early near-best plateau groups. Figure 6 shows the distribution of SGI scores across model families. The training labels are descriptive strata rather than causal explanations. In particular, Contrastive Sentence Embedding Finetuning spans both encoder-only and encoder–decoder architectures; the label denotes the sentence-embedding finetuning stage rather than a specific base architecture.

Figure 6. Normalized best-layer positions by model family. Outlier points are colored by task type and labeled with a short task tag.

Quadruplet Audit

The model-family, training-label, task, and readout audit contains 58 observed combinations. Table 22 reports how many remain as the minimum number of supporting instances is increased.

Pruning ruleCount
All observed quadruplets58
Quadruplets with at least 6 instances43
Quadruplets with at least 8 instances28
Quadruplets with at least 10 instances16

Table 22. Number of distinct model-family/training-label/task/readout combinations retained at increasing minimum-support thresholds.

Matched Pooling Analysis

The peak-depth analysis asks where a given readout peaks. The matched pooling analysis asks which readout attains the best score within groups that share the same model, dataset, task, and probe. This separates early accessibility from best attainable performance. Detailed matched pooling results are reported in Table 23. Pairwise pooling comparisons are summarized in Table 24. Figure 7 further illustrates pairwise pooling performance differences.

Figure 7. Pairwise readout advantages within matched comparison groups.

TaskHigher-performing readout vs alternativeNWin (%)Mean deltaMedian delta
ClassificationMean pooled tokens vs CLS token10796.30.0830.060
ClassificationMean pooled tokens vs Last token36100.00.2940.194
Multiple-choice QALast token vs CLS token2495.80.0310.013
Pair classificationSentence-pair readout vs CLS token7986.10.0490.042
STSCLS token vs Last token3476.50.0530.014

Table 24. Pairwise readout comparisons oriented toward the higher-performing readout in each task-specific pair.

SGI Selector Diagnostics

Figure 8 summarizes the encoder selector comparison from § 6.4 and Table 9 along two aggregate axes: mean gain over the final layer and Hit@3. The ablation points correspond to removing one term from Gℓ=Rℓ+Cℓ+Sℓ+PℓG_\ell= R_\ell+ C_\ell+ S_\ell+ P_\ell: No RR uses C+S+PC + S + P, No CC uses R+S+PR + S + P, No SS uses R+C+PR + C + P, and No PP uses R+C+SR + C + S. Thus the figure shows both how SGI compares to single-signal label-free baselines and how each SGI coordinate contributes to the full selector. SGI lies in the upper-right region: it has the largest mean gain over the final layer and the highest Hit@3 among the plotted label-free methods and ablations. This supports the main result that the full index improves not only average performance but also the chance of selecting a layer close to the supervised oracle.

Figure 9 stratifies the full SGI result by the normalized depth of the selected layer. The plot is descriptive: it asks where SGI tends to obtain gains relative to the final layer. Near-final selections are most frequent, but their average gain is modest. The larger gains appear when SGI selects very early layers or late-middle layers, indicating that the method is not simply reproducing the final-layer default. The small negative bar in the 0.2–0.4 bin should be interpreted cautiously because it contains only four evaluation groups.

Aggregate selector performance on 383 encoder evaluation groups

Figure 8. Aggregate selector performance on 383 encoder evaluation groups. Each point is one selector or ablation, plotted by mean gain over the final layer (x-axis) and Hit@3 against the supervised oracle ranking (y-axis).

Geometry Evidence And Overlays

This subsection documents the raw geometric evidence underlying SGI and connects each coordinate to its representational interpretation. Recall that SGI treats each layer ℓ\ell as a point cloud Hℓ∈Rn×dH_\ell\in\mathbb{R}^{n \times d} and summarises its shape through four coordinates: spectral capacity ρℓ\rho_\ell, power-law fit quality χℓ\chi_\ell, condition number κℓ\kappa_\ell, and local intrinsic dimensionality δℓ\delta_\ell. The four coordinates probe complementary geometric properties of the representation manifold, and their roles are as follows.

TaskEarlyMiddleLateTotal
Classification121 (42.2%)28 (9.8%)138 (48.1%)287
Multiple-choice QA30 (33.3%)31 (34.4%)29 (32.2%)90
Pair classification21 (13.3%)48 (30.4%)89 (56.3%)158
STS11 (13.4%)33 (40.2%)38 (46.3%)82

Table 16. Best-layer zone counts by task. Parentheses show percentages within task.

Spectral capacity and effective rank.

The effective rank eℓ=exp⁡(−∑iπℓ,ilog⁡πℓ,i)e_{\ell} = \exp(-\sum_i \pi_{\ell,i} \log\pi_{\ell,i}), where πℓ,i=σℓ,i/∑jσℓ,j\pi_{\ell,i} = \sigma_{\ell,i}/\sum_j \sigma_{\ell,j}, quantifies how uniformly the singular-value mass is distributed across directions. A layer with high effective rank occupies many orthogonal directions in the ambient space, indicating that its representations are isotropically spread in the sense of not collapsing onto a low-dimensional subspace. By contrast, layers with collapsed spectra — characteristic of final layers in contextual encoders [24] — concentrate variance along a few dominant axes, leaving the bulk

ReadoutEarlyMiddleLateTotal
CLS token27 (11.1%)54 (22.1%)163 (66.8%)244
Last token50 (33.3%)42 (28.0%)58 (38.7%)150
Mean pooled tokens88 (61.1%)14 (9.7%)42 (29.2%)144
Sentence-pair readout18 (22.8%)30 (38.0%)31 (39.2%)79

Table 17. Best-layer zone counts by readout location. Parentheses show percentages within readout.

of the ambient space unused. Table 25 reports the log-min-max normalised effective rank L+(e)ℓL^{+}(e)_{\ell} alongside the raw SGI score; Table 26 reports the signed difference between the best-layer coordinate and the final-layer coordinate, making it possible to verify directly which geometric dimensions favour intermediate layers over the endpoint.

CoordinateFormulaSourceInterpretation
ResidualR=lo⁡(αreq2)R = \operatorname{lo}(\alpha_{\mathrm{req}}^{2})αreq2\alpha_{\mathrm{req}}^{2}Low residual power-law error
CapacityC=Z(1+Z)C = Z(1 + Z)effective rankHigh spectral capacity
StabilityS=lo⁡(κ)+ranklo⁡(κ)+loghi⁡(d2NN)S = \operatorname{lo}(\kappa) + \operatorname{ranklo}(\kappa) + \operatorname{loghi}(d_{2NN})condition number, 2NN dimensionStable spread
DepthP=hi⁡(u4(1−u))P = \operatorname{hi}(u^{4}(1 - u))layer depthLate-middle phase prior

Table 25. Final geometry coordinates used by SGI.

CoordinateTaskNMean deltaMedian deltaStd.
CapacityClassification1910.1520.0000.831
CapacityPair classification144-0.220-0.1870.757
CapacitySTS48-0.717-0.4970.769
DepthClassification1910.2550.0030.369
DepthPair classification1440.5400.6060.412
DepthSTS480.7090.8190.309
ResidualClassification1910.0810.0000.468
ResidualPair classification1440.0010.0000.471
ResidualSTS48-0.230-0.2330.395
StabilityClassification1910.2100.0000.984
StabilityPair classification144-0.0890.0000.817
StabilitySTS48-0.169-0.0810.632
Stable geometry indexClassification1910.6990.1691.816
Stable geometry indexPair classification1440.2310.0581.446
Stable geometry indexSTS48-0.407-0.2781.181

Table 26. Per-coordinate difference between the empirical best layer and the final layer. Positive values indicate the best layer is richer than the endpoint along that geometric axis.

Power-law fit quality and spectral residual structure.

A pure power-law spectrum σℓ,i∝i−α\sigma_{\ell,i} \propto i^{-\alpha} is the signature of maximum-entropy heavy-tailed self-regularisation predicted by random-matrix theory [40]. The coefficient of determination xℓx_{\ell} measures how well this single-parameter law accounts for the observed singular values: high xℓx_{\ell} implies that the spectrum is smooth and featureless, while low xℓx_{\ell} indicates structured deviation — residual bumps, kinks, or plateaus — that are not captured by the power law alone. Crucially, our ablations (Section 6.4) show representation phases in intermediate depth.

SGI gain by selected-layer depth

Figure 9. SGI gain by selected-layer depth. Groups are binned by normalized selected depth ℓ/L\ell/L; bars show mean gain over the final layer, with group counts printed next to each bar.

Condition number and isometric stability. The condition number κℓ=σℓ,1/σℓ,q\kappa_\ell= \sigma_{\ell,1}/\sigma_{\ell,q} is the ratio of the largest to the smallest non-zero singular value. Weyl’s inequality bounds singular-value changes under an additive perturbation, ∣σi(Hℓ+ΔH)−σi(Hℓ)∣≤∥ΔH∥2|\sigma_i(H_\ell+ \Delta H) - \sigma_i(H_\ell)| \leq\lVert\Delta H\rVert_2; it does so by itself bound fitted probe weights or guarantee generalisation. A small non-zero singular value can make an unregularised inverse problem sensitive to noise, while regularisation, the loss, and labels also affect probe stability. Large condition numbers can indicate the rogue-dimension and anisotropy phenomena discussed by Timkey and Van Schijndel [63]. SGI uses conditioning as a complementary diagnostic of spectral degeneracy, rather than a sufficient condition for downstream separability or preservation of input-space distances.

Local intrinsic dimensionality and manifold spread. The TwoNN estimator δℓ\delta_\ell (Facco et al., [25]) recovers the intrinsic dimensionality of the data manifold from the ratio of first- to second-nearest-neighbour distances under a locally Pois-

that xℓx_\ell carries more layer-quality signal than the exponent α\alpha itself, reversing a common assumption in the spectral-decay literature. The residual term Rℓ=N−(x)2R_\ell= \mathcal{N}^{-}(x)^2 therefore rewards layers whose spectra depart from the idealised heavy-tailed shape, a regime that empirically coincides with the transition between lexical and contextual son assumption. Unlike global spectral capacity, which describes how variance is allocated across orthogonal axes, δℓ\delta_{\ell} describes how points populate the manifold in their immediate neighbourhood, providing a complementary local view of manifold geometry. A layer with high δℓ\delta_{\ell} places its representations on a locally high-dimensional manifold, which implies that the neighbourhood structure of the input space is preserved in many directions simultaneously — a geometric isometry property at the local scale. Layers where δℓ\delta_{\ell} is low tend

to project inputs onto a low-dimensional attractor, compressing fine-grained distinctions that a linear probe would otherwise exploit.

Reading the tables and overlays. Table 25 lists the final normalised SGI coordinates for each evaluation group; these are the quantities that SGI aggregates additively to produce the selected layer. Table 26 gives the signed difference (best layer minus final layer) for each coordinate, allowing a direct audit of which geometric dimensions are higher at the empirically best layer than at the end-point. Positive deltas for capacity, residual structure, and intrinsic spread indicate that the best layer is geometrically richer than the final layer along those axes, while a positive delta for stability (lower condition number) indicates that it is also more isometrically well-conditioned. The overlay figures are qualitative checks against the probe curves: the main panels (Figure 2) show cases where the SGI curve tracks the probe performance curve and the

TaskReadoutNWin (%)Mean gapEarly 1pp (%)
ClassificationMean pooled tokens14397.20.00083.2
ClassificationCLS token1073.7-0.08320.6
ClassificationLast token360.0-0.29472.2
Multiple-choice QALast token2495.80.00054.2
Multiple-choice QACLS token244.2-0.031100.0
Pair classificationSentence-pair readout7986.1-0.00251.9
Pair classificationCLS token7913.9-0.05215.2
STSCLS token3476.5-0.0215.9
STSLast token3423.5-0.0748.8

caption: Matched readout comparison by task. Win rate is computed only within groups that share the same model, dataset, task, and probe type. Mean gap is the readout’s best-layer metric minus the best readout metric in the same matched group.

:::

selected layer falls in the top-three probe layers, while the caution panels (Figure 10) show boundary cases where the geometry curve diverges from supervised performance, confirming that SGI should be read as a phase detector rather than a universal proxy for probe performance. Quantitative overlay statistics are provided in Table 27. Figure 11 shows averaged overlay trends across models.

Figure 10. Examples for early-layer behavior and selector caution. The left panel is an early near-best case; the right panel is a boundary case where the geometry curve should not be read as a universal proxy for probe performance.

ModelTaskReadoutDatasetsBestSelectedSpearmanVerdict
deberta-v3-baseClassificationMean pooled tokens4710.315appendix candidate
distilbert-base-uncasedPair classificationSentence-pair readout351-0.886caution only
ernie-2.0-base-enPair classificationCLS token39100.972main candidate
distilbert-base-uncasedClassificationCLS token4550.943main candidate

Table 27. Model-level overlay analysis after averaging across datasets. “Selected” is the SGI layer on the averaged curve.

Figure 11. Overlay candidates averaged across datasets. The main-candidate panels provide model-level qualitative support, while the appendix and caution panels show boundary behavior.

Artifact, Data, and Reproducibility Statement

This appendix documents the scientific artifacts used and created in this work, their intended use, data and model coverage, experimental settings, and reporting conventions. The study uses public pretrained checkpoints and public benchmark datasets accessed through their upstream distribution channels. The artifacts created by this work are the Stable Geometry Index (SGI) selection rule, configuration files, layer-selection outputs, aggregate tables, and figures. We do not redistribute upstream model weights or raw dataset text; users should obtain those artifacts from their original providers and follow the corresponding license and access terms.

Scientific Artifacts and Licenses

We use publicly released pretrained checkpoints and public benchmark datasets obtained from their original sources. We do not redistribute upstream model weights or raw dataset text; users should follow the original license and access terms. Where license metadata was missing or unclear in the queried cards, we treated the upstream source as authoritative and used the artifact only for research evaluation. A summary of dataset and artifact licenses is provided in Table 28.

Artifact classLicense or access condition observedArtifacts
ModelsApache-2.0BERT variants, DistilBERT, ModernBERT, MPNet sentence encoder, Pythia-70M, Qwen2.5-0.5B, T5, BART, Flan-T5, ByT5, Instructor, Sentence-T5
ModelsMITRoBERTa, DeBERTa-v3, XLM-RoBERTa, BGE, GPT-2, GPT-Neo
ModelsCC-BY-NC-4.0XLM-MLM-100-1280
ModelsNot specified in queried metadataSpanBERT, ERNIE-2.0-base-en, Mamba-130M
DatasetsMITBanking77
DatasetsCC-BY-SA-4.0SNLI, ARC-Challenge
DatasetsMixed metadataMultiNLI
DatasetsOther or unknown metadataAG News, Emotion, SST-2, MRPC, QQP, STS-B, BIOSSES, HellaSwag, PIQA

Table 28. License and access-condition summary for the upstream artifacts. Missing license metadata means that the queried artifact card did not expose a single clear license field; it does not imply that the artifact is unrestricted.

Intended Use

All upstream artifacts are used for offline research benchmarking, representation analysis, and layer-selection evaluation. This use is consistent with the common intended use of pretrained checkpoints as research representation models and of benchmark datasets as evaluation resources. SGI and the derived tables are intended for research on label-free layer selection and representation geometry. They are not intended for deployment in user-facing systems, profiling individuals, making decisions about people, or replacing task-specific validation in safety-critical applications. Any derived embeddings or geometry files should be treated as research artifacts that inherit the original access conditions of the corresponding upstream datasets. and models.

Privacy, Identifying Information, and Offensive Content

We did not collect new human-subject data. The study uses existing public benchmarks whose examples may contain naturally occurring names, web text, social text, biomedical text, news text, or potentially offensive language inherited from their original sources. We checked dataset cards, schemas, task descriptions, and available metadata to identify fields containing free-form text and labels. The experiments do not require identity inference, demographic annotation, or publication of raw examples. The paper reports only aggregate metrics, layer indices, geometry summaries, and figures. If derived embeddings or per-example outputs are released, they should be distributed only under research-use conditions and should not be treated as anonymized raw data, because dense representations may still retain information about their source examples.

Artifact Documentation and Coverage

The broad layerwise study covers 25 pretrained checkpoints, 13 datasets, four task categories, four readout strategies, and two probe families. Sentence-transformer checkpoints are treated as encoder-family models because they expose encoder-style sentence representations. The evaluated task datasets are English. The model set includes monolingual English models, multilingual encoders, decoder-only language models, encoder–decoder models, sentence-transformer models, and one state-space model. The task coverage includes sentiment, news, emotion, banking intent, natural-language inference, paraphrase detection, question-pair classification, semantic textual similarity, science question answering, commonsense sentence completion, and physical commonsense reasoning. Demographic groups are not explicitly annotated in the reported benchmark inventory, and the paper does not make demographic performance claims. Model family parameter counts are listed in Table 29.

FamilyExamplesCountMin paramsMax paramsLayer range
EncoderBERT, RoBERTa, DeBERTa, XLM-R1266.4M571.5M6–24
Sentence transformerMPNet, BGE2109.5M109.5M12
DecoderGPT-2, GPT-Neo, Pythia, Qwen2.5470.4M494.0M6–24
Encoder–decoderT5, BART, Flan-T5, ByT5, Instructor, Sentence-T56139.4M581.1M6–18
State-spaceMamba-130M1129.1M129.1M24

Table 29. Model-family coverage and parameter scale. Parameter counts use unique tied parameters after applying model weight tying. The full range is 66.4M parameters for DistilBERT-base to 581.1M parameters for ByT5-base.

Dataset Statistics

Table 30 reports the dataset sizes observed from the Hugging Face dataset builders and the configured splits used by the experiments. When a labeled official test split was configured, probes train on the training split and evaluate on the official test split. When no suitable labeled test split was configured, the pipeline uses a deterministic 60/20/20 train/validation/test split of the labeled split with seeds 42, 1337, and 2024. The broad study contains 617 model–dataset–task–readout–probe groups; the main SGI encoder selection result contains 383 encoder groups.

DatasetTaskTrainDevTestGroups
AG NewsClassification120000–760080
EmotionClassification160002000200079
Banking77Classification9993–307680
SST-2Classification67349872182148
MRPCPair classification3668408172552
QQPPair classification3638464043039096510
MultiNLIPair classification3927029815–48
SNLIPair classification550152100001000048
STS-BSTS57491500137970
BIOSSESSTS––10012
ARC-ChallengeMultiple-choice QA1119299117230
HellaSwagMultiple-choice QA39905100421000330
PIQAMultiple-choice QA161131838308430

Table 30. Dataset statistics for the 13 task datasets in the broad study. Groups counts are the evaluated SGI-compatible model–dataset–task–readout–probe settings.

Model Size, Compute Budget, and Infrastructure

The main-cohort checkpoints range from 66.4M to 581.1M parameters; the additional scaling probe extends to 4B parameters. Experiments were run on a single NVIDIA RTX A4500 GPU (20 GB) with CUDA 13.0, PyTorch 2.11.0, and mixed-precision embedding extraction. The full study took approximately 66.5 GPU-hours, comprising about 50.1 hours of probe training, 14.2 hours of embedding extraction, and 2.2 hours of geometry computation, with the remainder spent on layer selection and plotting.

Experimental Setup and Hyperparameters

Representations are extracted from all non-embedding layers for each model, with maximum sequence length 512, truncation enabled, longest-sequence padding within batch, extraction batch size 96, and float16 mixed precision when running on GPU. Four readouts are used when compatible with the model and task: CLS, last token, mean pooling over non-padding tokens, and sentence-pair pooling. Geometry metrics are computed on pooled representations using a 10% sample of each split, random seed 42, and 100000 random pairs for pairwise anisotropy estimates. Probe evaluation uses linear probes and two-layer nonlinear probes. Nonlinear probes use a hidden width equal to 0.5 times the input dimension and a GELU activation. Probes are trained with AdamW, learning rate 10−310^{-3}, weight decay 0.01, linear warmup ratio 0.1, batch size 128, evaluation batch size 128, gradient clipping at 1.0, early-stopping patience 3, and a maximum of 20 epochs. No hyperparameter search is used for SGI; the same fixed selector is applied across tasks, readouts, splits, and model families.

Descriptive Statistics and Reporting

Unless stated otherwise, all reported selector scores are means over evaluation groups rather than bestof-run values. Hit@1 and Hit@3 are averaged over groups as Boolean indicators. The main encoder result uses 383 groups; the broader analysis uses 617 groups.

Software Packages and Settings

The implementation uses PyTorch 2.11.0, Transformers 5.8.0, Datasets 4.8.5, Hugging Face Hub 1.14.0, Sentence-Transformers 5.4.1, NumPy 2.4.4, pandas 3.0.3, scikit-learn 1.8.0, SciPy 1.17.1, Matplotlib 3.10.9, Seaborn 0.13.2, Hydra 1.3.2, Omega-Conf 2.3.0, and Safetensors 0.7.0. Tokenization uses the checkpoint-specific Hugging Face tokenizer with max length 512, truncation enabled, and longest padding within each batch. Normalisation in SGI is performed within each model–dataset–task–readout group, so the score does not use global dataset statistics or probe labels.

Use of AI Assistance

We used AI coding assistants during implementation, specifically for debugging and for standard utilities such as data loading, preprocessing pipelines, and evaluation scripts. All research contributions, experimental design, and conclusions are the authors’ own. All AI-generated code was manually reviewed and verified by the authors, who remain responsible for all content, analysis, and final edits.

References

  1. [1]Armen Aghajanyan, Sonal Gupta, and Luke Zettlemoyer. 2021. Intrinsic dimensionality explains the effectiveness of language model fine-tuning. In Proceedings of the 59th annual meeting of the association for computational linguistics and the 11th international joint conference on natural language processing (volume 1: long papers), pages 7319–7328.arxiv.org/abs/2012.13255
  2. [2]Randall Balestriero and Yann LeCun. 2025. LeJEPA: Provable and scalable self-supervised learning without the heuristics. arXiv preprint arXiv:2511.08544.arxiv.org/abs/2511.08544
  3. [3]Federico Barbero, Alvaro Arroyo, Xiangming Gu, Christos Perivolaropoulos, Michael Bronstein, Petar Veličković, and Razvan Pascanu. 2025. Why do llms attend to the first token? arXiv preprint arXiv:2504.02732.arxiv.org/abs/2504.02732
  4. [4]Arnesh Batra, Arush Gumber, Aniket Khandelwal, Jashn Khemani, and Anubha Gupta. 2026. Uncovering the latent potential of deep intermediate representations. In Forty-third International Conference on Machine Learning.arxiv.org/abs/2605.23033
  5. [5]Stella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Afzal Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, and 1 others. 2023. Pythia: A suite for analyzing large language models across training and scaling. In International conference on machine learning, pages 2397–2430. PMLR.arxiv.org/abs/2304.01373
  6. [6]Geetanjali Bihani and Julia Rayz. 2021. Low anisotropy sense retrofitting (LaSeR) : Towards isotropic and sense enriched representations. In Proceedings of Deep Learning Inside Out (DeepLIO): The 2nd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures, pages 81–95, Online. Association for Computational Linguistics.
  7. [7]Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, and 1 others. 2020. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 7432–7439.arxiv.org/abs/1911.11641
  8. [8]Sid Black, Gao Leo, Phil Wang, Connor Leahy, and Stella Biderman. 2021. Gpt-neo: Large scale autoregressive language modeling with mesh-tensorflow. Zenodo.
  9. [9]Daniel Bolya, Po-Yao Huang, Peize Sun, Jang Hyun Cho, Andrea Madotto, Chen Wei, Tengyu Ma, Jiale Zhi, Jathushan Rajasegaran, Hanouna Bangalath, Junke Wang, Marco Monteiro, Hu Xu, Shiyu Dong, Nikhila Ravi, Shang-Wen Li, Piotr Dollar, and Christoph Feichtenhofer. 2025. Perception encoder: The best visual embeddings are not at the output of the network. In Advances in Neural Information Processing Systems, volume 38, pages 60884–60937. Curran Associates, Inc.arxiv.org/abs/2504.13181
  10. [10]Samuel R Bowman, Gabor Angeli, Christopher Potts, and Christopher D Manning. 2015. A large annotated corpus for learning natural language inference. In Proceedings of the 2015 conference on empirical methods in natural language processing, pages 632–642.arxiv.org/abs/1508.05326
  11. [11]Gino Brunner, Yang Liu, Damian Pascual, Oliver Richter, Massimiliano Ciaramita, and Roger Wattenhofer. 2019. On identifiability in transformers. arXiv preprint arXiv:1908.04211.arxiv.org/abs/1908.04211
  12. [12]Xingyu Cai, Jiaj Huang, Yuchen Bian, and Kenneth Church. 2021. Isotropy in the contextual embedding space: Clusters and manifolds. In International conference on learning representations.
  13. [13]Iñigo Casanueva, Tadas Temčinas, Daniela Gerz, Matthew Henderson, and Ivan Vulič. 2020. Efficient intent detection with dual sentence encoders. In Proceedings of the 2nd workshop on natural language processing for conversational AI, pages 38–45.arxiv.org/abs/2003.04807
  14. [14]Daniel Cer, Mona Diab, Eneko Agirre, Inigo Lopez-Gazpio, and Lucia Specia. 2017. Semeval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation. In Proceedings of the 11th international workshop on semantic evaluation (SemEval-2017), pages 1–14.DOI
  15. [15]Emily Cheng, Diego Doimo, Corentin Kervadec, Iuri Macocco, Lei Yu, Alessandro Laio, and Marco Baroni. 2025. Emergence of a high-dimensional abstraction phase in language transformers. In International Conference on Learning Representations, volume 2025, pages 35389–35414.arxiv.org/abs/2405.15471
  16. [16]Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, and 1 others. 2024. Scaling instruction-finetuned language models. Journal of machine learning research, 25(70):1–53.
  17. [17]Jiwan Chung and Seon Joo Kim. 2026. Global geometry is not enough for vision representations. arXiv preprint arXiv:2602.03282.arxiv.org/abs/2602.03282
  18. [18]Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457.arxiv.org/abs/1803.05457
  19. [21]Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pages 4171–4186.arxiv.org/abs/1810.04805
  20. [22]William B Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the third international workshop on paraphrasing (IWP2005).
  21. [23]Kenneth Enevoldsen, Isaac Chung, Imene Kerboua, Márton Kardos, Ashwin Mathur, David Stap, Jay Gala, Wissam Siblini, Dominik Kremiński, Genta Winata, and 1 others. 2025. Mmteb: Massive multi-lingual text embedding benchmark. In International Conference on Learning Representations, volume 2025, pages 101715–101771.
  22. [24]Kawin Ethayarajh. 2019. How contextual are contextualized word representations? comparing the geometry of bert, elmo, and gpt-2 embeddings. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pages 55–65.
  23. [25]Elena Facco, Maria d’Errico, Alex Rodriguez, and Alessandro Laio. 2017. Estimating the intrinsic dimension of datasets by a minimal neighborhood information. Scientific reports, 7(1):12140.DOI
  24. [26]Siqi Fan, Xin Jiang, Xiang Li, Xuying Meng, Peng Han, Shuo Shang, Aixin Sun, Yequan Wang, and Zhongyuan Wang. 2024. Not all layers of llms are necessary during inference. arXiv preprint arXiv:2403.02181.arxiv.org/abs/2403.02181
  25. [27]Quentin Garrido, Randall Balestriero, Laurent Najman, and Yann LeCun. 2023. Rankme: Assessing the downstream performance of pretrained self-supervised representations by their rank. In International conference on machine learning, pages 10929–10974. PMLR.arxiv.org/abs/2210.02885
  26. [28]Albert Gu and Tri Dao. 2023. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752.arxiv.org/abs/2312.00752
  27. [29]Xiangming Gu, Tianyu Pang, Chao Du, Qian Liu, Fengzhuo Zhang, Cuncxiao Du, Ye Wang, and Min Lin. 2025. When attention sink emerges in language models: An empirical view. In International Conference on Learning Representations, volume 2025, pages 97114–97144.arxiv.org/abs/2410.10781
  28. [30]Wes Gurnee and Max Tegmark. 2024. Language models represent space and time. In International Conference on Learning Representations, volume 2024, pages 2483–2503.arxiv.org/abs/2310.02207
  29. [32]Ganesh Jawahar, Benoît Sagot, and Djamé Seddah. 2019. What does bert learn about the structure of language? In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 3651–3657.DOI
  30. [34]Vedang Lad, Jin Hwa Lee, Wes Gurnee, and Max Tegmark. 2025. Remarkable robustness of LLMs: Stages of inference? In The Thirty-ninth Annual Conference on Neural Information Processing Systems.arxiv.org/abs/2406.19384
  31. [35]Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In Proceedings of the 58th annual meeting of the association for computational linguistics, pages 7871–7880.arxiv.org/abs/1910.13461
  32. [36]Nelson F Liu, Matt Gardner, Yonatan Belinkov, Matthew E Peters, and Noah A Smith. 2019a. Linguistic knowledge and transferability of contextual representations. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pages 1073–1094.arxiv.org/abs/1903.08855
  33. [37]Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Yang, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019b. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.arxiv.org/abs/1907.11692
  34. [38]Lucas Maes, Damien Scieur, and Randall Balestriero. 2025. Levyscore: A fast sample-wise confidence score of pretrained joint embedding model. In UniReps: 3rd Edition of the Workshop on Unifying Representations in Neural Models.
  35. [39]Charles H Martin and Michael W Mahoney. 2019. Traditional and heavy-tailed self regularization in neural network models. arXiv preprint arXiv:1901.08276.arxiv.org/abs/1901.08276
  36. [40]Charles H Martin and Michael W Mahoney. 2021. Implicit self-regularization in deep neural networks: Evidence from random matrix theory and implications for learning. Journal of Machine Learning Research, 22(165):1–73.
  37. [41]Jiaqi Mu and Pramod Viswanath. 2018. All-but-the-top: Simple and effective postprocessing for word representations. In International Conference on Learning Representations.
  38. [42]Niklas Muennighoff, Nouamane Tazi, Loïc Magne, and Nils Reimers. 2023. Mteb: Massive text embedding benchmark. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 2014–2037.
  39. [43]Jianmo Ni, Gustavo Hernandez Abrego, Noah Constant, Ji Ma, Keith Hall, Daniel Cer, and Yinfei Yang. 2022. Sentence-t5: Scalable sentence encoders from pretrained text-to-text models. In Findings of the association for computational linguistics: ACL 2022, pages 1864–1874.DOI
  40. [44]Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 2227–2237, New Orleans, Louisiana. Association for Computational Linguistics.
  41. [45]Qwen, ; An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Daiyiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, and 25 others. 2025. Qwen2.5 technical report. Preprint, arXiv:2412.15115.
  42. [46]Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, and 1 others. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9.
  43. [47]Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1–67.arxiv.org/abs/1910.10683
  44. [48]Sara Rajaee and Mohammad Taher Pilehvar. 2021. How does fine-tuning affect the geometry of embedding space: A case study on isotropy. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 3042–3049.
  45. [49]Anton Razzhigaev, Matvey Mikhальchuk, Elizaveta Goncharova, Ivan Oseledets, Denis Dimitrov, and Andrey Kuznetsov. 2024. The shape of learning: Anisotropy and intrinsic dimensions in transformer-based models. In Findings of the Association for Computational Linguistics: EACL 2024, pages 868–874.
  46. [50]Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pages 3982–3992.arxiv.org/abs/1908.10084
  47. [51]Olivier Roy and Martin Vetterli. 2007. The effective rank: A measure of effective dimensionality. In 2007 15th European signal processing conference, pages 606–610. IEEE.
  48. [52]William Rudman, Nate Gillman, Taylor Rayne, and Carsten Eickhoff. 2022. Isoscore: Measuring the uniformity of embedding space utilization. In Findings of the Association for Computational Linguistics: ACL 2022, pages 3325–3339.DOI
  49. [53]Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. 2019. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.arxiv.org/abs/1910.01108
  50. [54]Elvis Saravia, Hsien-Chi Toby Liu, Yen-Hao Huang, Junlin Wu, and Yi-Shin Chen. 2018. Carer: Convolutionally targeted affect representations for emotion recognition. In Proceedings of the 2018 conference on empirical methods in natural language processing, pages 3687–3697.
  51. [55]Oscar Skean, Md Rifat Arefin, Dan Zhao, Niket Nikul Patel, Jalal Naghiyев, Yann LeCun, and Ravid Shwartz-Ziv. 2025. Layer by layer: Uncovering hidden representations in language models. In Forty-second International Conference on Machine Learning.arxiv.org/abs/2502.02013
  52. [56]Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew Y Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pages 1631–1642.DOI
  53. [57]Gizem Soğancıoğlu, Hakime Öztürk, and Arzucan Özgür. 2017. Biosses: a semantic sentence similarity estimation system for the biomedical domain. Bioinformatics, 33(14):i149–i58.DOI
  54. [58]Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. 2020. Mpnet: Masked and permuted pre-training for language understanding. Advances in neural information processing systems, 33:16857–16867.arxiv.org/abs/2004.09297
  55. [59]Hongjin Su, Weijia Shi, Jungo Kasai, Yizhong Wang, Yushi Hu, Mari Ostendorf, Wen-tau Yih, Noah A Smith, Luke Zettlemoyer, and Tao Yu. 2023. One embedder, any task: Instruction-finetuned text embeddings. In Findings of the Association for Computational Linguistics: ACL 2023, pages 1102–1121.arxiv.org/abs/2212.09741
  56. [61]Ian Tenney, Dipanjan Das, and Ellie Pavlick. 2019. Bert rediscovers the classical nlp pipeline. In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 4593–4601.arxiv.org/abs/1905.05950
  57. [62]Vimal Thilak, Chen Huang, Omid Saremi, Laurent Dinh, Hanlin Goh, Preetum Nakkiran, Joshua Susskind, and Etai Littwin. 2024. Lidar: Sensing linear probing performance in joint embedding ssl architectures. In International Conference on Learning Representations, volume 2024, pages 56726–56765.arxiv.org/abs/2312.04000
  58. [63]William Timkey and Marten Van Schijndel. 2021. All bark and no bite: Rogue dimensions in transformer language models obscure representational quality. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 4527–4546.

Paper details

vlnc:W_hdjer2w3
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

AI coding assistants

View statement
Looking for related papers…
Contents