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

MorphPiece:面向大型语言模型的语言学分词器

MorphPiece : A Linguistic Tokenizer for Large Language Models

Ludwig Maximilian University(路德维希-马克西米利安大学)

Haris Jabbar

AI总结:

提出基于语言学形态切分的MorphPiece分词器,训练GPT风格模型MorphGPT,在多项NLP任务上以约半数训练迭代超越GPT-2。

摘要:

分词是现代自然语言处理流程中的关键组成部分。然而,当代大型语言模型的分词器基于文本语料库的统计分析,很少考虑语言特征。我提出了一种基于语言学动机的分词方案MorphPiece,该方案部分基于底层文本的形态切分。使用该分词器训练的GPT风格因果语言模型(称为MorphGPT)在各种监督和无监督NLP任务上表现出与OpenAI GPT-2模型相当或更优的性能。具体而言,我在语言建模任务、使用各种提示模板的GLUE基准零样本性能、用于监督和无监督性能的大规模文本嵌入基准(MTEB)上评估了MorphGPT,并最后与另一种形态分词方案(FLOTA,Hoffmann等人,2022)进行了比较,发现基于MorphPiece训练的模型在大多数评估中优于GPT-2,有时优势相当显著,尽管其训练迭代次数仅为后者的一半左右。

英文摘要:

Tokenization is a critical part of modern NLP pipelines. However, contemporary tokenizers for Large Language Models are based on statistical analysis of text corpora, without much consideration to the linguistic features. I propose a linguistically motivated tokenization scheme, MorphPiece, which is based partly on morphological segmentation of the underlying text. A GPT-style causal language model trained on this tokenizer (called MorphGPT) shows comparable or superior performance on a variety of supervised and unsupervised NLP tasks, compared to the OpenAI GPT-2 model. Specifically I evaluated MorphGPT on language modeling tasks, zero-shot performance on GLUE Benchmark with various prompt templates, massive text embedding benchmark (MTEB) for supervised and unsupervised performance, and lastly with another morphological tokenization scheme (FLOTA, Hoffmann et al., 2022) and find that the model trained on MorphPiece outperforms GPT-2 on most evaluations, at times with considerable margin, despite being trained for about half the training iterations.

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

↑