← Latest papers
💬 NLP

Spokes: Optimizing for Diverse Pretraining Data Selection

The paper introduces SPOKES, a probabilistic diversification framework that directly optimizes for data diversity using the G-Vendi score and exponentiated gradient descent, demonstrating that jointly selecting pretraining data for both quality and diversity significantly outperforms existing baselines and random sampling in downstream performance.

Original authors: Clarence Lee, Yejin Choi, Luke Zettlemoyer, Pang Wei Koh, Hai Leong Chieu

Published 2026-06-16
📖 4 min read☕ Coffee break read

Original authors: Clarence Lee, Yejin Choi, Luke Zettlemoyer, Pang Wei Koh, Hai Leong Chieu

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 a chef trying to create the perfect, massive feast (a pre-trained AI model) using a limited amount of ingredients (data). You have a warehouse full of millions of recipes, but you can only cook with a specific number of them.

The big question is: Which recipes should you pick?

Most chefs (AI researchers) have two main ways of choosing:

  1. Grab a handful at random: You might get a good mix, but you could accidentally pick 50 recipes that all taste exactly like "spicy chicken." That's boring and repetitive.
  2. Pick only the "best" rated recipes: You filter out the bad ones, but you might end up with 50 recipes that are all "high-end French cuisine." You miss out on street food, desserts, or soups. You lack variety.

This paper introduces a new tool called SPOKES (which stands for a method to optimize data diversity). Here is how it works, explained simply:

The Problem: "Diversity" is Hard to Measure

The authors say that "diversity" is like the spokes on a wheel. If all the spokes are clumped together in one spot, the wheel is lopsided and won't roll well. You want the spokes (your data) to be spread out evenly all around the circle.

The problem is that you can't look at just one recipe to see if it's diverse. You have to look at how every recipe interacts with every other recipe. If you try to check every possible combination of recipes to find the perfect wheel, it would take longer than the universe has existed. It's too hard to calculate.

The Solution: SPOKES

Instead of guessing or using simple rules (like "group by topic"), SPOKES uses a clever mathematical trick to directly optimize for diversity.

1. The "Gradient" Compass
Instead of just reading the text of the recipes (which is like looking at the cover of a book), SPOKES looks at how the recipe changes the chef's brain. In AI terms, this is called a "gradient."

  • Imagine two recipes: one for a cake and one for a pizza.
  • If you teach the chef the cake recipe, their brain shifts in one direction.
  • If you teach them the pizza recipe, their brain shifts in a completely different direction.
  • SPOKES measures these "brain shifts." It wants to pick recipes that push the chef's brain in as many different directions as possible, ensuring the chef learns a wide range of skills.

2. The "Spokes" Analogy
The method treats the data like spokes on a wheel. It uses a math score called the G-Vendi score to measure how evenly the spokes are spread out.

  • Random Sampling: The spokes are messy and clumped.
  • SPOKES: It rearranges the spokes so they are perfectly evenly spaced, like a perfect bicycle wheel.

3. The "Quality" vs. "Diversity" Balance
Sometimes, you want only the highest-quality recipes (Quality Filtering). Sometimes, you want the most variety (Diversity). SPOKES lets you mix these two goals.

  • You can tell SPOKES: "I want 90% variety and 10% quality," or "I want a perfect balance of both."
  • The paper found that the best results came from balancing both. It's like having a menu that has both the highest-rated dishes and a huge variety of cuisines, rather than just the top-rated French dishes.

What Did They Find?

The authors tested this on two massive "libraries" of internet text (called DCLM and FineWeb).

  • Better Variety: When they used SPOKES to pick 500,000 documents, the "diversity score" jumped by 489 points compared to picking them randomly. Existing methods (like just removing duplicates) only managed a tiny 7-point jump.
  • Smarter AI: When they trained a small AI model (LLaMA-1B) on the data SPOKES picked, the model got smarter.
    • On the DCLM dataset, it improved performance by 1.5 points.
    • On the FineWeb dataset, it improved by 1.4 points.
  • The Surprise: Even when SPOKES picked data that had slightly lower "quality scores" (according to standard filters), the AI performed better. This proves that variety is just as important as quality. A diverse set of "okay" recipes taught the chef more than a set of "perfect" but repetitive recipes.

The Bottom Line

SPOKES is a new way to select training data for AI. Instead of just picking the "best" or "random" data, it mathematically ensures the data is spread out like the spokes of a wheel. This creates a more balanced, diverse, and ultimately smarter AI model, even when you have a limited amount of data to work with.

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 →