Many language-model tasks reduce to selecting among structured alternatives, yet we still lack a simple picture of how a decoder-only transformer organizes an entire selection prompt across depth. We introduce token covariance maps, a prompt-level geometric view that tracks how token positions co-vary in hidden-state space at each layer. This turns a structured prompt into a depth-indexed sequence of maps whose spectral and block structure can be aligned with instructions, context, and candidate answers. Across 14 decoder-only models from 4 families and 12 structured-selection benchmarks, token covariance maps reveal a robust compress-then-compare organization. Early layers represent prompts diffusely, middle layers compress them into a shared low-rank bottleneck, and late layers re-expand into context-option and option-option geometry. This organization recurs across larger fixed-template samples, deterministic prompt rewrites, pairwise reranking reformulations, and controlled answer-set manipulations, while also emerging during training from an initially flat depth profile. Its timing aligns with behavior: useful answer discrimination appears well after the bottleneck, and low-rank intervention around the bottleneck preferentially disrupts late comparison geometry. We additionally show that the same geometric profile appears in instruction-tuned models, across several languages, and during open-ended generation. We further show that changing the internal representation of one candidate around the compressed region can shift which candidate the model later prefers. These results show that token covariance maps are a diagnostic tool for comparing how models organize information across prompts, model families, and stages of training.
Figures & tables
Figure 1: Token covariance maps across depth for one PIQA prompt in Pythia-410M. Colored rectangles mark prompt segments. The key visual trajectory is broad early geometry, a low-rank mid-layer bottleneck, and late recovery of off-diagonal context-option and option-option interactions.
Figure 2: Robust compression and re-expansion on representative datasets. Rows show effective rank, top-1 eigenvalue fraction, and band-4 energy; columns show datasets; curves show Pythia scales. The same mid-layer compression and late re-expansion appear in aggregate trajectories, not only in single-prompt heatmaps.
Figure 3: Late-layer block structure aligns with answer comparison. Curves for Pythia-2.8B summarize context-option coupling, option-self structure, option-option interaction, and the final cross/self ratio. Late-layer block interactions vary with task type.
Figure 4: Functional timing and bottleneck-region perturbation. Intermediate accuracy peaks after the bottleneck, and low-rank truncation near the bottleneck region preferentially disrupts late comparison geometry. The perturbation tests the functional importance of the compressed region.
Figure 5: Changing candidate states changes later candidate preference. Pythia-2.8B and Qwen2.5-7B on PIQA, HellaSwag, and ARC-Challenge. Only the states of the changed candidate are copied between token-length-matched prompts. Panels show donor-margin change, directed prediction switches, and geometry–behavior association. The donor is the replacement candidate; scores use mean full-text log probability. Results use held-out examples.
Appendix figures & tables41 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 6: Representative covariance-map gallery across tasks. Six deterministic examples from Pythia-410M show the same broad depth profile beyond the single main-text PIQA example: early diffuse structure, a sharp bottleneck, and later re-expansion into task-aligned off-diagonal interactions.
Figure 7: Segment-level appendix gallery. For the same representative prompts, we show the full final-layer map together with context–option, option-self, and option-cross blocks at the bottleneck and final layer. These zooms make the shift from compression to comparison visually explicit.
Figure 8: Open-model comparison on one fixed 4-choice prompt. Across the available comparison models, the bottleneck-versus-final-layer contrast remains visually recognizable even when the exact layer index and cross/self strength vary by model.
Figure 9: Cross-family validation. Using representative models from each family, the same qualitative bottleneck appears across Pythia, SmolLM2, Qwen2.5, and Mistral. This tests whether the depth profile persists across model families, not only Pythia scales.
Figure 10: High-sample fixed-template robustness. Across three representative models and four datasets, 299–500-example reruns preserve an interior bottleneck and late re-expansion. Under the fixed relative-depth grid, the bootstrap-selected bottleneck depth is stable across 200 resamples per setting.
Figure 11: Pairwise reranking preserves the same bottleneck geometry beyond the canonical multiple-choice template. Left: reranking often improves behavior on 4-choice tasks. Right: minimum effective rank stays close to the multiple-choice value.
Figure 12: Deterministic prompt-format robustness. The variants are deterministic templates, not LLM-generated paraphrases. Across all tested templates, the bottleneck stays within one sampled depth of the base prompt, effective-rank trajectories remain nearly perfectly correlated with the base template, and final-layer block summaries remain highly aligned.
Figure 13: Controlled answer-set manipulations. Across all tested variants, the mid-layer bottleneck remains fixed while late comparison geometry becomes sensitive once the candidate set itself changes. Duplicate-wrong is a boundary case: behavior can degrade strongly even when the coarse late-geometry summaries move little.
Figure 14: Training dynamics for Pythia-410M up to 143K steps. The mid-layer bottleneck is absent at initialization and appears progressively during training, arguing against the simplest explanation that the depth profile is a fixed architectural artifact.
Figure 15: Length and option-count robustness. The associations of compression summaries with model size retain their direction after adjustment for prompt length and option count.
Figure 16: Spatial null-control z-scores for semantic block structure. For Pythia-2.8B, semantic block effects are compared with random same-shaped contiguous blocks to check that the block summaries are not purely a shape artifact.
Condition
Pairs
Region IoU [95% CI]
Trajectory correlation
Concise rewrite
1,440
0.9778 [0.9561,0.9963]
0.999367
Instruction-heavy rewrite
1,440
0.9544 [0.9197,0.9938]
0.998883
Candidate order
1,440
0.9980 [0.9961,0.9996]
0.999962
Irrelevant distractor
1,080
0.9824 [0.9600,0.9979]
0.998801
Correct-answer replacement
1,080
0.9677 [0.9317,0.9954]
0.997487
Appendix
Table 1: Every-layer prompt and candidate changes preserve the compressed region. These are paired deterministic changes, without LLM-generated paraphrases. The same examples are used for each valid comparison. The minimizing layer is unchanged in every condition; region IoU additionally measures changes in interval width. This analysis is distinct from the sampled-depth template comparison in Figure 12 .
Figure 17: Region stability at every transformer layer. Pythia-2.8B, Qwen2.5-7B, and Mistral-7B-v0.3 on the valid prompt and candidate perturbations in Table 1 . The analysis compares minimizing-layer shift, compressed-region overlap, and complete rank trajectories.
Representation
Interior bottleneck
Mean rank re-expansion
Token covariance
99.970%
23.20
Direct hidden-state rank
99.794%
52.57
Centered cosine
91.318%
15.91
Uncentered Gram
85.714%
7.56
Appendix
Table 2: Normalization changes magnitude more than the existence of the transition. An interior minimum occurs at neither endpoint of the evaluated trajectory. Rank re-expansion is the increase from minimum to final effective rank within each representation; its raw units need not coincide across representations.
Figure 18: Normalization and confound analysis. The full canonical benchmark is recomputed with alternative spectral and map summaries. Covariate analysis includes length, tokenization, option statistics, and hidden-state RMS. Transition location and re-expansion magnitude are reported separately.
Paired measurement
Estimate
Bootstrap 95% CI
Selection/neutral compressed-region IoU
0.996
[0.993,1.000]
Absolute minimizing-layer shift, layers
0.000
[0.000,0.000]
Selection vs. neutral: OptCross rise
0.0484
[-0.0178,0.1618]
Selection vs. neutral: cross/self rise
0.0070
[-0.0058,0.0361]
W/o candidate content: region IoU
0.947
[0.863,0.998]
W/o candidate content: OptCross rise
-0.327
[-0.700,-0.027]
Appendix
Table 3: Compression is shared across objectives while candidates affect late structure. Rise is the change from the bottleneck to the final layer. W/o candidate content replaces candidates with approximately length-matched placeholders while retaining the context; its changes are relative to the selection prompt. For selection vs. neutral, positive values favor selection. IoU measures overlap of compressed layer intervals. Intervals use 10,000 hierarchical bootstrap replicates.
Figure 19: Objective and candidate-content controls. Panels show effective-rank trajectories, bottleneck-to-final block changes, and compressed-region IoU (left to right) across selection, inspection, ranking, reference-list, and candidate-content conditions. Every non-instruction token is fixed for selection versus neutral inspection. The context-only placeholder condition uses approximate length matching. The supported distinction is shared compression and candidate-sensitive late structure.
Signed contrast, bottleneck-to-final change
Mean change
Bootstrap 95% CI
Context-correct vs. context-wrong
-0.0450
[-0.0776,-0.0108]
Correct-self vs. wrong-self
-0.0594
[-0.1205,-0.0027]
Correct-wrong vs. wrong-wrong
-0.0353
[-0.0710,-0.0015]
Appendix
Table 4: Correct and wrong candidate relations evolve differently after compression. Each contrast is the signed covariance difference between the first and second named blocks. Signs measure covariance association, not direct evidence for a candidate or directed information flow. The interventions in Section D.5 test later behavioral influence.
Figure 20: Signed candidate-specific geometry through depth. Context and candidate blocks are separated by correctness, retaining relations that pooled absolute block summaries average together.
Figure 21: Relational changes affect late signed geometry under exact token matching. Relation reversal is compared with entity renaming on 30 valid Pythia-2.8B and 20 Qwen2.5-7B pairs. Total and per-candidate token counts are identical within the paired comparison. The bottleneck remains fixed.
Figure 22: Matched semantic perturbation analyses. Meaning-changing edits alter late comparison geometry more than the superficial control, but meaning-preserving surface rewrites also induce large geometry shifts, so the comparison does not isolate semantic content from surface form.
Figure 23: Original layer-wide interventions around the empirical bottleneck. Left: accuracy changes; right: final cross/self changes, each relative to the unmodified pass. Low-rank truncation yields a more consistent geometric damage pattern than state replacement or layer skipping. Distortion-matched controls and candidate-specific behavioral interventions are reported separately in Figures 25 and 5 .
Figure 24: Dense low-rank truncation sweep around the empirical bottleneck. Left: final cross/self damage; right: accuracy damage. Damage extends across the bottleneck region, with the largest average effects often occurring at nearby later layers. The sweep therefore locates functional contributions across a region.
Bottleneck truncation, retain 25%
Mean damage
Bootstrap 95% CI
Final cross/self
0.1197
[0.1122,0.1271]
Answer-label accuracy, percentage points
7.17
[3.92,10.50]
Appendix
Table 5: Geometry and behavior under bottleneck truncation. Damage is the reduction from the unmodified value after intervention, pooled over Pythia-2.8B and Qwen2.5-7B on PIQA, HellaSwag, and ARC-Challenge. Each of the six model–dataset settings uses 200 prompts. The accuracy endpoint uses answer-label tokens, not the full-text scores of candidate-state patching.
Cross/self damage comparison
Retain 25%
Retain 50%
Near vs. distant layers
0.0584[0.0518,0.0648]
0.0549[0.0481,0.0614]
Adjusted near-region coefficient
0.0468[0.0408,0.0528]
0.0336[0.0269,0.0406]
Low rank vs. random orthogonal
0.0774[0.0729,0.0821]
0.0866[0.0825,0.0908]
Low rank vs. token-subspace
0.0908[0.0861,0.0955]
0.1132[0.1091,0.1171]
Low rank vs. Gaussian
−0.0184[−0.0248,−0.0115]
0.0010[−0.0047,0.0064]
Appendix
Table 6: Regional geometry damage and matched controls. Damage is the reduction in final cross/self after intervention. Positive low-rank–control differences mean greater geometric damage from low-rank truncation. Control contrasts average the near-region offsets. Bracketed values are bootstrap 95% confidence intervals. The adjusted coefficient uses log distortion, model, and dataset covariates and 1,000 prompt-cluster bootstrap replicates. Low rank does not exceed every equal-distortion control.
Figure 25: Distortion-matched layer interventions. Final cross/self damage, gold-margin damage, accuracy damage, and achieved distortion are compared across layer offsets for empirical low-rank truncation, random orthogonal and token-space projections, and Gaussian perturbations. Gold margin is the log-probability difference between the correct answer label and the strongest incorrect label. The expanded analysis uses two models, three datasets, two rank fractions, and matched per-prompt perturbation budgets. The conclusion concerns regional construction of late geometry; accuracy effects do not consistently exceed every control.
Candidate-state patching vs. control
Margin difference
Bootstrap 95% CI
Unrelated candidate
3.481
[2.391,4.651]
Same-label unrelated candidate
3.475
[2.356,4.642]
Matched context position
0.493
[0.185,0.957]
Alternative position
0.636
[0.226,1.294]
Norm-matched Gaussian
3.666
[2.467,4.918]
Randomized candidate state
3.614
[2.436,4.859]
Appendix
Table 7: Candidate content affects full-text preference beyond matched controls. Positive values mean a larger donor-margin increase from the changed candidate patch. The donor is the replacement candidate. Each estimate uses the paired evaluation observations available for that control at the bottleneck.
Held-out measurement
Estimate
Bootstrap 95% CI
Donor-margin change at bottleneck
3.723
[2.496,5.041]
Directed prediction switches at bottleneck
9.87%
[3.29%,18.09%]
Appendix
Table 8: Held-out candidate preference after candidate-state patching. The donor is the replacement candidate, and its margin is measured in mean full-text log-probability units. A directed switch is a change to the donor as top prediction. Layerwise effects are shown in Figure 5 , with effects extending across the compressed region.
Relative update
Mean
Bootstrap 95% CI
Attention: effective rank
0.0536
[0.0131,0.1064]
MLP: effective rank
-0.0664
[-0.1289,-0.0171]
Attention: cross/self
-0.0400
[-0.0788,-0.0072]
MLP: cross/self
0.0254
[0.0066,0.0472]
Appendix
Table 9: Opposing attention and MLP contributions at the bottleneck. The sign of each update is replicated in all six model–dataset settings. These measurements resolve attention and MLP contributions to the residual representation at the sublayer level.
Figure 26: Scale-normalized sublayer changes. Rank and cross/self updates are divided by their pre-update magnitudes. Pythia-2.8B and Qwen2.5-7B on PIQA, HellaSwag, and ARC-Challenge show attention expansion and MLP compression, with opposing block-ratio updates.
Method
Capability R2
Task macro-F1
Candidate localization
Direct hidden-state rank
0.796
0.209
31.3% (chance)
Centered cosine
0.683
0.393
85.8%
Token covariance
0.680
0.245
83.3%
Linear CKA
0.633
0.146
n/a
SVCCA
0.631
0.195
n/a
Uncentered Gram
0.544
0.235
86.7%
Appendix
Table 10: Different diagnostics answer different questions. Capability prediction uses model size plus four features in leave-one-model-out regression; task-family macro-F1 also holds out a complete model. Candidate localization identifies the edited option in 960 paired prompts from Pythia-2.8B and Qwen2.5-7B on PIQA, HellaSwag, and ARC-Challenge. Higher values are better. Scalar rank has no candidate coordinates, so its entry is the option-count-dependent chance comparator; CKA/SVCCA do not produce per-prompt candidate maps. Appendix E.1 specifies all features and protocols.
Figure 27: Existing baselines reproduce different parts of the diagnostic. Direct rank recovers the spectral transition and gives the best capability prediction in the matched comparison; centered cosine gives the best task-family transfer. Map-valued methods additionally retain candidate location. The comparison protocols and four-feature summaries are stated in Section E.1 .
Figure 28: Token-position maps identify which candidate was changed. The 960 paired manipulations use Pythia-2.8B and Qwen2.5-7B on PIQA, HellaSwag, and ARC-Challenge. The scalar-rank comparator is chance, since it does not contain candidate coordinates. Higher localization accuracy is better.
Figure 29: Supporting model-level analyses. Left: minimum-rank scaling is heterogeneous across families. Right: late-layer option-cross interaction tracks model capability more reliably than minimum rank alone, motivating the use of late comparison summaries in the diagnostic analyses.
Figure 30: Model ranking with covariance summaries. Both predictors use the same 14-model pool and held-out-model predictions of mean benchmark accuracy. Left: leave-one-model-out regression R2 ; right: Spearman correlation between those predictions and observed accuracy. Size plus covariance improves ordering and selects the strongest model, while size alone retains the higher regression fit.
Evaluation
Models, tasks, and examples
Settings
Official chat
Qwen2.5-7B-Instruct and Mistral-7B-Instruct-v0.3; PIQA, BoolQ, HellaSwag , ARC-Challenge; 200 per setting
8/8
Multilingual
Qwen2.5-7B base and Instruct; aligned XCOPA in five languages; Estonian, Indonesian, Swahili, Tamil, Chinese; 100 shared items
10/10
Professional domains
Both instruction-tuned models; MMLU professional law, clinical knowledge, abstract algebra; 100 per subject
6/6
Generation
Pythia-2.8B, Qwen2.5-7B, Mistral-7B-v0.3; 3,200 responses across 20 model–task settings and seven prefixes
140/140
Appendix
Table 11: Compression and re-expansion extend across templates, languages, and domains. The final column counts model–task or model–language settings with an interior minimum and positive late re-expansion; generation counts model–task–prefix settings. The models, tasks, and prompt formats are described below. Adjusted pooled multilingual re-expansion is 28.60, with bootstrap 95% CI [28.11,29.10].
Figure 31: The trajectory persists as generation proceeds. The 3,200-response study covers three base models on four option-removed tasks and Qwen/Mistral on GSM8K, TriviaQA, MBPP, and QASPER. Left: bottleneck depth at seven prefixes. Center: the increase from minimum to final effective rank for each prefix. Right: continuation controls. All 140 model–task–prefix settings retain compression and re-expansion; completion exceeds question-only re-expansion in 19 of 20 model–task settings. Intervals are hierarchical bootstrap 95% confidence intervals. Appendix F defines the distinct rank and block-coupling endpoints.
Continuation control
Ordered–shuffled difference
Bootstrap 95% CI
Exact-token shuffle
0.228
[0.111,0.322]
Local four-token-block shuffle
0.120
[0.051,0.173]
Appendix
Table 12: Continuation order contributes beyond length and token content. The endpoint is the bottleneck-to-final rise in continuation–answer absolute covariance divided by the mean absolute covariance of the map. Answer tokens are fixed in both controls. The 3,200 responses cover 20 model–task settings; intervals use hierarchical bootstrap resampling, not effective-rank units.
Policy
Pooled mean budgeted accuracy
Role
GASR
0.4731
Geometry-augmented two-stage controller
TwoStageConf
0.4690
Matched confidence-only controller
MarginThreshold
0.4430
Simple threshold baseline
EntropyThreshold
0.4435
Simple threshold baseline
AlwaysDirect
0.4325
No reranking baseline
Appendix
Table 13: Selective-reranking results. GASR improves pooled mean budgeted accuracy over the matched confidence-only controller and simple threshold baselines, but the fixed-budget bootstrap gaps remain statistically inconclusive.
Figure 32: Adaptive routing at matched budgets. Geometry-aware routing does not consistently improve on margin-based thresholding. The curves compare the accuracy–cost tradeoff rather than establish a deployment advantage.
Figure 33: Correctness-conditioned geometry. For Pythia-2.8B, geometry contains some per-example success signal, but the association varies across settings.