/ Модель

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

Лицензия
Apache 2.0
Базовая модель
laya
Библиотека
laya
Опубликована
10 ноя 2026

mednli_laya

Классификация текстаТекст → label3 профессии

Англоязычная модель классификации, которая проверяет медицинское утверждение по свидетельству и определяет, подтверждено ли оно, не подтверждено или опровергнуто.

44скачиваний за 30 дней8лайковвеса обновлены10 ноя 2026

Бенчмарки

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

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

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

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

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

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

mednli_laya — англоязычная модель классификации медицинских утверждений, дообученная Pavan Kumar Mantha на базе convaiinnovations/laya с использованием MedNLI. Она принимает утверждение и текстовое свидетельство в таком порядке и относит утверждение к одному из трёх классов: supported, unsupported или contradicted. Модель предназначена для проверки соответствия утверждений кратким фрагментам клинических записей; в тестовой выборке MedNLI указаны accuracy 0,7904 и macro-F1 0,7909. Для классификации используется библиотека Laya, веса представлены в формате safetensors.

Проверка проведена только на MedNLI: точность на длинных клинических рекомендациях и данных вне этого набора не оценивалась. На одних утверждениях без свидетельств модель также показывает результат выше случайного уровня, что указывает на возможное использование особенностей формулировок данных. Модель не является медицинским устройством и не предназначена для принятия клинических решений. Лицензия — Apache-2.0.

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

  • проверка медицинского утверждения по фрагменту клинической записи
  • классификация связи между клиническим утверждением и свидетельством
  • сортировка пар «утверждение — свидетельство» по трём меткам MedNLI

Ограничения

Обучена на коротких предложениях клинических записей; качество на длинных рекомендациях и вне MedNLI не проверялось. Не предназначена для клинических решений.

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

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

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

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

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

Открыть на Hugging Face

mednli_laya

Laya decision model fine-tuned as a three-way medical claim checker. Given a claim and a piece of evidence, it answers supported, unsupported or contradicted.

Fine-tuned by Pavan Kumar Mantha from convaiinnovations/laya (multilingual checkpoint) on MedNLI (presencesw/mednli), with entailment, neutral and contradiction mapped to the three labels.

Usage

import laya

agent = laya.load("pavanmantha/mednli_laya")
questions = {
  "verdict": {
    "type": "choice",
    "instructions": "Decide whether the cited text supports the claim.",
    "criteria": {
      "supported": "the cited text confirms the claim",
      "unsupported": "the cited text does not say enough to confirm or deny the claim",
      "contradicted": "the cited text states the opposite of the claim"
    }
  }
}
state = {"claim": "Patient has elevated Cr", "evidence": "Labs were notable for Cr 1.7 (baseline 0.5)."}
print(agent.predict(state, questions)["answers"]["verdict"])

Put the claim first and the evidence second, as in training.

Benchmark

MedNLI test split, n=1422, chance accuracy 0.3333. The question wording used here was never seen in training.

Main results

modelaccuracy (95% CI)macro-F1NLLBrierECEmean confidencems/decision
original0.4494 (0.4226-0.4761)0.41561.36860.74850.26100.71030.84
this model0.7904 (0.7693-0.8129)0.79090.50390.28630.04240.82610.92

Robustness tests

modeloption-order flip rateclaim-only accuracy (95% CI)mismatched evidence answered unsupportedaccuracy with a training wording
original0.08160.3361 (0.3101-0.3608)0.85090.4142
this model0.01550.4114 (0.3861-0.4367)0.73980.7996
  • Option-order flip rate: share of answers that change when the options are listed in reverse. Lower is better.
  • Claim-only accuracy: accuracy with the evidence blanked. Values well above chance mean the model can exploit artefacts in the claims alone, a known property of MedNLI.
  • Mismatched evidence: each claim is paired with evidence from an unrelated premise; the share answered unsupported. Higher is better.
  • Training wording: accuracy when asked with one of the four wordings used in training.

Significance

Exact McNemar test against the original model on the same items: this model fixed 581 errors and introduced 96 (p = 1.8e-85).

Per-class results (this model)

labelprecisionrecallF1
supported0.78100.73000.7546
unsupported0.72150.78690.7528
contradicted0.87660.85440.8654

Confusion matrix (this model)

Rows are gold labels, columns are predictions.

supportedunsupportedcontradicted
supported3469830
unsupported7437327
contradicted2346405

Seed variance

Across 2 fine-tuning seeds: accuracy 0.7904 +/- 0.0000, macro-F1 0.7911 +/- 0.0001, ECE 0.0367 +/- 0.0057. This repository holds one of those runs.

Training

Base checkpointmultilingual
Train / calibration / validation items10819 / 401 / 1395
Train rows dropped (conflicting labels / duplicates)9 / 3
De-identification markerskept as in source
Best epoch2 of 6
Effective batch64
Learning rates (encoder / head)2.5e-05 / 0.0001
Label smoothing0
Seed0
Losscross-entropy on hard labels, option order shuffled, 4 rotating question wordings
Mismatched-evidence augmentation15% of training rows per epoch

Validation (MedNLI validation split, averaged over the training wordings):

accuracymacro-F1NLL
before fine-tuning0.43170.38881.3586
best epoch0.80750.80740.4914

Per-epoch history:

epochtrain lossval accuracyval macro-F1val NLL
10.67770.79050.79290.5148
20.39820.80750.80740.4914
30.23760.78850.78990.6095
40.13280.77530.77760.8555

Calibration: the choice temperature was fitted to 1.256 on 1604 held-out calibration items (split by premise), moving NLL from 0.4458 to 0.433 on that slice.

Limitations

  • Trained on short clinical-note sentences; accuracy on long guideline passages is untested.
  • English only. Other Laya question types were not re-evaluated after fine-tuning.
  • Results are on MedNLI only; no out-of-domain benchmark has been run yet.
  • Not a medical device and not for clinical decisions.

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

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

GPU в ailist

Универсальный рантайм · laya · text-classification

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

Подбираем GPU…

Ревизия весов
c3d86c9

0 моделей