amber-tech / bert-multilingual-passage-reranking-msmarco

huggingface.co
Total runs: 9.6K
24-hour runs: -443
7-day runs: -1.4K
30-day runs: 2.9K
Model's Last Updated: August 26 2022
text-classification

Introduction of bert-multilingual-passage-reranking-msmarco

Model Details of bert-multilingual-passage-reranking-msmarco

Passage Reranking Multilingual BERT 🔃 🌍

Model description

Input: Supports over 100 Languages. See List of supported languages for all available.

Purpose: This module takes a search query [1] and a passage [2] and calculates if the passage matches the query. It can be used as an improvement for Elasticsearch Results and boosts the relevancy by up to 100%.

Architecture: On top of BERT there is a Densly Connected NN which takes the 768 Dimensional [CLS] Token as input and provides the output ( Arxiv ).

Output: Just a single value between between -10 and 10. Better matching query,passage pairs tend to have a higher a score.

Intended uses & limitations

Both query[1] and passage[2] have to fit in 512 Tokens. As you normally want to rerank the first dozens of search results keep in mind the inference time of approximately 300 ms/query.

How to use
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("amberoad/bert-multilingual-passage-reranking-msmarco")

model = AutoModelForSequenceClassification.from_pretrained("amberoad/bert-multilingual-passage-reranking-msmarco")

This Model can be used as a drop-in replacement in the Nboost Library Through this you can directly improve your Elasticsearch Results without any coding.

Training data

This model is trained using the Microsoft MS Marco Dataset . This training dataset contains approximately 400M tuples of a query, relevant and non-relevant passages. All datasets used for training and evaluating are listed in this table . The used dataset for training is called Train Triples Large , while the evaluation was made on Top 1000 Dev . There are 6,900 queries in total in the development dataset, where each query is mapped to top 1,000 passage retrieved using BM25 from MS MARCO corpus.

Training procedure

The training is performed the same way as stated in this README . See their excellent Paper on Arxiv .

We changed the BERT Model from an English only to the default BERT Multilingual uncased Model from Google .

Training was done 400 000 Steps. This equaled 12 hours an a TPU V3-8.

Eval results

We see nearly similar performance than the English only Model in the English Bing Queries Dataset . Although the training data is English only internal Tests on private data showed a far higher accurancy in German than all other available models.

Fine-tuned Models Dependency Eval Set Search Boost Speed on GPU
amberoad/Multilingual-uncased-MSMARCO (This Model) PyTorch bing queries +61% (0.29 vs 0.18) ~300 ms/query
nboost/pt-tinybert-msmarco PyTorch bing queries +45% (0.26 vs 0.18) ~50ms/query
nboost/pt-bert-base-uncased-msmarco PyTorch bing queries +62% (0.29 vs 0.18) ~300 ms/query
nboost/pt-bert-large-msmarco PyTorch bing queries +77% (0.32 vs 0.18) -
nboost/pt-biobert-base-msmarco PyTorch biomed +66% (0.17 vs 0.10) ~300 ms/query

This table is taken from nboost and extended by the first line.

Contact Infos

Amberoad is a company focussing on Search and Business Intelligence. We provide you:

  • Advanced Internal Company Search Engines thorugh NLP
  • External Search Egnines: Find Competitors, Customers, Suppliers

Get in Contact now to benefit from our Expertise:

The training and evaluation was performed by Philipp Reissel and Igli Manaj

Amberoad Linkedin | Homepage | Email

Runs of amber-tech bert-multilingual-passage-reranking-msmarco on huggingface.co

9.6K
Total runs
-443
24-hour runs
-998
3-day runs
-1.4K
7-day runs
2.9K
30-day runs

More Information About bert-multilingual-passage-reranking-msmarco huggingface.co Model

More bert-multilingual-passage-reranking-msmarco license Visit here:

https://choosealicense.com/licenses/apache-2.0

bert-multilingual-passage-reranking-msmarco huggingface.co

bert-multilingual-passage-reranking-msmarco huggingface.co is an AI model on huggingface.co that provides bert-multilingual-passage-reranking-msmarco's model effect (), which can be used instantly with this amber-tech bert-multilingual-passage-reranking-msmarco model. huggingface.co supports a free trial of the bert-multilingual-passage-reranking-msmarco model, and also provides paid use of the bert-multilingual-passage-reranking-msmarco. Support call bert-multilingual-passage-reranking-msmarco model through api, including Node.js, Python, http.

bert-multilingual-passage-reranking-msmarco huggingface.co Url

https://huggingface.co/amber-tech/bert-multilingual-passage-reranking-msmarco

amber-tech bert-multilingual-passage-reranking-msmarco online free

bert-multilingual-passage-reranking-msmarco huggingface.co is an online trial and call api platform, which integrates bert-multilingual-passage-reranking-msmarco's modeling effects, including api services, and provides a free online trial of bert-multilingual-passage-reranking-msmarco, you can try bert-multilingual-passage-reranking-msmarco online for free by clicking the link below.

amber-tech bert-multilingual-passage-reranking-msmarco online free url in huggingface.co:

https://huggingface.co/amber-tech/bert-multilingual-passage-reranking-msmarco

bert-multilingual-passage-reranking-msmarco install

bert-multilingual-passage-reranking-msmarco is an open source model from GitHub that offers a free installation service, and any user can find bert-multilingual-passage-reranking-msmarco on GitHub to install. At the same time, huggingface.co provides the effect of bert-multilingual-passage-reranking-msmarco install, users can directly use bert-multilingual-passage-reranking-msmarco installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bert-multilingual-passage-reranking-msmarco install url in huggingface.co:

https://huggingface.co/amber-tech/bert-multilingual-passage-reranking-msmarco

Url of bert-multilingual-passage-reranking-msmarco

bert-multilingual-passage-reranking-msmarco huggingface.co Url

Provider of bert-multilingual-passage-reranking-msmarco huggingface.co

amber-tech
ORGANIZATIONS