NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

Daehee Kim

NeurIPS page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › Efficient Sequence Modeling · Type: new method · Keywords: intrinsic dimensionality, transformer layers, model compression, width allocation, PCA, large language models

Areas: LLM Reasoning › Efficient Reasoning › Mixture-of-Experts; Interpretability › Mechanistic Interpretability › Mechanistic Interpretability

Summary

The paper measures the intrinsic dimensionality of feed-forward network layers in large language models using PCA and discovers a middle-heavy profile, then uses this PCA-guided allocation to improve student model performance over uniform width.

Explained to a 5-year-old

We look at big computer brains that learn words. Each brain layer works a little differently. By counting how many important ideas each layer needs, we find the middle layers need more. We then give those layers more space to work, which helps the smaller brain learn better.

Explained to a 5-year-old, longer

Imagine a giant robot that reads and writes stories. It has many layers inside, like different floors in a building. Some floors are busier than others. Scientists used a special tool to count how many important pieces of information each floor needs to do its job. They discovered that the middle floors need a lot more pieces than the top or bottom floors. Then they gave the middle floors more space to store those pieces, while keeping the other floors smaller. This helped a smaller version of the robot learn faster and do better at answering questions, using less overall memory.

For a technical reader

We compute the intrinsic dimensionality of each transformer’s feed-forward layer by projecting its activations and measuring how many components are needed to retain a fixed similarity. This reveals a middle-heavy distribution across layers. Using these per-layer dimensions, we allocate width non-uniformly, which improves student model accuracy compared to uniform allocation, and the gain correlates with the teacher’s dimensionality spread.

Problem

Transformer models typically allocate the same width to all internal layers, yet these layers may have different capacity requirements. It is unclear whether a uniform allocation is optimal and whether layer-wise capacity can be assessed to guide more efficient designs.

Method

The approach applies a dimensionality-reduction technique to the activations of each layer’s down-projection, determining the smallest number of components needed to reconstruct the activations within a fixed similarity threshold, and then uses this per-layer measure to allocate parameter budget non-uniformly across layers and guide width pruning in a student model.

Results

The approach achieves a +2.7 point gain on Qwen2.5-3B and +2.3 on Qwen3-8B compared to uniform width, while a same-scale teacher improves only by +0.9, and the advantage scales with the teacher’s layer-wise dimensionality spread (σ99).

Contributions

It introduces a per-layer intrinsic dimensionality measurement for transformer models, reveals a middle-heavy capacity profile, and demonstrates that using this measurement to allocate width non-uniformly improves student model performance.

Practical relevance

The findings enable more efficient allocation of model parameters, potentially reducing compute costs while maintaining or improving performance in large language model deployment.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction