Papers · arXiv 2303.08774
GPT-4 Technical Report
Summary in three lines
- 🎯 Frontier language models faced reliability, alignment, and predictability hurdles when scaling to massive compute budgets.
- 🔧 Pre-trained a Transformer to predict tokens over text and image inputs, tuned via RLHF and zero-shot Rule-Based Reward Models (RBRMs), with predictable scaling laws.
- 📈 Achieved top 10% on a simulated Uniform Bar Exam (298/400) and 86.4% on 5-shot MMLU, while cutting disallowed responses by 82% compared to GPT-3.5.
Abstract
We report the development of GPT-4, a large-scale, multimodal model which can accept image and text inputs and produce text outputs. While less capable than humans in many real-world scenarios, GPT-4 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 results in improved performance on measures of factuality and adherence to desired behavior. A core component 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.
Reading guide
Problem and motivation
Large language models (LLMs) showed promise across natural language processing, but prior iterations (such as GPT-3.5) exhibited notable weaknesses in complex reasoning, reliability, factual precision, and safety. Furthermore, training very large frontier models requires enormous computational budgets, where standard hyperparameter tuning on the final scale is infeasible. The goal of GPT-4 is to build a large-scale, multimodal model capable of processing arbitrary mixtures of image and text inputs while maintaining predictable scaling behavior and drastically improved safety and alignment.
Key ideas
- Predictable Scaling: Optimization pipelines and architectures can be stabilized such that final test loss and downstream coding benchmarks (like HumanEval pass rates) are reliably extrapolated from smaller models trained using to less compute.
- Multimodal Understanding: GPT-4 accepts arbitrarily interlaced images and text, performing complex reasoning across charts, diagrams, exam questions, and visual humor without degrading pure language benchmarks.
- Pre-training Dominance with Targeted Post-training: Base model pre-training provides core reasoning and exam knowledge (with base and RLHF multiple-choice averages essentially equal at 73.7% vs. 74.0%), while RLHF and rule-based checks steer safety, formatting, and factuality.
- Rule-Based Reward Models (RBRMs): Alignment relies on model-assisted safety classifiers providing targeted auxiliary rewards during RLHF to steer appropriate refusals of disallowed prompts and reduce over-hedging on safe prompts.
Method (with the key equations)
GPT-4 is a Transformer-based autoregressive model pre-trained to predict the next token on publicly available web data and licensed data, followed by Reinforcement Learning from Human Feedback (RLHF).
1. Scaling Law Extrapolation
To ensure infrastructure predictability without empirical tuning on the primary run, final loss on internal code tokens was predicted using an irreducible loss formulation: where denotes normalized compute, and are fitted parameters from runs using up to less compute.
For downstream capability scaling on HumanEval, the mean log pass rate across problem subsets was modeled via: allowing pre-training registration of functional coding performance.
2. Model-Assisted Safety Pipeline
Alongside human feedback, the RLHF optimization incorporates Rule-Based Reward Models (RBRMs). An RBRM is a zero-shot GPT-4 classifier that accepts:
- The user prompt (optional),
- The policy model completion,
- A human-authored rubric (a multi-class rubric classifying responses into categories such as desired refusal, evasive/rambling refusal, safe answer, or disallowed content).
Optimal RBRM weights provide an automated reward signal to train the policy model to refuse harmful requests (e.g., CBRN threats, cyberattacks) while reliably serving benign requests in adjacent sensitive topics.
Results (with the most important numbers)
- Professional & Academic Exams: GPT-4 scored 298/400 (
90th percentile) on the Uniform Bar Examination (compared to 213/400, ~10th percentile for GPT-3.5). On the LSAT, it achieved 163 (88th percentile), and it obtained a 5 on AP Biology, AP Calculus BC (4), AP Chemistry (4), and AP Art History (5). - Academic NLP Benchmarks: GPT-4 set new state-of-the-art marks on 5-shot MMLU (86.4% vs. 70.0% for GPT-3.5), 10-shot HellaSwag (95.3%), 25-shot ARC Challenge (96.3%), and 0-shot HumanEval (67.0%). On 5-shot chain-of-thought GSM-8K, it achieved 92.0%.
- Multilingual Capability: Translated versions of MMLU across 26 languages showed GPT-4 outperforming the English-language baseline of GPT-3.5 and PaLM in 24 languages, including low-resource languages like Latvian (85.5%), Welsh (71.4%), and Swahili (82.6%).
- Safety & Factuality: GPT-4 scored 19 percentage points higher than the latest GPT-3.5 on internal factuality evaluations. Disallowed response rates fell by 82%, sensitive request adherence improved by 29%, and toxicity generation on RealToxicityPrompts dropped from 6.48% (GPT-3.5) to 0.73%.
Limitations and open questions
- Hallucinations & Calibration: Despite reductions in factual errors, GPT-4 still hallucinates facts and makes basic reasoning slip-ups. While the base pre-trained model exhibits near-perfect calibration, RLHF post-training significantly damages calibration, making the aligned model confidently incorrect.
- Temporal Knowledge Cutoff: The vast majority of pre-training data cut off in September 2021; the model does not continuously update its world state or learn from ongoing deployment interactions.
- Inverse Scaling & Jailbreaks: Certain counter-intuitive patterns reverse only at scale (e.g., Hindsight Neglect), but vulnerabilities to adversarial prompting, system message manipulation, and multi-step jailbreaks persist.
- Lack of Architectural Transparency: Due to competitive and safety concerns, architectural specifications (parameter count, MoE design, dataset sizes, hardware, and exact compute) are not disclosed.
Key terms
- Multimodal Model
- A model capable of ingesting arbitrary combinations of text and image inputs to generate natural language completions.
- Predictable Scaling
- The methodology of using small-scale training runs (up to 10,000x less compute) to precisely fit power laws and project final loss and task capabilities prior to full-scale training.
- Rule-Based Reward Models (RBRMs)
- Zero-shot GPT-4 classifiers guided by human-written rubrics that output auxiliary reward signals during RLHF to reinforce safe refusals and safe completions.
- Uniform Bar Exam (UBE)
- A standardized legal qualification examination on which GPT-4 scored 298/400, reaching roughly the 90th percentile of human test-takers.
- MMLU
- Massive Multitask Language Understanding, a 57-subject benchmark spanning STEM, humanities, and social sciences used to assess multi-domain question answering.
- Calibration
- The degree to which a model's predicted probability or confidence matches the true empirical frequency of being correct; high in pre-trained GPT-4 but degraded by RLHF.
- HumanEval
- A benchmark evaluating Python code generation from docstrings, on which GPT-4 achieved a 67.0% 0-shot pass rate.
- Inverse Scaling
- A phenomenon where model performance worsens as compute and parameters increase, which GPT-4 reversed on tasks such as Hindsight Neglect.
Questions
What architecture, parameter count, or hardware details are revealed for GPT-4?
None. The report explicitly omits model size, architecture, dataset composition, hardware, and total training compute due to the competitive landscape and safety implications.
How does RLHF influence GPT-4's core academic exam performance?
RLHF has minimal impact on core exam knowledge: base GPT-4 scored an average of 73.7% on multiple-choice exam questions compared to 74.0% for the RLHF model, indicating capability stems primarily from pre-training.
How was data contamination evaluated for academic exams?
The authors searched for 50-character substrings from the exams within the tokenized pre-training data; removing contaminated questions resulted in negligible performance differences across nearly all evaluations.
How does post-training affect model calibration?
Pre-trained GPT-4 is well-calibrated (confidence matches accuracy), but RLHF post-training significantly hurts calibration, causing the aligned model to express overconfidence when wrong.
The overview on this page was written by AI from the paper and may contain mistakes. Read the paper for the details.