Open the WaytoAGI knowledge base on Feishu · 100M+ visits, open to everyone →
WaytoAGI

Knowledge Base · Learning paths

GPT-4 Technical Report: Key Findings and Analysis

OpenAI has released the official GPT-4 technical report detailing its new large-scale multimodal model that accepts both image and text inputs. The model achieves human-level performance on numerous professional and academic benchmarks, including scoring in the top 10% on a simulated bar exam, while the report also addresses its predictable scaling behavior, performance forecasting methods, safety challenges, and remaining limitations such as hallucinations and context window constraints.

GPT-4GPT-4 technical reportOpenAI GPT-4multimodal modelGPT-4 benchmarks

Translated from Chinese by AI. Spotted an issue? Use the feedback button.

English Translation:

Original Link: https://cdn.openai.com/papers/gpt-4.pdf

Translation: DeepL, Edited by: JusTao

Abstract

We report the development of GPT-4, a large-scale multimodal model that can accept image and text inputs and produce text outputs. While GPT-4’s capabilities are less than those of humans in many real-world scenarios, it exhibits human-level performance on various professional and academic benchmarks, including passing a simulated bar exam with a score around the top 10% of test takers. GPT-4 is a Transformer-based model pre-trained to predict the next token in a document. The post-training alignment process improves performance on measures of factuality and adherence to desired behavior. A key part of this project was developing infrastructure and optimization methods that behave predictably across a wide range of scales. This allowed us to accurately predict some aspects of GPT-4’s performance based on models trained with no more than 1/1,000th the compute of GPT-4.

1 Introduction

This technical report presents GPT-4, a large multimodal model capable of processing image and text inputs and producing text outputs. Such models represent an important research direction because of their potential to be used in a wide range of applications, including dialogue systems, text summarization, and machine translation. As a result, they have been the focus of substantial attention and progress in recent years [1-34].

One of the main goals in developing such models is to improve their ability to understand and generate natural language text, especially in more complex and nuanced scenarios. To test its capabilities in these scenarios, GPT-4 was evaluated on a variety of exams originally designed for humans. In these evaluations, it performed remarkably well, often surpassing the scores of the vast majority of human test takers. For example, on a simulated bar exam, GPT-4 scored in the top 10% of all test takers. This stands in sharp contrast to GPT-3.5, which scored in the bottom 10%.

On a suite of traditional NLP benchmarks, GPT-4 outperforms previous large language models and most state-of-the-art systems (which are typically fine-tuned with task-specific training or heavy hand-engineering). On the MMLU benchmark [35, 36]—a set of English multiple-choice questions covering 57 subjects—GPT-4 not only substantially outperforms existing models in English but also demonstrates strong performance in other languages. On the translated variants of MMLU, GPT-4 surpasses the English-state-of-the-art in 24 out of 26 languages. We discuss the results of these capability evaluations, along with improvements in model safety, in later sections.

This report also discusses a key challenge of the project: developing deep learning infrastructure and optimization methods that behave predictably across a wide range of scales. This enabled us to make accurate predictions about GPT-4’s expected performance (based on small-scale runs trained in a similar fashion), which were then tested against the final run to increase confidence in our training approach.

Despite its capabilities, GPT-4 shares similar limitations with earlier GPT models [1, 37, 38]: it is not fully reliable (e.g., it can suffer from “hallucinations”), has a limited context window, and does not learn from experience. GPT-4’s outputs should be used with caution, especially in contexts where reliability is critical.

The capabilities and limitations of GPT-4 present significant and novel safety challenges. Given its potential societal impact, we believe that careful study of these challenges is an important area of research. This report includes an extensive System Card (following the appendix) that describes some of the risks we foresee around bias, disinformation, over-reliance, privacy, cybersecurity, proliferation, and more. It also details the interventions we have implemented to mitigate the potential harms of deploying GPT-4, including adversarial testing with domain experts and a safety pipeline powered by an auxiliary model.

2 Scope and Limitations of This Technical Report

This report focuses on the capabilities, limitations, and safety properties of GPT-4. GPT-4 is a Transformer-style model [39] pre-trained to predict the next token in a document, using both publicly available data (such as internet data) and data licensed from third-party providers. The model was then fine-tuned using Reinforcement Learning from Human Feedback (RLHF) [40]. Due to the competitive landscape and safety implications of large-scale models like GPT-4, this report does not contain details about the model architecture (including model size), hardware, training compute, dataset construction, training methods, or similar information.

We are committed to independent auditing of our technical work and have shared some initial steps and ideas in the System Card. We plan to provide more technical details to additional third parties who can advise us on how to balance the competitive and safety considerations mentioned above with the scientific value of further transparency.

In addition to the accompanying System Card, OpenAI will soon release further thoughts on the societal and economic implications of AI systems, including the need for effective regulation.

3 Predictable Scaling

A major focus of the GPT-4 project was building a deep learning stack that scales predictably. The primary reason is that for a training run of GPT-4’s scale, it is infeasible to perform a large number of model-specific tuning experiments. To address this, we developed infrastructure and optimization methods that exhibit highly predictable behavior across multiple scales. These improvements allowed us to reliably predict certain aspects of GPT-4’s performance using smaller models trained with 1,000–10,000× less compute.

3.1 Loss Prediction

The final loss of a correctly trained large language model is known to be well-approximated by a power law in the amount of compute used to train the model [41, 42, 2, 14, 15].

To validate the scaling properties of our optimization infrastructure, we predicted GPT-4’s final loss on our internal codebase (not part of the training set) by fitting a scaling law with an irreducible loss term (following Henighan et al. [15]):

$$L(C) = aC^b + c$$

This prediction was made using models trained with the same methodology but using up to 10,000× less compute than GPT-4. The forecast was produced shortly after the run began, without using any partial results from the GPT-4 training run itself. The fitted scaling law predicted GPT-4’s final loss with high accuracy (Figure 1).

Figure 1. Performance of GPT-4 and smaller models. The metric is final loss on a dataset derived from our internal codebase. This is a convenient, large set of code tokens that is not contained in the training set. We chose to look at loss because it tends to be less noisy than other metrics across varying amounts of training compute. The dashed line shows a power-law fit to the smaller models (excluding GPT-4); this fit accurately predicts GPT-4’s final loss. The x-axis is normalized training compute, so GPT-4 is 1.

3.2 HumanEval Capability Scaling

Having a sense of a model’s capabilities before training can improve decision-making around tuning, safety, and deployment. In addition to predicting final loss, we developed methods to predict more interpretable capability metrics. One such metric is pass rate on the HumanEval dataset [43], which measures the ability to synthesize Python functions of varying complexity. We successfully predicted pass rates on a subset of the HumanEval dataset by extrapolating from models trained with up to 1,000× less compute (Figure 2).

Figure 2. Performance of GPT-4 and smaller models. The metric is average log pass rate on a subset of the HumanEval dataset. The dashed line shows a power-law fit to the smaller models (excluding GPT-4); this fit accurately predicts GPT-4’s performance. The x-axis is normalized training compute, so GPT-4 is 1.

For individual problems in HumanEval, performance can occasionally degrade as scale increases. Despite these challenges, we found an approximate power-law relationship

$$−E_P[\log(\text{pass_rate}(C))] = \alpha \cdot C^{−k}$$

where $k$ and $\alpha$ are positive constants, and $P$ is a subset of problems in the dataset. We assume this relationship holds for all problems in the dataset. In practice, very low pass rates are difficult or impossible to estimate, so we restrict to problems $P$ and models $M$ such that, given a sufficiently large sample budget, each problem is solved at least once by each model.

We registered our predictions for GPT-4’s performance on HumanEval before training was complete, using only information available prior to training. All but the 15 hardest HumanEval problems were grouped into six difficulty buckets based on the performance of smaller models. Figure 2 shows results for the third-easiest bucket, demonstrating that our predictions for this subset of HumanEval problems were highly accurate—we could accurately estimate $\log(\text{pass_rate})$ for several small models. Predictions for the other five buckets performed almost as well, with the main exception being that GPT-4 underperformed our predictions on the easiest bucket.

Some capabilities remain difficult to predict. For example, the Inverse Scaling Prize [44] proposed several tasks where model performance decreases with scale. Consistent with recent results from Wei et al. [45], we found that GPT-4 reverses this trend, as shown in Figure 3 on one such task called Hindsight Neglect [46].

Figure 3. Performance of GPT-4 and smaller models on the Hindsight Neglect task. Accuracy is shown on the y-axis (higher is better). Ada, Babbage, and Curie refer to models available via the OpenAI API [47].

We believe that the ability to accurately predict future capabilities is important for safety. Looking ahead, we plan to refine these methods and register performance predictions for a wide range of capabilities before large model training begins. We hope this becomes a shared goal across the field.

4 Capabilities

We evaluated GPT-4 across a wide range of different benchmarks, including simulated versions of exams originally designed for humans. A small number of the exam questions were seen by the model during training; for every exam, we ran a variant with those questions removed and report the lower of the two scores. We believe these results are representative. For further details on these mixtures (methodology and per-exam statistics), see Appendix C.

The exams were sourced from publicly available materials. Exam questions consist of both multiple-choice and free-response formats. We designed separate prompts for each format and included images where required as input. The evaluation setting was calibrated using a validation set of questions for each exam, and the final reported results are based on held-out test exams. Overall scores were calculated by combining the multiple-choice and free-response scores using the publicly available scoring methodology for each exam. We estimated and report the percentile corresponding to each overall score. For further details on the exam evaluation methodology, see Appendix A.

For the AMC 10 and AMC 12 2022 exams, human percentiles have not yet been published, so the reported figures are inferred and may carry significant uncertainty. See Appendix A.5.

For these exams we use the post-RLHF trained model.

Table 1. GPT-4 performance on academic and professional exams. In each case, we simulate the conditions and scoring of a real exam. We report the final score assigned to GPT-4 according to the exam’s specific scoring criteria, along with the percentile of test-takers who achieved the same score as GPT-4.

Figure 4. GPT-4 performance on academic and professional exams. In each case, we simulate the conditions and scoring of a real exam. Exams are sorted from low to high based on GPT-3.5’s performance. GPT-4 significantly outperforms GPT-3.5 on the majority of these exams. For conservatism, we report the lower end of the estimated percentile range. This creates some visual artifacts on AP exams, whose score bands are particularly wide. For example, although GPT-4 achieved a perfect score (5/5) on the AP Biology exam, only the 85th percentile is shown in the figure because 15% of test-takers also achieved the maximum score.

GPT-4 exhibits human-level performance on the majority of these professional and academic exams. Notably, it passed a simulated version of the Uniform Bar Examination with a score that would rank among the top test-takers (Table 1, Figure 4).

The model’s strong performance on these exams appears to stem primarily from the pretraining process, with RLHF having minimal impact. On multiple-choice questions, the base GPT-4 model and the RLHF model perform on average equally well across the exams we tested (see Appendix B).

We also evaluated the pretrained base GPT-4 model on traditional benchmarks designed for assessing language models. For every benchmark reported, we performed contamination checks on test data that appeared in the training set (see Appendix D for full details on benchmark contamination). When evaluating GPT-4, we used few-shot prompting [1] across all benchmarks.

GPT-4’s performance substantially exceeds that of existing language models as well as previously state-of-the-art (SOTA) systems, which often relied on benchmark-specific fine-tuning or additional training protocols (Table 2).

In our contamination analysis, we discovered that a portion of BIG-bench [48] was unintentionally included in the training set, so we excluded it from the reported results.

For GSM-8K, we included a portion of the training set in GPT-4’s pretraining mixture (see Appendix E for details). We used chain-of-thought prompting [11] during evaluation.

Table 2. GPT-4 performance on academic benchmarks. We compare GPT-4 against the best benchmark-specific SOTA systems and the best few-shot language model SOTA. GPT-4 outperforms existing LMs on all benchmarks and surpasses benchmark-specific SOTA systems on all datasets except DROP. For each task we report GPT-4’s performance along with the few-shot method used for evaluation. For GSM-8K, a portion of the training set was included in GPT-4’s pretraining mixture (see Appendix E); we used chain-of-thought prompting [11] during evaluation. For multiple-choice questions, we present all answer choices (A, B, C, D) to the model and ask it to output only the letter of the correct answer, mirroring how humans typically solve such problems.

Many existing ML benchmarks are written in English. To gain an initial understanding of GPT-4’s capabilities in other languages, we used Azure Translate to translate the MMLU benchmark [35, 36]—a set of multiple-choice questions covering 57 subjects—into various languages (see Appendix F for translation and prompt examples). We found that GPT-4 outperforms both GPT-3.5 and existing language models (Chinchilla [2] and PaLM [3]) in most of the languages we tested, including low-resource languages such as Latvian, Welsh, and Swahili (Figure 5).

Figure 5. GPT-4 performance across languages compared to prior models’ English performance on MMLU. GPT-4 outperforms existing language models [2, 3] in the vast majority of the languages tested, including low-resource languages such as Latvian, Welsh, and Swahili.

GPT-4 shows significant improvements over previous models in its ability to follow user intent [63]. On a dataset of 5,214 prompts submitted to ChatGPT [64] and the OpenAI API [47], GPT-4’s responses were preferred over GPT-3.5’s responses in 70.2% of the cases.

We collected user prompts sent to us through ChatGPT and the OpenAI API, sampled one response from each model, and sent these prompts and responses to human labelers. The labelers were asked to judge whether the response was what the user would have wanted given the prompt. Labelers were not told which response came from which model, and the order of the responses was randomized. We filtered out prompts containing any kind of disallowed or sensitive content, including personally identifiable information (PII), sexual content, hate speech, and similar material. We also filtered out short prompts (e.g. “Hello, ChatGPT!”) and overly common prompts.

We are open-sourcing OpenAI Evals, our framework for creating and running benchmarks used to evaluate models like GPT-4, along with a sample of individual performance evaluations. Evals is compatible with existing benchmarks and can be used to track model performance in deployment. We plan to increase the diversity of these benchmarks over time to represent a wider range of failure modes and more challenging task sets.

github.com/openai/evals…

4.1 Visual Input

GPT-4 accepts prompts consisting of both images and text, in parallel with the pure text setting. This allows users to specify any vision or language task. Specifically, the model generates text outputs based on inputs composed of arbitrarily interleaved text and images. Across a wide range of domains—including documents with text and photographs, diagrams, or screenshots—GPT-4 exhibits capabilities similar to those with pure text inputs. Table 3 shows an example of GPT-4’s visual input capability. Standard test-time techniques developed for language models (such as few-shot prompting, chain-of-thought, etc.) also remain effective when using images and text—see Appendix G for examples.

Preliminary results on a limited set of academic vision benchmarks can be found in the GPT-4 blog post [65]. We plan to release more information about GPT-4’s visual capabilities in follow-up work.

Table 3. Example prompt demonstrating GPT-4’s visual input capability. The prompt includes an image with multiple panels, and GPT-4 is able to answer the question about it.

5 Limitations

Despite these capabilities, GPT-4 shares similar limitations with earlier GPT models. Most importantly, it is still not fully reliable (it “hallucinates” facts and makes reasoning errors). The outputs of language models should be used with great caution, especially in high-stakes contexts, and the exact protocols (such as human review, grounding with additional context, or completely avoiding high-risk uses) should match the specific needs of the application. See our System Card for more details.

Compared to previous GPT-3.5 models, GPT-4 has significantly reduced hallucinations (and these continue to improve with each iteration). In our internal adversarial factuality evaluations, GPT-4 scored 19 percentage points higher than our latest GPT-3.5 model (Figure 6).

Figure 6. GPT-4 performance on nine internal adversarial factuality evaluations. Accuracy is shown on the Y-axis; higher is better. An accuracy of 1.0 means the model’s answers were judged to match the ideal human answers for all questions in the evaluation. We compare GPT-4 with three earlier versions of ChatGPT based on GPT-3.5[64]. GPT-4 improves upon the latest GPT-3.5 model by 19 percentage points and shows clear gains across all topics.

GPT-4 also shows progress on public benchmarks such as TruthfulQA[66], which measures a model’s ability to distinguish facts from a set of adversarially chosen incorrect statements (Figure 7). These questions are paired with statistically attractive but factually incorrect answers. The base GPT-4 model only slightly outperforms GPT-3.5 on this task; however, after RLHF post-training, we observe a substantial improvement over GPT-3.5. GPT-4 resists choosing common sayings (“you can’t teach an old dog new tricks”), yet it can still miss subtle details (Elvis Presley was not the son of an actor, so Perkins is the correct answer).

Table 4: Examples of correct and incorrect answers given by GPT-4 on TruthfulQA

Figure 7. GPT-4 performance on TruthfulQA. Accuracy is shown on the Y-axis; higher is better. We compare GPT-4’s performance under zero-shot, few-shot, and RLHF fine-tuning. GPT-4 significantly outperforms both GPT-3.5 and Anthropic-LM from Bai et al.[67].

GPT-4 generally lacks knowledge of events that occurred after its pretraining data cutoff in September 2021 and does not learn from its own experience. It sometimes makes simple reasoning errors that seem inconsistent with its capabilities across many domains, or is overly gullible in accepting obviously false statements from the user. Like humans, it can fail on difficult problems, such as introducing security vulnerabilities in the code it generates.

GPT-4 can also make confident mistakes in its predictions and may fail to double-check its work when it is likely to be wrong. Interestingly, the pretrained model is highly calibrated (its predicted confidence on an answer generally matches the probability that the answer is correct). However, calibration decreases after post-training (Figure 8).

Figure 8. Left: Calibration plot of the pretrained GPT-4 model on a subset of the MMLU dataset. The X-axis shows bins based on the model’s confidence (logprob) for each A/B/C/D option; the Y-axis shows accuracy within each bin. The dashed diagonal line represents perfect calibration. Right: Calibration plot of the post-trained GPT-4 model on the same MMLU subset. Post-training has a significant impact on calibration.

GPT-4 exhibits various biases in its outputs. We have worked to correct these biases, but fully characterizing and managing them will take time. Our goal is for GPT-4 and the systems we build with it to have reasonable default behaviors that reflect a broad range of user values, to allow these systems to be customized within a wide range of contexts, and to obtain public input on those ranges. See OpenAI [68] for more details.

We have not checked whether the data used in RLHF training was contaminated with TruthfulQA.

The pretraining and post-training data contain a small amount of more recent data.

6 Risks and Mitigation

We have invested significant effort into improving the safety and consistency of GPT-4. Here, we highlight our use of domain experts for adversarial testing and red teaming, our auxiliary model safety pipeline [69], and improvements over the safety metrics of previous models.

Adversarial Testing by Domain Experts: GPT-4 carries risks similar to those of smaller language models, such as generating harmful advice, flawed code, or inaccurate information. However, GPT-4’s additional capabilities introduce new risk surfaces. To better understand the extent of these risks, we engaged more than 50 experts from domains including long-term AI alignment risks, cybersecurity, biological risks, and international security to conduct adversarial testing on the model. Their findings particularly enabled us to test the model’s behavior in high-risk areas that require specialized domain expertise to evaluate, as well as to assess risks associated with highly advanced AI systems, such as power-seeking behavior [70]. The recommendations and training data gathered from these experts informed our mitigations and improvements to the model. For example, we collected additional data to strengthen GPT-4’s ability to refuse requests on how to synthesize hazardous chemicals (Table 5).

Table 5: Red teaming examples: sample prompts and completions across different models.

Auxiliary Model Safety Pipeline: As with previous GPT models, we use reinforcement learning from human feedback (RLHF) [40, 63] to fine-tune the model’s behavior to produce responses that better align with user intent. However, even after RLHF, our models remain vulnerable to unsafe inputs and can sometimes exhibit undesired behaviors on both safe and unsafe inputs. These undesired behaviors often arise when the instructions given to labelers during the data collection phase of the RLHF reward model are insufficient. When given unsafe inputs, the model may generate unwanted content, such as providing advice on criminal activity. Additionally, the model may become overly cautious on safe inputs, refusing harmless requests or hedging excessively. To steer our model toward appropriate behavior at a more granular level, we rely heavily on the model itself as a tool. Our safety approach consists of two main components: an additional set of safety-related RLHF training prompts, and rule-based reward models (RBRMs).

Our rule-based reward models (RBRMs) are a set of zero-shot GPT-4 classifiers. These classifiers provide additional reward signals to the GPT-4 policy model during RLHF fine-tuning, targeting desirable behaviors such as refusing to generate harmful content or not refusing harmless requests. An RBRM takes three inputs: a prompt (optional), the policy model’s output, and a set of human-written rubrics that specify how the output should be evaluated (e.g., a set of multiple-choice rules). The RBRM then classifies the output according to the rubric. For example, we can provide a rubric that instructs the model to classify a response as: (a) a refusal in the desired style, (b) a refusal in an undesired style (e.g., evasive or rambling), (c) containing disallowed content, or (d) a safe non-refusal response. On a set of safety-related training prompts that request harmful content (such as illegal advice), we can then reward the GPT-4 model for refusing those requests. Conversely, we can reward GPT-4 for not refusing requests on a subset of guaranteed safe and answerable prompts. This technique is related to the work of Glaese et al. [71] and Perez et al. [72]. Combined with other improvements—such as calculating optimal RBRM weights and supplying additional supervised fine-tuning (SFT) data targeted at areas we want to improve—this approach allows us to steer the model much closer to the desired behavior.

Improvements on Safety Metrics: Our mitigations have substantially improved GPT-4’s performance across many safety dimensions. Compared to GPT-3.5, we reduced the model’s tendency to respond to requests for disallowed content by 82% (Table 6), while increasing the frequency with which GPT-4’s responses to sensitive queries (such as medical advice and self-harm, Table 7) comply with our policies by 29% (Figure 9). On the RealToxicityPrompts dataset [73], GPT-4 produced only 0.73% toxic outputs, compared to 6.48% for GPT-3.5.

Table 6: Examples of improved refusal on disallowed categories: prompts and outputs.

Table 7: Examples of reduced refusal on allowed categories: prompts and outputs. Note that outputs may vary; the model will not necessarily produce the exact completions shown above.

Figure 9. Rate of incorrect behavior on sensitive and disallowed prompts. Lower is better. GPT-4 with RLHF exhibits significantly lower rates of incorrect behavior compared to prior models.

Overall, our model-level interventions have increased the difficulty of eliciting undesired behaviors, but doing so remains possible. For example, “jailbreaks” (such as adversarial system messages; see Figure 10 in the system card for more details) can still be used to generate content that violates our usage guidelines. As long as these limitations exist, they must be supplemented with deployment-time safety techniques such as abuse monitoring and rapid iteration pipelines for model improvements.

GPT-4 and its successor models have the potential to greatly influence society in both beneficial and harmful ways. We are collaborating with external researchers to improve our understanding and assessment of potential impacts, and to develop evaluations for dangerous capabilities that may emerge in future systems. We will soon publish recommendations on steps society can take to prepare for AI’s effects, along with preliminary thoughts on predicting AI’s possible economic impacts.

7 Summary

We describe GPT-4, a large multimodal model that exhibits human-level performance on certain difficult professional and academic benchmarks. GPT-4 outperforms existing large language models on a wide range of NLP tasks and surpasses the vast majority of reported state-of-the-art systems (which typically include task-specific fine-tuning). We find that while the improved capabilities are generally measured in English, they can also be demonstrated across many different languages. We highlight how predictable scaling allowed us to make accurate predictions about GPT-4’s loss and capabilities.

Due to its increased capabilities, GPT-4 introduces new risks, and we discuss some of the methods and results we used to understand and improve its safety and alignment. Although much work remains to be done, GPT-4 represents a significant step toward the broad deployment of useful and safe artificial intelligence systems.

Authorship, Credit Attribution, and Acknowledgments

Please cite this work as “OpenAI (2023)”.

All author names are listed in alphabetical order.

We also extend our gratitude and acknowledgment to every member of the OpenAI team not explicitly mentioned above, including the outstanding staff in administrative assistance, finance, go-to-market, human resources, legal, operations, and recruiting. From everyone who helped hire for the company, to those who ensured we had an amazing office space, to those who built the administrative, HR, legal, and financial structures that allowed us to do our best work — every person at OpenAI contributed to GPT-4.

We thank Microsoft for their partnership, in particular the Microsoft Azure team for their support in designing and managing the infrastructure used to train the model, as well as the Microsoft Bing team and Microsoft safety teams for their collaboration on safe deployment.

We thank our expert adversarial testers and red teamers who helped test the model at early stages of development and provided valuable input to our risk assessment and system card. Participation in this red teaming process does not constitute endorsement of OpenAI’s deployment plans or policies: Steven Basart, Sophie Duba, Cèsar Ferri, Heather Frase, Gavin Hartnett, Jake J. Hecla, Dan Hendrycks, Jose Hernandez-Orallo, Alice Hunsberger, Rajiv W. Jain, Boru Gollo Jattani, Lauren Kahn, Dan Kaszeta, Sara Kingsley, Noam Kolt, Nathan Labenz, Eric Liddick, Andrew J. Lohn, Andrew MacPherson, Sam Manning, Mantas Mazeika, Anna Mills, Yael Moros, Jimin Mun, Aviv Ovadya, Roya Pakzad, Yifan Peng, Ciel Qi, Alex Rosenblatt, Paul Röttger, Maarten Sap, Wout Schellaert, George Shih, Muhammad Shoker, Melanie Subbiah, Bryan West, Andrew D. White, Anna Katariina Wisakanto, Akhila Yerukola, Lexin Zhou, Xuhui Zhou.

We thank our collaborators at Casetext and Stanford CodeX for their help with the simulated bar exam: P. Arredondo (Casetext/Stanford CodeX), D. Katz (Stanford CodeX), M. Bommarito (Stanford CodeX), S. Gao (Casetext).

In this work, GPT-4 was used to assist with wording, formatting, and style.

References

[1] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D. Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in Neural Information Processing Systems, 33:1877–1901, 2020.

[2] Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022.

[3] Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. PaLM: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022.

[4] Jack W. Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, Francis Song, John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, et al. Scaling language models: Methods, analysis & insights from training Gopher. arXiv preprint arXiv:2112.11446, 2021.

[8] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683, 2019.

[9] Noam Shazeer and Mitchell Stern. Adafactor: Adaptive learning rates with sublinear memory cost. arXiv preprint arXiv:1804.04235, 2018.

[10] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.

[11] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models. NeurIPS, 2022.

[12] Jiaxin Huang, Shixiang Shane Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei Han. Large language models can self-improve. arXiv preprint arXiv:2210.11610, 2022.

[13] Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. arXiv preprint arXiv:2205.11916, 2022.

[14] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.

[15] Tom Henighan, Jared Kaplan, Mor Katz, Mark Chen, Christopher Hesse, Jacob Jackson, Heewoo Jun, Tom B. Brown, Prafulla Dhariwal, Scott Gray, et al. Scaling laws for autoregressive generative modeling. arXiv preprint arXiv:2010.14701, 2020.

[16] Greg Yang, Edward J. Hu, Igor Babuschkin, Szymon Sidor, Xiaodong Liu, David Farhi, Nick Ryder, Jakub Pachocki, Weizhu Chen, and Jianfeng Gao. Tensor Programs V: Tuning large neural networks via zero-shot hyperparameter transfer. arXiv preprint arXiv:2203.03466, 2022.

[17] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated Mixture-of-Experts layer. arXiv preprint arXiv:1701.06538, 2017.

[18] Barret Zoph, Irwan Bello, Sameer Kumar, Nan Du, Yanping Huang, Jeff Dean, Noam Shazeer, and William Fedus. ST-MoE: Designing stable and transferable sparse expert models. arXiv preprint arXiv:2202.08906, 2022.

[19] Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. Emergent abilities of large language models. TMLR, 2022.

[20] Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In International Conference on Learning Representations, 2019. URL openreview.net/forum?id=Hy….

[21] Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, and Yunfeng Liu. RoFormer: Enhanced transformer with rotary position embedding. arXiv preprint arXiv:2104.09864, 2021.

[22] Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, et al. Flamingo: a visual language model for few-shot learning. In Advances in Neural Information Processing Systems.

[23] Xi Chen, Xiao Wang, Soravit Changpinyo, AJ Piergiovanni, Piotr Padlewski, Daniel Salz, Sebastian Goodman, Adam Grycner, Basil Mustafa, Lucas Beyer, et al. PaLI: A jointly-scaled multilingual language-image model. arXiv preprint arXiv:2209.06794, 2022.

[24] Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 billion parameter autoregressive language model, 2021.

[25] Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. GPT-Neo: Large scale autoregressive language modeling with mesh-tensorflow. If you use this software, please cite it using these metadata, 58, 2021.

[26] Teven Le Scao, Angela Fan, Christopher Akiki, Ellie Pavlick, Suzana Ilić, Daniel Hesslow, Roman Castagné, Alexandra Sasha Luccioni, François Yvon, Matthias Gallé, et al. BLOOM: A 176B-parameter open-access multilingual language model. arXiv preprint arXiv:2211.05100, 2022.

[27] Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. OPT: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022.

[28] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. LLaMA: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.

[29] Alec Radford, Rafal Józefowicz, and Ilya Sutskever. Learning to generate reviews and discovering sentiment. arXiv preprint arXiv:1704.01444, 2017.

[30] Guillaume Lample and Alexis Conneau. Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291, 2019.

[31] Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. Flashattention: Fast and memory-efficient exact attention with io-awareness. arXiv preprint arXiv:2205.14135, 2022.

[32] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019.

[33] Markus N. Rabe and Charles Staats. Self-attention does not need o(n2) memory. arXiv preprint arXiv:2112.05682, 2021.

[34] Scott Gray, Alec Radford, and Diederik P. Kingma. Gpu kernels for block-sparse weights, 2017. URL cdn.openai.com/blocksparse….

[35] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. Proceedings of the International Conference on Learning Representations (ICLR), 2021.

[36] Dan Hendrycks, Collin Burns, Steven Basart, Andrew Critch, Jerry Li, Dawn Song, and Jacob Steinhardt. Aligning AI with shared human values. Proceedings of the International Conference on Learning Representations (ICLR), 2021.

[37] Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. 2019.

[38] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018.

[39] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. NeurIPS, 2017.

[40] Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. Advances in Neural Information Processing Systems, 30, 2017.

[41] Joel Hestness, Sharan Narang, Newsha Ardalani, Gregory Diamos, Heewoo Jun, Hassan Kianinejad, Md Patwary, Mostofa Ali, Yang Yang, and Yanqi Zhou. Deep learning scaling is predictable, empirically. arXiv preprint arXiv:1712.00409, 2017.

[42] Neil C. Thompson, Kristjan Greenewald, Keeheon Lee, and Gabriel F. Manso. The computational limits of deep learning. arXiv preprint arXiv:2007.05558, 2020.

[43] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. 2021.

[44] Ian McKenzie, Alexander Lyzhov, Alicia Parrish, Ameya Prabhu, Aaron Mueller, Najoung Kim, Sam Bowman, and Ethan Perez. The Inverse Scaling Prize, 2022. URL github.com/inverse-scaling/prize.

[45] Jason Wei, Najoung Kim, Yi Tay, and Quoc V. Le. Inverse scaling can become U-shaped. arXiv preprint arXiv:2211.02011, 2022.

[46] Ian McKenzie, Alexander Lyzhov, Alicia Parrish, Ameya Prabhu, Aaron Mueller, Najoung Kim, Sam Bowman, and Ethan Perez. Inverse Scaling Prize: First round winners, 2022. URL irmckenzie.co.uk/round1.

[47] Greg Brockman, Peter Welinder, Mira Murati, and OpenAI. OpenAI: OpenAI API, 2020. URL openai.com/blog/openai-api.

[48] Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R. Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615, 2022.

[49] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300, 2020.

[50] Yi Tay, Jason Wei, Hyung Won Chung, Vinh Q Tran, David R So, Siamak Shakeri, Xavier Garcia, Huaixiu Steven Zheng, Jinfeng Rao, Aakanksha Chowdhery, et al. Transcending scaling laws with 0.1% extra compute. arXiv preprint arXiv:2210.11399, 2022.

[51] Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. Scaling instruction-finetuned language models. arXiv preprint arXiv:2210.11416, 2022.

[52] Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4791–4800, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1472. URL aclanthology.org/P19-1472.

[53] Xiaodong Liu, Hao Cheng, Pengcheng He, Weizhu Chen, Yu Wang, Hoifung Poon, and Jianfeng Gao. Adversarial training for large neural language models. arXiv preprint arXiv:2004.08994, 2020.

[54] Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? Try ARC, the AI2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018.

[55] Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171, 2022.

[56] Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. WinoGrande: An adversarial Winograd schema challenge at scale. arXiv preprint arXiv:1907.10641, 2019.

[57] Bei Chen, Fengji Zhang, Anh Nguyen, Daoguang Zan, Zeqi Lin, Jian-Guang Lou, and Weizhu Chen. CodeT: Code generation with generated tests. arXiv preprint arXiv:2207.10397, 2022.

[58] Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. DROP: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2368–2378, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1246. URL aclanthology.org/N19-1246.

[59] Kunlong Chen, Weidi Xu, Xingyi Cheng, Zou Xiaochuan, Yuyu Zhang, Le Song, Taifeng Wang, Yuan Qi, and Wei Chu. Question directed graph attention network for numerical reasoning over text. arXiv preprint arXiv:2009.07448, 2020.

[60] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.

[61] Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. Solving quantitative reasoning problems with language models. arXiv preprint arXiv:2206.14858, 2022.

[62] Jonathan Uesato, Nate Kushman, Ramana Kumar, Francis Song, Noah Siegel, Lisa Wang, Antonia Creswell, Geoffrey Irving, and Irina Higgins. Solving math word problems with process- and outcome-based feedback. arXiv preprint arXiv:2211.14275, 2022.

[63] Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. arXiv preprint arXiv:2203.02155, 2022.

[64] OpenAI. OpenAI: Introducing ChatGPT, 2022. URL openai.com/blog/chatgpt.

[65] OpenAI. OpenAI: GPT-4, 2023. URL openai.com/research/gpt-4.

[66] Stephanie Lin, Jacob Hilton, and Owain Evans. TruthfulQA: Measuring how models mimic human falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3214–3252, Dublin, Ireland, May 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.acl-long.229. URL aclanthology.org/2022.acl-long.229.

[67] Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022.

[68] OpenAI. OpenAI: How should AI systems behave, and who should decide?, 2023. URL openai.com/blog/how-sh….

[69] Jan Leike, John Schulman, and Jeffrey Wu. OpenAI: Our approach to alignment research, 2022. URL openai.com/blog/our-ap….

[70] Joseph Carlsmith. Is power-seeking AI an existential risk? ArXiv, abs/2206.13353, 2022.

[71] Amelia Glaese, Nat McAleese, Maja Trebacz, John Aslanides, Vlad Firoiu, Timo Ewalds, Maribeth Rauh, Laura Weidinger, Martin Chadwick, Phoebe Thacker, Lucy Campbell-Gillingham, Jonathan Uesato, Po-Sen Huang, Ramona Comanescu, Fan Yang, Abigail See, Sumanth Dathathri, Rory Greig, Charlie Chen, Doug Fritz, Jaume Sanchez Elias, Richard Green, Soňa Mokrá, Nicholas Fernando, Boxi Wu, Rachel Foley, Susannah Young, Iason Gabriel, William Isaac, John Mellor, Demis Hassabis, Koray Kavukcuoglu, Lisa Anne Hendricks, and Geoffrey Irving. Improving alignment of dialogue agents via targeted human judgements. arXiv preprint arXiv:2209.14375, 2022.

[72] Ethan Perez, Saffron Huang, H. Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, and Geoffrey Irving. Red teaming language models with language models. arXiv preprint arXiv:2202.03286, 2022.

[73] Samuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi, and Noah A Smith. RealToxicityPrompts: Evaluating neural toxic degeneration in language models. arXiv preprint arXiv:2009.11462, 2020.

[74] Dora Seigel. How do you calculate SAT score? Raw and scaled, January 2020. URL https://blog.prepscholar.com/how-to-calculate-sat-score.

[75] The Albert blog. URL https://www.albert.io/blog/.

[76] Mathematical Association of America. AMC statistics, 2023. URL https://amc-reg.maa.org/Reports/GeneralReports.aspx.

[77] Halle Edwards. SAT percentiles and score rankings, 2022. URL https://blog.prepscholar.com/sat-percentiles-and-score-rankings.

[78] College Board. Understanding SAT scores, 2022. URL https://satsuite.collegeboard.org/media/pdf/understanding-sat-scores.pdf.

[79] College Board. AP score distributions by subject, 2022. URL https://apcentral.collegeboard.org/media/pdf/ap-score-distributions-by-subject-2022.pdf.

[80] Center for Excellence in Education. 2020 USABO Semifinal exam score distribution, 2022. URL https://www.usabo-trc.org/sites/default/files/allfiles/2020%20USABO%20Semifinal%20Exam%20Histogram.pdf.

[81] Chris Swimmer. GRE score percentiles – what does your score mean for you? (2021 update), April 2021. URL https://magoosh.com/gre/gre-score-percentiles/.

[82] John B. Nici. AP Art History: 5 Practice Tests + Comprehensive Review + Online Practice. Barron’s Test Prep. Barron’s Educational Series, 2020. ISBN 9781506260501.

[83] ETS. GRE sample issue task, 2022. URL www.ets.org/pdfs/gre/sample-issue-task.pdf.

[84] Margaret Mitchell, Simone Wu, Andrew Zaldivar, Parker Barnes, Lucy Vasserman, Ben Hutchinson, Elena Spitzer, Inioluwa Deborah Raji, and Timnit Gebru. Model Cards for Model Reporting. In Proceedings of the Conference on Fairness, Accountability, and Transparency, pages 220–229, January 2019. doi: 10.1145/3287560.3287596.

[85] Nekesha Green, Chavez Procope, Adeel Cheema, and Adekunle Adediji. System Cards, a new resource for understanding how AI systems work. ai.facebook.com/blog/system-cards-a-new-resource-for-understanding-how-ai-systems-work, February 2022.