Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

OPT: Open Pre-trained Transformer Language Models

Open pre-trained transformers match GPT-3 while sharing full weights with researchers

  • Problem Large language models with zero- and few-shot ability are hard to study because only a few labs hold their full weights. Other researchers reach them only through paid APIs that grant no access to the weights.
  • Method OPT is a suite of decoder-only transformers from 125M to 175B parameters. The authors train them on a deduplicated mix of RoBERTa, Pile and Reddit text, then release all models and a logbook.
  • Results OPT-175B matches GPT-3 at 1/7th the carbon footprint.

Why an open 175B model matters

Large language models trained on massive text collections can generate text and learn from a few examples, but full model access is limited to a few highly resourced labs. Researchers who cannot reach the weights have difficulty studying why these models behave as they do and how to address robustness, bias and toxicity.

The goal is to roughly match the size and performance of the GPT-3 class while applying newer data collection and efficient training practices.

Model family and training configuration

The study covers eight Transformer language models from 125 million to 175 billion parameters. Depth, head count and embedding size grow together: the 125M model has 12 layers, 12 heads and an embedding size of 768, while the 175B model has 96 layers, 96 heads and an embedding size of 12288. The hyperparameters largely follow GPT-3, with batch size varied mainly to improve computational efficiency.

Weights start from a normal distribution with zero mean and a standard deviation of 0.006, taken from the Megatron-LM codebase. The output layers use a smaller standard deviation, scaled by \(1.0/\sqrt{2L}\), where \(L\) is the total number of layers. All bias terms start at zero, the models use ReLU activations, and every sequence has 2048 tokens.

The optimizer is AdamW with betas of 0.9 and 0.95 and a weight decay of 0.1. The learning rate rises linearly over the first 2000 steps for OPT-175B, or over 375M tokens for the smaller baselines, and then decays to 10% of the maximum over 300B tokens. Dropout of 0.1 is applied throughout, except to embeddings, and gradient norms are clipped at 1.0.

Pre-training corpus construction

The corpus combines data used for RoBERTa, the Pile and PushShift.io Reddit, all previously collected or filtered toward predominantly English text. Duplicates are removed with MinHashLSH at a Jaccard similarity of .95 or higher, and the authors found the Pile especially full of duplicates. All corpora are tokenized with the GPT-2 byte-level BPE tokenizer, giving a final corpus of roughly 180B tokens.

From RoBERTa, the corpus takes the BookCorpus and Stories subsets and an updated CCNews v2 containing news crawled through September 28, 2021. From the Pile, it keeps CommonCrawl, DM Mathematics, Project Gutenberg, HackerNews, OpenSubtitles, OpenWebText2, USPTO and Wikipedia.

This reduces the corpus by about 66%.

Running and stabilizing the 175B training run

OPT-175B was trained on 992 80GB A100 GPUs, using Fully Sharded Data Parallel together with Megatron-LM tensor parallelism. Utilization reached up to 147 TFLOP/s per GPU. Adam state is kept in FP32 because it is sharded across hosts, while the model weights stay in FP16, and dynamic loss scaling guards against underflow.

During each manual restart the run was paused, diagnostics flagged problematic nodes, and training resumed from the last saved checkpoint. From the gap between hosts cycled and restarts, the authors estimate more than 70 automatic restarts caused by hardware failures.

When the loss diverged, the authors found that lowering the learning rate and restarting from an earlier checkpoint let the job recover. Divergences correlated with the dynamic loss scalar collapsing toward 0 and with the final-layer activation norm spiking, so restart points were chosen where the loss scalar was still at least 1.0. Lowering gradient clipping from 1.0 to 0.3 early in training helped stability, and the learning rate changes are shown in the empirical schedule and validation perplexity figures.

Prompted accuracy against GPT-3

The evaluation covers 16 standard NLP tasks, using GPT-3's prompts and experimental setup, with accuracy as the metric. Averages are taken over 14 tasks, with MultiRC and WIC removed because the authors judged that they favored GPT-3 or OPT disproportionately. WSC from SuperGLUE is formulated as multiple-choice questions, following GPT-3.

Averaged over these 14 tasks, zero-shot performance follows the GPT-3 trend across model sizes. Per-task results differ widely: the authors report roughly matching GPT-3 on 10 tasks and underperforming on 3, with ARC Challenge and MultiRC named among them. CB, BoolQ and WSC show unpredictable behavior with scale for both families, which the authors link to validation sets of 56, 277 and 104 examples.

On WIC, OPT always outperforms the GPT-3 models, but the authors question the GPT-3 figures given that WIC is a binary task. The authors could not reproduce the GPT-3 MultiRC results through the Davinci API under their setup, which they suggest reflects differences in evaluation methods.

In one- and few-shot evaluation, the averages of OPT and GPT-3 are similar, but on the 10 tasks shared with zero-shot the per-task results match closely, while OPT is consistently lower on MultiRC. The authors suspect the one- and few-shot setup differs from Brown et al. in ways that matter, and they report Chinchilla and Gopher as consistent with other models for their sizes, with PaLM generally higher, which they attribute mainly to data quality and diversity.

Dialogue results against open dialogue models

The dialogue evaluation covers ConvAI2, Wizard of Wikipedia, Empathetic Dialogues, Blended Skill Talk and Wizard of Internet. OPT-175B is compared with Reddit 2.7B, which is unsupervised, and with BlenderBot 1 and R2C2 BlenderBot, which are fine-tuned on dialogue data. Perplexity is normalized to the GPT-2 tokenizer so that models with different tokenizers can be compared, and Unigram F1 measures word overlap.

OPT-175B generates with greedy decoding up to 32 tokens and is prompted only with alternating Person 1 and Person 2 labels.

On ConvAI2, OPT-175B reaches perplexity 10.8 and Unigram F1 .185, against 18.9 and .126 for Reddit 2.7B and 10.2 and .183 for BlenderBot 1. Across the datasets, OPT-175B outperforms Reddit 2.7B and is competitive with BlenderBot 1, especially on ConvAI2.

On Wizard of Internet, which no model saw during supervised dialogue training, OPT-175B has the lowest perplexity at 12.0, but its Unigram F1 of .147 is below BlenderBot 1 at .154 and R2C2 BlenderBot at .160. The authors were surprised by how well the unsupervised model matched BlenderBot 1 on ConvAI2, so they searched the pre-training corpus for the first ConversationAI2 conversation and found no overlap.

On the ConvAI2 hidden test set, OPT-175B reached 10.7 perplexity and .185 Unigram F1, and on a subset of MultiSessionChat it reached 9.7 and .177, which the authors read as consistent persona behavior across PersonaChat-like data.

Hate speech detection against Davinci

The task uses the ETHOS dataset of English statements, and the model is asked whether each statement is racist or sexist. Zero-shot, one-shot and few-shot binary settings use yes or no answers, and the few-shot multiclass setting adds a neither option.

F1 for Davinci and OPT-175B is .628 and .667 zero-shot, .616 and .713 one-shot, .354 and .759 few-shot binary, and .672 and .812 few-shot multiclass. OPT-175B is higher than Davinci in every configuration, with the largest gap in the few-shot binary setting.

The authors offer two possible sources for this gap: the Davinci API may include safety controls that the original 175B GPT-3 lacked, and the pre-training data contains many unmoderated social media discussions that may help such classification. These explanations are the authors' conjectures and the experiments do not separate them.

Stereotype measures: CrowS-Pairs and StereoSet

CrowS-Pairs measures intrasentence bias with pairs of stereotypical and anti-stereotypical sentences across nine categories, and a lower score means less bias. Overall, OPT-175B scores 69.5 and GPT-3 scores 67.2, so OPT-175B shows more stereotypical bias overall. OPT-175B is higher than GPT-3 in most categories, with religion (68.6 against 73.3) as the exception.

The authors attribute the higher bias to the Pushshift.io Reddit data that is a primary source for OPT-175B, since prior work found that corpus has more stereotypical and discriminatory text than Wikipedia.

StereoSet measures bias over four categories with a language modeling score (LMS), a stereotype score (SS) and their combination, ICAT, and this study normalizes scores by token count. The overall ICAT is 60.8 for Davinci and 60.0 for OPT-175B, so the two are very close. Davinci is higher on profession and race, OPT-175B is higher on gender and religion, OPT-175B has the better SS across categories, and Davinci has the better LMS.

Toxic continuations on RealToxicityPrompts

Following PaLM, the authors sample 25 generations of 20 tokens with nucleus sampling at p = 0.9 for each of 10,000 randomly sampled RealToxicityPrompts prompts. Mean toxicity of the continuations is reported in bins of prompt toxicity, and the bins are compared with Davinci and PaLM.

OPT-175B has a higher toxicity rate than either PaLM or Davinci. All three models generate more toxic continuations as prompt toxicity rises, which matches earlier observations.

The authors suspect that unmoderated social media text in the pre-training corpus makes the model more familiar with toxic language, so it can both generate and detect it. Whether this awareness is desirable depends on the downstream use, so the authors advise further mitigation or avoiding use where appropriate.

Dialogue safety tests

SaferDialogues measures recovery from explicit safety failures, and the Safety Bench Unit Tests measure how unsafe a response is across Safe, Realistic, Unsafe and Adversarial levels. Lower values are better in the unit-test columns.

The authors note that the fine-tuned models on curated dialogue data, BlenderBot 1 and R2C2, have overall lower toxicity, and they conclude that future dialogue use of OPT-175B needs explicit fine-tuning on curated data.

Limitations

The authors qualitatively observe the limitations shared with other large language models, and their evaluations may not capture every limitation.

OPT-175B tends to be repetitive and can get stuck in loops. Sampling reduces this, but the authors found anecdotally that it did not remove repetition when only one generation is sampled, and they point to unlikelihood training and best-first decoding as options that were not tested here.

OPT-175B can produce factually incorrect statements, which matters in settings such as healthcare, and the paper does not test retrieval augmentation, which the authors expect to help. The model's toxicity and tendency to reinforce harmful stereotypes come with easily found adversarial prompts.

The mitigations discussed in prior work were not applied in this first release, because the authors' main goal is a replication of GPT-3. The authors judge the technology premature for commercial deployment and call for more scrutiny of training data and more consistent evaluation setups, because prompting styles and shot counts can change results.

Release decisions and carbon accounting

The release includes the training logbook, the metaseq codebase, model weights for OPT-175B under research access, and a suite of smaller baselines. Access is non-commercial, and the aim is to study the limitations of these LLMs before broader commercial deployment.

The GPT-3 figure of 500 tons comes from Patterson et al. (2021), and Gopher's is 380 tons, while the authors note that these estimates and their accounting methods are not standardized. The authors' own estimate of total cost, with ablations, baselines and downtime, is roughly 2x higher than the 75-ton figure.

The logbook is meant to show the gap between a carbon estimate that assumes no hardware failures or instabilities and one that covers the whole development lifecycle.

Paper info

Authors
Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, Luke Zettlemoyer
Venue
arXiv · Preprint
First published
2022-5-2
Added
2026-11-12
Updated
2022-6-21
Version
v4
arXiv
2205.01068
Category
cs.CL · cs.LG
Original paper terms
CC BY 4.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, Luke Zettlemoyer (2022). OPT: Open Pre-trained Transformer Language Models. arXiv:2205.01068v4. https://arxiv.org/abs/2205.01068v4

BibTeX
@misc{zhang2022open,
  title = {{OPT: Open Pre-trained Transformer Language Models}},
  author = {Susan Zhang and Stephen Roller and Naman Goyal and Mikel Artetxe and Moya Chen and Shuohui Chen and Christopher Dewan and Mona Diab and Xian Li and Xi Victoria Lin and Todor Mihaylov and Myle Ott and Sam Shleifer and Kurt Shuster and Daniel Simig and Punit Singh Koura and Anjali Sridhar and Tianlu Wang and Luke Zettlemoyer},
  year = {2022},
  eprint = {2205.01068},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.01068v4}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up