English

MetricBERT: Text Representation Learning via Self-Supervised Triplet Training

Computation and Language 2022-08-16 v1

Abstract

We present MetricBERT, a BERT-based model that learns to embed text under a well-defined similarity metric while simultaneously adhering to the ``traditional'' masked-language task. We focus on downstream tasks of learning similarities for recommendations where we show that MetricBERT outperforms state-of-the-art alternatives, sometimes by a substantial margin. We conduct extensive evaluations of our method and its different variants, showing that our training objective is highly beneficial over a traditional contrastive loss, a standard cosine similarity objective, and six other baselines. As an additional contribution, we publish a dataset of video games descriptions along with a test set of similarity annotations crafted by a domain expert.

Keywords

Cite

@article{arxiv.2208.06610,
  title  = {MetricBERT: Text Representation Learning via Self-Supervised Triplet Training},
  author = {Itzik Malkiel and Dvir Ginzburg and Oren Barkan and Avi Caciularu and Yoni Weill and Noam Koenigstein},
  journal= {arXiv preprint arXiv:2208.06610},
  year   = {2022}
}
R2 v1 2026-06-25T01:41:00.104Z