TL;DR
The GPT-4 report describes a large model that takes images and text as input and writes text as output. It scores near the top of human test takers on several professional and academic exams, including a simulated bar exam in the top 10 percent. The authors also show that their training stack is predictable: they forecast the final loss and some coding scores from models trained with up to 10,000 times less compute.
Builds on: Transformer, Neural Scaling Laws, Reinforcement Learning from Human Feedback (RLHF) · Leads to: Language Model
Why it mattered
GPT-4 became the reference point for "frontier" chat models in 2023. Its exam results, such as the bar exam score, were reported widely and used to argue that language models could do professional-level reading and writing. The report's scaling method, predicting a large run's loss before it finishes, shows how a team can judge whether a bigger run is worth its cost before paying for it. The report also withholds the model's architecture, size and training data, and says so openly, giving competition and safety as reasons (its Section 2).
The problem
By 2023 language models had become useful, but three questions were hard to answer before a large run started:
- How good will it be? A training run for a model at this scale is expensive. Teams had little way to know, before training finished, whether its performance would be worth the cost.
- How does it compare to people? Standard benchmarks like MMLU measure narrow skills. The report asks how the model does on exams designed for human students and professionals.
- Is it safe and reliable? Earlier GPT models made up facts, had a limited context window, and did not learn from experience. A capable model needed fine-tuning to follow user intent and to refuse harmful requests.
How it works
The report does not describe the architecture in detail. It describes four things the authors did, in the order they matter for the rest of the report.
- Pre-train to predict the next token. The base model is a Transformer trained to predict the next token in a document, using public internet data and licensed data. This is the same objective as an Autoregressive Model. The report gives no size, compute, or data mix.
- Fine-tune with human feedback. The base model is fine-tuned with Reinforcement Learning from Human Feedback (RLHF). Human labelers judge which responses fit what the user wanted, so the model learns to follow instructions and to refuse harmful requests rather than only continue a document.
- Forecast before training finishes. The team fitted a scaling law to smaller runs and predicted GPT-4's final loss on an internal code dataset, and its pass rate on a subset of the HumanEval coding benchmark. The predictions were made before the run finished.
- Evaluate and add safety layers. The model is tested on exam-style and academic benchmarks with the exam's own scoring rules. A set of rule-based reward models, which are zero-shot GPT-4 classifiers, supply an extra reward signal during RLHF that targets correct refusals and correct helpful answers. A separate system card covers the risks in more detail.
flowchart LR A["Pre-train: predict next token"] --> B["Fine-tune with RLHF"] A --> C["Fit scaling law on small runs"] C --> D["Predict final loss and HumanEval pass rate"] B --> E["Exams and benchmarks"] B --> F["Rule-based reward models for safety"]
The math
The loss-prediction step uses one formula. Let C be training compute, normalised so that GPT-4's compute is 1. The report fits a power law with an irreducible term:
Here L(C) is the final loss on the held-out code dataset, a and b are fitted constants, and c is the irreducible loss that more compute cannot remove. The authors fitted a, b and c using models trained with at most 10,000 times less compute than GPT-4, then read off the predicted loss at C = 1.
For HumanEval, the report uses a second power law on the mean log pass rate. For a subset P of problems:
Both alpha and k are positive constants. Taking the negative log converts the pass rate, which lies between 0 and 1, into a number that goes down as compute goes up. The subset P is chosen for the fit, as the report explains, because pass rates near zero are hard to estimate reliably.
Neither formula says what the model is. They say how a measured quantity moves with compute, and that the movement can be extrapolated.
Results
The report's numbers are the paper's own. The following compares GPT-4 with GPT-3.5 on the benchmarks named in its text:
- MMLU (57 subjects, multiple choice): GPT-4 86.4 percent, GPT-3.5 70.0 percent.
- HumanEval (Python function synthesis): GPT-4 67.0 percent, GPT-3.5 48.1 percent.
- GSM-8K (grade-school maths, chain-of-thought prompting): GPT-4 92.0 percent, GPT-3.5 57.1 percent.
- Simulated Uniform Bar Examination: a score in the top 10 percent of test takers. GPT-3.5 scored in the bottom 10 percent.
- Human preference: on 5,214 prompts from ChatGPT and the API, labelers preferred GPT-4's response over GPT-3.5's on 70.2 percent of prompts.
- Multilingual MMLU: GPT-4 beats the English state of the art in 24 of 26 translated languages the authors tested.
Worked reading of one number. The HumanEval gain from GPT-3.5 to GPT-4 is 67.0 minus 48.1, which is 18.9 percentage points, or about 39 percent of the GPT-3.5 score (18.9 divided by 48.1). That relative gain is larger than the MMLU gain, which is 16.4 points, or about 23 percent (16.4 divided by 70.0). Gains on coding were larger in relative terms than gains on general knowledge.
Limits. The report says GPT-4 is not fully reliable and can hallucinate; it has a limited context window and does not learn from experience. Several results on exams might be affected by contamination, where some test questions appeared in training data. The report checks for this and says which results it adjusted. It also notes that some capabilities are hard to predict from smaller models, so the scaling forecast covers only the measures it names.
Reading guide
- Abstract and Section 1. The claims in plain words. Needs Transformer and Language Model.
- Section 2 (Scope and limitations). Why the report withholds architecture and data. No new prerequisites.
- Section 3 (Predictable scaling). The two power-law fits in "The math". Needs Neural Scaling Laws and Cross-Entropy Loss, since the loss is cross-entropy on next tokens.
- Section 4 (Capabilities). Exam results and benchmark tables. Needs Measuring Massive Multitask Language Understanding for the benchmark, and In-Context Learning for the few-shot prompting used in several rows.
- Section 5 and 6 (Limitations and risks). The safety pipeline. Needs Reinforcement Learning from Human Feedback (RLHF).
- Appendices. Exam methods and contamination checks. Read these if you want to judge the exam numbers. Compare with Training Compute-Optimal Large Language Models (Chinchilla), a different report on how compute should be split between model size and data.
Check yourself
QuestionRecall: what does the report say GPT-4's base objective is, and which paper component changes its behaviour after pre-training?Show answer
The base objective is to predict the next token in a document, as a Transformer. Reinforcement learning from human feedback fine-tunes the model afterwards, so that it follows user intent and refuses harmful requests.
QuestionComputation: the report's MMLU scores are 86.4 percent for GPT-4 and 70.0 percent for GPT-3.5. By how many percentage points does GPT-4 lead, and what is the relative gain over GPT-3.5?Show answer
The lead is 86.4 minus 70.0 = 16.4 percentage points. The relative gain is 16.4 divided by 70.0, which is about 0.234, so about 23 percent.
QuestionWhy: why does the report fit its loss law with an irreducible term c instead of a plain power law a times C to the minus b?Show answer
A plain power law with no constant would drive the predicted loss to zero as compute grows. Real models of language have a floor set by the data's inherent unpredictability. The constant c lets the fitted curve level off at that floor, so the extrapolation to GPT-4's compute does not promise an impossible loss.
QuestionApplied: a lab wants to know whether a 10 times larger run is worth its cost. How can the report's method help, and what does it not tell them?Show answer
The lab can train several small runs with the same methods, fit the scaling law, and extrapolate the loss to the larger compute before starting the large run. This gives a predicted loss and some predicted capability scores. It does not tell them whether the model will be safe, whether a new capability will appear that the small runs did not show, or whether a different architecture would do better; the report notes that some capabilities are hard to predict.
Sources
- OpenAI et al. "GPT-4 Technical Report." arXiv:2303.08774 (2023). https://arxiv.org/abs/2303.08774
- https://doi.org/10.48550/arXiv.2303.08774