跳到正文
arXiv (AI + Vision + Imaging)· Sander Land, Clara Meister·· 1 天前AI 评分20

用显式词边界标记解决子词词表重复条目问题

Explicit Boundary Markers for Subword Vocabularies

AI 导读

针对子词分词器在空格书写系统中把同一单词重复表示为带前导空格与不带空格两个条目、且大小写再分裂成最多六种形式的问题,提出用显式词边界标记替代标准空白约定,词间空格用成对标记表示,并用两个移位码处理首字母大写与全大写。

正文 · 原文

arXiv:2608.08847v3 Announce Type: replace Abstract: Subword tokenizers represent many common words twice in space-using writing systems, once with a leading space and once without. The two entries have separate embeddings, so occurrences of one word are divided across rows that are trained independently, and the two forms need not even segment the string the same way: " together" may be a single entry while the same word without a preceding space is tokenized as "to" + "gether". Capitalization divides a word further, into as many as six forms. We introduce an alternative to standard whitespace conventions using an explicit word boundary marker, which prevents such duplication. Words are delimited by the boundary markers, and spaces between words are represented as pairs of such markers. Two shift codes do the same for title case and upper case. Switching to this convention mitigates the duplicate-entry issue, but does not improve compression: for both vocabulary-learning algorithms, the best marker scheme stays within one percent of the baseline in characters per token, averaged across six languages. It does result in better language modeling performance for some languages. In English and Russian, language models trained with every marker scheme tested have lower bits per byte than the baseline, suggesting that duplication carries a cost that compression does not capture.

来源:arXiv (AI + Vision + Imaging) · arxiv.org