Phrase-BERT: Improved Phrase Embeddings from BERT with an Application to Corpus Exploration
Shufan Wang, Laure Thompson, Mohit Iyyer
TL;DR
Phrase-BERT tackles the weakness of standard BERT phrase embeddings by introducing dual contrastive fine-tuning on lexically diverse paraphrases and phrase-context data. By combining a paraphrase-based objective with context-aware training, Phrase-BERT achieves semantically meaningful, lexically diverse phrase embeddings and improves phrase-level relatedness tasks. The approach is demonstrated not only in intrinsic semantics benchmarks but also by integrating into a phrase-based neural topic model (pntm), yielding coherent topics described by both words and phrases. The work provides practical, deployable embeddings for corpus exploration and interpretation, with publicly released code and models.
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. 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.
