Learning Dynamic Contextualised Word Embeddings via Template-based Temporal Adaptation



Tang, Xiaohang, Zhou, Yi and Bollegala, Danushka ORCID: 0000-0003-4476-7003
(2023) Learning Dynamic Contextualised Word Embeddings via Template-based Temporal Adaptation In: Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2023-7 - 2023-7, Toronto, Canada.

[thumbnail of Dynamic_Embeddings.pdf] Text
Dynamic_Embeddings.pdf - Author Accepted Manuscript

Download (2MB) | Preview

Abstract

Dynamic contextualised word embeddings (DCWEs) represent the temporal semantic variations of words. We propose a method for learning DCWEs by time-adapting a pretrained Masked Language Model (MLM) using time-sensitive templates. Given two snapshots C<inf>1</inf> and C<inf>2</inf> of a corpus taken respectively at two distinct timestamps T<inf>1</inf> and T<inf>2</inf>, we first propose an unsupervised method to select (a) pivot terms related to both C<inf>1</inf> and C<inf>2</inf>, and (b) anchor terms that are associated with a specific pivot term in each individual snapshot. We then generate prompts by filling manually compiled templates using the extracted pivot and anchor terms. Moreover, we propose an automatic method to learn time-sensitive templates from C<inf>1</inf> and C<inf>2</inf>, without requiring any human supervision. Next, we use the generated prompts to adapt a pretrained MLM to T<inf>2</inf> by fine-tuning using those prompts. Multiple experiments show that our proposed method reduces the perplexity of test sentences in C<inf>2</inf>, outperforming the current state-of-the-art.

Item Type: Conference Item (Unspecified)
Divisions: Faculty of Science & Engineering > School of Electrical Engineering, Electronics and Computer Science
Depositing User: Symplectic Admin
Date Deposited: 25 May 2023 07:31
Last Modified: 23 May 2026 07:18
DOI: 10.18653/v1/2023.acl-long.520
Related Websites:
URI: https://livrepository.liverpool.ac.uk/id/eprint/3170630
Disclaimer: The University of Liverpool is not responsible for content contained on other websites from links within repository metadata. Please contact us if you notice anything that appears incorrect or inappropriate.