/ Модель

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

Контекст
262 144 токена
Параметры
3,4 млрд
Лицензия
Apache 2.0
Архитектура
qwen3_5_text · dense
Базовая модель
Qwen3.5-4B
Библиотека
sentence-transformers
Опубликована
3 ноя 2026

AbsoluteZero-nli-4b

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

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

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

Бенчмарки

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

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

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

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

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

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

AbsoluteZero-nli-4b — англоязычная модель для вывода отношений между текстом и утверждением, разработанная dleemiller на базе Qwen/Qwen3.5-4B и дообученная для классификации NLI. Для пары «посылка — гипотеза» она оценивает вероятности следования, противоречия и нейтрального отношения. Модель содержит около 3,4 млрд параметров по метаданным; карточка приводит результаты для версии с 4,2 млрд параметров. Доступна в формате safetensors через sentence-transformers, лицензия Apache-2.0. Метаданные указывают нативный контекст 262 144 токена, однако обучение проводилось на примерах до 8 тысяч токенов, а точность на более длинных документах отдельно не проверена.

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

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

  • zero-shot-классификация тем по тексту
  • проверка, следует ли ответ из найденных документов
  • выявление противоречий между документом и утверждением
  • маршрутизация запросов по их смыслу
  • анализ причин сложных ошибок классификации с помощью трасс рассуждения

Ограничения

Модель работает только с английским языком; качество отдельно не проверено для документов длиннее 8 тысяч токенов. Она слабее на финансовой и общей юридической проверке и состязательных рассуждениях; уверенность в режиме Think хуже откалибрована.

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

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

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

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

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

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

Открыть на Hugging Face

AbsoluteZero NLI 4B

Observable NLI with think traces

Provide a text (premise) and a statement (hypothesis), and it returns calibrated probabilities that the text entails, contradicts, or is neutral to the statement. One model answers in two ways:

  • Fast mode: a single forward pass and a classifier head (similar to cross-encoders).
  • Think mode: the model writes a short reasoning trace, then the scoring head reads it and gives the verdict. Use it on the hard cases, such as multi-step logic, quantifiers and negation, long contracts and policies. Traces are short (~50 tokens on average on ANLI, ~200 on first-order-logic problems).

Benefits of observation

Typical zero-shot encoder models cannot provide information that elucidates why they chose their classification. Think traces enable users to inspect and determine how to augment hypotheses to fix or improve classification. This could be done in conjunction with automation for grouping classification failures and using an LLM to test changes to the hypothesis against a holdout set.

Examples

UseText → statementResult (fast mode)
Zero-shot classification / taggingreview → "This review is positive."93.4% (zs_meta, 18 tasks)
RAG groundingretrieved passages → generated answer86.4% (RAGTruth)
Guardrails / Moderationmessage → policy statement92.5% (CrossingGuard)
Clinical extractionclinical note → "The patient is unemployed."98.2% (SDOH-NLI)
Contract reviewcontract → "The agreement permits sharing data with third parties."92.9% (ContractNLI)

4.2B parameters · documents up to 32k tokens · #1 on the OpenNLI Skill Index (11-03-26, fast mode) · Apache-2.0

from sentence_transformers import CrossEncoder

model = CrossEncoder("dleemiller/AbsoluteZero-nli-4b", trust_remote_code=True)
text = "My card was charged twice for the same order."
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.92, 'shipping': 0.001, 'account access': 0.001}

More in Think Mode, Recommended Applications and the 45-dataset evaluation.


Table of Contents


NLI Evaluation Results

Comparison on the OpenNLI leaderboard (v0.2.0), fast mode.

ModelParamsSkill IndexAccuracymnlimnli_mismatchedsnlianli_r1anli_r2anli_r3wanlilingnliCALThroughput (pairs/s)
dleemiller/AbsoluteZero-nli-4b4.2B61.80.83720.92110.92270.93660.82500.70600.65170.77180.88297.2159
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-v2-l396M57.80.81820.91640.91220.93290.77600.60400.57670.76640.87756.51,224
tasksource/ModernBERT-large-nli*396M37.70.72460.89810.92230.91920.72900.51300.49170.69700.849713.21,218
dleemiller/finecat-nli-l*396M37.50.72920.91550.92690.91620.74700.56800.54250.77080.874520.91,225
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.63410.92980.94470.92110.73700.57700.49750.67860.867317.91,091

* 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

Fast mode (Sentence Transformers)

pip install -U sentence-transformers
from sentence_transformers import CrossEncoder
import numpy as np

model = CrossEncoder("dleemiller/AbsoluteZero-nli-4b", trust_remote_code=True)
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
]

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

The model reads each pair in its training layout (Premise: … / Hypothesis: … / <think></think> / Relation:); the tokenizer shipped with the model builds it, so pass plain (premise, hypothesis) pairs. Inputs are right-padded; the head reads each row's last token.

Scoring multiple hypotheses on one text. The model is causal and the premise comes first, so for tagging or checking many claims against one document, score_many encodes the premise once and scores every hypothesis from that cached state: the same predictions as scoring pair by pair, ~10x faster for 50 labels on a ~500-token document.

doc = "My card was charged twice for the same order, and support hasn't replied in a week."
labels = ["billing", "shipping", "account access", "customer support"]
logits = model.model.score_many(model.tokenizer, doc, [f"This text is about {l}." for l in labels])
print({l: round(p, 3) for l, p in zip(labels, logits.softmax(-1)[:, 0].tolist())})  # P(entailment) per label
# {'billing': 0.908, 'shipping': 0.001, 'account access': 0.002, 'customer support': 0.982}

Think Mode

Think mode is a method on the loaded model; it returns the verdict, its probabilities and the trace.

from sentence_transformers import CrossEncoder

model = CrossEncoder("dleemiller/AbsoluteZero-nli-4b", trust_remote_code=True)
pairs = [
    ("The glass fell off the counter and shattered on the tile.", "The glass broke when it hit the floor."),
    ("The store opens at 9 a.m. every day.", "The store opens at 7 a.m. on weekdays."),
    ("A researcher presented results at the conference.", "The presentation won the best paper award."),
]
for r in model.model.think(model.tokenizer, pairs):
    print(r["label"], "|", r["trace"])
entailment | The glass shattered on the tile, which is the floor, so it broke when it hit the floor.
contradiction | The premise says the store opens at 9 a.m. every day, which directly conflicts with the hypothesis that it opens at 7 a.m. on weekdays.
neutral | The premise only states that a researcher presented results; it says nothing about awards or recognition. Winning the best paper award is possible but not implied or ruled out by the premise.

Think vs. fast (test sets: n=300 pairs each; ANLI dev: full dev splits):

DatasetFastThinkThink tokens (avg.)
anli_r2 (test)0.67000.700055
anli_r3 (test)0.65330.653356
wanli (test)0.76000.760047
vitaminc (test)0.89330.876744
control (test)0.77000.743370
fol (test)0.83670.8133210
anli_dev_r10.82810.842251
anli_dev_r20.70800.725155
anli_dev_r30.64950.646854

Both modes have comparable accuracy with some variation. Confidence is calibrated for fast mode, while adding think traces will make the classification head certain toward the think trace, so confidence cannot be used in that mode (on these test items: mean confidence 0.93 in think mode vs. 0.86 in fast mode; calibration error 18.6% vs. 12.2%).


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, control, 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
Logical reasoning (think mode)Conclusion vs. premisesfol, control, anli

Less suited: financial and general legal verification (findver, legal_domain), and adversarial reasoning (anli_r3, nope_adv).


Extended Evaluation (45 datasets)

Accuracy (fast mode) 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. DocNLI and VitaminC are evaluated on fixed random subsets of 5,000 and 10,000 pairs; FRANK is scored per summary. — = not on the same items.

DatasetnAbsoluteZero-nli-4bfinecat-nli-v2-xl27B teacher (fast mode)
finecat180120.85330.84450.8656
mnli98150.92070.92020.9311
mnli_mismatched98300.92260.91910.9305
snli98240.93670.93560.9399
anli_r110000.82600.78600.8630
anli_r210000.70600.66000.7490
anli_r312000.65420.60670.7100
wanli50000.77200.77100.7796
lingnli73610.88300.88340.8958
glue_diagnostic11000.75640.75820.8118
med53800.79410.81470.8039
nan_nli2580.74810.71710.7403
scone_test10001.00001.00000.9980
nmonli_test2001.00001.00001.0000
conjnli6230.73030.71910.7335
nope_adv3450.55070.57390.5768
nli4ct1990.85430.81410.8693
sdoh_nli9900.98180.98790.9848
healthver2300.75650.76090.7565
scifact3000.87670.87330.8433
biosift10000.92400.92000.9210
scientsbank9710.76830.75080.7683
beetle8190.66670.64220.6325
legal_domain11630.58130.49180.6389
findver5000.72400.65600.7660
dialfact14990.85120.84120.8586
frank15720.7417——
ragtruth14970.86440.85440.8691
vast15000.79070.79330.8053
zs_meta54000.93410.93040.9344
seahorse8000.84130.85620.8638
pubhealth6000.86170.85000.8650
bionli6000.91670.91330.9333
fin_topics6000.97000.97670.9633
vitaminc100000.90300.90620.9351
docnli50000.8516——
contractnli_a17070.92910.92790.9285
contractnli_b20740.90260.89540.9021
control8000.76750.75250.8087
fol102770.84810.87270.8430
scitail21260.96710.96610.9652
wice9580.89980.88100.9144
sick49060.92460.93170.9213
crossingguard53970.92480.92500.9344
hans150000.84680.84630.9209

Macro average over the 45 datasets: 0.8383.


Training Details

This model is a fine-tune of Qwen/Qwen3.5-4B (text backbone), trained in two stages.

Stage 1: distillation. LoRA & two classifier heads, trained on the FineCat-NLI-Reason compilation relabelled by an NLI fine-tune of Qwen3.8-27B.

Stage 2: reinforcement learning on think mode (GRPO). Think mode was further trained with 32 sampled traces per prompt, reward = correctness of the verdict with a soft overlong penalty, a repetition penalty and a floor that discourages trace collapse.

Stage 2 made think mode both more accurate and much shorter. On first-order-logic validation problems, accuracy 0.836 → 0.858 with traces cut from ~340 to ~200 tokens on average.

The released weights are the stage-2 LoRA merged into the stage-1 weights, stored in bfloat16.


Limitations

  • English only.
  • Throughput: ~160 pairs/s on short pairs (~40 on long documents) in fast mode; use the FineCat encoders for very high volume or tight latency. Think mode generates a trace per pair (~1-10 pairs/s with transformers, depending on trace length; vLLM is faster).
  • Trained on inputs up to 8k tokens; scored at up to 32k, but accuracy on documents longer than 8k is not separately tested.
  • Weaker on financial and general legal verification (findver, legal_domain) and adversarial reasoning (anli_r3, nope_adv).

Acknowledgments

We thank the Qwen team for making their work available. This model would not be possible without their efforts and open source contributions.

Citation

@misc{absolutezero-2026,
  title = {AbsoluteZero: Observable NLI},
  author = {Lee Miller},
  year = {2026},
  howpublished = {\url{https://huggingface.co/dleemiller/AbsoluteZero-nli-4b}}
}

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
NLIStudentForSequenceClassification
Ревизия весов
9dc3359

0 моделей