Abstract
We introduce PaLM 2, a new state-of-the-art language model that has better multilingual and reasoning capabilities and is more compute-efficient than its predecessor PaLM. PaLM 2 is a Transformer-based model trained using a mixture of objectives. Through extensive evaluations on English and multilingual language, and reasoning tasks, we demonstrate that PaLM 2 has significantly improved quality on downstream tasks across different model sizes, while simultaneously exhibiting faster and more efficient inference compared to PaLM. This improved efficiency enables broader deployment while also allowing the model to respond faster, for a more natural pace of interaction. PaLM 2 demonstrates robust reasoning capabilities exemplified by large improvements over PaLM on BIG-Bench and other reasoning tasks. PaLM 2 exhibits stable performance on a suite of responsible AI evaluations, and enables inference-time control over toxicity without additional overhead or impact on other capabilities. Overall, PaLM 2 achieves state-of-the-art performance across a diverse set of tasks and capabilities.
Introduction: Beyond "Bigger is Better"
For several years, the "bigger is better" mantra dominated Large Language Model (LLM) development. The assumption was that simply increasing parameter counts would lead to emergent capabilities. However, this led to models that were prohibitively expensive to run and often heavily biased toward English-centric data.
The PaLM 2 team tackles three main challenges:
- Efficiency: Building a model that outperforms massive predecessors (like the 540B parameter PaLM) while using less compute at inference time.
- Multilingualism: Moving beyond English-dominant corpora to create a model that understands the nuances of hundreds of languages.
- Reasoning: Improving handling of complex logic, mathematics, and coding tasks.
Methodology
PaLM 2 represents a strategic shift toward "smaller and smarter" models. The researchers focused on three key architectural and strategy shifts:
Compute-Optimal Scaling
Following the "Chinchilla" scaling laws, the team found that data size is just as important as model size. They scaled parameters and training data roughly 1:1. This resulted in PaLM 2-L being significantly smaller than the original PaLM 540B, yet more capable because it was trained on much more (and better) data.
Improved Dataset Mixture and Objectives
The training set was intentionally diversified, including a massive increase in non-English web documents, parallel multilingual corpora, scientific papers, and source code. Instead of just predicting the next word (causal LMs), PaLM 2 uses a "mixture of objectives" (similar to the UL2 framework). This trains the model to understand different aspects of language by forcing it to fill in missing spans of text or rewrite sentences in different contexts.
Key Insights
- The Efficiency Paradox: A smaller, higher-quality model can outperform a massive one. This is a win for "green AI," reducing the carbon footprint and latency of deployment.
- Cross-Lingual Transfer: Training on a diverse multilingual mixture actually improves reasoning in English, suggesting that logic is reinforced when expressed across different linguistic structures.
- Toxicity Control via Tokens: PaLM 2 uses special "control tokens" during training to mark the toxicity level of text. At inference time, developers can use these tokens to "dial down" toxic responses without needing a separate, heavy-handed safety filter.
Key Results
PaLM 2 demonstrates significant improvements across reasoning, coding, and language proficiency benchmarks.
Language Proficiency
PaLM 2 passed the highest level (C2) of professional language exams in several languages. In some cases, its proficiency was deemed sufficient to teach the language, showing a marked improvement over the original PaLM.
Reasoning and Coding
On BIG-bench Hard, PaLM 2-L outperformed PaLM by a wide margin and achieved results competitive with (and sometimes exceeding) GPT-4. The coding-specific variant, PaLM 2-S*, outperformed the much larger PaLM-Coder-540B on benchmarks like HumanEval and MBPP.
Limitations and Future Work
Despite these leaps, challenges remain. PaLM 2 can still memorize passages from training data, and while it performs well on bias benchmarks, it still exhibits some representational biases regarding gender and nationality in certain languages. Future work is directed toward further scaling of context lengths and even more meticulous data selection to minimize "hallucinations" while maintaining the model's creative spark.
Summary updated