Improving word mover's distance by leveraging self-attention matrix
Yamagiwa, Hiroaki, Yokoi, Sho, Shimodaira, Hidetoshi
–arXiv.org Artificial Intelligence
Measuring the semantic similarity between two sentences is still an important task. The word mover's distance (WMD) computes the similarity via the optimal alignment between the sets of word embeddings. However, WMD does not utilize word order, making it challenging to distinguish sentences with significant overlaps of similar words, even if they are semantically very different. Here, we attempt to improve WMD by incorporating the sentence structure represented by BERT's self-attention matrix (SAM). The proposed method is based on the Fused Gromov-Wasserstein distance, which simultaneously considers the similarity of the word embedding and the SAM for calculating the optimal transport between two sentences. Experiments demonstrate the proposed method enhances WMD and its variants in paraphrase identification with near-equivalent performance in semantic textual similarity. Our code is available at \url{https://github.com/ymgw55/WSMD}.
arXiv.org Artificial Intelligence
Nov-2-2023
- Country:
- Oceania > Australia
- North America
- United States
- New York (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Illinois > Cook County
- Chicago (0.04)
- California > Los Angeles County
- Long Beach (0.04)
- Canada > British Columbia
- United States
- Europe
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Italy > Tuscany
- Florence (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- France
- Hauts-de-France > Nord
- Lille (0.04)
- Auvergne-Rhône-Alpes > Lyon
- Lyon (0.04)
- Hauts-de-France > Nord
- Spain > Catalonia
- Asia
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- Genre:
- Research Report > New Finding (0.46)
- Technology: