Skip to main content
QUICK REVIEW

[论文解读] CroissantLLM: A Truly Bilingual French-English Language Model

Manuel Faysse, Patrick Fernandes|arXiv (Cornell University)|Feb 1, 2024
Topic ModelingComputer Science被引用 8
一句话总结

CroissantLLM 是一个 1.3B 的法英双语语言模型,采用 1:1 的英法数据比训练,发布时附带开放数据集、检查点,以及聚焦法语的基准测试(FrenchBench),并对透明度的评估(81%)。

ABSTRACT

We introduce CroissantLLM, a 1.3B language model pretrained on a set of 3T English and French tokens, to bring to the research and industrial community a high-performance, fully open-sourced bilingual model that runs swiftly on consumer-grade local hardware. To that end, we pioneer the approach of training an intrinsically bilingual model with a 1:1 English-to-French pretraining data ratio, a custom tokenizer, and bilingual finetuning datasets. We release the training dataset, notably containing a French split with manually curated, high-quality, and varied data sources. To assess performance outside of English, we craft a novel benchmark, FrenchBench, consisting of an array of classification and generation tasks, covering various orthogonal aspects of model performance in the French Language. Additionally, rooted in transparency and to foster further Large Language Model research, we release codebases, and dozens of checkpoints across various model sizes, training data distributions, and training steps, as well as fine-tuned Chat models, and strong translation models. We evaluate our model through the FMTI framework, and validate 81 % of the transparency criteria, far beyond the scores of even most open initiatives. This work enriches the NLP landscape, breaking away from previous English-centric work in order to strengthen our understanding of multilinguality in language models.

研究动机与目标

  • 通过构建真正的双语模型,使用平衡的英法数据来解决 LLMs 中的英语中心偏见。
  • 开发高质量的开放式双语分词器和训练管线,以实现高效的设备端推理。
  • 发布全面的资源(数据集、代码、检查点),促进双语 LLM 的研究与产业应用。
  • 引入 FrenchBench,用以评估法语语言理解和生成能力。
  • 使用 Foundation Model Transparency Index 评估模型透明度,并促进可重复性。

提出的方法

  • 训练一个基于解码器的变换器(Llama 系列),采用旋转位置编码和 2048 上下文长度。
  • 使用一个自定义的 32000-token SentencePiece 分词器,基于英语、法语和代码数据,以提升双语多样性。
  • 构建一个平衡的多语言语料库,采用 1:1 的英法数据比,并将法语、代码和英语数据上采样至 1.1T 个唯一标记,以实现 3T 标记跑次。
  • 在 Nvidia A100 硬件上使用 Megatron-Deepspeed 进行预训练,采用 17 天的训练计划(约 99,648 个 GPU 小时)并以因果语言模型目标。
  • 创建并发布作为新颖的法语评估套件的 FrenchBench,并发布评估代码和数据集以实现可重复性。

实验结果

研究问题

  • RQ1真正的双语训练设置(1:1 英法数据)如何影响跨语言表现和偏见?
  • RQ21.3B 双语模型是否能够在保持对法语能力的竞争力和较低英语偏见的同时,保持对设备端推理的高效?
  • RQ3定制双语分词和数据整理对多语模型性能的影响是什么?
  • RQ4与英语为中心或多语言基线相比,CroissantLLM 在新提出的 FrenchBench 上的表现如何?

主要发现

  • 作者对 CroissantLLM 验证了 Foundation Model Transparency Index 条件的 81%,表明透明度很高。
  • 1:1 英法数据比结合双语分词器可以实现高效编码并实现平衡的双语表现。
  • 最大模型的 token-to-parameter 比为 3000:1,突出强调面向推理的训练策略,有利于设备端效率。
  • 最终训练混合包含约 1.1T 来自多样法语和英语来源的唯一标记,以及大量并行数据(4亿句对,约 360亿标记)。
  • CroissantLLM 旨在在消费级硬件上高效运行,具备边缘推理目标和节能的训练考量。
  • FrenchBench 提供一个专门的法语评估套件,用于衡量事实知识、生成能力和超越英语基准的语言理解。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。