PaLM (Pathways Language Model) is a language model that scales a decoder-only Transformer to 540 billion parameters and trains it on 780 billion tokens. It was published in 2022 by Chowdhery et al. of Google in the paper "PaLM: Scaling Language Modeling with Pathways." Pathways in the name refers to Google's new training system that brings many TPUs together to train a single model.
The architecture combines changes that make training faster and more stable and make inference cheaper, such as SwiGLU, parallel layers, multi-query attention, and RoPE. It used 6,144 TPU v4 chips, and its training efficiency (the ratio of actual to theoretical peak compute throughput) was 46.2%, higher than previous large language models.
As a result, PaLM 540B achieved the following in the few-shot setting (where only a few task examples are written into the input).
- It outperformed the previous best results of large language models on 28 of 29 widely used English tasks.
- Combined with chain-of-thought prompting (a method that has the model write out its intermediate reasoning before the answer), it solved 58% of grade-school math word problems (GSM8K), surpassing the fine-tuned state of the art at the time (55%).
- On BIG-bench, a collection of more than 150 difficult tasks, it outperformed the average score of people who solved the same tasks. On about 25% of the tasks, performance jumped discontinuously when scaling from 62 billion to 540 billion parameters.
It is the model that showed the few-shot ability demonstrated by GPT-3 keeps improving with further scale.

