/ Модель

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

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

finecat-nli-dbv3-l

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

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

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

Бенчмарки

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

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

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

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

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

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

FineCat-NLI dbv3 Large — англоязычная модель классификации текстовых пар, разработанная автором репозитория на базе Microsoft DeBERTa-v3-large и дообученная для распознавания логического отношения между посылкой и гипотезой. Для пары текстов она оценивает вероятности следования, нейтрального отношения и противоречия; эти оценки можно использовать для классификации по заданным категориям без отдельного классификатора для каждой задачи.

Модель подходит для тематической разметки и маршрутизации запросов, проверки соответствия ответов найденным фрагментам в RAG-системах, а также для проверок по заданным политикам. Архитектура — DeBERTa V2 для классификации последовательностей, около 533,8 млн параметров; максимальный контекст — 512 токенов. Репозиторий использует формат safetensors и библиотеку Sentence Transformers. Лицензия — Apache-2.0.

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

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

FineCat-NLI dbv3 Large (DeBERTa-v3-large)

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
Routing / triagerequest → "The user wants to set an alarm."98.3% (MASSIVE intents)
RAG groundingretrieved passages → generated answer0.78 F1 (RAGTruth)
Guardrails / Moderationmessage → policy statement92.0% (CrossingGuard), 94.0% (Wikipedia insults)
Zero-shot classification / taggingreview → "This review is positive."93.1% (18 tasks)
Clinical extractionclinical note → "The patient is unemployed."98.7% (SDOH-NLI)

435M parameters (microsoft/deberta-v3-large, 304M backbone) · inputs up to 512 tokens · ~1,100 pairs/s · Apache-2.0

from sentence_transformers import CrossEncoder

model = CrossEncoder("dleemiller/finecat-nli-dbv3-l")
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.951, 'shipping': 0.003, 'account access': 0.015}

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-xl1.03B59.50.82630.92020.91910.93560.78600.66000.60670.77100.88346.1576
dleemiller/finecat-nli-ultra-l378M58.60.82130.91270.91320.93020.79100.64000.58080.76980.87086.61,487
dleemiller/finecat-nli-dbv3-l435M58.00.81990.92530.92250.93770.81100.69600.61920.76920.89476.11,086
dleemiller/finecat-nli-v2-l396M57.80.81820.91640.91220.93290.77600.60400.57670.76640.87756.51,224
dleemiller/finecat-nli-dbv3-m184M52.50.79380.91070.90960.93240.76500.58200.52170.75620.87127.23,206
MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli435M27.90.67670.91230.90770.88970.79500.68200.63920.76960.881525.31,092
sileod/deberta-v3-large-tasksource-nli*435M24.80.63430.92980.94470.92110.73700.57700.49750.67860.867317.91,091
cross-encoder/nli-deberta-v3-large435M13.10.59100.90180.90460.92210.53000.41800.37580.65480.846537.41,094

* 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-l")
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-l27B teacher (fast mode)
finecat180120.84950.8656
mnli98150.92540.9311
mnli_mismatched98300.92240.9305
snli98240.93750.9399
anli_r110000.81200.8630
anli_r210000.69500.7490
anli_r312000.61920.7100
wanli50000.76880.7796
lingnli73610.89460.8958
glue_diagnostic11000.76820.8118
med53800.79670.8039
nan_nli2580.74420.7403
scone_test10001.00000.9980
nmonli_test2001.00001.0000
conjnli6230.75120.7335
nope_adv3450.59710.5768
nli4ct1990.81910.8693
sdoh_nli9900.98690.9848
healthver2300.73910.7565
scifact3000.85000.8433
biosift10000.92700.9210
scientsbank9710.74050.7683
beetle8190.63740.6325
legal_domain11630.52790.6389
findver5000.63600.7660
dialfact14990.84260.8586
frank_sent31760.73490.8234
ragtruth14970.80560.8691
vast15000.79870.8053
zs_meta54000.93090.9344
seahorse8000.84880.8638
pubhealth6000.78330.8650
bionli6000.92670.9333
fin_topics6000.97000.9633
vitaminc100000.90690.9351
docnli10000.8660—
contractnli_a17070.93150.9285
contractnli_b20740.76080.9021
control8000.68750.8087
fol102770.83730.8430
scitail21260.95670.9652
wice9580.73800.9144
sick49060.92740.9213
crossingguard53970.92000.9344
hans150000.85700.9209

Macro average over the 45 datasets: 0.8217.

Training Details

This model is a fine-tune of microsoft/deberta-v3-large, 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 6e-6: 0.85x the official DeBERTa-v3-large MNLI rate (7e-6), 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
Ревизия весов
64fbf58

0 моделей