基于体裁与主题特征的选择性掩码实现语言模型对专业领域的适配
Language Model Adaptation to Specialized Domains through Selective Masking based on Genre and Topical Characteristics
AI总结:
本文提出基于体裁与主题信息的词语重要性排序掩码方法,通过法律领域持续预训练在LegalGLUE上验证其有效性,并公开模型与代码。
摘要:
预训练语言建模的最新进展推动了各类自然语言处理(NLP)任务的显著进步。在BERT等架构中,模型训练期间的词语掩码是语言建模的关键组成部分。然而,主流的词语掩码方法依赖随机选择,可能忽略领域特定的语言属性。本文提出一种创新的掩码方法,利用体裁(genre)与主题(topicality)信息使语言模型适配专业领域。该方法引入排序过程,根据词语的重要性进行优先级排序,进而指导掩码过程。在法律领域使用持续预训练进行的实验证明了该方法在英文LegalGLUE基准上的有效性。预训练语言模型与代码均可免费获取使用。
英文摘要:
Recent advances in pre-trained language modeling have facilitated significant progress across various natural language processing (NLP) tasks. Word masking during model training constitutes a pivotal component of language modeling in architectures like BERT. However, the prevalent method of word masking relies on random selection, potentially disregarding domain-specific linguistic attributes. In this article, we introduce an innovative masking approach leveraging genre and topicality information to tailor language models to specialized domains. Our method incorporates a ranking process that prioritizes words based on their significance, subsequently guiding the masking procedure. Experiments conducted using continual pre-training within the legal domain have underscored the efficacy of our approach on the LegalGLUE benchmark in the English language. Pre-trained language models and code are freely available for use.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。