Reproduce “Textbooks Are All You Need” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

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

About this paper

Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio César Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann and 11 more

Microsoft Research developed `phi-1`, a 1.3B-parameter model, demonstrating that meticulously curated "textbook-quality" data can enable smaller models to achieve 50.6% pass@1 accuracy on HumanEval, outperforming much larger existing language models in code generation tasks. This research suggests that focusing on data quality and synthesis, rather than just scale, significantly improves model efficiency and performance.

Key insights

  • High-quality "textbook-like" data significantly alters scaling laws, enabling smaller models to achieve performance comparable to or exceeding much larger ones in specific domains.
  • Targeted finetuning on a small, high-quality synthetic dataset can unlock substantial performance gains and emergent capabilities in pre-trained models.
  • Utilizing powerful existing LLMs for filtering and synthetically generating training data is an effective strategy for building specialized, high-performing AI systems efficiently.

Summary by alphaXiv.

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