首页 > AI前沿 > Measuring Layer-wise Intrinsic Dimensionality of FFNs in LLMs via PCA

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

arXiv自然语言 2026-11-24 23:11 19 阅读 查看原文

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