Skip to main content
QUICK REVIEW

[Paper Review] GPT-NeoX-20B: An Open-Source Autoregressive Language Model

Sid Black, Stella Biderman|arXiv (Cornell University)|Apr 14, 2022
Topic ModelingComputer Science69 citations
TL;DR

GPT-NeoX-20B is a 20B-parameter open-source autoregressive language model trained on the Pile, released with weights, training/evaluation code, and partially trained checkpoints for research on scaling, AI safety, and interpretability.

ABSTRACT

We introduce GPT-NeoX-20B, a 20 billion parameter autoregressive language model trained on the Pile, whose weights will be made freely and openly available to the public through a permissive license. It is, to the best of our knowledge, the largest dense autoregressive model that has publicly available weights at the time of submission. In this work, we describe \model{}'s architecture and training and evaluate its performance on a range of language-understanding, mathematics, and knowledge-based tasks. We find that GPT-NeoX-20B is a particularly powerful few-shot reasoner and gains far more in performance when evaluated five-shot than similarly sized GPT-3 and FairSeq models. We open-source the training and evaluation code, as well as the model weights, at https://github.com/EleutherAI/gpt-neox.

Motivation & Objective

  • Demonstrate the architecture and training of a large open-source autoregressive language model at 20B parameters.
  • Assess GPT-NeoX-20B across language understanding, knowledge-based, and mathematical tasks.
  • Provide open access to model weights, checkpoints, and evaluation tools to facilitate research.

Proposed method

  • Adopt a GPT-3-like decoder architecture with deviations such as rotary positional embeddings and parallel Attention/FF layers for efficiency.
  • Train on the Pile dataset using distributed training with tensor/pipeline parallelism and ZeRO optimizer to manage memory.
  • Use a BPE-based tokenizer with 50,257 vocabulary tokens tailored to the Pile and modified space-delimited tokenization.
  • Initialize weights with a scheme designed to stabilize deep networks and use dense layers exclusively.
  • Evaluate with the EleutherAI Language Model Evaluation Harness against GPT-3, FairSeq, and GPT-J-6B baselines.

Experimental results

Research questions

  • RQ1How does GPT-NeoX-20B perform on natural language understanding, knowledge-based, and mathematical tasks relative to comparable public models?
  • RQ2What is the impact of few-shot prompting on GPT-NeoX-20B compared to GPT-J-6B and FairSeq models?
  • RQ3What are the effects of architectural and data choices (tokenizer, rotary embeddings, parallel layers) on model performance and training efficiency?
  • RQ4Can an openly released 20B parameter model provide meaningful insights into AI safety, scaling, and interpretability research?

Key findings

  • GPT-NeoX-20B outperforms some FairSeq models on certain tasks and underperforms on others, with 22 wins, 4 losses, and 6 within margin of error across 32 evaluations in zero/five-shot settings.
  • The model shows notably strong few-shot learning gains, improving more from five-shot prompts than comparable-sized GPT-3 and FairSeq models.
  • GPT-NeoX-20B is an effective few-shot learner, with larger gains from five-shot prompts than GPT-J-6B and FairSeq models.
  • The authors release model weights, training/evaluation code, and partially trained checkpoints to enable broad research access and replication.
  • Several design choices (rotary embeddings, parallel Attention/FF layers, and tokenizer) differentiate GPT-NeoX-20B from GPT-3 and influence performance and training efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.