Large Language Models for Word-In-Context

Main Article Content

Denis Vladislavovich Kokosinskii

Abstract

Task-specific models have long dominated natural language processing tasks. However, general-purpose large language models (LLMs) have recently begun to successfully compete with highly specialized solutions across various NLP domains. In this paper, we investigate the applicability of LLMs to the task of estimating the semantic proximity of a word's meanings in a pair of usages, known as Word-in-Context (WiC). Drawing on the multilingual CoMeDi benchmark, we propose novel approaches to building automated WiC-systems based on LLMs. We conduct a systematic comparison of five different configurations in terms of quality and computational costs. In particular, we propose a configuration where LLM predictions are adjusted using a training set, without the need to fine-tune the LLM itself. Results on test sets across seven languages show that our proposed approaches enable LLMs to outperform all existing specialized systems, establishing a new state-of-the-art (SOTA) on the CoMeDi benchmark. Nevertheless, the achieved high quality comes with a significant increase in computational costs: LLM-based systems require several orders of magnitude more computations compared to compact specialized models (such as XL-DURel). This work represents a step towards understanding the trade-off between accuracy and resource efficiency when using modern LLMs in lexical semantics tasks.

Article Details

How to Cite
Kokosinskii, D. V. “Large Language Models for Word-In-Context”. Russian Digital Libraries Journal, vol. 29, no. 4, July 2026, pp. 1133-54, doi:10.26907/1562-5419-2026-29-4-1133-1154.

References

1. Fedorova M., Mickus T., Partanen N., Siewert J., Spaziani E., Kutuzov A. AXOLOTL'24 Shared Task on Multilingual Explainable Semantic Change Modeling // Proc. of the 5th Workshop on Computational Approaches to Historical Language Change. Bangkok, Thailand, August 2024. Association for Computational Linguistics, 2024. P. 72–91. https://doi.org/10.18653/v1/2024.lchange-1.8
2. Tahmasebi N., Borin L., Jatowt A., Xu Y., Hengchen S. Computational Approaches to Semantic Change. Berlin: Language Science Press, 2021.https://doi.org/10.5281/zenodo.5040241
3. Hendy A. et al. How Good Are GPT Models at Machine Translation? A Comprehensive Evaluation // arXiv:2302.09210 [cs.CL], 2023. https://doi.org/10.48550/arXiv.2302.09210
4. Liang P. et al. Holistic Evaluation of Language Models // arXiv: 2211.09110 [cs.CL], 2022. https://doi.org/10.48550/arXiv.2211.09110
5. Schlechtweg D., Schulte im Walde S., Eckmann S. Diachronic Usage Relatedness (DURel): A Framework for the Annotation of Lexical Semantic Change // Proc. of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Vol. 2. New Orleans, Louisiana, June 2018. Association for Computational Linguistics, 2018. P. 169–174. https://doi.org/10.18653/v1/N18-2027.
6. Arefyev N., Fedoseev M., Protasov V., Homskiy D., Davletov A., Panchenko A. DeepMistake: Which Senses are Hard to Distinguish for a Word-in-Context Model // Computational Linguistics and Intellectual Technologies (Dialog 2021). Russian Federation, 2021. 20. P. 16–30.
7. Cassotti P., Siciliani L., DeGemmis M., Semeraro G., Basile P. XL-LEXEME: WiC Pretrained Model for Cross-Lingual LEXical sEMantic changE // Proc. of the 61st Annual Meeting of the Association for Computational Linguistics. Vol. 2. Toronto, Canada, July 2023. Association for Computational Linguistics, 2023. С. 1577–1585. https://doi.org/10.18653/v1/2023.acl-short.135
8. Yadav S., Schlechtweg D. XL-DURel: Finetuning Sentence Transformers for Ordinal Word-in-Context Classification // arXiv:2507.14578 [cs.CL], 2025.https://doi.org/10.48550/arXiv.2507.14578
9. Devlin J., Chang M.-W., Lee K., Toutanova K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding // arXiv:1810.04805 [cs.CL], 2018. https://doi.org/10.48550/arXiv.1810.04805
10. Conneau A. et al. Unsupervised Cross-lingual Representation Learning at Scale // arXiv:1911.02116 [cs.CL], 2019. https://doi.org/10.48550/arXiv.1911.02116
11. Loke Y. X., Schlechtweg D., Zhao W. ABDN-NLP at CoMeDi Shared Task: Predicting the Aggregated Human Judgment via Weighted Few-Shot Prompting // Proc. of Context and Meaning: Navigating Disagreements in NLP Annotation. Abu Dhabi, UAE, January 2025. International Committee on Computational Linguistics, 2025. P. 122–128.
12. Periti F., Tahmasebi N. A Systematic Comparison of Contextualized Word Embeddings for Lexical Semantic Change // Proc. of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Vol. 1. Mexico City, Mexico, June 2024. Association for Computational Linguistics, 2024. P. 4262–4282. https://doi.org/10.18653/v1/2024.naacl-long.240
13. Yadav S., Choppa T., Schlechtweg D. Towards Automating Text Annotation: A Case Study on Semantic Proximity Annotation using GPT-4 // arXiv:2407.04130 [cs.CL], 2024. https://doi.org/10.48550/arXiv.2407.04130
14. Zamora-Reina F. D., Bravo-Marquez F., Schlechtweg D., Arefyev N. Can Large Language Models Compete with Specialized Models in Lexical Semantic Change Detection? // ECAI 2025. Frontiers in Artificial Intelligence and Applications. Vol. 413. IOS Press, 2025. P. 4201–4208. https://doi.org/10.3233/FAIA251313.
15. Schlechtweg D., Choppa T., Zhao W., Roth M. CoMeDi Shared Task: Median Judgment Classification & Mean Disagreement Ranking with Ordinal Word-in-Context Judgments // Proc. of Context and Meaning: Navigating Disagreements in NLP Annotation. Abu Dhabi, UAE, January 2025. International Committee on Computational Linguistics, 2025. P. 33–47.
16. Yang A. et al. Qwen3 Technical Report // arXiv:2505.09388 [cs.CL], 2025. https://doi.org/10.48550/arXiv.2505.09388
17. Krippendorff K. Content Analysis: An Introduction to Its Methodology. 4th ed. Thousand Oaks, CA: SAGE Publications, 2018.
18. Sakai T. Evaluating Evaluation Measures for Ordinal Classification and Ordinal Quantification // Proc. of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing. Vol. 1. Online, August 2021. Association for Computational Linguistics, 2021. P. 175–187. https://doi.org/10.18653/v1/2021.acl-long.15
19. Kuklin M., Arefyev N. Deep-change at CoMeDi: The Cross-Entropy Loss is not All You Need // Proc. of Context and Meaning: Navigating Disagreements in NLP Annotation. Abu Dhabi, UAE, January 2025. International Committee on Computational Linguistics, 2025. P. 48–64.
20. Li X., Li J. AnglE-optimized Text Embeddings // arXiv: 2309.12871. 2023. https://doi.org/10.48550/arXiv.2309.12871
21. Schlechtweg D., Tahmasebi N., Hengchen S., Dubossarsky H., McGillivray B. DWUG: A large Resource of Diachronic Word Usage Graphs in Four Languages // Proc. of the 2021 Conference on Empirical Methods in Natural Language Processing. Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics, 2021. P. 7079–7091. https://doi.org/10.18653/v1/2021.emnlp-main.567
22. Khattab O. et al. DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines // arXiv: 2310.03714 [cs.CL], 2023. https://doi.org/10.48550/arXiv.2310.03714
23. Shao Z. et al. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models // arXiv:2402.03300 [cs.CL], 2024. https://doi.org/10.48550/arXiv.2402.03300
24. DeepSeek-AI, Guo D. et al. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning // arXiv:2501.12948 [cs.CL]. https://doi.org/10.1038/s41586-025-09422-z
25. Woosuk K. et al. Efficient Memory Management for Large Language Model Serving with PagedAttention // Proc. of the ACM SIGOPS 29th Symposium on Operating Systems Principles. 2023. https://doi.org/10.1145/3600006.3613165


Most read articles by the same author(s)