Improving Pre-trained Language Model Sensitivity via Mask Specific losses: A case study on Biomedical NER

Micheal Abaho, Danushka Bollegala, Gary Leeming, Dan Joyce, Iain E Buchan
3/26/2024
cs.CLcs.AIcs.IR

No official code found. Best implementation: DynAIRx/MSLM (1 star, last commit 2024-09-20).

Abstract

Adapting language models (LMs) to novel domains is often achieved through fine-tuning a pre-trained LM (PLM) on domain-specific data. Fine-tuning introduces new knowledge into an LM, enabling it to comprehend and efficiently perform a target domain task. Fine-tuning can however be inadvertently insensitive if it ignores the wide array of disparities (e.g in word meaning) between source and target domains. For instance, words such as chronic and pressure may be treated lightly in social conversations, however, clinically, these words are usually an expression of concern. To address insensitive fine-tuning, we propose Mask Specific Language Modeling (MSLM), an approach that efficiently acquires target domain knowledge by appropriately weighting the importance of domain-specific terms (DS-terms) during fine-tuning. MSLM jointly masks DS-terms and generic words, then learns mask-specific losses by ensuring LMs incur larger penalties for inaccurately predicting DS-terms compared to generic words. Results of our analysis show that MSLM improves LMs sensitivity and detection of DS-terms. We empirically show that an optimal masking rate not only depends on the LM, but also on the dataset and the length of sequences. Our proposed masking strategy outperforms advanced masking strategies such as span- and PMI-based masking.

View on arXivView PDF

Code Implementations(1)

DynAIRx/MSLMCommunity100%

Domain specific self-supervised fine-tuning by learning mask specific losses

10Shell, PythonJul 31, 20232 years ago

Similar Papers

Cite this paper

@article{abaho2024improving,
  title  = {Improving Pre-trained Language Model Sensitivity via Mask Specific losses: A case study on Biomedical NER},
  author = {Micheal Abaho and Danushka Bollegala and Gary Leeming and Dan Joyce and Iain E Buchan},
  year   = {2024},
  eprint = {2403.18025},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.18025v2}
}

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

Discussion