Measuring Layer-wise Intrinsic Dimensionality of FFNs in LLMs via PCA

Daehee Kim

NAVER Cloud

Published November 24, 2026 · on the feed November 25, 2026 · ▲ 8 · arXiv 2611.32782

LLM training & RLEfficiency & inference Code arXiv ↗Hugging Face ↗

The abstract

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.

The Brief

2:35

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Measuring Layer-wise Intrinsic Dimensionality of FFNs in LLMs via PCA. By Daehee Kim, from NAVER Cloud. Published on the twenty-fourth of November.

Every layer of a modern large language model gets a feed-forward network of exactly the same intermediate width. That convention was inherited from the original Transformer, and it has stayed fixed even as mechanistic work has suggested that layers at different depths do qualitatively different work. If the work differs, the capacity each layer needs might differ too, and a fixed parameter budget could perhaps be spent more wisely than by splitting it evenly. The claim here is that capacity demand is indeed uneven, and that it follows a recurring shape. Middle layers carry higher intrinsic dimensionality than the layers at either edge of the network. Call it a middle-heavy profile.

The measurement is simple to state. For every layer, principal component analysis is applied to the input of the feed-forward down-projection, and the layer's intrinsic dimensionality is the smallest number of principal components needed to reconstruct that activation up to a fixed cosine similarity. Run across fifty-eight open-weight models, drawn from fourteen families and ranging from seventy million to seventy-two billion parameters, the middle-heavy profile keeps appearing. It holds when the calibration corpus changes, even between English and Chinese, and it is largely preserved through post-training fine-tuning.

A profile could be a curiosity, so the author tests whether it is structurally meaningful. The signal is used to guide width pruning in a knowledge-distilled student, with the parameter budget held matched. The PCA-guided allocation beats the uniform-width convention by two point three points on Qwen3-8B and by two point five on Qwen2.5-3B. A budget-matched inverted control, which gives width where the profile says it is least needed, does worst on all four teachers.

The gains are not the same everywhere, and the abstract is careful about why. Teachers with lower dispersion show smaller gaps: zero point nine points on Gemma-3-4B, and zero point five on LLaMA-3-8B. Across those four teachers, the size of the gap tracks how unevenly intrinsic dimensionality is spread across layers, summarised in a single number. A model whose layers are already fairly even has less to gain from reallocation. The pruning evidence also rests on four teachers, not on the full scan of fifty-eight. What the abstract does report is that the advantage persists through downstream supervised fine-tuning.

Uniform width has been a default rather than a decision. This work measures what each layer actually uses, finds the middle of the network asking for more, and shows that honouring that profile helps most in exactly the models where it is most pronounced. And the inverted control, last on every teacher, says the reverse too: putting width in the wrong place costs something.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.