arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.03735cs.CLcs.LG
收藏

基于聚类重要性采样的任务自适应预训练语言模型

Task-Adaptive Pretrained Language Models via Clustered-Importance Sampling

Apple(苹果公司)

David Grangier, Simin Fan, Skyler Seto, Pierre Ablin

AI总结:

本文提出CRISP方法,通过聚类通才数据集并按专家数据中的簇频率采样,从大规模通用数据中构建专家语言模型,在多个领域的语言建模困惑度和多选题准确率上均取得提升。

摘要:

专家语言模型(LM)专注于特定任务或领域,在同等规模下通常优于通才语言模型。然而,对于大多数任务而言,预训练这些模型所需的专家数据数量有限。在本工作中,我们改为从大规模通才训练集中构建专家模型。我们提出了一种新方法,称为聚类重要性采样(ClusteRed Importance SamPling,CRISP)。CRISP 对通才数据集进行聚类,并根据这些簇在较小的专家数据集中的出现频率进行采样。该方法具有可扩展性,适用于预训练和持续预训练,并且在多任务设置中表现良好。与其他在有限领域特定数据指导下调整通才数据训练分布的方法相比,CRISP 表现优异。我们的研究结果表明,在不同领域中,该方法在语言建模困惑度和多项选择题任务的准确率方面均有提升。我们还进行了消融研究,考察了数据集规模、聚类配置和模型规模的影响。

英文摘要:

Specialist language models (LMs) focus on a specific task or domain on which they often outperform generalist LMs of the same size. However, the specialist data needed to pretrain these models is only available in limited amount for most tasks. In this work, we build specialist models from large generalist training sets instead. We propose a novel method, ClusteRed Importance SamPling (CRISP). CRISP clusters the generalist dataset and samples from these clusters based on their frequencies in the smaller specialist dataset. It is scalable, suitable for both pretraining and continued pretraining, and works well in multi-task settings. CRISP performs favorably compared to other methods that adjust the training distribution of the generalist data with guidance from the limited domain-specific data. Our findings demonstrate improvements across different domains in terms of language modeling perplexity and accuracy on multiple-choice question tasks. We also present ablation studies that examine the impact of dataset sizes, clustering configurations, and model sizes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑