arXiv:2410.05021cs.LGcs.CL2024-10ICLR被引 5

提出DEPT框架,让多语种预训练更高效省力

DEPT: Decoupled Embeddings for Pre-training Language Models

  • 将词嵌入与Transformer分离训练,避免词汇不一致干扰
  • 通信开销降低数量级,嵌入内存减少4-5倍
  • 适合大规模跨语言模型联邦训练,尤其资源受限场景

语言模型预训练依赖广泛的数据混合以提升跨领域和多语言性能,但异构文本数据带来巨大训练成本。由于词汇、语法和语义差异显著,常引发负向干扰或‘多语言诅咒’。为此我们提出通信高效的预训练框架DEPT:将词嵌入与Transformer主体解耦,可在无需共享词汇表的情况下同时训练多个数据源。DEPT可实现:(1) 在高度异构数据下稳健有效训练;(2) 仅保留各数据源所需词嵌入参数,通信成本随参数减少和通信频率成比例下降;(3) 提升Transformer主体的适应性与泛化能力,平均困惑度最高降低20%,下游任务表现更优;(4) 支持为每个数据源定制优化词汇表。我们首次实现了千亿级模型的无词汇表联邦预训练,通信成本降为数量级,嵌入内存减少4-5倍。

原文摘要 · Abstract (English)

Language Model pre-training uses broad data mixtures to enhance performance across domains and languages. However, training on such heterogeneous text corpora requires extensive and expensive efforts. Since these data sources vary significantly in lexical, syntactic, and semantic aspects, they cause negative interference or the ``curse of multilinguality''. To address these challenges we propose a communication-efficient pre-training framework, DEPT. Our method decouples embeddings from the transformer body while simultaneously training the latter on multiple data sources without requiring a shared vocabulary. DEPT can: (1) train robustly and effectively under significant data heterogeneity, (2) minimize token embedding parameters to only what the data source vocabulary requires, while cutting communication costs in direct proportion to both the communication frequency and the reduction in parameters, (3) enhance transformer body plasticity and generalization, improving both average perplexity (up to 20%) and downstream task performance, and (4) enable training with custom optimized vocabularies per data source. We demonstrate DEPT's potential via the first vocabulary-agnostic federated pre-training of billion-scale models, reducing communication costs by orders of magnitude and embedding memory by 4-5x.

预训练多语言联邦学习嵌入解耦

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。