---
title: "PaLM (Pathways Language Model) — 路径语言模型"
source: "https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B"
wiki: "systems-analysis.info/int"
article: "PaLM_(Pathways_Language_Model)_—_路径语言模型"
language: "zh"
categories:
  - "Category:Chinese"
  - "Category:Google"
  - "Category:Large language models"
  - "Category:LLM families"
  - "Category:Machine learning"
revision_id: 5388
wiki_created_at: 2026-09-06T23:48:35Z
wiki_modified_at: 2026-09-06T23:48:35Z
downloaded_at: 2026-09-07T23:08:12Z
---

# PaLM (Pathways Language Model) — 路径语言模型

**PaLM**（**P**athways **L**anguage **M**odel，路径语言模型）是一个由谷歌公司开发的大型语言模型（LLM）家族。该模型的首个版本于2022年4月发布，拥有**5400亿参数**，在当时是全球规模最大的语言模型之一，通过大规模扩展展现了突破性的能力<sup>[\[1\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-chowdhery2022-1)</sup>。

PaLM的关键技术基础是**Pathways**——谷歌推出的新一代机器学习系统架构，它能够高效地协调数千个加速器芯片上的分布式计算<sup>[\[2\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-google-blog-pathways-intro-2)</sup>。PaLM是该系统的首次大规模应用展示，在巨大的规模下实现了前所未有的训练效率。

## Pathways系统：规模化的基础

**Pathways**概念由谷歌于2021年提出，旨在创建一个能够有效泛化不同领域知识并同时执行数千个任务的单一神经网络。PaLM成为该系统的首次大规模应用：其训练过程并行分布在**6144**个专用**TPU v4**处理器上，这些处理器组成了两个云端集群（TPU v4 Pods）<sup>[\[1\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-chowdhery2022-1)</sup>。

在当时，这是有史以来用于训练单个模型的最大TPU配置。该系统实现了创纪录的硬件利用效率（**57.8% FLOPs**），从而在规模上远超以往的项目，并成功训练出一个拥有超过五千亿参数的模型<sup>[\[3\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-google-blog-palm-scaling-3)</sup>。

## 架构与训练数据

### 模型架构

PaLM是一种密集的（非稀疏）语言模型，采用**“仅解码器”（decoder-only）**架构，类似于GPT系列模型。这种架构专注于下一个词元（token）的预测任务，非常适合文本生成。与标准的Transformer架构不同，PaLM采用了一些关键修改以提升效率<sup>[\[1\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-chowdhery2022-1)</sup>：

- **并行层**：注意力机制和全连接层并行计算，使训练速度提升了约15%。
- **SwiGLU激活函数**：使用SwiGLU激活函数替代标准的ReLU，显著提升了模型质量。

### 训练数据

PaLM的训练使用了一个包含**7800亿个词元**的高质量语料库。该数据集是多语言且多样化的，包括<sup>[\[1\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-chowdhery2022-1)</sup>：

- 高质量的网页文档和书籍。
- 维基百科文章。
- 社交媒体对话（占语料库的50%）。
- 来自GitHub的源代码（占语料库的5%）。

约78%的数据为英语，其余22%为多语言数据集。为了进行词元化，模型采用了一种特殊的“无损”方法，保留了所有空格（对代码至关重要），并将无法识别的Unicode字符分解为字节。

## 能力与成果

### 涌现能力与少样本学习（few-shot learning）

PaLM证明，模型规模、数据量和计算能力的增加可以催生**涌现（emergent）**能力（即意外出现的能力）。在许多任务上，模型的性能仅在达到最大规模时才出现急剧的非线性增长，这表明模型获得了以往未曾观察到的新能力<sup>[\[3\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-google-blog-palm-scaling-3)</sup>。

该模型在**少样本学习（few-shot learning）**模式（即不进行微调，仅在提示词中提供少量示例）下进行了评估，并在29个流行的自然语言处理基准测试中的28个上超越了之前的大型模型（如GPT-3和LaMDA）。在综合性任务集**BIG-bench**上，PaLM成为首个性能超越人类测试者平均水平的模型<sup>[\[1\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-chowdhery2022-1)</sup>。

### 思维链推理（Chain-of-Thought）

PaLM最显著的成就之一是，在使用**“思维链”（chain-of-thought prompting）**提示技术时，展现出多步逻辑推理的能力<sup>[\[1\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-chowdhery2022-1)</sup>。该方法旨在为模型提供将任务解决方案分步拆解的示例。通过学习这些示例，PaLM能够生成自己的“思维链”来解决新的复杂问题，例如：

- **数学问题**：在**GSM8K**测试（小学水平的数学应用题）中，PaLM解决了58%的问题，超越了之前由经过微调的模型创下的最佳纪录。
- **常识性问题**：模型能够为非常规问题生成详细解释，例如解释以前从未见过的笑话。

这种能力使模型的“思考”过程更加透明，也更接近人类的思维方式。

### 代码生成与多语言能力

尽管源代码仅占训练数据的5%，但PaLM在代码生成和转换任务上表现出的水平可与专门的模型OpenAI Codex相媲美。该模型还在包括翻译在内的多语言任务中展示了强大的能力<sup>[\[3\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-google-blog-palm-scaling-3)</sup>。

## 演进与后续模型：PaLM家族

PaLM成为谷歌开发的整个模型家族的基础。

### PaLM 2 - PaLM 2

于2023年5月发布的**PaLM 2**是其效率更高、多语言能力更强的后续版本。其重点不再是追求参数数量，而是转向提升训练数据质量和架构效率。PaLM 2在**超过100种语言**的文本上进行训练，在逻辑、编程和翻译方面表现出更强的能力<sup>[\[4\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-google-blog-palm2-4)</sup>。该模型提供四种尺寸（从最小到最大）：**Gecko**、**Otter**、**Bison**和**Unicorn**。其中最紧凑的版本（Gecko）足够轻量，可以在移动设备上离线运行。

### 专业化版本

基于PaLM和PaLM 2，谷歌为特定领域创建了多个版本：

- **Med-PaLM 2**：专为医疗领域设计的模型。它成为首个在美国医师执照考试（USMLE）问题上达到专家水平的人工智能系统<sup>[\[4\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-google-blog-palm2-4)</sup>。
- **Sec-PaLM 2**：专注于网络安全的模型，经过训练可用于识别漏洞和分析恶意代码<sup>[\[5\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-google-cloud-sec-ai-5)</sup>。

### PaLM-E：多模态版本

**PaLM-E**（Pathways Language Model Embodied）是一种多模态模型，它将PaLM语言模型与来自视觉转换器（Vision Transformer, ViT）的视觉数据相结合。这使得模型能够同时处理文本和图像，解决与物理世界相关的任务，例如控制机器人<sup>[\[6\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-palm-e-blog-6)</sup>。

## 伦理考量与局限性

PaLM的创建者强调，在开发大型语言模型时必须采取负责任的态度。官方发布的科研论文对模型生成文本中可能存在的**偏见与毒性**进行了分析。为确保透明度，谷歌为PaLM发布了**模型卡片（Model Card）**和**数据表（Datasheet）**，其中记录了数据集的特征、测试结果以及已发现的局限性<sup>[\[1\]](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_note-chowdhery2022-1)</sup>。这些措施符合负责任AI的现代实践，旨在降低由偏见和生成有害内容所带来的风险。

## 外部链接

- <a href="https://research.google/blog/pathways-language-model-palm-scaling-to-540-billion-parameters-for-breakthrough-performance/" class="external text" rel="nofollow">谷歌关于PaLM的官方博客</a>
- <a href="https://ai.google.dev/palm_docs" class="external text" rel="nofollow">面向开发者的PaLM API</a>

## 参考文献

- Chowdhery, A. et al. (2022). *PaLM: Scaling Language Modeling with Pathways*. <a href="https://arxiv.org/abs/2204.02311" class="external text" rel="nofollow">arXiv:2204.02311</a>.
- Anil, R. et al. (2023). *PaLM 2 Technical Report*. <a href="https://arxiv.org/abs/2305.10403" class="external text" rel="nofollow">arXiv:2305.10403</a>.
- Driess, D. et al. (2023). *PaLM-E: An Embodied Multimodal Language Model*. <a href="https://arxiv.org/abs/2303.03378" class="external text" rel="nofollow">arXiv:2303.03378</a>.
- Singhal, K. et al. (2022). *Large Language Models Encode Clinical Knowledge*. <a href="https://arxiv.org/abs/2212.13138" class="external text" rel="nofollow">arXiv:2212.13138</a>.
- Singhal, K. et al. (2023). *Towards Expert-Level Medical Question Answering with Large Language Models*. <a href="https://arxiv.org/abs/2305.09617" class="external text" rel="nofollow">arXiv:2305.09617</a>.
- Barham, P. et al. (2022). *Pathways: Asynchronous Distributed Dataflow for ML*. <a href="https://arxiv.org/abs/2203.12533" class="external text" rel="nofollow">arXiv:2203.12533</a>.
- Wei, J. et al. (2022). *Chain-of-Thought Prompting Elicits Reasoning in Large Language Models*. <a href="https://arxiv.org/abs/2201.11903" class="external text" rel="nofollow">arXiv:2201.11903</a>.
- Zhang, Z. et al. (2022). *Automatic Chain of Thought Prompting in Large Language Models*. <a href="https://arxiv.org/abs/2210.03493" class="external text" rel="nofollow">arXiv:2210.03493</a>.
- Wei, J. et al. (2022). *Emergent Abilities of Large Language Models*. <a href="https://arxiv.org/abs/2206.07682" class="external text" rel="nofollow">arXiv:2206.07682</a>.
- Schaeffer, R. et al. (2023). *Are Emergent Abilities of Large Language Models a Mirage?*. <a href="https://arxiv.org/abs/2304.15004" class="external text" rel="nofollow">arXiv:2304.15004</a>.
- Lu, S. et al. (2023). *Are Emergent Abilities in Large Language Models just In-Context Learning?*. <a href="https://arxiv.org/abs/2309.01809" class="external text" rel="nofollow">arXiv:2309.01809</a>.
- Kaplan, J. et al. (2020). *Scaling Laws for Neural Language Models*. <a href="https://arxiv.org/abs/2001.08361" class="external text" rel="nofollow">arXiv:2001.08361</a>.
- Hoffmann, J. et al. (2022). *Training Compute-Optimal Large Language Models*. <a href="https://arxiv.org/abs/2203.15556" class="external text" rel="nofollow">arXiv:2203.15556</a>.
- Rae, J. W. et al. (2021). *Scaling Language Models: Methods, Analysis & Insights from Training Gopher*. <a href="https://arxiv.org/abs/2112.11446" class="external text" rel="nofollow">arXiv:2112.11446</a>.
- Diao, S. et al. (2023). *Active Prompting with Chain-of-Thought for Large Language Models*. <a href="https://arxiv.org/abs/2302.12246" class="external text" rel="nofollow">arXiv:2302.12246</a>.

## 注释

1.  <span id="cite_note-chowdhery2022-1">↑ <sup>[1.0](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-chowdhery2022_1-0)</sup> <sup>[1.1](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-chowdhery2022_1-1)</sup> <sup>[1.2](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-chowdhery2022_1-2)</sup> <sup>[1.3](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-chowdhery2022_1-3)</sup> <sup>[1.4](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-chowdhery2022_1-4)</sup> <sup>[1.5](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-chowdhery2022_1-5)</sup> <sup>[1.6](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-chowdhery2022_1-6)</sup> Chowdhery, Aakanksha; Narang, Sharan; Devlin, Jacob; et al. «PaLM: Scaling Language Modeling with Pathways». *arXiv*. <a href="https://arxiv.org/abs/2204.02311" class="external autonumber" rel="nofollow">[1]</a></span>
2.  <span id="cite_note-google-blog-pathways-intro-2">[↑](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-google-blog-pathways-intro_2-0) «Introducing Pathways: A next-generation AI architecture». *Google AI Blog*. <a href="https://blog.google/technology/ai/introducing-pathways-next-generation-ai-architecture/" class="external autonumber" rel="nofollow">[2]</a></span>
3.  <span id="cite_note-google-blog-palm-scaling-3">↑ <sup>[3.0](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-google-blog-palm-scaling_3-0)</sup> <sup>[3.1](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-google-blog-palm-scaling_3-1)</sup> <sup>[3.2](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-google-blog-palm-scaling_3-2)</sup> «Pathways Language Model (PaLM): Scaling to 540 Billion Parameters for Breakthrough Performance». *Google Research Blog*. <a href="https://research.google/blog/pathways-language-model-palm-scaling-to-540-billion-parameters-for-breakthrough-performance/" class="external autonumber" rel="nofollow">[3]</a></span>
4.  <span id="cite_note-google-blog-palm2-4">↑ <sup>[4.0](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-google-blog-palm2_4-0)</sup> <sup>[4.1](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-google-blog-palm2_4-1)</sup> «Google AI: What to know about the PaLM 2 large language model». *Google AI Blog*. <a href="https://blog.google/technology/ai/google-palm-2-ai-large-language-model/" class="external autonumber" rel="nofollow">[4]</a></span>
5.  <span id="cite_note-google-cloud-sec-ai-5">[↑](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-google-cloud-sec-ai_5-0) «New AI capabilities that can help address your security challenges». *Google Cloud Blog*. <a href="https://cloud.google.com/blog/products/identity-security/security-ai-next23" class="external autonumber" rel="nofollow">[5]</a></span>
6.  <span id="cite_note-palm-e-blog-6">[↑](https://systems-analysis.info/int/PaLM_(Pathways_Language_Model)_%E2%80%94_%E8%B7%AF%E5%BE%84%E8%AF%AD%E8%A8%80%E6%A8%A1%E5%9E%8B#cite_ref-palm-e-blog_6-0) «PaLM-E: An embodied multimodal language model». *Google Research Blog*. <a href="https://research.google/blog/palm-e-an-embodied-multimodal-language-model/" class="external autonumber" rel="nofollow">[6]</a></span>
