Optimal Representation Size: High-Dimensional Analysis of Pretraining and Linear Probing
Valentina Njaradi, Clémentine Dominé, Rachel A Swanson, Marco Mondelli, Andrew Saxe
NeurIPS page · OpenReview · Open on the map
Category: Interpretability & Model Adaptation › Generalization-Memorization Trade-offs · Type: theory · Keywords: representation learning, high-dimensional analysis, principal component analysis, linear probing, optimal representation size, unlabelled-to-labelled trade-off
Areas: Continual Learning & Adaptation › Non-Stationarity Adaptation › Generalization and Adaptation
Summary
The paper provides a high-dimensional analytical model linking PCA on unlabelled data to linear probing, derives exact error expressions, and characterizes optimal representation size and the trade-off between unlabelled and labelled data.
Explained to a 5-year-old
When we teach a computer to learn, we first show it lots of pictures or words without labels, so it can learn the basics. Then we ask it to do a new task, like recognizing cats, using only a few examples. The paper figures out how big the computer’s “knowledge” should be to work best. It shows that if we have lots of basic examples but few task examples, we should keep the knowledge small, and if we have only a few basic examples, we need a bigger knowledge base. This helps us make smarter learning systems.
Explained to a 5-year-old, longer
We show a computer many unlabeled pictures or words so it can learn the basics. After that, we ask it to do a new task, like recognizing animals, using only a few examples. The paper studies how big the computer’s “knowledge” should be to work best. It uses math to describe how learning works when there are many dimensions. The math shows that the size of the knowledge matters a lot. When we have lots of basic examples but very few task examples, a small knowledge works well. When we have only a few basic examples, a larger knowledge helps. The paper finds an exact rule for how many unlabeled examples can replace one labeled example. This rule helps us understand the trade-off between learning from unlabeled data and learning from labeled data. The insights also apply to autoencoders and large language models, showing the ideas are broadly useful.
For a technical reader
The work formalizes representation learning as PCA on unlabelled data followed by linear probing, deriving closed-form error expressions in the high-dimensional limit. It reveals that optimal representation size balances the amount of pretraining data against downstream labelled data, providing a quantitative trade-off between unlabelled and labelled samples. Empirical observations on autoencoders and pretrained LLMs confirm the theoretical predictions.
Problem
How should the dimensionality of pretrained representations be chosen to maximize downstream generalisation given varying amounts of unlabelled and labelled data?
Method
We formalize structure extraction as principal component analysis on unlabelled data and downstream learning as linear regression on a separate labelled dataset. In the high-dimensional regime, we derive exact expressions for training and generalisation error, revealing dependence on representation dimensionality, unlabelled and labelled sample sizes, and task alignment.
Results
The analysis shows that optimal representation size depends on data regimes: compressed representations are best when pretraining data is abundant and downstream data scarce, while higher-dimensional representations excel when pretraining data is limited. It also quantifies an exact trade-off, indicating how many unlabelled samples can substitute for a single labelled example.
Contributions
We provide an analytical model linking PCA on unlabelled data to linear probing, derive exact error expressions in the high-dimensional limit, and characterize the optimal representation size and the trade-off between unlabelled and labelled data. We also demonstrate that the theoretical insights extend to autoencoders and pretrained LLMs.
Limitations and assumptions
The analysis assumes a high-dimensional asymptotic regime and a simplified PCA-linear regression framework; real-world complexities and finite-sample effects may differ.
Practical relevance
The findings give principled guidance for choosing representation dimensions in large-scale pretraining pipelines, enabling more efficient use of compute and better downstream performance.
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