BERT is to NLP what AlexNet is to CV: Can Pre-Trained Language Models Identify Analogies?

Asahi Ushio, Luis Espinosa-Anke, Steven Schockaert, Jose Camacho-Collados
5/11/2021
cs.CLcs.LG

Official code: asahi417/analogy-language-model (25 stars, Python, last commit 2023-05-28).

Abstract

Analogies play a central role in human commonsense reasoning. The ability to recognize analogies such as "eye is to seeing what ear is to hearing", sometimes referred to as analogical proportions, shape how we structure knowledge and understand language.

Show full abstract

Surprisingly, however, the task of identifying such analogies has not yet received much attention in the language model era. In this paper, we analyze the capabilities of transformer-based language models on this unsupervised task, using benchmarks obtained from educational settings, as well as more commonly used datasets. We find that off-the-shelf language models can identify analogies to a certain extent, but struggle with abstract and complex relations, and results are highly sensitive to model architecture and hyperparameters. Overall the best results were obtained with GPT-2 and RoBERTa, while configurations using BERT were not able to outperform word embedding models. Our results raise important questions for future work about how, and to what extent, pre-trained language models capture knowledge about abstract semantic relations.

View on arXivView PDF

Code Implementations(1)

The official implementation of "BERT is to NLP what AlexNet is to CV: Can Pre-Trained Language Models Identify Analogies?, ACL 2021 main conference"

254PythonNov 8, 20203 years ago

Similar Papers

Cite this paper

@article{ushio2021bert,
  title  = {BERT is to NLP what AlexNet is to CV: Can Pre-Trained Language Models Identify Analogies?},
  author = {Asahi Ushio and Luis Espinosa-Anke and Steven Schockaert and Jose Camacho-Collados},
  year   = {2021},
  eprint = {2105.04949},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.04949}
}

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

Discussion