Phrase-BERT: Improved Phrase Embeddings from BERT with an Application to Corpus Exploration

Shufan Wang, Laure Thompson, Mohit Iyyer
9/13/2021
93 citations
cs.CL
benchmark-dataset

Official code: sf-wa-326/phrase-bert-topic-model (86 stars, Python, last commit 2021-12-05).

Abstract

Phrase representations derived from BERT often do not exhibit complex phrasal compositionality, as the model relies instead on lexical similarity to determine semantic relatedness. In this paper, we propose a contrastive fine-tuning objective that enables BERT to produce more powerful phrase embeddings.

Show full abstract

Our approach (Phrase-BERT) relies on a dataset of diverse phrasal paraphrases, which is automatically generated using a paraphrase generation model, as well as a large-scale dataset of phrases in context mined from the Books3 corpus. Phrase-BERT outperforms baselines across a variety of phrase-level similarity tasks, while also demonstrating increased lexical diversity between nearest neighbors in the vector space. Finally, as a case study, we show that Phrase-BERT embeddings can be easily integrated with a simple autoencoder to build a phrase-based neural topic model that interprets topics as mixtures of words and phrases by performing a nearest neighbor search in the embedding space. Crowdsourced evaluations demonstrate that this phrase-based topic model produces more coherent and meaningful topics than baseline word and phrase-level topic models, further validating the utility of Phrase-BERT.

View on arXivView PDF

Code Implementations(1)

868PythonSep 8, 20214 years agoNOASSERTION

Similar Papers

Cite this paper

@article{wang2021phrasebert,
  title  = {Phrase-BERT: Improved Phrase Embeddings from BERT with an Application to Corpus Exploration},
  author = {Shufan Wang and Laure Thompson and Mohit Iyyer},
  year   = {2021},
  eprint = {2109.06304},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.06304}
}

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

Discussion