Textbooks Are All You Need

By Suriya Gunasekar, Yi Zhang, Jyoti Aneja, C. C. T. Mendes, A. Giorno, S. Gopi, Mojan Javaheripi, Piero Kauffmann, Gustavo de Rosa, Olli Saarikivi and 9 more. 2023

626 citations recorded by the source corpus.

We introduce phi-1, a new large language model for code, with significantly smaller size than competing models: phi-1 is a Transformer-based model with 1.3B parameters, trained for 4 days on 8 A100s, using a selection of ``textbook quality"data from the web (6B tokens) and synthetically generated textbooks and exercises with GPT-3.5 (1B tokens). Despite this small scale, phi-1 attains pass@1 accuracy 50.6% on HumanEval and 55.5% on MBPP. It also displays surprising emergent properties compared to phi-1-base, our model before our finetuning stage on a dataset of coding exercises, and phi-1-small, a smaller model with 350M parameters trained with the same pipeline as phi-1 that still achieves 45% on HumanEval.

Subfields: Artificial Intelligence, Large Language Models

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Jianfeng Gao
  2. Mohit Bansal
  3. Furu Wei
  4. Percy Liang
  5. Luke S. Zettlemoyer
  6. Dacheng Tao
  7. Yejin Choi
  8. Richard Socher

In Large Language Models

  1. Jianfeng Gao
  2. Furu Wei
  3. Richard Socher
  4. Thomas Scialom
  5. Maosong Sun
  6. Noah D. Goodman
  7. Nick Haber
  8. Eric Zelikman

Citations in the corpus