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

BudgetLongformer:我们能从零开始廉价地预训练一个SotA合法的语言模型吗?

BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?

Thomson Reuters Labs(汤森路透实验室)

Joel Niklaus, Daniele Giofré

摘要:

预训练的Transformer模型在最近的许多任务和基准测试中取得了最先进的结果。然而,许多最先进的语言模型(LM)不能很好地扩展到512个输入标记的阈值以上。然而,在专业领域(如法律、科学或生物医学),模型通常需要处理很长的文本(有时远远超过10000个令牌)。尽管已经提出了许多有效的Transformers(如Longformer,BigBird或FNet),但到目前为止,只有很少的有效模型可用于特定领域。此外,由于预训练过程通常非常昂贵-但随着序列长度的增加甚至更昂贵-它通常只有大型研究实验室才能达到。使预训练更便宜的一种方法是替换令牌检测(RTD)任务,通过在训练期间提供更多的信号,因为可以在所有令牌上计算损失。在这项工作中,我们训练Longformer模型与有效的RTD任务的法律数据,以展示预训练有效的LM是可能的,使用更少的计算。我们在具有挑战性的摘要任务上评估训练好的模型,这些任务要求模型总结长文本,以显示模型在下游任务上可以达到何种程度的良好性能。我们发现,无论是小的和基本的模型优于其基线上的域BillSum和域外PubMed任务在各自的参数范围。我们发布代码和模型用于研究目的。

英文摘要:

Pretrained transformer models have achieved state-of-the-art results in many tasks and benchmarks recently. Many state-of-the-art Language Models (LMs), however, do not scale well above the threshold of 512 input tokens. In specialized domains though (such as legal, scientific or biomedical), models often need to process very long text (sometimes well above 10000 tokens). Even though many efficient transformers have been proposed (such as Longformer, BigBird or FNet), so far, only very few such efficient models are available for specialized domains. Additionally, since the pretraining process is extremely costly in general - but even more so as the sequence length increases - it is often only in reach of large research labs. One way of making pretraining cheaper is the Replaced Token Detection (RTD) task, by providing more signal during training, since the loss can be computed over all tokens. In this work, we train Longformer models with the efficient RTD task on legal data to showcase that pretraining efficient LMs is possible using much less compute. We evaluate the trained models on challenging summarization tasks requiring the model to summarize long texts to show to what extent the models can achieve good performance on downstream tasks. We find that both the small and base models outperform their baselines on the in-domain BillSum and out-of-domain PubMed tasks in their respective parameter range. We publish our code and models for research purposes.

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

↑