PaLM:通过 Pathways 扩展语言建模

PaLM: Scaling Language Modeling with Pathways

阿坎莎·乔杜里 Aakanksha Chowdhery · Google · 2022-04-05 · arXiv:2204.02311 ↗ · 被引 8125

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

大型语言模型通过少样本学习在多种自然语言任务上表现出色,大幅减少了适应特定应用所需的训练样本。为了进一步理解规模对少样本学习的影响,我们训练了一个 5400 亿参数、密集激活的 Transformer 语言模型,称为 Pathways 语言模型(PaLM)。我们使用 Pathways(一种新的 ML 系统,能够在多个 TPU Pod 间实现高效训练)在 6144 个 TPU v4 芯片上训练了 PaLM。我们通过在上百个语言理解和生成基准测试中取得最先进的少样本学习结果,展示了持续扩展的好处。在许多任务中,PaLM 540B 取得了突破性表现,在一系列多步推理任务上超越了微调的最先进模型,并在最近发布的 BIG-bench 基准测试中超越了人类平均水平。大量 BIG-bench 任务显示出模型规模带来的不连续改进,即随着我们扩展到最大模型,性能急剧提升。PaLM 在多语言任务和源代码生成方面也具有强大能力,我们在广泛的基准测试中展示了这一点。此外,我们提供了关于偏见和毒性的全面分析,并研究了训练数据记忆与模型规模的关系。最后,我们讨论了与大型语言模型相关的伦理考量,并探讨了潜在的缓解策略。

Large language models have been shown to achieve remarkable performance across a variety of natural language tasks using few-shot learning, which drastically reduces the number of task-specific training examples needed to adapt the model to a particular application. To further our understanding of the impact of scale on few-shot learning, we trained a 540-billion parameter, densely activated, Transformer language model, which we call Pathways Language Model PaLM. We trained PaLM on 6144 TPU v4 chips using Pathways, a new ML system which enables highly efficient training across multiple TPU Pods. We demonstrate continued benefits of scaling by achieving state-of-the-art few-shot learning results on hundreds of language understanding and generation benchmarks. On a number of these tasks, PaLM 540B achieves breakthrough performance, outperforming the finetuned state-of-the-art on a suite of multi-step reasoning tasks, and outperforming average human performance on the recently released BIG-bench benchmark. A significant number of BIG-bench tasks showed discontinuous improvements from model scale, meaning that performance steeply increased as we scaled to our largest model. PaLM also has strong capabilities in multilingual tasks and source code generation, which we demonstrate on a wide array of benchmarks. We additionally provide a comprehensive analysis on bias and toxicity, and study the extent of training data memorization with respect to model scale. Finally, we discuss the ethical considerations related to large language models and discuss potential mitigation strategies.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 30)

阅读逐段中英对照全文 →