The Falcon Series of Open Language Models

📄 arXiv: 2311.16867v2 📥 PDF

作者: Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Mérouane Debbah, Étienne Goffinet, Daniel Hesslow, Julien Launay, Quentin Malartic, Daniele Mazzotta, Badreddine Noune, Baptiste Pannier, Guilherme Penedo

分类: cs.CL, cs.AI

发布日期: 2023-11-28 (更新: 2023-11-29)


💡 一句话要点

提出Falcon系列开放语言模型以提升语言理解能力

🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 开放语言模型 因果解码器 分布式训练 高质量语料库 自然语言处理 模型评估 云计算基础设施

📋 核心要点

  1. 现有语言模型在处理复杂语言任务时存在性能不足和高成本的问题。
  2. Falcon系列模型通过大规模的高质量数据集和高效的分布式训练方法,提升了语言模型的性能和训练效率。
  3. Falcon-180B模型在多个基准测试中表现优异,超越了多个现有模型,且在成本上具有优势。

📝 摘要(中文)

我们介绍了Falcon系列模型,包括7B、40B和180B参数的因果解码器模型,这些模型在多样化的高质量语料库上进行训练,主要来源于网络数据。最大的模型Falcon-180B在超过3.5万亿个文本标记上进行训练,是迄今为止公开文档中最大的预训练运行。Falcon-180B显著超越了PaLM和Chinchilla等模型,并在与LLaMA 2和Inflection-1等同时开发的模型相比时表现更佳。它在预训练和推理成本降低的情况下,接近PaLM-2-Large的性能,使其成为全球三大语言模型之一。我们详细报告了评估结果,以及用于预训练Falcon的自定义工具和方法,并发布了600B标记的网络数据集提取和Falcon-7/40/180B模型,以促进开放科学和大型语言模型的开放生态系统的发展。

🔬 方法详解

问题定义:当前的语言模型在处理复杂任务时,往往面临性能不足和训练成本高的问题,尤其是在大规模数据集的预训练过程中。

核心思路:Falcon系列模型通过利用多样化的高质量语料库和高效的分布式训练策略,旨在提升模型的语言理解能力和训练效率。

技术框架:整体架构包括数据收集、模型设计、分布式训练和评估四个主要模块。数据收集阶段聚焦于从网络中获取高质量文本,模型设计则采用因果解码器结构,训练阶段利用自定义的分布式训练代码在云基础设施上进行。

关键创新:Falcon系列的主要创新在于其大规模的训练数据和高效的分布式训练方法,使得模型在性能上超越了现有的多个竞争对手。

关键设计:模型的参数设置经过精心调整,损失函数采用标准的交叉熵损失,网络结构则基于Transformer架构,确保了模型在处理语言任务时的高效性和准确性。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

Falcon-180B模型在多个基准测试中表现优异,超越了PaLM和Chinchilla等模型,且在预训练和推理成本上显著降低,接近PaLM-2-Large的性能,成为全球三大语言模型之一。

🎯 应用场景

Falcon系列模型在自然语言处理、对话系统、文本生成等领域具有广泛的应用潜力。其高效的训练和推理能力使其能够在商业和研究中提供更为精准的语言理解和生成服务,推动智能助手、内容创作等应用的发展。

📄 摘要(原文)

We introduce the Falcon series: 7B, 40B, and 180B parameters causal decoder-only models trained on a diverse high-quality corpora predominantly assembled from web data. The largest model, Falcon-180B, has been trained on over 3.5 trillion tokens of text--the largest openly documented pretraining run. Falcon-180B significantly outperforms models such as PaLM or Chinchilla, and improves upon concurrently developed models such as LLaMA 2 or Inflection-1. It nears the performance of PaLM-2-Large at a reduced pretraining and inference cost, making it, to our knowledge, one of the three best language models in the world along with GPT-4 and PaLM-2-Large. We report detailed evaluations, as well as a deep dive into the methods and custom tooling employed to pretrain Falcon. Notably, we report on our custom distributed training codebase, allowing us to efficiently pretrain these models on up to 4,096 A100s on cloud AWS infrastructure with limited interconnect. We release a 600B tokens extract of our web dataset, as well as the Falcon-7/40/180B models under a permissive license to foster open-science and accelerate the development of an open ecosystem of large language models.