/ Модель

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

Контекст
512 токенов
Параметры
212 млн
Лицензия
Apache 2.0
Архитектура
deberta-v2 · dense
Базовая модель
deberta-v3-base
Библиотека
sentence-transformers
Опубликована
4 ноя 2026

finecat-nli-dbv3-m

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

Англоязычная модель NLI на базе DeBERTa-v3 оценивает, следует ли утверждение из текста, противоречит ему или остаётся нейтральным, и поддерживает классификацию без обучения на новых метках.

131скачиваний за 30 дней0лайковвеса обновлены5 ноя 2026

Бенчмарки

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

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

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

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

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

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

FineCat-NLI dbv3 Medium — англоязычный классификатор естественных языковых выводов от dleemiller, дообученный на базе microsoft/deberta-v3-base. Он сопоставляет текст-посылку с гипотезой и оценивает, следует ли гипотеза из текста, противоречит ему или не подтверждается им; модель также подходит для классификации по заданным категориям без отдельного обучения. Архитектура — DeBERTa-v3 с головой классификации последовательностей, около 211,6 млн параметров; модель загружается в формате safetensors через Sentence Transformers и принимает пары текстов с контекстом до 512 токенов.

Модель предназначена для тематической разметки и маршрутизации запросов, проверки соответствия ответов найденным фрагментам в RAG-системах, а также для отдельных проверок модерации и фактической обоснованности. В README приведены результаты на 45 наборах данных, но указаны слабые стороны в финансовой и общей юридической проверке, оценке соответствия клиническим испытаниям, многошаговом юридическом и состязательном рассуждении. Лицензия — Apache-2.0.

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

  • классификация текста по заданным категориям без обучения
  • тематическая разметка отзывов и документов
  • маршрутизация запросов пользователей по намерениям
  • проверка соответствия ответа фрагментам из RAG-поиска
  • проверка фактической обоснованности предложений ответа
  • сопоставление утверждений с текстом на противоречие или подтверждение

Ограничения

Ограничение контекста составляет 512 токенов, а длинная посылка может обрезаться. README отмечает, что модель хуже подходит для финансовой и общей юридической проверки, оценки клинической приемлемости, сложного много-документного юридического и состязательного рассуждения.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

FineCat-NLI dbv3 Medium (DeBERTa-v3-base)

Natural Language Inference (NLI): the Swiss Army knife of encoders

Provide a text (premise) and statement (hypothesis), and it returns calibrated probabilities that the text entails, contradicts, or is neutral to the statement. A multiple-choice question is one statement per option.

Examples

UseText → statementResult
RAG groundingretrieved passages → generated answer0.75 F1 (RAGTruth)
Guardrails / Moderationmessage → policy statement91.8% (CrossingGuard)
Zero-shot classification / taggingreview → "This review is positive."92.3% (18 tasks)
Clinical extractionclinical note → "The patient is unemployed."98.3% (SDOH-NLI)

184M parameters (microsoft/deberta-v3-base, 86M backbone) · inputs up to 512 tokens · ~3,200 pairs/s · Apache-2.0

from sentence_transformers import CrossEncoder

model = CrossEncoder("dleemiller/finecat-nli-dbv3-m")
text = "My credit card was billed twice for one purchase."
labels = ["billing", "shipping", "account access"]
probs = model.predict([(text, f"This text is about {l}.") for l in labels], apply_softmax=True)
print({l: round(float(p[0]), 3) for l, p in zip(labels, probs)})  # p[0] = P(entailment)
# {'billing': 0.886, 'shipping': 0.005, 'account access': 0.1}

More in Recommended Applications and the 45-dataset evaluation.


Table of Contents


NLI Evaluation Results

Comparison on the OpenNLI leaderboard (v0.2.6).

ModelParamsSkill IndexAccuracymnlimnli_mismatchedsnlianli_r1anli_r2anli_r3wanlilingnliCALThroughput (pairs/s)
dleemiller/finecat-nli-v2-l396M57.80.81820.91640.91220.93290.77600.60400.57670.76640.87756.51,224
dleemiller/finecat-nli-ultra-m151M53.20.79600.88670.88860.92050.73700.56900.52500.74440.83717.42,992
dleemiller/finecat-nli-v2-m150M52.60.79420.89530.89460.92210.70500.51900.49830.74480.84997.52,836
dleemiller/finecat-nli-dbv3-m184M52.50.79380.91070.90960.93240.76500.58200.52170.75620.87127.23,206
dleemiller/finecat-nli-dbv3-s71M47.70.76640.88510.88710.91570.66800.51300.48250.73680.83177.97,545
tasksource/ModernBERT-base-nli*150M28.90.67230.86840.89890.89200.63600.48400.41580.66060.812715.62,813
MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli184M18.10.61610.90340.90310.88650.71100.54500.49250.64160.852327.73,241
cross-encoder/nli-deberta-v3-base184M8.40.55990.90010.90050.92360.43200.34800.34250.63860.834740.73,234

* trained on one or more OpenNLI test sets; those scores are replaced by estimates, as on the leaderboard.


Usage

Label Map:

  • entailment: 0
  • neutral: 1
  • contradiction: 2

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load the model and run inference.

from sentence_transformers import CrossEncoder
import numpy as np

model = CrossEncoder("dleemiller/finecat-nli-dbv3-m")
id2label = model.model.config.id2label  # {0:'entailment', 1:'neutral', 2:'contradiction'}

pairs = [
    ("The glass fell off the counter and shattered on the tile.",
     "The glass broke when it hit the floor."),          # E
    ("The store opens at 9 a.m. every day.",
     "The store opens at 7 a.m. on weekdays."),          # C
    ("A researcher presented results at the conference.",
     "The presentation won the best paper award."),       # N
    ("It started raining heavily, so the match was postponed.",
     "The game was delayed due to weather."),             # E
    ("Every seat on the flight was taken.",
     "There were several empty seats on the plane."),     # C
]

logits = model.predict(pairs)  # shape: (5, 3)

# inputs over 512 tokens: truncate the text (premise) only, never the statement (hypothesis)
# logits = model.predict(pairs, processing_kwargs={"text": {"truncation": "only_first"}})

for (prem, hyp), row in zip(pairs, logits):
    pred_idx = int(np.argmax(row))
    pred = id2label[pred_idx]
    print(f"[{pred}]  Premise: {prem}  |  Hypothesis: {hyp}")


Recommended Applications

Frame each check as a premise (text) and hypothesis (statement), and use the entailment probability.

ApplicationExample hypothesisSupporting results
Zero-shot tagging / topic classification"This text is about billing."zs_meta, fin_topics
Routing and decisions in agent pipelines"The user wants to cancel an order."zs_meta, mnli, snli
RAG grounding / hallucination checksEach answer sentence vs. retrieved passagesragtruth, wice, vitaminc
Contract and policy review"The agreement permits sharing data with third parties."contractnli_a/b, docnli
Biomedical and health claim checkingClaim vs. abstract or clinical notesdoh_nli, biosift, bionli, scifact, pubhealth
Dialogue fact-checkingAssistant reply vs. knowledge sourcedialfact, vitaminc
Guardrails / policy matchingPolicy statement vs. user or model textcrossingguard
Stance detection"The author supports the proposal."vast

Less suited: financial and general legal verification (findver, legal_domain), clinical-trial eligibility (nli4ct), multi-document legal reasoning (control), and adversarial reasoning (anli_r3, nope_adv).


Extended Evaluation (45 datasets)

Accuracy on the test splits of 45 NLI and adjacent datasets. 2-way datasets (entailed vs. not) are scored as entailment vs. any non-entailment prediction. Inputs are capped at 512 tokens (premise truncated). DocNLI and VitaminC are evaluated on fixed random subsets of 1,000 and 10,000 pairs. FRANK (news-summary factuality) is scored per summary sentence: each sentence vs. its source article, labelled by the majority annotator judgment.

Datasetnfinecat-nli-dbv3-m27B teacher (fast mode)
finecat180120.82760.8656
mnli98150.91110.9311
mnli_mismatched98300.91000.9305
snli98240.93240.9399
anli_r110000.76500.8630
anli_r210000.58200.7490
anli_r312000.52000.7100
wanli50000.75580.7796
lingnli73610.87150.8958
glue_diagnostic11000.73450.8118
med53800.79140.8039
nan_nli2580.73260.7403
scone_test10001.00000.9980
nmonli_test2001.00001.0000
conjnli6230.73190.7335
nope_adv3450.54490.5768
nli4ct1990.73370.8693
sdoh_nli9900.98280.9848
healthver2300.71740.7565
scifact3000.79670.8433
biosift10000.92300.9210
scientsbank9710.70550.7683
beetle8190.63980.6325
legal_domain11630.53310.6389
findver5000.60600.7660
dialfact14990.83120.8586
frank_sent31760.65590.8234
ragtruth14970.78220.8691
vast15000.78330.8053
zs_meta54000.92300.9344
seahorse8000.84130.8638
pubhealth6000.75000.8650
bionli6000.87830.9333
fin_topics6000.96000.9633
vitaminc100000.87500.9351
docnli10000.8400—
contractnli_a17070.92330.9285
contractnli_b20740.75170.9021
control8000.63500.8087
fol102770.80450.8430
scitail21260.94450.9652
wice9580.70880.9144
sick49060.92300.9213
crossingguard53970.91790.9344
hans150000.84990.9209

Macro average over the 45 datasets: 0.7962.

Training Details

This model is a fine-tune of microsoft/deberta-v3-base, trained on the dleemiller/FineCat-NLI-Reason dataset, a compilation of several high-quality NLI data sources with quality screening and reduction of easy samples in the training split. Also includes additional NLI, fact verification and long document sources (2.05M pairs in total). The training uses logit distillation from an NLI finetune of Qwen3.8-27B.

Distillation loss looks like this: $$ \begin{equation} \mathcal{L} = \alpha \cdot \mathcal{L}_{\text{CE}}(z^{(s)}, y) + \beta \cdot T^2 \cdot \mathrm{KL}\left(\sigma(z^{(t)}/T) ,|, \sigma(z^{(s)}/T)\right) \end{equation} $$

where \(z^{(s)}\) and \(z^{(t)}\) are the student and teacher logits, \(y\) are the ground truth labels, \(\alpha = 0.2\), \(\beta = 0.8\) and \(T = 1\).

Inputs are capped at DeBERTa-v3's 512-token pretraining length, truncating the premise only. The model was trained for 3 epochs at a constant learning rate followed by a 1-epoch cooldown, with fp32 master weights (the base checkpoint ships in fp16). The released weights are the soup greedy_val, selected on the validation/dev objective (never a test set), with the output temperature calibrated on the validation split. The learning rate was 1.3e-5: 0.85x the official DeBERTa-v3-base MNLI rate (1.5e-5), the same step-back the xsmall probe supported.


Acknowledgments

We thank Microsoft (DeBERTa-v3) and the Qwen team for making their work available. This model would not be possible without their efforts and open source contributions.

Citation

@misc{nli-compiled-2025,
  title = {FineCat NLI Dataset},
  author = {Lee Miller},
  year = {2025},
  howpublished = {Refined compilation of 6 major NLI datasets}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DebertaV2ForSequenceClassification
Ревизия весов
b943a93

0 моделей