The speciality of this model is that it also works cross-lingually. Regardless of the language, the sentences are translated into very similar vectors according to their semantics. This means that you can, for example, enter a search in German and find results according to the semantics in German and also in English. Using a xlm model and
multilingual finetuning with language-crossing
we reach performance that even exceeds the best current dedicated English large model (see Evaluation section below).
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.
This model is fine-tuned from
Philip May
and open-sourced by
T-Systems-onsite
. Special thanks to
Nils Reimers
for your awesome open-source work, the Sentence Transformers, the models and your help on GitHub.
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.
Building on this cross language model we fine-tuned it for English and German language on the
STSbenchmark
dataset. For German language we used the dataset of our
German STSbenchmark dataset
which has been translated with
deepl.com
. Additionally to the German and English training samples we generated samples of English and German crossed. We call this
multilingual finetuning with language-crossing
. It doubled the traing-datasize and tests show that it further improves performance.
We did an automatic hyperparameter search for 33 trials with
Optuna
. Using 10-fold crossvalidation on the deepl.com test and dev dataset we found the following best hyperparameters:
batch_size = 8
num_epochs = 2
lr = 1.026343323298136e-05,
eps = 4.462251033010287e-06
weight_decay = 0.04794438776350409
warmup_steps_proportion = 0.1609010732760181
The final model was trained with these hyperparameters on the combination of the train and dev datasets from English, German and the crossings of them. The testset was left for testing.
Evaluation
The evaluation has been done on English, German and both languages crossed with the STSbenchmark test data. The evaluation-code is available on
Colab
. As the metric for evaluation we use the Spearman’s rank correlation between the cosine-similarity of the sentence embeddings and STSbenchmark labels.
Copyright (c) 2020
Philip May
, T-Systems on site services GmbH
Licensed under the MIT License (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License by reviewing the file
LICENSE
in the repository.
Runs of T-Systems-onsite cross-en-de-roberta-sentence-transformer on huggingface.co
12.2K
Total runs
-273
24-hour runs
774
3-day runs
2.7K
7-day runs
5.1K
30-day runs
More Information About cross-en-de-roberta-sentence-transformer huggingface.co Model
More cross-en-de-roberta-sentence-transformer license Visit here:
cross-en-de-roberta-sentence-transformer huggingface.co is an AI model on huggingface.co that provides cross-en-de-roberta-sentence-transformer's model effect (), which can be used instantly with this T-Systems-onsite cross-en-de-roberta-sentence-transformer model. huggingface.co supports a free trial of the cross-en-de-roberta-sentence-transformer model, and also provides paid use of the cross-en-de-roberta-sentence-transformer. Support call cross-en-de-roberta-sentence-transformer model through api, including Node.js, Python, http.
cross-en-de-roberta-sentence-transformer huggingface.co is an online trial and call api platform, which integrates cross-en-de-roberta-sentence-transformer's modeling effects, including api services, and provides a free online trial of cross-en-de-roberta-sentence-transformer, you can try cross-en-de-roberta-sentence-transformer online for free by clicking the link below.
T-Systems-onsite cross-en-de-roberta-sentence-transformer online free url in huggingface.co:
cross-en-de-roberta-sentence-transformer is an open source model from GitHub that offers a free installation service, and any user can find cross-en-de-roberta-sentence-transformer on GitHub to install. At the same time, huggingface.co provides the effect of cross-en-de-roberta-sentence-transformer install, users can directly use cross-en-de-roberta-sentence-transformer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
cross-en-de-roberta-sentence-transformer install url in huggingface.co: