Hostname: page-component-76d6cb85b7-ntvhh Total loading time: 0 Render date: 2026-07-14T13:44:31.065Z Has data issue: false hasContentIssue false

Balancing accuracy and efficiency: Evaluating encoder- and decoder-based models for word sense disambiguation and regular polysemy detection

Published online by Cambridge University Press:  08 July 2026

Pin-Er Chen
Affiliation:
Graduate Institute of Linguistics, National Taiwan University, Taiwan
Da-Chen Lian*
Affiliation:
Graduate Institute of Linguistics, National Taiwan University, Taiwan
Shu-Kai Hsieh
Affiliation:
Graduate Institute of Linguistics, National Taiwan University, Taiwan
*
Corresponding author: Da-Chen Lian; Email: d08944019@ntu.edu.tw
Rights & Permissions [Opens in a new window]

Abstract

This study investigates the nuanced challenges of fine-grained word sense disambiguation (WSD) tasks with regular polysemy detection (RPD) of the named entity, focusing on evaluating the trade-offs between encoder and decoder-based model performance and computational efficiency. The datasets, including Chinese Wordnet 2.0 (CWN) as sense inventory, the Social Media Corpus (PTT) for user-generated content, and the Academia Sinica Balanced Corpus (ASBC) for formal linguistic data, were chosen to provide a diverse and representative framework for evaluating both common nouns and proper nouns with regular polysemy in Taiwan Mandarin. This analysis evaluated ten encoder- and decoder-based models, assessing their performance on two tasks. The encoder-based models demonstrate comparable accuracy to the decoder-based models on WSD tasks (77.5% vs. 78.5%), and similarly strong performance in RPD tasks (84.2% vs. 83.8%). On a large-scale all-words WSD task, the encoder model not only outperformed the decoder model but also generated substantially lower carbon emissions – an eight-fold reduction. These differences underscore the trade-offs between model architecture and task-specific performance, highlighting the necessity for balancing performance and energy efficiency in the design and application of language models, advocating for sustainable and eco-friendly practices in natural language processing development.

Information

Type
Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Table 1. Example sense structure of CWN with translation

Figure 1

Table 2. Dataset statistics. The sequences are derived from the example sentences

Figure 2

Table 3. Dot objects mapped to Wikidata categories with the number of proper nouns in the dataset

Figure 3

Table 4. Regular polysemy type class with Mandarin translation and its gloss

Figure 4

Table 5. The three model input sequences generated for mathematical equation (“case”) for WSD. Each instance is represented with its translation below; only the instance in Taiwan Mandarin is used as the model input. When a POS hint is provided (as in the ”By example (POS)” evaluation), candidate senses whose POS tag does not match the target word’s annotated POS are excluded from the input sequences, resulting in fewer sequences per test sentence

Figure 5

Table 6. The three model input sequences generated for mathematical equation (“Harvard”) for RPD. Each instance is represented with its translation below; only the instance in Taiwan Mandarin is used as the model input

Figure 6

Table 7. Model accuracy in WSD. Bold numbers indicate the best accuracy, while numbers with a double underline indicate the second-best accuracy. For clarity, only the best model among the same family is listed; for example, DBT-v3-large is listed among the deberta-v3 family. The accuracy of all models is shown in Figure 1

Figure 7

Figure 1. Model accuracy on WSD (by example) with POS hints. The yellow bars represent the encoder-based models and the green bars represent the decoder-based models.

Figure 8

Figure 2. Model accuracy on WSD (by example) without POS hints. The yellow bars represent the encoder-based models and the green bars represent the decoder-based models.

Figure 9

Table 8. Model accuracy on RPD task. The type classes are abbreviated with their initials: I: Information, Ph: Physical, L: Location, H: Human, O: Organization, E: Event, Pr: Producer, Pt: Product. The bold number indicates the best accuracy, while the number with a double underline indicates the second-best accuracyTable 8 long description.

Figure 10

Table 9. Comparison of average model accuracy on WSD and RPD between encoder-based and decoder-based models

Figure 11

Table 10. Training carbon emissions for all 13 runs (1 run = WSD + RPD task). CO$_2$e is computed following the method described in Section 3.4.4, with $f_{\text{sys}} = 1.5$, PUE of 1.2 (on-premises) and 1.3 (cloud), and carbon intensity of 0.474 kgCO$_2$eq/kWh (on-premises) and 0.475 kgCO$_2$eq/kWh (cloud). GPU energy is derived from NVML power samples logged via Weights & Biases. Type: E = encoder, D = decoder. $\dagger$ = trained with LoRA

Figure 12

Table 11. Comparison of model accuracy, GPU resources, total GPU hours, and estimated carbon emissions produced on the all-words sense tagging task. Carbon emissions follow the estimation method in Section 3.4.4; the A40 inference run uses the cloud PUE and carbon-intensity values defined there.

Figure 13

Table B1. The special tokens used for decoder-based models. BOS is used at the beginning of an example and to separate the first and second sequences. CLS indicates the end of the example. The model uses CLS as input for the classifier head

Figure 14

Table C1. All models were trained on one GPU (24 GB VRAM) either locally or through a cloud GPU provider. Type refers to if the model is an encoder (E) or a decoder (D) model.Table C1 long description.

Figure 15

Table D1. The hyperparameters used to train the majority models with Transformers’ Trainer. Note: Mxode/SmolLM-Chinese-180M was trained in FP32 because of training instability when using BF16

Figure 16

Table D2. The LoRA hyperparameters used to train Llama-3.2-3B and google-Gemma-2-2b