deepset/gbert-base-germandpr-question_encoder-Overview Language model: ...

Overview
Language model: gbert-base-germandpr
Language: German
Training data: GermanDPR train set (~ 56MB)
Eval data: GermanDPR test set (~ 6MB)
Infrastructure: 4x V100 GPU
Published: Apr 26th, 2021
Details
- We trained a dense passage retrieval model with two gbert-base models as encoders of questions and passages.
- The dataset is GermanDPR, a new, German language dataset, which we hand-annotated and published online.
- It comprises 9275 question/answer pairs in the training set and 1025 pairs in the test set.
For each pair, there are one positive context and three hard negative contexts.
- As the basis of the training data, we used our hand-annotated GermanQuAD dataset as positive samples and generated hard negative samples from the latest German Wikipedia dump (6GB of raw txt files).
- The data dump was cleaned with tailored scripts, leading to 2.8 million indexed passages from German Wikipedia.
See https://deepset.ai/germanquad for more details and dataset download.
Hyperparameters
batch_size = 40
n_epochs = 20
num_training_steps = 4640
num_warmup_steps = 460
max_seq_len = 32 tokens for question encoder and 300 tokens for passage encoder
learning_rate = 1e-6
lr_schedule = LinearWarmup
embeds_dropout_prob = 0.1
num_hard_negatives = 2
Performance
During training, we monitored the in-batch average rank and the loss and evaluated different batch sizes, numbers of epochs, and number of hard negatives on a dev set split from the train set.
The dev split contained 1030 question/answer pairs.
Even without thorough hyperparameter tuning, we observed quite stable learning. Multiple restarts with different seeds produced quite similar results.
Note that the in-batch average rank is influenced by settings for batch size and number of hard negatives. A smaller number of hard negatives makes the task easier.
After fixing the hyperparameters we trained the model on the full GermanDPR train set.
We further evaluated the retrieval performance of the trained model on the full German Wikipedia with the GermanDPR test set as labels. To this end, we converted the GermanDPR test set to SQuAD format. The DPR model drastically outperforms the BM25 baseline with regard to recall@k.
Usage
In haystack
You can load the model in haystack as a retriever for doing QA at scale:
retriever = DensePassageRetriever(
document_store=document_store,
query_embedding_model="deepset/gbert-base-germandpr-question_encoder"
passage_embedding_model="deepset/gbert-base-germandpr-ctx_encoder"
)
Authors
- Timo Möller:
timo.moeller [at] deepset.ai - Julian Risch:
julian.risch [at] deepset.ai - Malte Pietsch:
malte.pietsch [at] deepset.ai
About us

We bring NLP to the industry via open source!
Our focus: Industry specific language models & large scale QA systems.
Some of our work:
- German BERT (aka “bert-base-german-cased”)
- GermanQuAD and GermanDPR datasets and models (aka “gelectra-base-germanquad”, “gbert-base-germandpr”)
- FARM
- Haystack
Get in touch:
Twitter | LinkedIn | Website
By the way: we’re hiring!
deepset/gbert-base-germandpr-question_encoder官网入口:https://huggingface.co/deepset/gbert-base-germandpr-question_encoder
-
08.28
翻译一本书只要半小时,为什么出版没有爆炸?
-
08.28
两位经济学家的AGI终极推演:当一切都不再稀缺,人类还剩什么?
-
08.28
Atoms项目部署Atoms_Cloud快速上手
-
08.28
谷歌下调 Google AI Plus 月费至4.99美元,存储空间翻倍至400GB
-
08.28
高效识别和处理Excel表格数据差异的实用技巧与做法
-
08.28
Anthropic 发布最新 Claude模型Fable 5/Mythos 5,安全与效能的平衡之道
-
- 360手机浏览器如何自动保存密码
- 08.08
-
- 鹅鸭杀手游公测常见问题有哪些
- 08.08
-
- 美食大乱斗什么是T0阵容
- 08.08
-
- 鸣潮莫宁如何全方位培养
- 08.08
-
-
- ARCRaiders如何击败勘测者
- 08.08
-
-
下载
- |
-
-
下载
- 《行尸走肉第一章》免安装中文汉化硬盘版下载
- 单机|436 MB
- 一款以动作冒险为主题的游戏
-
-
下载
- 《街头霸王X铁拳》免安装中文汉化硬盘版下载
- 单机|111MB
- 一款非常好玩的格斗游戏
-
-
下载
- |
-
-
下载
- 《暗黑破坏神3》免安装繁体中文正式版下载
- 单机|7630 MB
- 一款以角色扮演为主题的游戏
-
-
下载
- 《马克思佩恩3》免安装硬盘版下载
- 单机|27033 MB
- 一款以第三人称射击为主题的游戏