arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.12404cs.CL
收藏

用于增强自然语言处理的语义分词器

Semantic Tokenizer for Enhanced Natural Language Processing

Inspird, Inc.(Inspird公司);University of Illinois at Chicago(伊利诺伊大学芝加哥分校)

Sandeep Mehta, Darpan Shah, Ravindra Kulkarni, Cornelia Caragea

AI总结:

本文提出语义驱动的SentencePiece替代分词器,通过词干提取与编码优化扩充词形覆盖,从而改善模型收敛及词、句嵌入,并以BERT-base在两项GLUE任务上超过50倍规模模型。

摘要:

传统上,NLP性能提升一直聚焦于改进模型和增加模型参数数量。NLP词汇表构建仍专注于通过子词正则化最大化可表示的单词数量。我们提出了一种新颖的分词器,利用语义驱动词汇表构建。该分词器包含一个训练器,使用词干提取来增强子词形成。此外还实施了进一步优化和适配,以最小化无法编码的单词数量。编码器经过更新,与训练器集成。该分词器被实现为SentencePiece分词器的直接替代品。新分词器使词汇表中表示的词形数量增加了一倍多。增强后的词汇表显著改善了NLP模型收敛,并提升了单词和句子嵌入的质量。我们的实验结果表明,使用BERT-base在两个GLUE任务上取得了顶级性能,优于规模超过其50倍的模型。

英文摘要:

Traditionally, NLP performance improvement has been focused on improving models and increasing the number of model parameters. NLP vocabulary construction has remained focused on maximizing the number of words represented through subword regularization. We present a novel tokenizer that uses semantics to drive vocabulary construction. The tokenizer includes a trainer that uses stemming to enhance subword formation. Further optimizations and adaptations are implemented to minimize the number of words that cannot be encoded. The encoder is updated to integrate with the trainer. The tokenizer is implemented as a drop-in replacement for the SentencePiece tokenizer. The new tokenizer more than doubles the number of wordforms represented in the vocabulary. The enhanced vocabulary significantly improves NLP model convergence, and improves quality of word and sentence embeddings. Our experimental results show top performance on two Glue tasks using BERT-base, improving on models more than 50X in size.

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

↑