ACL 2023

DrBERT

A Robust Pre-trained Model in French for Biomedical and Clinical Domains Un modèle pré-entraîné robuste en français pour les domaines biomédical et clinique

DrBERT is a state-of-the-art language model for the French biomedical domain. It is based on the RoBERTa architecture and pre-trained on NACHOS, a French biomedical corpus. DrBERT est un modèle de langue de pointe pour le domaine biomédical en français. Il repose sur l'architecture RoBERTa et a été pré-entraîné sur NACHOS, un corpus biomédical en français.

DrBERT was evaluated on 11 practical biomedical tasks in French, including named entity recognition (NER), part-of-speech tagging (POS), binary, multi-class and multi-label classification, and multiple-choice question answering. The results show that DrBERT improves performance on most tasks compared with previous approaches, indicating that pre-training from scratch remains the most effective strategy for BERT language models in the French biomedical domain. DrBERT a été évalué sur 11 tâches biomédicales concrètes en français, dont la reconnaissance d'entités nommées (NER), l'étiquetage morphosyntaxique (POS), la classification binaire, multi-classe et multi-étiquette, et les questions à choix multiples. Les résultats montrent que DrBERT améliore les performances sur la plupart des tâches par rapport aux approches précédentes, ce qui indique que le pré-entraînement à partir de zéro reste la stratégie la plus efficace pour les modèles de langue BERT dans le domaine biomédical en français.

  • 11tasks evaluatedtâches évaluées
  • 4models releasedmodèles publiés
  • 7.4 GB7,4 Goof biomedical textde texte biomédical

Models on Hugging FaceModèles sur Hugging Face

The four released models are available on Hugging Face. Each card links to the model page. Les quatre modèles publiés sont disponibles sur Hugging Face. Chaque carte renvoie vers la page du modèle.

Available modelsModèles disponibles

All models pre-trained from scratch use the CamemBERT configuration, which is the same as the RoBERTabase architecture (12 layers, 768 hidden dimensions, 12 attention heads, 110M parameters). Tous les modèles pré-entraînés à partir de zéro utilisent la configuration de CamemBERT, identique à l'architecture RoBERTabase (12 couches, 768 dimensions cachées, 12 têtes d'attention, 110 millions de paramètres).

ModelModèle ParametersParamètres Architecture StrategyStratégie Training dataDonnées d'entraînement DownloadTéléchargement
Dr-BERT/DrBERT-7GB 110M Base From scratchÀ partir de zéro NACHOSlarge7.4 GB of text7,4 Go de texte drbert-7gb.tar.gz
Dr-BERT/DrBERT-4GB 110M Base From scratchÀ partir de zéro NACHOSsmall4 GB of text4 Go de texte drbert-4gb.tar.gz
Dr-BERT/DrBERT-4GB-CP-PubMedBERT 110M Base Continual pre-trainingPré-entraînement continu NACHOSsmall4 GB of text4 Go de texte drbert-4gb-cp-pubmedbert.tar.gz
Dr-BERT/DrBERT-4GB-CP-CamemBERT 110M Base Continual pre-trainingPré-entraînement continu NACHOSsmall4 GB of text4 Go de texte drbert-4gb-cp-camembert.tar.gz

Each archive is about 1.2 GB.Chaque archive pèse environ 1,2 Go.

Non-released modelsModèles non publiés

These models were trained on the Nantes Biomedical Data Warehouse (NBDW), obtained from the data warehouse of Nantes University Hospital. Ces modèles ont été entraînés sur le Nantes Biomedical Data Warehouse (NBDW), constitué à partir de l'entrepôt de données du CHU de Nantes.

ModelModèle ParametersParamètres Architecture StrategyStratégie Training dataDonnées d'entraînement
ChuBERT-8GB 110M Base From scratchÀ partir de zéro NBDWmixed8 GB of text8 Go de texte
ChuBERT-4GB 110M Base From scratchÀ partir de zéro NBDWsmall4 GB of text4 Go de texte
ChuBERT-CP-4GB 110M Base Continual pre-trainingPré-entraînement continu NBDWsmall4 GB of text4 Go de texte

TutorialTutoriel

Load the model with the Hugging Face Transformers library: Chargez le modèle avec la bibliothèque Transformers de Hugging Face :

Python
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("Dr-BERT/DrBERT-7GB")

model = AutoModelForMaskedLM.from_pretrained("Dr-BERT/DrBERT-7GB")

NACHOS corpusCorpus NACHOS

NACHOS is the French biomedical corpus used to pre-train DrBERT. It is only available for academic research: to request access, please email mickael.rouvier@univ-avignon.fr with your first and last name, affiliation and contact details, and a brief description of how you intend to use NACHOS. NACHOS est le corpus biomédical en français utilisé pour pré-entraîner DrBERT. Il est réservé à la recherche académique : pour en demander l'accès, écrivez à mickael.rouvier@univ-avignon.fr en indiquant vos nom et prénom, votre affiliation et vos coordonnées, ainsi qu'une brève description de l'usage que vous comptez faire de NACHOS.

Publications

DrBERT was trained and evaluated by Yanis Labrak (LIA, Zenidoc), Adrien Bazoge (LS2N), Richard Dufour (LS2N), Mickael Rouvier (LIA), Emmanuel Morin (LS2N), Béatrice Daille (LS2N) and Pierre-Antoine Gourraud (Nantes University). DrBERT a été entraîné et évalué par Yanis Labrak (LIA, Zenidoc), Adrien Bazoge (LS2N), Richard Dufour (LS2N), Mickael Rouvier (LIA), Emmanuel Morin (LS2N), Béatrice Daille (LS2N) et Pierre-Antoine Gourraud (Nantes Université).

Citation

If you use DrBERT in your work, please cite our paper: Si vous utilisez DrBERT dans vos travaux, merci de citer notre article :

BibTeX
@inproceedings{labrak2023drbert,
  title = {{DrBERT: A Robust Pre-trained Model in French for Biomedical and Clinical domains}},
  author = {Labrak, Yanis and Bazoge, Adrien and Dufour, Richard and Rouvier, Mickael and Morin, Emmanuel and Daille, Béatrice and Gourraud, Pierre-Antoine},
  booktitle = {Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  month = jul,
  year = 2023,
  address = {Toronto, Canada},
  publisher = {Association for Computational Linguistics},
  pages = {16207--16221},
  doi = {10.18653/v1/2023.acl-long.896},
  url = {https://aclanthology.org/2023.acl-long.896/}
}

LicenseLicence

The DrBERT models are released under the Apache 2.0 license and the pre-training scripts under the MIT license. Les modèles DrBERT sont distribués sous licence Apache 2.0 et les scripts de pré-entraînement sous licence MIT.