Measuring Layer-wise Intrinsic Dimensionality of FFNs in LLMs via PCA
Abstract
Large language models exhibit a middle-heavy intrinsic-dimensionality profile in their feed-forward layers, and using this profile to guide width allocation improves pruning under a fixed parameter budget.
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.
Community
NeurIPS 2026 poster.
We measure the intrinsic dimensionality of each FFN layer with PCA, using a single forward pass on unlabeled text. Across 58 open-weight LLMs, middle layers tend to have higher intrinsic dimensionality than edge layers. As a functional test, using this measure as the per-layer FFN width in pruning and distillation outperforms uniform width at the same budget.
Paper: https://arxiv.org/abs/2611.32782
Code: https://github.com/naver-ai/lidf
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- RoleQ: Role-Aligned Scales for Converting Language Models to Ternary (2026)
- Learning Functional Subspaces for Neural Network Compression (2026)
- Beyond Adjacent Layers: Graph-Guided Layer Fusion for Compressing Large Language Models (2026)
- Learning Rate Transfer for Hybrid Transformer-SSM Architectures (2026)
- Beyond 4 bits: Data-Centric Post-training Quantization and Recovery (2026)
- SARATHI: Decoupled Data-Free Probing and Adaptive Reconstruction for Structured LLM Pruning (2026)
- The Surprising Effectiveness of Deleting Weights in LLM Post-Training (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2611.32782 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper