Unsupervised Morphological Tree Tokenizer

Qingyang Zhu, Xiang Hu, Pengyu Ji, Wei Wu, Kewei Tu
6/21/2024
cs.CLcs.LG

Official code: martianmartina/TreeTokenizer (7 stars, Apache-2.0, last commit 2026-02-13).

Abstract

As a cornerstone in language modeling, tokenization involves segmenting text inputs into pre-defined atomic units. Conventional statistical tokenizers often disrupt constituent boundaries within words, thereby corrupting semantic information. To address this drawback, we introduce morphological structure guidance to tokenization and propose a deep model to induce character-level structures of words. Specifically, the deep model jointly encodes internal structures and representations of words with a mechanism named $\textit{MorphOverriding}$ to ensure the indecomposability of morphemes. By training the model with self-supervised objectives, our method is capable of inducing character-level structures that align with morphological rules without annotated training data. Based on the induced structures, our algorithm tokenizes words through vocabulary matching in a top-down manner. Empirical results indicate that the proposed method effectively retains complete morphemes and outperforms widely adopted methods such as BPE and WordPiece on both morphological segmentation tasks and language modeling tasks. Code is available at https://github.com/martianmartina/TreeTokenizer.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for ACL 2025 Findings paper "Unsupervised Morphological Tree Tokenizer"

70C, C++May 30, 20258 months agoApache-2.0

Similar Papers

Cite this paper

@article{zhu2024unsupervised,
  title  = {Unsupervised Morphological Tree Tokenizer},
  author = {Qingyang Zhu and Xiang Hu and Pengyu Ji and Wei Wu and Kewei Tu},
  year   = {2024},
  eprint = {2406.15245},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.15245v2}
}

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/2406.15245.svg)](https://codeofpaper.com/paper/2406.15245)

Discussion