Modern large language models (LLMs) keep the feed-forward network (FFN) intermediate width identical across every layer, a convention inherited from the original Transformer. Yet mechanistic work suggests layers at different depths do qualitatively different work, raising a natural question: are their capacity demands also non-uniform, and if so, can a fixed parameter budget be allocated more wisely than uniformly? To probe this, we apply principal component analysis (PCA) to the input of each FFN down-projection and measure, for every layer, its intrinsic dimensionality as the smallest number of principal components needed to reconstruct the activation up to a fixed cosine similarity. Scanning 58 open-weight LLMs spanning 14 families and 70M to 72B parameters, we find a recurring middle-heavy profile in which middle layers carry higher intrinsic dimensionality than edge layers; the profile is robust to the calibration corpus, even across English and Chinese, and is largely preserved through post-training fine-tuning. As a direct test that this signal is structurally meaningful, we use it to guide width pruning in a knowledge-distilled student under a matched parameter budget: the PCA-guided allocation outperforms the uniform-width convention by +2.3 points on Qwen3-8B and +2.5 on Qwen2.5-3B, while lower-dispersion teachers show smaller gaps (+0.9 on Gemma-3-4B, +0.5 on LLaMA-3-8B), and a budget-matched inverted control does worst on all four teachers. Across these four teachers, the size of the gap tracks how unevenly the teacher's intrinsic dimensionality is distributed across layers (a single-number summary we call σ99), and the advantage persists through downstream supervised fine-tuning. Code is available at https://github.com/naver-ai/lidf.
Figures & tables
Figure 1: Calibration robustness on Qwen3-8B. Per-layer cosine similarity between hl and its rank- d PCA reconstruction at width fractions d/Dl∈{10%,20%,…,90%} , measured on six 100K-token calibration corpora: five English (SlimPajama, MMLU, ARC-C, HellaSwag, WikiText) and Chinese SkyPile. Red dashed line marks the θ=0.99 threshold. All six panels show the same dip at middle layers when d/Dl is small, indicating that more principal directions are required to faithfully reconstruct middle-layer activations. Pairwise per-layer Pearson r on the extracted dθ,l/Dl profiles: five English corpora min 0.953 , mean 0.975 ; English ↔ Chinese min 0.941 , mean 0.973 ; all 15 pairs ≥0.941 , with the minimum occurring between Chinese SkyPile and HellaSwag.
Figure 2: σ99 by model family. Each column is one family, ordered by median σ99 ; markers are individual models of 2B parameters or more, labeled by size. Among the plotted models, σ99 shows a substantial association with model family. Within most families, σ99 also tends to rise with scale, although Qwen2.5 drops at 72B, the largest scanned model.
Figure 3: σ99 trajectories across six families. The horizontal axis is the Chinchilla-optimal compute multiplier: training tokens divided by 20× the model’s parameter count, where 20 tokens-per-parameter is the compute-optimal ratio identified by Hoffmann et al. (2022) . Values <1 indicate under-trained models relative to compute-optimal; values >1 indicate over-trained. Vertical dotted line marks the compute-optimal point. (a) 7B-class (and OLMo-2-13B) trajectories. OLMo-2 and BLOOM show growth followed by sustained decline, and MAP-Neo-7B declines during its decay phase; Pythia-6.9b (terminating at 2.2× Chinchilla) and Amber show no decline. (b) All 21 trajectories.
Figure 4: Three width allocations under matched FFN budgets. Per-layer FFN width as a percentage of the teacher’s Dl ; each title gives the total budget ∑lwl/(LD) . Pca (blue, solid) follows dθ,l at θ=0.99 ; Uniform (orange, dashed) is B/L ; Inverted (red, dotted) is the mirror of Pca around Uniform , clipped at Dl . Within each panel the three curves are budget-matched (§ 4.1 ). Visual dispersion across the curves scales with σ99 : large in Qwen2.5-3B and Qwen3-8B ( σ99≈0.19 ), smaller in Gemma-3-4B ( σ99=0.124 ) and LLaMA-3-8B ( σ99=0.105 ).
Model
σ99
Pca avg
Δ vs. Uniform
Δ vs. Inverted
Teacher avg
Qwen3-8B
0.192
67.48
+2.28
+4.63
72.23
Qwen2.5-3B
0.188
60.10
+2.50
+5.52
66.49
Gemma-3-4B
0.124
54.24
+0.88
+2.05
67.56
LLaMA-3-8B
0.105
61.83
+0.52
+0.99
67.42
Table 1: 3-way KD headline results at step 3K. 5-task averages (MMLU, ARC-C, HellaSwag, WinoGrande, PIQA). Teacher avg is the unpruned model’s same-protocol score. Rows are ordered by σ99 . Qwen2.5-3B and LLaMA-3-8B: means over three training seeds.
Task
Pca
Uniform
Inverted
Δ(\mboxPca−\mboxUniform)
Δ(\mboxPca−\mboxInverted)
MMLU
52.25
47.54
37.93
+4.71
+14.32
ARC-C
42.01
41.18
38.99
+0.82
+3.01
HellaSwag
65.77
63.79
61.16
+1.98
+4.61
WinoGrande
64.85
60.64
60.04
+4.21
+4.81
PIQA
75.61
74.81
74.77
+0.80
+0.83
Avg
60.10
57.59
54.58
+2.50
+5.52
Table 2: Per-task results for Qwen2.5-3B at step 3K , means over three training seeds per allocation. The Δ(\mboxPca−\mboxInverted) column is led by MMLU, where the inverted allocation reaches 37.93 against 52.25 for Pca .
Teacher
Allocation
5-task avg
MMLU
Δ ( Pca − alloc.)
Qwen2.5-3B
Pca
60.10±0.22
52.25
—
Pca-Ev
60.18±0.10
52.56
−0.08
SlimLLM
56.69±0.05
44.62
+3.41
Gemma-3-4B
Pca
54.24
42.59
—
Pca-Ev
52.60
38.76
+1.64
SlimLLM
52.88
38.75
+1.36
Table 3: Pca against two other allocation rules at step 3K. Qwen2.5-3B: mean ± SD over three training seeds per allocation. Uniform scores 57.59 on Qwen2.5-3B and 53.36 on Gemma-3-4B (Table 7 ).
Config
ARC-C
MMLU
GSM8K
Pca
85.58
67.75
73.46
Uniform
74.57
62.83
70.43
Inverted
73.81
57.41
62.55
Δ(\mboxPca−\mboxUniform)
+11.01
+4.92
+3.03
Δ(\mboxPca−\mboxInverted)
+11.77
+10.34
+10.91
Table 4: Qwen3-8B step-3K students after SFT ( tulu-3-100k , 2 epochs, best-of-epoch). Pca > Uniform > Inverted on every task.
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Config
step 1K
step 2K
step 3K
Pca
51.22
52.71
53.42
Uniform
48.73
50.23
50.56
Inverted
46.81
48.32
48.96
Δ(\mboxPca−\mboxUniform)
+2.49
+2.48
+2.86
Δ(\mboxPca−\mboxInverted)
+4.41
+4.39
+4.46
Appendix
Table 5: Qwen2.5-3B 3-way KD at θ=0.97 (5-task average). Bold = best per step; task scores follow the body’s protocol (§ 4.1 ). The PCA allocation sums to 169,984 FFN units ( 42.9% of the teacher’s L⋅D=396,288 ), a 1.43× smaller budget than the body’s θ=0.99 runs ( 61.3% budget). Uniform and Inverted are budget-matched to the same θ=0.97 sum. The Pca > Uniform > Inverted ordering holds at every post-init step, matching the θ=0.99 post-init ordering on the same teacher in Table 7 .
Figure 5: Per-layer dθ,l/Dl profiles for 51 of the 58 models in the scan, grouped by family. Profiles of all 58 models are in the supplementary material. Horizontal axis is normalized layer index; vertical axis is dθ,l/Dl at θ=0.99 . The middle-heavy profile recurs across architecture, training corpus, and scale. How strongly middle-heavy it is varies by family (Qwen2.5/Qwen3 most pronounced, LLaMA-3.x, Mistral, and Yi-1.5 [ Young et al., 2024 ] flatter); checkpoints that are visibly not middle-heavy are concentrated in the ≤1.7 B-parameter regime and the low- σ99 families flagged in the body.
Model
Stage
σ99
Δ vs. base
Qwen2.5-7B
pretrain only
0.178
—
Qwen2.5-7B-Instruct
+ post-training
0.176
−1.5%
Qwen2.5-Coder-7B
+ code CPT
0.178
−0.1%
Qwen2.5-Coder-7B-Instruct
+ code CPT + post-training
0.161
−9.4%
Qwen2.5-Math-7B
+ math CPT
0.187
+4.8%
Qwen2.5-Math-7B-Instruct
+ math CPT + post-training
0.185
−1.0%
Appendix
Table 6: Post-training σ99 stability. Across general and domain-specific post-training, domain-specific continued pretraining (CPT), and mid-training annealing, σ99 changes by at most 10% relative to its base model; Δ is computed from unrounded values. Δ is relative to the row’s base: Qwen2.5-7B for Qwen2.5-7B-Instruct and the two CPT rows, and Qwen2.5-Coder-7B / Qwen2.5-Math-7B for their -Instruct rows. This contrasts with the −53% post-peak decline of OLMo-2-7B during Stage 1 pretraining (Figure 3 ).
Teacher ( σ99 )
Config
init
step 3K
step 5K
step 8K
Qwen2.5-3B (0.188)
Pca
44.06
60.10
60.34
60.22
Uniform
43.02
57.59
58.06
58.06
Inverted
40.97
54.58
55.16
55.19
Qwen3-8B (0.192)
Pca
49.92
67.48
—
—
Uniform
51.47
65.20
—
—
Inverted
47.84
62.85
—
—
Appendix
Table 7: 5-task average at init and at KD steps 3K, 5K and 8K for all four teachers × three width allocations. Init values are the post-pruning, pre-KD checkpoints, shared across runs. Step-3K entries for Qwen2.5-3B and LLaMA-3-8B are means over three training seeds. At every post-init step shown the ordering is Pca > Uniform > Inverted on every teacher.
Task
Pca
Uniform
Inverted
Δ(\mboxPca−\mboxUniform)
Δ(\mboxPca−\mboxInverted)
MMLU
65.69
60.94
56.79
+4.75
+8.90
ARC-C
52.73
49.06
46.59
+3.67
+6.14
HellaSwag
72.33
71.23
69.40
+1.10
+2.93
WinoGrande
69.85
67.25
65.51
+2.60
+4.34
PIQA
76.82
77.53
75.95
−0.71
+0.87
Avg
67.48
65.20
62.85
+2.28
+4.63
Appendix
Table 8: Per-task results for Qwen3-8B at step 3K. Pca achieves the highest score on four of five tasks; Uniform narrowly leads on PIQA.
Task
Pca
Uniform
Inverted
Δ(\mboxPca−\mboxUniform)
Δ(\mboxPca−\mboxInverted)
MMLU
44.11
43.15
41.62
+0.96
+2.49
ARC-C
43.63
43.46
42.75
+0.17
+0.88
HellaSwag
74.16
73.58
73.50
+0.58
+0.66
WinoGrande
69.01
67.90
68.22
+1.11
+0.79
PIQA
78.22
78.45
78.11
−0.23
+0.11
Avg
61.83
61.31
60.84
+0.52
+0.99
Appendix
Table 9: Per-task results for LLaMA-3-8B at step 3K , means over three training seeds. Pca achieves the highest score on four of five tasks; Uniform narrowly leads on PIQA. The per-task gaps are smaller on average than on the high- σ99 teachers, and Δ(\mboxPca−\mboxInverted) is smaller on every task, consistent with the σ99 trend in § 4.4 .
Teacher ( σ99 )
Pca avg
Uniform avg
Inverted avg
Δ vs. Uniform
Δ vs. Inverted
Qwen2.5-1.5B (0.105)
48.25
48.12
48.21
+0.13
+0.04
LLaMA-3.2-1B (0.079)
43.10
42.88
42.72
+0.22
+0.38
Gemma-3-1B (0.079)
43.50
43.06
42.97
+0.44
+0.53
Appendix
Table 10: 1B-class 3-way KD results at step 3K. 5-task averages (MMLU, ARC-C, HellaSwag, WinoGrande, PIQA). Pca scores highest on every teacher, but every gap is under +0.6 pp and Inverted edges Uniform on Qwen2.5-1.5B; we do not observe a meaningful effect at 1B scale.
Figure 6: Per-layer widths of the cosine ( Pca ) and explained-variance ( Pca-Ev ) readouts on Qwen2.5-3B and Gemma-3-4B. Both panels show the trained allocations, budget-matched on each teacher. Open red circles mark the layers whose covariance is dominated by a single direction (top-1 eigenvalue share above 0.9 ): layer 2 of Qwen2.5-3B and layers 10 and 11 of Gemma-3-4B. Per-layer correlation of the two width vectors: r=0.975 (Qwen2.5-3B) and 0.31 (Gemma-3-4B).
Figure 7: Per-layer FFN widths of the LLaMA-3-8B students in the transfer control. All three vectors sum to the same budget ( 335,616 ); the transferred Qwen3-8B profile cuts layers 1–3 to 3,200 – 5,632 units, where LLaMA-3-8B’s own profile gives 10,496 – 11,008 .
Config
5-task avg
MMLU
ARC-C
WinoGrande
mean
std
mean ± std
mean ± std
mean ± std
Pca (n = 3)
64.22
0.00
50.24±0.00
45.82±0.00
70.24±0.00
Uniform (n = 3)
63.42
0.04
48.13±0.04
44.97±0.00
69.74±0.15
Inverted (n = 3)
62.54
0.03
47.86±0.12
43.43±0.00
67.80±0.00
Appendix
Table 11: LLaMA-3-8B 3-way KD at step 8K, multi-seed evaluation. n denotes the number of independent evaluation seeds applied to the same single training-run weights for each allocation. Evaluation-seed standard deviation on the 5-task average is under 0.05 pp for every allocation, an order of magnitude below the inter-allocation gaps ( Δ(\mboxPca−\mboxUniform)=+0.80 pp, Δ(\mboxPca−\mboxInverted)=+1.68 pp). Per-task means and standard deviations are reported for MMLU, ARC-C and WinoGrande; HellaSwag and PIQA vary by at most 0.03 (std). This isolates evaluation-time variance only; training-seed variance at step 3K is reported in § 4.4 .
Transformer feed-forward networks (FFNs) are the within-token MLP blocks whose activations, structure, efficiency, and role in model computation are studied.