← Latest papers
🤖 machine learning

Optimal Representation Size: High-Dimensional Analysis of Pretraining and Linear Probing

This paper presents an analytical high-dimensional model of pretraining and linear probing that derives exact generalization error expressions to identify optimal representation sizes, revealing that maximally compressed representations are best when pretraining data is abundant but downstream data is scarce, while higher-dimensional representations perform better with limited pretraining data.

Original authors: Valentina Njaradi, Clémentine Dominé, Rachel Swanson, Marco Mondelli, Andrew Saxe

Published 2026-05-20
📖 5 min read🧠 Deep dive

Original authors: Valentina Njaradi, Clémentine Dominé, Rachel Swanson, Marco Mondelli, Andrew Saxe

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to learn a new skill, like playing a specific song on the piano. You have two types of resources:

  1. A massive library of sheet music (unlabelled data) that you can read through to understand how music generally works, but you don't know which notes make up your specific song yet.
  2. A few practice sessions (labelled data) where a teacher tells you exactly which notes to play for your song.

This paper explores a modern strategy used by both computers and, potentially, brains: Pretraining followed by Fine-tuning. First, you study the library to build a general understanding of music (Pretraining). Then, you use that understanding to quickly learn your specific song with very few practice sessions (Fine-tuning).

The big question the authors ask is: How much of that general library should you actually keep in your head?

Should you try to memorize every single note and rule from the library (a huge, complex memory)? Or should you boil it down to just the most essential chords and rhythms (a compressed, simple memory)?

The Core Discovery: It Depends on How Much Practice You Have

The authors built a mathematical model to answer this. They found that the "perfect" amount of memory to keep depends entirely on the balance between your library size and your practice time.

Scenario A: You have a giant library, but very little practice time.

  • The Result: You should compress your memory.
  • The Analogy: Imagine you have read 10,000 books, but you only have 10 minutes to prepare for a quiz. If you try to remember every detail from every book, your brain will get confused and mix things up. Instead, it's better to distill those 10,000 books down to the "Top 10 Rules" that apply to almost everything. This "compressed" version is robust and prevents you from making mistakes when you don't have time to think deeply.
  • The Paper's Claim: When pretraining data is abundant but downstream (task) data is scarce, maximally compressed representations are optimal.

Scenario B: You have a small library, but lots of practice time.

  • The Result: You should keep more details (higher dimensions).
  • The Analogy: Imagine you only read 5 books, but you have 50 hours to practice. If you try to boil those 5 books down to just "Top 10 Rules," you might throw away the specific details you actually need. Since you have plenty of time to practice, you can afford to keep a more detailed, high-dimensional memory of those 5 books to get the nuances right.
  • The Paper's Claim: When pretraining data is limited, higher-dimensional representations generalize better.

The "Leak" Problem: Why Compression Helps

The paper explains a tricky phenomenon called "leakage."

Imagine your library has a hidden pattern (a "spike")—maybe 90% of the books are about jazz, and only 10% are about rock.

  • If you keep everything (no compression), your brain tries to learn the jazz and the rock. But because you have so much jazz data, your brain gets "confused" and thinks the jazz rules apply to your rock song too. This is a "leak" of information that causes errors.
  • If you compress (keep only the top patterns), you force your brain to focus on the strongest, most reliable patterns (the jazz) and ignore the noise. This actually helps you perform better on the new task, even if the task isn't perfectly jazz-related, because it stops the confusion.

The "Currency" of Data

The authors also calculated a fascinating trade-off: How much unlabelled data is worth one labelled sample?

They found that in certain situations (lots of library, little practice), adding more pages to your library is actually more valuable than getting a single extra minute of practice with a teacher. The "unlabelled" data acts as a powerful substitute for "labelled" data, but only if you know how to compress it correctly.

Real-World Checks

The authors didn't just stop at math. They tested these ideas on:

  1. Autoencoders: Simple neural networks designed to compress data. They found that when these networks had enough data to learn, they naturally started acting like the "compression" the math predicted.
  2. Large Language Models (LLMs): They looked at real AI models (like Pythia). When they took the AI's "brain" (its internal representations) and tried to use it for a new task (sentiment analysis), they found that pruning (removing) some of the AI's internal dimensions actually made it better at the new task, but only when the new task had very little data.

Summary in One Sentence

If you have a massive amount of general knowledge but very little specific practice, the smartest thing to do is to simplify and compress your knowledge to avoid confusion; but if you have limited general knowledge and lots of practice time, you should keep the details to make the most of your training.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →