/ Модель

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

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

AbsoluteZero-nli-9b

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

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

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

Бенчмарки

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

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

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

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

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

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

AbsoluteZero-nli-9b — англоязычная модель для вывода отношений между текстом и утверждением, разработанная dleemiller на базе Qwen/Qwen3.5-9B. Она предсказывает, следует ли утверждение из текста, противоречит ему или остаётся нейтральным, и выдаёт вероятности для этих классов. Модель дообучена как классификатор последовательностей с архитектурой NLIStudentForSequenceClassification; в быстром режиме классифицирует пару за один проход, а в режиме Think сначала генерирует короткую трассу рассуждения, после чего определяет итоговый класс.

Модель подходит для zero-shot-классификации и тегирования, маршрутизации запросов, проверки соответствия ответов найденным документам и проверки утверждений по политикам. Режим Think может помочь анализировать сложные пары с отрицаниями, кванторами и многошаговой логикой. Размер в метаданных — 7,2 млрд параметров; карточка также приводит результаты для обозначения версии 9B. Контекст модели — 262 144 токена, однако обучение проводилось на последовательностях до 8 тыс. токенов, а точность на документах длиннее 8 тыс. отдельно не проверялась. Лицензия — Apache-2.0.

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

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

AbsoluteZero NLI 9B

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 (~60 tokens on average on ANLI, ~250 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.6% (zs_meta, 18 tasks)
RAG groundingretrieved passages → generated answer87.0% (RAGTruth)
Guardrails / Moderationmessage → policy statement93.0% (CrossingGuard)
Clinical extractionclinical note → "The patient is unemployed."98.5% (SDOH-NLI)
Contract reviewcontract → "The agreement permits sharing data with third parties."93.5% (ContractNLI)

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

from sentence_transformers import CrossEncoder

model = CrossEncoder("dleemiller/AbsoluteZero-nli-9b", 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.956, 'shipping': 0.001, 'account access': 0.004}

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


Table of Contents


NLI Evaluation Results

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

ModelParamsSkill IndexAccuracymnlimnli_mismatchedsnlianli_r1anli_r2anli_r3wanlilingnliCALThroughput (pairs/s)
dleemiller/AbsoluteZero-nli-9b9.0B64.50.85080.92760.92790.93800.84600.73600.68250.77440.89026.284
dleemiller/AbsoluteZero-nli-4b4.2B61.80.83720.92110.92270.93660.82500.70600.65170.77180.88297.2159
dleemiller/AbsoluteZero-nli-2b1.9B59.60.82620.91300.91460.93320.78600.64700.60420.76560.87417.7353
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.80.72460.89810.92230.91920.72900.51300.49170.69700.849713.21,218
dleemiller/finecat-nli-l*396M37.60.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-9b", 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 floor.",
     "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.964, 'shipping': 0.001, 'account access': 0.005, 'customer support': 0.94}

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-9b", trust_remote_code=True)
pairs = [
    ("The glass fell off the counter and shattered on the tile floor.", "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 premise states the glass fell and shattered on the floor, which directly means it broke upon impact. This matches the hypothesis.
contradiction | The premise says the store opens at 9 a.m. every day, which includes weekdays. The hypothesis says it opens at 7 a.m. on weekdays. These times conflict, so the premise contradicts the hypothesis.
neutral | Presenting results does not imply winning an award, nor does it rule it out.

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

DatasetFastThinkThink tokens (avg.)
anli_r2 (test)0.72330.776762
anli_r3 (test)0.66000.703358
wanli (test)0.75000.726747
vitaminc (test)0.92000.860049
control (test)0.80000.780075
fol (test)0.85000.8600253
anli_dev_r10.84330.865157
anli_dev_r20.73160.757259
anli_dev_r30.65580.681159

Think mode is clearly better on adversarial NLI (ANLI +2-5 points) and logic; fast mode is better on short factual checks (VitaminC, WANLI). 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.


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. Scored with the OpenNLI evaluation (DocNLI: 1,000-pair subset; VitaminC: 10,000; FRANK per sentence), plus the FineCat test split.

DatasetnAbsoluteZero-nli-9bAbsoluteZero-nli-4bAbsoluteZero-nli-2b
finecat180120.85980.85330.8412
mnli98150.92760.92110.9130
mnli_mismatched98300.92790.92270.9146
snli98240.93800.93660.9332
anli_r110000.84600.82500.7860
anli_r210000.73600.70600.6470
anli_r312000.68250.65170.6042
wanli50000.77440.77180.7656
lingnli73610.89020.88290.8741
glue_diagnostic11000.78360.75730.7464
sick49060.92500.92440.9215
scitail21260.96990.96710.9647
hans150000.85500.84700.8655
med53800.80520.79440.7848
nan_nli2580.74810.74420.7403
scone_test10001.00001.00000.9980
nmonli_test2001.00001.00001.0000
conjnli6230.73680.72870.7271
nope_adv3450.57970.55070.5159
fol102770.85670.84820.8189
control8000.79130.76620.7137
vitaminc100000.90950.90310.8751
dialfact14990.85320.84990.8359
frank_sent31760.83780.81770.8130
ragtruth14970.86970.86370.8584
seahorse8000.85120.84130.8425
wice9580.89770.89870.8967
docnli10000.86500.85200.8430
pubhealth6000.87500.86170.8533
healthver2300.81300.75220.8000
scifact3000.87670.87670.8767
findver5000.74200.72400.6920
nli4ct1990.87940.85430.8543
sdoh_nli9900.98480.98180.9828
biosift10000.91900.92400.9190
bionli6000.94830.91670.9117
scientsbank9710.77030.76930.7539
beetle8190.67770.66670.6654
legal_domain11630.60190.58040.5365
contractnli_a17070.93500.92910.9268
contractnli_b20740.90450.90260.8992
vast15000.80930.79130.7813
zs_meta54000.93560.93410.9254
fin_topics6000.97330.97000.9583
crossingguard53970.93010.92480.9209

Macro average over the 45 datasets: 0.8510 (4B: 0.8397, 2B: 0.8288).


Training Details

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

Stage 1: distillation. Full fine-tune (all weights) & 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 more accurate on adversarial NLI and shorter: ANLI dev 0.758 → 0.765 (composite), and on first-order-logic validation problems traces were cut from ~330 to ~240 tokens at equal accuracy (0.874 → 0.872).

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


Limitations

  • English only.
  • Throughput: ~84 pairs/s on short pairs (~25 on long documents) in fast mode (RTX PRO 6000, 250 W); 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-9b}}
}

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

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

GPU в ailist

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

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

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

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

0 моделей