Google BERT and antonym detection

旧巷老猫 提交于 2021-02-11 15:10:55

问题


I recently learned about the following phenomenon: Google BERT word embeddings of well-known state-of-the-art models seem to ignore the measure of semantical contrast between antonyms in terms of the natural distance(norm2 or cosine distance) between the corresponding embeddings. For example:

The measure is the "cosine distance" (as oppose to the "cosine similarity"), that means closer vectors are supposed to have smaller distance between them. As one can see, BERT states "weak" and "powerful" to be closer than "strong" and "powerfull". The same behavior reproduces with the norm2 distance:

Is anyone familiar with this behavior and how one can overcome it and detect a contrast between word senses?

来源:https://stackoverflow.com/questions/64738455/google-bert-and-antonym-detection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!