Reproduce “Spokes: Optimizing for Diverse Pretraining Data Selection” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

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

A scalable framework named SPOKES was developed to optimize the diversity of large language model pretraining data, utilizing the G-Vendi score in gradient space. This approach, which jointly considers data quality, consistently enhanced downstream language model performance across various benchmarks, achieving up to a 1.5-point improvement on DCLM and 1.4 points on FineWeb.

Key insights

  • Gradient-based representations are more amenable to diversity optimization, showing significantly higher G-Vendi score increases compared to embedding-based representations.
  • Data quality and diversity represent complementary strengths, with joint optimization yielding superior downstream performance compared to optimizing for either independently.
  • SPOKES enables a smooth and controlled trade-off between data quality and diversity through its "alpha" parameter, allowing for balanced data subset selection.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.