Work

Förbättrad prestanda för språkmodeller genom integrering av POS-taggar (Parts-of-Speech) : en inblick i integrationen av alternativa dataströmmar

Year: 2025
Type: dissertation
Abstract: This thesis explores the integration of Parts-of-speech (POS) tagged information into transformer models as method to improve transofrmer next token performance.The problem addressed is the potential improvement in language modeling by incorporating lexical information, specifically POS tags, alongside syntactic subword representations. The methodology involves implementing a custom byte pair encoding, integrating POS tags with subword tokens via point-wise summation, and training one baseline transformer model as well as a POS integrated transformer model. The models’ are trained on the WikiText-2 data set and their performance is evaluated through next token accuracy as well as perplexity. The results indicate that POSintegrated model achieves a higher accuracy (54.68%) compared to the baseline (48.31%), a relative gain of approximately 13%. However, it exhibts worse perplexity (48.71 vs. 44.56), indicative of a tradeoff due to syntactic biases affecting the probability distribution. As such, POS embeddings sharpen syntactic prediction boosting the top prediciton accuracy, they compromise the perplexity by narrowing the model’s uncertainty distribution
Author: Lådö Næss, Viktor
Language: English
Open Access status: green
OpenAlex ID: W7081545731
Cites: 31
Cited by:
Related to: 10