Attention on Multiword Expressions: A Multilingual Study of BERT-based Models with Regard to Idiomaticity and Microsyntax

Iuliia Zaitova, Vitalii Hirak, Badr M. Abdullah, Dietrich Klakow, Bernd Möbius +1 more
5/9/2025
cs.CL

No official code found. Best implementation: IuliiaZaitova/mwe-attention (1 star, last commit 2025-12-14).

Abstract

This study analyzes the attention patterns of fine-tuned encoder-only models based on the BERT architecture (BERT-based models) towards two distinct types of Multiword Expressions (MWEs): idioms and microsyntactic units (MSUs). Idioms present challenges in semantic non-compositionality, whereas MSUs demonstrate unconventional syntactic behavior that does not conform to standard grammatical categorizations. We aim to understand whether fine-tuning BERT-based models on specific tasks influences their attention to MWEs, and how this attention differs between semantic and syntactic tasks. We examine attention scores to MWEs in both pre-trained and fine-tuned BERT-based models. We utilize monolingual models and datasets in six Indo-European languages - English, German, Dutch, Polish, Russian, and Ukrainian. Our results show that fine-tuning significantly influences how models allocate attention to MWEs. Specifically, models fine-tuned on semantic tasks tend to distribute attention to idiomatic expressions more evenly across layers. Models fine-tuned on syntactic tasks show an increase in attention to MSUs in the lower layers, corresponding with syntactic processing requirements.

View on arXivView PDF

Code Implementations(1)

Models and datasets used for analyzing attention patterns of BERT-based models towards idioms and microsyntactic units (MSUs) across six languages. Includes links to the BERT-based models fine-tuned for syntactic tasks (DepRel, POS) and semantic tasks (NER, Topic), and multilingual MWE datasets.

10PythonFeb 5, 202510 months ago

Similar Papers

Cite this paper

@article{zaitova2025attention,
  title  = {Attention on Multiword Expressions: A Multilingual Study of BERT-based Models with Regard to Idiomaticity and Microsyntax},
  author = {Iuliia Zaitova and Vitalii Hirak and Badr M. Abdullah and Dietrich Klakow and Bernd Möbius and Tania Avgustinova},
  year   = {2025},
  eprint = {2505.06062},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.06062v1}
}

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

Discussion