Standard pretrained language models operate on sequences of subword tokens without direct access to the characters that compose each token's string representation. We probe the embedding layer of pretrained language models and show that models learn the internal character composition of whole word and subword tokens to a surprising extent, without ever seeing the characters coupled with the tokens. Our results show that the embedding layer of RoBERTa holds enough information to accurately spell up to a third of the vocabulary and reach high average character ngram overlap on all token types. We further test whether enriching subword models with additional character information can improve language modeling, and observe that this method has a near-identical learning curve as training without spelling-based enrichment. Overall, our results suggest that language modeling objectives incentivize the model to implicitly learn some notion of spelling, and that explicitly teaching the model how to spell does not appear to enhance its performance on such tasks.
Improving Pre-trained Language Models with Syntactic Dependency Prediction Task for Chinese Semantic Error Recognition
Harbin Institute of Technology(哈尔滨工业大学);iFLYTEK Research(讯飞研究院)
现有的中文文本错误检测主要集中在拼写和简单的语法错误。这些错误已被广泛研究,对人类来说相对简单。相反,汉语的语义错误研究不足,而且更加复杂,人类不容易识别。本文的任务是汉语语义错误识别(CSER),一个二元分类任务,以确定一个句子是否包含语义错误。目前的研究还没有有效的方法来解决这个问题。本文继承了BERT的模型结构,设计了多个与句法相关的预训练任务,使模型能够学习句法知识。我们的预训练任务考虑依赖结构的方向性和依赖关系的多样性。由于目前尚缺乏针对CSER的公开数据集,本文首次建立了一个高质量的CSER数据集--汉语语义可接受性语料库(Corpus of Chinese Linguistic Semantic Acceptability,CoCLSA)。在CoCLSA上的实验结果表明,我们的方法优于通用的预训练模型和语法注入模型。
Attention based Bidirectional GRU hybrid model for inappropriate content detection in Urdu language
School of Electrical Engineering and Computer Science (SEECS), National University of Sciences and Technology (NUST)(国家科学技术大学电气与计算机科学学院);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)