arXiv:2610.09709cs.LGOct 2026

Manuscript Offprint

arXiv:2610.09709

Pretraining Shapes Spectral Structure: Architecture- and Strategy-Conditional Prediction of OOD Robustness in Foundation Models

Sangyoon Bae, Sk Miraj Ahmed, Shinjae Yoo, Jiook Cha

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

Sangyoon Bae

Interdisciplinary Program in Artificial Intelligence

Seoul National University

Seoul, 08826, South Korea

stellasybae@snu.ac.kr

Sk Miraj Ahmed

Computational Science Initiative

Brookhaven National Laboratory

Upton, New York, 11973, USA

sahmed3@bnl.gov

Shinjae Yoo

Computational Science Initiative

Brookhaven National Laboratory

Upton, New York, 11973, USA

sjyoo@bnl.gov

Jiook Cha

Department of Psychology

Seoul National University

Seoul, 08826, South Korea

connectome@snu.ac.kr

ABSTRACT

Can we determine whether a foundation model will generalize out-of-distribution (OOD) before any target data is available? Existing diagnostics require source or target data, which rules them out before a target domain exists. Those that use the weights alone apply one statistic to every architecture, and do not separate robust models from fragile ones. We show the answer is encoded in the spectral structure of pretrained weights. Two forces shape that structure. Architecture determines how information is stored in weight matrices. Pretraining strategy determines what is rewarded. Together they set a spectral geometry that governs OOD robustness. We prove that the OOD accuracy gap is bounded by how tightly the source representations concentrate. A statistic computed from the pretrained weights alone serves as a proxy for that concentration. The direction of that proxy reverses between architecture families. We operationalize it: the direction is stable within one (architecture × strategy) combination, the finest grouping we test, which we call a cell. Pooled over 116 models spanning 7 modalities, a single statistic ranks OOD robustness weakly, because cells of opposite direction cancel. Within a cell, the statistic selected for it orders 92% of model pairs by OOD robustness in-sample. The selection does not leak the target: for each model family outside the matrix we logged the cell, metric and sign before running its OOD evaluation, and the predicted direction held in every case: EEG, genomic and protein. Acting on spectral concentration narrows the OOD gap by 24% at 87.5% ID retention. The diagnostic operates on released weights alone, so OOD robustness becomes checkable at model-selection time, before data or compute is committed to a target domain.

1 INTRODUCTION

Can we determine whether a foundation model will generalize out-of-distribution before any target data is available? Data-dependent diagnostics (Sun et al., 2022; Liu et al., 2020; Yu et al., 2025) require labeled source examples or target access, ruling them out at release time. Weight-space approaches (Martin et al., 2021; Sanyal et al., 2019) apply one statistic to every architecture, and rank models at correlations around 0.4–0.5. That ceiling has been attributed to the noisiness of spectral signals. We argue the cause is the population, not the statistic. Pooling models whose spectra were shaped by different forces flattens the signal (Martin & Mahoney, 2021).

Each (architecture × strategy) combination leaves a distinct geometric fingerprint in pretrained weights—because architecture controls how information is stored and pretraining strategy controls what is rewarded—that determines how representations behave under distribution shift (Figure 1). Pooling across incompatible fingerprints cancels the OOD-predictive signal; conditioning on them restores it.

  1. Pretraining Decisions

Architecture

How information can be stored

CNN

SSM/RNN

Pretraining Strategy

What information is rewarded

CLM (AR)

...

MLM (BiDi)

...

X₁

M

X₂

M

Contrastive

Anchor

Positive

Supervised Cross Entropy

... (7 families)

  1. Spectral Geometry (in weights)

Pretraining sculpts the singular value spectrum layer by layer.

Figure

CLM / Chronos (narrow-domain)

Index

Spectral signatures differ by (architecture, pretraining strategy, data diversity)

Bulk mass (MP-energy)

Effective rank (PR / SR)

Tail decay (stability)

Entropy (complexity)

  1. Representation Geometry

Spectrum determines feature geometry.

High feature rank

(spread representation)

Singular Vector Spectrum (σ)

Representation in feature space

σ1≈σ2≈⋯≈σn\sigma_1 \approx \sigma_2 \approx \cdots \approx \sigma_n

Figure

Index (1)

Low feature rank

(compressed representation)

σ1≫σ2≫⋯\sigma_1 \gg \sigma_2 \gg \cdots

Shift harms

σ1,σ2,⋯ ,σn\sigma_{1}, \sigma_{2}, \cdots, \sigma_{n}

simultaneously

Figure

After shift

Index (1)

Classification

still works if

shift does not

ham σ1\sigma_{1}

After shift

Figure

  1. OOD Robustness

Geometry quality sets the OOD accuracy gap.

Broad-domain CLM (NLP: GPT-2, Pythia)

Figure

Narrow-domain CLM (Chronos, ProGen2)

In data-scarce regimes,

the direction inverts: ρ>0\rho > 0 (over-specialization)

Direction is cell-specific.

Figure 1: (Architecture × Strategy) → Spectral Geometry → OOD Robustness. Architecture and pretraining strategy jointly shape the layer-wise singular-value spectrum (2), which determines whether representations are concentrated or diffuse (3), setting the OOD accuracy gap (4). The sign of ρ\rho is a property of the cell and of the statistic read in it, not of the domain: each AR-CLM cell is positive under its own calibrated metric, while BiDi-MLM/Protein, CNN and SSM-v2/RWKV are negative under theirs.

Contributions.

• A spectral-concentration bound explains why conditioning must reach (architecture × strategy), the finest grouping we test. Pooling across cells retains under a third of the correlation that per-cell conditioning achieves, and every one of the 15 cells achieves ∣ρLOO∣≥0.700|\rho_{\text{LOO}}| \geq 0.700 (Theorem 1, Table 3).

• Acting on spectral concentration narrows the OOD gap by 24% at 87.5% ID retention. Metric-guided layer selection beats random targeting in 9 of 10 models.

• The diagnostic transfers data-free to model families outside the matrix. The cell, metric and sign were logged before each new family was evaluated, and the predicted direction held in the EEG, genomic and protein cases.