Views
No views yet
Sentence-BERT (SBERT) is a modification of the pretrained BERT network that use siamese and triplet network structures to derive semantically meaningful sentence embeddings that can be compared using cosine-similarity. This reduces the effort for finding the most similar pair from 65hours with BERT / RoBERTa to about 5 seconds with SBERT, while maintaining the accuracy from BERT.
sentence-transformers package (see here: https://github.com/UKPLab/sentence-transformers).1from sentence_transformers import SentenceTransformer
2model = SentenceTransformer('T-Systems-onsite/cross-en-de-roberta-sentence-transformer')A paper is upcoming for the paraphrase models.These models were trained on various datasets with Millions of examples for paraphrases, mainly derived from Wikipedia edit logs, paraphrases mined from Wikipedia and SimpleWiki, paraphrases from news reports, AllNLI-entailment pairs with in-batch-negative loss etc.In internal tests, they perform much better than the NLI+STSb models as they have see more and broader type of training data. NLI+STSb has the issue that they are rather narrow in their domain and do not contain any domain specific words / sentences (like from chemistry, computer science, math etc.). The paraphrase models has seen plenty of sentences from various domains.More details with the setup, all the datasets, and a wider evaluation will follow soon.
xlm-r-distilroberta-base-paraphrase-v1 has been released here: https://github.com/UKPLab/sentence-transformers/releases/tag/v0.3.8| Model Name | Spearman German | Spearman English | Spearman EN-DE & DE-EN (cross) |
|---|---|---|---|
| xlm-r-distilroberta-base-paraphrase-v1 | 0.8079 | 0.8350 | 0.7983 |
| xlm-r-100langs-bert-base-nli-stsb-mean-tokens | 0.7877 | 0.8465 | 0.7908 |
| xlm-r-bert-base-nli-stsb-mean-tokens | 0.7877 | 0.8465 | 0.7908 |
| roberta-large-nli-stsb-mean-tokens | 0.6371 | 0.8639 | 0.4109 |
| T-Systems-onsite/ german-roberta-sentence-transformer-v2 | 0.8529 | 0.8634 | 0.8415 |
| paraphrase-multilingual-mpnet-base-v2 | 0.8355 | 0.8682 | 0.8309 |
| T-Systems-onsite/ cross-en-de-roberta-sentence-transformer | 0.8550 | 0.8660 | 0.8525 |