Effects of sub-word segmentation on performance of transformer language models

Jue Hou, Anisia Katinskaia, Anh-Duc Vu, Roman Yangarber
5/9/2023
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Language modeling is a fundamental task in natural language processing, which has been thoroughly explored with various architectures and hyperparameters. However, few studies focus on the effect of sub-word segmentation on the performance of language models (LMs). In this paper, we compare GPT and BERT models trained with the statistical segmentation algorithm BPE vs. two unsupervised algorithms for morphological segmentation -- Morfessor and StateMorph. We train the models for several languages -- including ones with very rich morphology -- and compare their performance with different segmentation algorithms, vocabulary sizes, and model sizes. The results show that training with morphological segmentation allows the LMs to: 1. achieve lower perplexity, 2. converge more efficiently in terms of training time, and 3. achieve equivalent or better evaluation scores on downstream tasks. Lastly, we show 4. that LMs of smaller size using morphological segmentation can perform comparably to models of larger size trained with BPE -- both in terms of (1) perplexity and (3) scores on downstream tasks. Points (2) and (4) impact on sustainability of LMs, since they reduce the model cost: size and computation time. While (2) reduces cost only in the training phase, (4) does so also in the inference phase.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hou2023effects,
  title  = {Effects of sub-word segmentation on performance of transformer language models},
  author = {Jue Hou and Anisia Katinskaia and Anh-Duc Vu and Roman Yangarber},
  year   = {2023},
  eprint = {2305.05480},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.05480v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.05480.svg)](https://codeofpaper.com/paper/2305.05480)

Discussion