/ Модель

Характеристики

Контекст
514 токенов
Параметры
138 млн
Лицензия
MIT
Архитектура
camembert · dense
Библиотека
transformers
Опубликована
23 фев 2023

camembert-bio-base

Заполнение пропусковТекст → текст3 профессии

Французская биомедицинская модель CamemBERT для заполнения пропусков и дальнейшего дообучения на извлечение сущностей из медицинских текстов.

2 144скачиваний за 30 дней21лайквеса обновлены25 сен 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

CamemBERT-bio — французская биомедицинская языковая модель, разработанная Рианом Тушантом и Эриком Вильмонтом де ла Клергери. Это модель семейства CamemBERT с архитектурой CamembertForMaskedLM, полученная продолжением предобучения camembert-base на французском биомедицинском корпусе объёмом 413 млн слов: научных публикациях, инструкциях к лекарствам и клинических случаях. Модель содержит 137,8 млн параметров, принимает текст и поддерживает контекст до 514 токенов.

Она предназначена для работы с французскими биомедицинскими текстами и может использоваться для заполнения пропусков в тексте. README также сообщает об улучшении среднего F1 на 2,54 пункта относительно camembert-base в пяти задачах распознавания биомедицинских именованных сущностей; для прикладного NER модель потребуется дообучить на соответствующей задаче. Доступна по лицензии MIT.

Сценарии применения

  • заполнение пропусков во французских медицинских текстах
  • адаптация модели для распознавания биомедицинских сущностей
  • анализ французских клинических случаев
  • обработка французских инструкций к лекарствам
  • анализ французской биомедицинской научной литературы

Ограничения

Для распознавания сущностей и других прикладных задач потребуется дообучение; заявленное улучшение F1 относится к пяти биомедицинским NER-бенчмаркам и не гарантирует качество на иных данных.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

<a href=https://camembert-bio-model.fr/>

CamemBERT-bio : a Tasty French Language Model Better for your Health

CamemBERT-bio is a state-of-the-art french biomedical language model built using continual-pretraining from camembert-base. It was trained on a french public biomedical corpus of 413M words containing scientific documents, drug leaflets and clinical cases extrated from theses and articles. It shows 2.54 points of F1 score improvement on average on 5 different biomedical named entity recognition tasks compared to camembert-base.

Absract

Clinical data in hospitals are increasingly accessible for research through clinical data warehouses, however these documents are unstructured. It is therefore necessary to extract information from medical reports to conduct clinical studies. Transfer learning with BERT-like models such as CamemBERT has allowed major advances, especially for named entity recognition. However, these models are trained for plain language and are less efficient on biomedical data. This is why we propose a new french public biomedical dataset on which we have continued the pre-training of CamemBERT. Thus, we introduce a first version of CamemBERT-bio, a specialized public model for the french biomedical domain that shows 2.54 points of F1 score improvement on average on different biomedical named entity recognition tasks.

Training Details

Training Data

CorpusDetailsSize
ISTEXdiverse scientific literature indexed on ISTEX276 M
CLEARdrug leaflets73 M
E3Cvarious documents from journals, drug leaflets, and clinical cases64 M
Total413 M

Training Procedure

We used continual-pretraining from camembert-base. We trained the model using the Masked Language Modeling (MLM) objective with Whole Word Masking for 50k steps during 39 hours with 2 Tesla V100.

Evaluation

Fine-tuning

For fine-tuning, we utilized Optuna to select the hyperparameters. The learning rate was set to 5e-5, with a warmup ratio of 0.224 and a batch size of 16. The fine-tuning process was carried out for 2000 steps. For prediction, a simple linear layer was added on top of the model. Notably, none of the CamemBERT layers were frozen during the fine-tuning process.

Scoring

To evaluate the performance of the model, we used the seqeval tool in strict mode with the IOB2 scheme. For each evaluation, the best fine-tuned model on the validation set was selected to calculate the final score on the test set. To ensure reliability, we averaged over 10 evaluations with different seeds.

Results

StyleDatasetScoreCamemBERTCamemBERT-bio
ClinicalCAS1F170.50 ± 1.7573.03 ± 1.29
P70.12 ± 1.9371.71 ± 1.61
R70.89 ± 1.7874.42 ± 1.49
CAS2F179.02 ± 0.9281.66 ± 0.59
P77.3 ± 1.3680.96 ± 0.91
R80.83 ± 0.9682.37 ± 0.69
E3CF167.63 ± 1.4569.85 ± 1.58
P78.19 ± 0.7279.11 ± 0.42
R59.61 ± 2.2562.56 ± 2.50
Drug leafletsEMEAF174.14 ± 1.9576.71 ± 1.50
P74.62 ± 1.9776.92 ± 1.96
R73.68 ± 2.2276.52 ± 1.62
ScientificMEDLINEF165.73 ± 0.4068.47 ± 0.54
P64.94 ± 0.8267.77 ± 0.88
R66.56 ± 0.5669.21 ± 1.32

Environmental Impact estimation

  • Hardware Type: 2 x Tesla V100
  • Hours used: 39 hours
  • Provider: INRIA clusters
  • Compute Region: Paris, France
  • Carbon Emitted: 0.84 kg CO2 eq.

Citation information


@inproceedings{touchent-de-la-clergerie-2024-camembert-bio,
    title = "{C}amem{BERT}-bio: Leveraging Continual Pre-training for Cost-Effective Models on {F}rench Biomedical Data",
    author = "Touchent, Rian  and
      de la Clergerie, {\'E}ric",
    editor = "Calzolari, Nicoletta  and
      Kan, Min-Yen  and
      Hoste, Veronique  and
      Lenci, Alessandro  and
      Sakti, Sakriani  and
      Xue, Nianwen",
    booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",
    month = may,
    year = "2024",
    address = "Torino, Italia",
    publisher = "ELRA and ICCL",
    url = "https://aclanthology.org/2024.lrec-main.241",
    pages = "2692--2701",
    abstract = "Clinical data in hospitals are increasingly accessible for research through clinical data warehouses. However these documents are unstructured and it is therefore necessary to extract information from medical reports to conduct clinical studies. Transfer learning with BERT-like models such as CamemBERT has allowed major advances for French, especially for named entity recognition. However, these models are trained for plain language and are less efficient on biomedical data. Addressing this gap, we introduce CamemBERT-bio, a dedicated French biomedical model derived from a new public French biomedical dataset. Through continual pre-training of the original CamemBERT, CamemBERT-bio achieves an improvement of 2.54 points of F1-score on average across various biomedical named entity recognition tasks, reinforcing the potential of continual pre-training as an equally proficient yet less computationally intensive alternative to training from scratch. Additionally, we highlight the importance of using a standard evaluation protocol that provides a clear view of the current state-of-the-art for French biomedical models.",
}


@inproceedings{touchent:hal-04130187,
  TITLE = {{CamemBERT-bio : Un mod{\`e}le de langue fran{\c c}ais savoureux et meilleur pour la sant{\'e}}},
  AUTHOR = {Touchent, Rian and Romary, Laurent and De La Clergerie, Eric},
  URL = {https://hal.science/hal-04130187},
  BOOKTITLE = {{18e  Conf{\'e}rence en Recherche d'Information et Applications \\ 16e Rencontres Jeunes Chercheurs en RI \\ 30e Conf{\'e}rence sur le Traitement Automatique des Langues Naturelles \\ 25e Rencontre des {\'E}tudiants Chercheurs en Informatique pour le Traitement Automatique des Langues}},
  ADDRESS = {Paris, France},
  EDITOR = {Servan, Christophe and Vilnat, Anne},
  PUBLISHER = {{ATALA}},
  PAGES = {323-334},
  YEAR = {2023},
  KEYWORDS = {comptes rendus m{\'e}dicaux ; TAL clinique ; CamemBERT ; extraction d'information ; biom{\'e}dical ; reconnaissance d'entit{\'e}s nomm{\'e}es},
  HAL_ID = {hal-04130187},
  HAL_VERSION = {v1},
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · fill-mask

Можно запустить

Подбираем GPU…

Класс архитектуры
CamembertForMaskedLM
Ревизия весов
5fbdc71

0 моделей