Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kildeberg, Mikkel Wildner, Schledermann, Emil Allerslev, Larsen, Nicolaj, van der Goot, Rob
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2504.01540
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910901720842240
author Kildeberg, Mikkel Wildner
Schledermann, Emil Allerslev
Larsen, Nicolaj
van der Goot, Rob
author_facet Kildeberg, Mikkel Wildner
Schledermann, Emil Allerslev
Larsen, Nicolaj
van der Goot, Rob
contents The best performing transformer-based language models use subword tokenization techniques, such as Byte-Pair-Encoding (BPE). However, these approaches often overlook linguistic principles, such as morphological segmentation, which we believe is fundamental for understanding language-specific word structure. In this study, we leverage an annotated Danish morphological dataset to train a semisupervised model for morphological segmentation, enabling the development of tokenizers optimized for Danish morphology. We evaluate four distinct tokenizers, including two custom morphological tokenizers, by analyzing their performance in morphologically segmenting Danish words. Additionally, we train two generative transformer models, \textit{CerebrasGPT-111M} and \textit{LLaMA-3.2 1B}, using these tokenizers and evaluate their downstream performance. Our findings reveal that our custom-developed tokenizers substantially enhance morphological segmentation, achieving an F1 score of 58.84, compared to 39.28 achieved by a Danish BPE tokenizer. In downstream tasks, models trained with our morphological tokenizers outperform those using BPE tokenizers across different evaluation metrics. These results highlight that incorporating Danish morphological segmentation strategies into tokenizers leads to improved performance in generative transformer models on Danish language
format Preprint
id arxiv_https___arxiv_org_abs_2504_01540
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle From Smør-re-brød to Subwords: Training LLMs on Danish, One Morpheme at a Time
Kildeberg, Mikkel Wildner
Schledermann, Emil Allerslev
Larsen, Nicolaj
van der Goot, Rob
Computation and Language
The best performing transformer-based language models use subword tokenization techniques, such as Byte-Pair-Encoding (BPE). However, these approaches often overlook linguistic principles, such as morphological segmentation, which we believe is fundamental for understanding language-specific word structure. In this study, we leverage an annotated Danish morphological dataset to train a semisupervised model for morphological segmentation, enabling the development of tokenizers optimized for Danish morphology. We evaluate four distinct tokenizers, including two custom morphological tokenizers, by analyzing their performance in morphologically segmenting Danish words. Additionally, we train two generative transformer models, \textit{CerebrasGPT-111M} and \textit{LLaMA-3.2 1B}, using these tokenizers and evaluate their downstream performance. Our findings reveal that our custom-developed tokenizers substantially enhance morphological segmentation, achieving an F1 score of 58.84, compared to 39.28 achieved by a Danish BPE tokenizer. In downstream tasks, models trained with our morphological tokenizers outperform those using BPE tokenizers across different evaluation metrics. These results highlight that incorporating Danish morphological segmentation strategies into tokenizers leads to improved performance in generative transformer models on Danish language
title From Smør-re-brød to Subwords: Training LLMs on Danish, One Morpheme at a Time
topic Computation and Language
url https://arxiv.org/abs/2504.01540