Instructions to use blackmallangcow/nari-decision-9b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use blackmallangcow/nari-decision-9b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="blackmallangcow/nari-decision-9b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("blackmallangcow/nari-decision-9b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
nari-decision-9b
A Korean + English decision model. Give it a state (text or JSON: a conversation, a document, a tool result…) and typed questions — yes/no (noul), pick-one (choice), or ordinal (score) — and it returns a calibrated probability for every option in one forward pass, without generating text. Use the confidence to route low-certainty cases to a person or a larger model (selective prediction). From the same pass it reads two answers per question — a trained decision head and the backbone's own answer letter — and averages them.
한국어·영어 결정 모델입니다. 상태(대화·문서·도구 결과 등)와 타입이 정해진 질문(예/아니오, 하나 고르기, 순서 척도)을 받아, 글을 생성하지 않고 한 번의 forward로 선택지마다 보정된 확률을 냅니다. 라우팅, 가드레일(그대로 보내도 되나), RAG 관련성 판단, 에이전트 분기, 데이터 라벨링에 씁니다. 같은 forward에서 질문마다 학습한 결정 헤드의 답과 백본이 직접 고른 글자 답을 함께 읽어 평균합니다.
Highlights
- Reads the instruction, negation included. Asked about the same text and options for the statement that matches and for the one that does not (1,000 held-out KLUE-NLI pairs, instruction wording not seen in training), it gets both right in 99.1% of pairs (nari-decision-4b v3.2: 98.3%).
- Fast: all questions in one forward pass. 42 ms per request on one NVIDIA A100 80GB PCIe at batch 1 with
enable_cuda_graphs()(62 ms without; mean of 5 requests) — 43% faster than clef-flash (9B) (73 ms) and 70% faster than JEV-9B (141 ms). Longer states and more questions add little (30 → 59 ms from simple to complex requests); models that send one request per question grow with each (JEV-9B 86 → 225 ms). Only laya-multilingual, laya (English) and nari-decision-4b (v3.2) are faster (23–32 ms), at 30–82% accuracy on the eval set. - Calibrated confidence. One temperature per question type, fitted on a separate calibration split: held-out ECE 0.016, eval set 0.062. Send low-confidence cases to a person or a larger model.
| Model | Size | Held-out ko | Held-out en | Eval set ko | Eval set en | ms / request |
|---|---|---|---|---|---|---|
| nari-decision-9b (this model) | 9B | 86.8 | 86.3 | 82.9 | 75.6 | 42 |
| clef-flash (9B) | 9B | 75.2 | 69.8 | 73.8 | 71.8 | 73 |
| JEV-9B | 9B | 67.3 | 53.2 | 76.0 | 67.3 | 141 |
| laya-multilingual | 322M | 51.0 | 49.9 | 36.4 | 30.1 | 23 |
| laya (English) | 395M | — | 52.1 | — | 36.5 | 30 |
| nari-decision-4b (v3.2) | 4B | 85.9 | 85.3 | 82.1 | 76.9 | 32 |
Accuracy (%) after temperature calibration, same questions for every model (on held-out, JEV-9B skip questions with more options than they can take). ms / request: mean of 5 requests at batch 1 on one NVIDIA A100 80GB PCIe (this model with enable_cuda_graphs()). Details under Evaluation.
요약
- 지시문을 읽습니다 (부정형 포함). 같은 글·같은 보기에 맞는 것과 맞지 않는 것을 각각 물으면 (KLUE-NLI 검증 1,000쌍, 학습에 없던 지시문) 두 질문을 모두 맞히는 비율이 99.1%입니다 (nari-decision-4b v3.2: 98.3%).
- 빠릅니다. 질문 여러 개를 한 번의 forward로 판단해 NVIDIA A100 80GB PCIe 한 장, 배치 1에서 요청당 42ms입니다 (
enable_cuda_graphs()를 켠 값이고 끄면 62ms, 5건 평균). clef-flash (9B) 73ms보다 43%, JEV-9B 141ms보다 70% 빠릅니다. 질문이 늘고 상태가 길어져도 30ms → 59ms로 조금만 늘어납니다. 이보다 빠른 건 23–32ms인 laya-multilingual·laya (English)·nari-decision-4b (v3.2)뿐이고, 평가셋 정확도는 30–82%입니다. - 확률이 보정되어 있습니다. 질문 타입별 temperatures를 따로 떼어 둔 보정 분할로 맞춰 held-out ECE 0.016, 평가셋 0.062입니다. 확신이 낮은 건은 사람이나 더 큰 모델로 넘기면 됩니다.
Usage
from transformers import AutoModel, AutoTokenizer
tok = AutoTokenizer.from_pretrained("blackmallangcow/nari-decision-9b", trust_remote_code=True)
model = AutoModel.from_pretrained("blackmallangcow/nari-decision-9b", trust_remote_code=True).eval()
# On a GPU, for one request at a time: record the forward once per input-length bucket (about 5 s), then reuse it
# model.to("cuda").enable_cuda_graphs()
out = model.decide(
tok,
state="고객: 지난주 주문이 두 번 결제됐어요. 한 건은 취소해 주세요.",
questions={
"refund": {"type": "noul", "instructions": "환불·취소 요청인가요?"},
"team": {"type": "choice", "instructions": "담당 팀을 고르세요.",
"options": ["billing", "shipping", "account", "none"]},
"urgency": {"type": "score", "instructions": "긴급도", "options": ["1", "2", "3", "4", "5"]},
},
)
# {"answers": {"refund": {"answer": True, "p_true": ..., "probs": {...}},
# "team": {"answer": "billing", "confidence": ..., "probs": {...}},
# "urgency": {"answer": "3", "confidence": ..., "expected": ..., "probs": {...}}},
# "truncated": False}
instructionsis optional; the question name and options alone also work. Korean or English.- If state + questions exceed 16,384 tokens the state is cut in the middle, keeping its first quarter and last three quarters of the room (
truncatedtells you). Questions and options are never cut. - Several questions can be asked about the same state in one call.
- Each answer also has
paths: the decision head's and the backbone letter's probabilities before averaging and calibration. Questions with more than 26 options use the head only. - Needs a recent
transformerswith Qwen3.5 support.flash-linear-attentionandcausal-conv1dmake it faster on GPU but are optional.
Guidelines
Writing questions
Give each question a name that says what it asks. The name is written into the input, and without
instructionsit is the whole question:### 질문 1: q1 [예/아니오 (true/false)] <- the model cannot tell what is asked ### 질문 1: contains_pii [예/아니오 (true/false)] <- the name alone asks the questionq1→contains_pii(does the text expose personal information?)flag→safe_to_send(can this reply go to the user as is?)cat→support_team(which team should handle it?)level→urgency(how urgent, 1–5?)
Add a
noneoption when none of the options may apply.Keep options mutually exclusive.
Put everything the decision depends on into the state, including settings and earlier turns. The model is more likely to call information missing when it appears only indirectly: in settings, in an earlier turn, or loosely ("any time this week").
For an ordinal question (
"type": "score"), list its options from lowest to highest, e.g.["1", "2", "3", "4", "5"]or["low", "medium", "high"]. The model reads this order as the scale, and the answer'sexpectedis the probability-weighted position (1 = the first option).Phrase yes/no (
noul) questions so that "yes" is the case you want to catch;p_trueis its probability.With up to 26 options both readouts answer; with more, only the decision head does.
Act on the confidence
Use the probability, not only the top answer: act automatically above a threshold and send the rest to a person or a larger model.
Example from the System One eval set: 50 guardrail responses (26 unsafe, 24 safe), sending a response only when p_true of safe_to_send is at least the threshold.
| Threshold | Unsafe responses sent | Safe responses held for a person |
|---|---|---|
| 0.5 | 4 / 26 | 2 / 24 |
| 0.8 | 1 / 26 | 3 / 24 |
| 0.9 | 0 / 26 | 5 / 24 |
The sample is small. Start near these values and set the threshold on a few hundred labeled examples of your own.
For questions that decide whether to ask the user back (is information missing, does the request need clarification), ask back only above a higher threshold. Example from the System One eval set: 51 clarification questions, 21 where the information is given and 30 where it is missing, counting an answer as "missing" only when p_true is at least the threshold.
| Threshold | Information given but called missing | Missing information not caught |
|---|---|---|
| 0.5 | 3 / 21 | 3 / 30 |
| 0.7 | 3 / 21 | 5 / 30 |
| 0.8 | 3 / 21 | 6 / 30 |
Again a small sample: tune the threshold on your own requests.
For ordinal (score) questions, read expected or the whole distribution rather than only the top option: on held-out the top option is exactly right 59.2% of the time, but within one step 91.2%.
Pin the version
Without revision, from_pretrained follows main, which moves with each release. In production, pin one: revision="v2.0".
Re-fit the temperatures
Probabilities are scaled by temperatures fitted on the calibration split, kept in model.config.temperatures. On data unlike the training mix, re-fit them: set model.config.temperatures = {"*": 1.0} to get unscaled probabilities, collect them for a few hundred labeled questions of your own, find for each key the value T that minimizes the log loss of softmax(log p / T), and write the values back.
Keys are type:options (choice:6+, choice:3-5, noul:2, choice:2, choice:27+, score:3-5, score:6+, where choice:27+ is for head-only questions); * is used for any missing key.
Intended use
- Decisions over text you already have: routing, guardrail checks, RAG relevance, agent branching, ticket triage, moderation queues and labeling, with low-confidence cases sent to a person or a larger model.
Out of scope
- Decisions with legal, medical, hiring or credit consequences without human review.
- A general content-safety filter: the guardrail questions cover PII, secrets and prompt injection.
- Questions that need broad knowledge or long reasoning (see Limitations), and generating text.
Bias
- Part of the training data is hate-speech and social-bias data (K-MHaS, Korean HateSpeech, KoSBi, DynaHate, Civil Comments). Judgments about groups of people can still be biased. On KoBBQ (Korean bias QA, never trained on) it answers 81.6% correctly.
Hardware
- The weights are bf16: 7.9B parameters, 15.92 GB (text model only; the backbone's vision part is left out). Plan on GPU memory beyond that for the input;
enable_cuda_graphs()keeps extra buffers for its recordings. enable_cuda_graphs()needs a CUDA GPU. CPU and Apple Silicon (MPS) are untested.- There is no quantized version: quantizing would change the scores the
temperatureswere fitted on. decide()takes one state per call; for bulk labeling, loop over the records (about 24 requests per second on one NVIDIA A100 80GB PCIe withenable_cuda_graphs()).
사용 가이드 요약
- 질문 이름은 무엇을 묻는지 드러나게 짓습니다. 이름이 입력에
### 질문 1: contains_pii [예/아니오 (true/false)]처럼 그대로 들어가서, 지시문이 없으면 이름이 곧 질문입니다. 예:q1대신contains_pii(개인정보가 드러나 있나),flag대신safe_to_send(그대로 보내도 되나),cat대신support_team(어느 팀이 맡나),level대신urgency(얼마나 급한가, 1–5). - 맞는 선택지가 없을 수 있으면 선택지에
none을 넣습니다. - 선택지끼리 뜻이 겹치지 않게 씁니다.
- 판단에 필요한 설정·앞선 대화는 상태에 직접 넣습니다. 정보가 설정이나 앞선 대화에만 있거나 느슨하게 주어지면 ("이번 주 중 아무 때나") 빠졌다고 판정하기 쉽습니다.
- 순서 척도 질문(
"type": "score")은 선택지를 낮은 쪽에서 높은 쪽 순서로 적습니다. 예:["1", "2", "3", "4", "5"],["낮음", "보통", "높음"]. 모델은 이 순서를 척도로 읽고, 답의expected도 이 순서의 순번(첫 선택지 = 1)으로 계산합니다. - 확률로 판단합니다. 평가셋 가드레일 50건에서
safe_to_send의p_true가 0.9 이상일 때만 보내면 위험 응답 26건 가운데 0건이 나가고, 안전 응답 24건 가운데 5건을 사람에게 넘깁니다. 표본이 작으니 자기 데이터로 문턱값을 정하세요. - 사용자에게 되물을지 정하는 질문(정보가 빠졌나, 확인이 필요한가)은 더 높은 확신에서만 되묻습니다. 평가셋 clarify 51문항에서
p_true0.5 이상을 빠짐으로 보면 정보가 있는 21문항 중 3개를 빠졌다고 하고, 0.7 이상이면 3개로 줄어듭니다 (정말 빠진 30문항 중 놓치는 수는 3 → 5). - 순서 척도 질문은 1등 선택지만 보지 말고
expected나 확률 분포를 봅니다. held-out에서 1등 선택지가 정확히 맞는 건 59.2%지만, 한 칸 차이 안에는 91.2%가 들어옵니다. - 운영에서는
revision="v2.0"로 버전을 고정합니다. 지정하지 않으면 새 버전이 나올 때 바뀝니다. - 학습 분포와 다른 데이터에서는
temperatures를 자기 데이터 수백 건으로 다시 맞춥니다 (model.config.temperatures). - 법률·의료·채용·대출처럼 결과가 큰 결정에는 사람 검토 없이 쓰지 않습니다. 일반 유해 콘텐츠 필터가 아니고, 넓은 지식이나 긴 추론이 필요한 질문과 글 생성에는 맞지 않습니다.
- 가중치는 bf16 15.92GB이고 그보다 많은 GPU 메모리가 필요합니다. CUDA 그래프는 CUDA GPU에서만 되고, 양자화본은 없습니다.
Versions
- v2.0 (2026-11-13, this version) — nari-decision 2.0: the same decision model on a 9B backbone (Qwen3.5-9B instead of Qwen3.5-4B), reading up to 16,384 tokens (v3.2: 2,048). Trained in two stages: one epoch over the main mix (368,269 records, 23,017 steps), then one epoch over 99,152 records of program-generated decisions and records replayed from the main mix (6,197 steps), 29,214 steps in total
- The 4B line (v1.0–v3.2) stays at blackmallangcow/nari-decision-4b. It is smaller and faster (32 ms per request with
enable_cuda_graphs(), measured on another A100) - New training data: asking back for one specific missing detail, prerequisite tool steps, statements checked against long contracts, "none" counterfactual pairs (the same input with the right option removed), the active intent in multi-service dialogues (SGD), and long inputs (passages and tool lists up to 16,384 tokens)
- New program-generated data, with values and answers computed by program: home-device commands, code execution (MBPP and HumanEval functions), symbolic and rule puzzles, causal questions, and chord labels (POP909-CL)
- Compared with nari-decision-4b v3.2 on the same questions:
- System One eval set: 80.5% → 80.7% (Korean 82.1% → 82.9%, English 76.9% → 75.6%), ECE 0.041 → 0.062
- By category: clarify 80.4% → 88.2%, rag_gate 83.5% → 85.7%, routing 72.1% → 74.6%, agent 84.2% → 84.2%, guardrail 83.0% → 77.0%
- Held-out, same 79,688 questions: 85.6% → 86.6%, ECE 0.012 → 0.016
- Never trained on: MMMLU-ko, all 13,912 questions 58.5% → 63.4%; Belebele-ko (reading) 84.6% → 89.5%; law exams (2026 rounds after the training ones, 188 questions) 43.1% → 38.8%
- Polarity pairs, both right: 98.3% → 99.1%
- Weaker than v3.2: guardrail questions on the eval set (83.0% → 77.0%), KoBBQ bias questions (87.5% → 81.6%), the 2026 law exams (43.1% → 38.8%, 188 questions), and calibration on the eval set (ECE 0.041 → 0.062)
- 백본을 Qwen3.5-4B에서 Qwen3.5-9B로 바꾸고 입력을 16,384토큰까지 읽게 한 nari-decision 2.0입니다. 빠진 정보 되묻기, 선행 도구, 긴 계약서 대조, none 반사실 짝과 프로그램이 만든 데이터(가전 명령, 코드 실행, 기호·규칙 퍼즐, 인과, 화음)를 더했습니다. 같은 문항에서 v3.2보다 평가셋 clarify 80.4% → 88.2%, held-out 85.6% → 86.6%, MMMLU 한국어 58.5% → 63.4%로 올랐고, guardrail은 83.0% → 77.0%, 법무부 시험은 43.1% → 38.8%로 내려갔습니다. 4B(v3.2)는 nari-decision-4b 저장소에 그대로 있습니다
- The 4B line (v1.0–v3.2) stays at blackmallangcow/nari-decision-4b. It is smaller and faster (32 ms per request with
Evaluation
Held-out (79,688 questions)
Official validation/test splits of the training sources plus evaluation-only benchmarks (APEACH, Belebele 한국어, KoBBQ, MMMLU 한국어), at most 1,000 records per task. Never used for training or calibration.
| Questions | Accuracy (%) | ECE (raw → calibrated) | NLL | Brier | Selective acc @80% (%) | |
|---|---|---|---|---|---|---|
| All | 79,688 | 86.6 | 0.036 → 0.016 | 0.373 | 0.180 | 94.0 |
| Korean | 43,730 | 86.8 | 0.028 → 0.025 | 0.363 | 0.188 | 93.8 |
| English | 35,958 | 86.3 | 0.050 → 0.011 | 0.385 | 0.171 | 94.2 |
| noul | 45,371 | 91.5 | 0.033 → 0.011 | 0.237 | 0.119 | 96.5 |
| choice | 27,907 | 84.9 | 0.042 → 0.024 | 0.454 | 0.208 | 92.7 |
| score | 6,410 | 59.2 | 0.051 → 0.025 | 0.980 | 0.486 | 65.3 |
The numbers above are from the evaluated model (LoRA kept separate). The released weights merge the LoRA into bf16; on a sample, accuracy of evaluated → released: eval set: 81.22 → 81.22 % (362 questions, answers agree 100.0%); held-out: 85.97 → 85.97 % (2,602 questions, answers agree 99.9%).
System One eval set (519 questions, 200 items: Korean 140 / English 60)
Hand-checked scenarios close to real use: routing, guardrails, RAG relevance gates, agent branching, clarification. Written with an open-weights model and reviewed item by item; no overlap with the training data (MinHash, Jaccard 0.5).
| Questions | Accuracy (%) | ECE (raw → calibrated) | NLL | Brier | Selective acc @80% (%) | |
|---|---|---|---|---|---|---|
| All | 519 | 80.7 | 0.059 → 0.062 | 0.504 | 0.281 | 87.5 |
| Korean | 363 | 82.9 | 0.074 → 0.057 | 0.443 | 0.250 | 89.3 |
| English | 156 | 75.6 | 0.059 → 0.108 | 0.646 | 0.351 | 84.0 |
| noul | 220 | 86.4 | 0.044 → 0.059 | 0.344 | 0.213 | 91.5 |
| choice | 200 | 89.0 | 0.074 → 0.039 | 0.329 | 0.163 | 96.9 |
| score | 99 | 51.5 | 0.184 → 0.248 | 1.214 | 0.668 | 50.0 |
| Category | Accuracy (%) | ECE |
|---|---|---|
| routing | 74.6 | 0.111 |
| guardrail | 77.0 | 0.120 |
| rag_gate | 85.7 | 0.083 |
| agent | 84.2 | 0.076 |
| clarify | 88.2 | 0.117 |
Ordinal (score) questions
Exact accuracy is strict for ordinal labels, and most misses are one step off. expected is the probability-weighted position of the answer (1 = the first option); its error is counted in option steps.
| Set | Questions | Exact (%) | Within one step (%) | Mean error of expected (steps) |
ECE |
|---|---|---|---|---|---|
| Held-out | 6,410 | 59.2 | 91.2 | 0.60 | 0.025 |
| ↳ HelpSteer2 response ratings, 0–4 | 5,000 | 59.4 | 92.2 | 0.59 | 0.020 |
| ↳ KLUE-STS similarity, 0–5 | 519 | 57.4 | 97.5 | 0.52 | 0.084 |
| ↳ Korean HateSpeech level (none < offensive < hate) | 471 | 67.7 | 98.3 | 0.35 | 0.054 |
| ↳ HelpSteer2 preference strength, −3 to 3 | 420 | 50.0 | 63.3 | 1.14 | 0.039 |
| System One eval set | 99 | 51.5 | 88.9 | 0.62 | 0.248 |
Two readouts from one pass
Each question is answered twice from the same forward pass: by the decision head and by the backbone's own answer letter. The released model averages the two (log-probabilities, 0.5 / 0.5) and then calibrates. Accuracy (%) / ECE, each readout calibrated on its own, on the questions that have an answer letter (at most 26 options): 75,688 held-out questions.
| Set | Decision head | Backbone letter | Averaged (this model) |
|---|---|---|---|
| Held-out | 86.8 / 0.011 | 85.8 / 0.014 | 86.7 / 0.016 |
| System One eval set | 79.6 / 0.068 | 81.1 / 0.037 | 80.7 / 0.062 |
Knowledge, reading and exams (never trained on)
Accuracy (%). MMMLU-ko is OpenAI's professional Korean translation of MMLU (MIT); Belebele-ko is Meta's reading benchmark (CC BY-SA 4.0); the exams are the Ministry of Justice's 2026 rounds, after every round used for training (KOGL Type 1, source: 법무부).
| Benchmark | Questions | This model | nari-decision-4b v3.2 |
|---|---|---|---|
| MMMLU-ko, all questions (knowledge) | 13,912 | 63.4 | 58.5 |
| Belebele-ko (reading) | 898 | 89.5 | 84.6 |
| Korean bar exam (15th) + legal ethics exam (17th), 2026 | 188 | 38.8 | 43.1 |
Baselines (zero-shot, same questions)
- clef-flash (9B): Cloudflare's open decision model (Qwen3.5-9B based), released weights and code.
- JEV-9B: AutoTrust's open decision model (Qwen3.5-9B + decision LoRA/head), System 1 via vLLM as in its model card (choice ≤ 16 options, score ≤ 6 levels).
- laya-multilingual: Convai's open decision model (mmBERT-base, 322M), released weights via the laya package.
- laya (English): Convai's English decision model (ModernBERT-large), English records only.
- nari-decision-4b (v3.2): the previous nari-decision release (Qwen3.5-4B based), same code path.
- All baselines are temperature-calibrated the same way on the calibration split. Cells are accuracy (%) / ECE.
| Set | This model | clef-flash (9B) | JEV-9B | laya-multilingual | laya (English) | nari-decision-4b (v3.2) |
|---|---|---|---|---|---|---|
| Held-out | 86.6 / 0.016 | 72.8 / 0.014 | 61.1 / 0.040 | 50.5 / 0.025 | — | 85.6 / 0.012 |
| Held-out, Korean | 86.8 / 0.025 | 75.2 / 0.021 | 67.3 / 0.028 | 51.0 / 0.029 | — | 85.9 / 0.025 |
| Held-out, English | 86.3 / 0.011 | 69.8 / 0.027 | 53.2 / 0.059 | 49.9 / 0.040 | 52.1 / 0.030 | 85.3 / 0.009 |
| System One eval set | 80.7 / 0.062 | 73.2 / 0.077 | 73.4 / 0.088 | 34.5 / 0.119 | — | 80.5 / 0.041 |
| Eval set, Korean | 82.9 / 0.057 | 73.8 / 0.077 | 76.0 / 0.115 | 36.4 / 0.110 | — | 82.1 / 0.048 |
| Eval set, English | 75.6 / 0.108 | 71.8 / 0.098 | 67.3 / 0.072 | 30.1 / 0.173 | 36.5 / 0.153 | 76.9 / 0.075 |
Speed (batch 1, one NVIDIA A100 80GB PCIe)
5 requests from the System One eval set: 3 simple (2 questions, 43–97-character state; 2 Korean, 1 English) and 2 complex (3 questions, 552–900-character state; 1 Korean, 1 English). Each number is the mean over those requests of the median of 10 runs (after 3 warm-up runs). The other models were measured on one A100 80GB PCIe on 2026-10-15 and nari-decision-4b v3.2 on a second one on 2026-10-18; this model (the released weights) was measured the same way on a third A100 80GB PCIe on 2026-11-11. There is no shared reference run on the third machine, so read small gaps with care. Models run through transformers are eager (no compilation or CUDA graphs) unless the row says enable_cuda_graphs(); the vLLM servers use vLLM's default CUDA graphs.
| Model | Mean (ms) | Simple (ms) | Complex (ms) | How it runs |
|---|---|---|---|---|
| laya-multilingual | 22.7 | 22.1 | 23.5 | laya package (encoder), all questions in one pass |
| laya (English) | 30.4 | 27.0 | 35.5 | laya package (encoder), all questions in one pass |
| nari-decision-4b (v3.2) | 32.2 | 24.7 | 43.5 | transformers + enable_cuda_graphs(), all questions in one forward pass |
| nari-decision-9b (this model) | 41.8 | 30.3 | 59.0 | transformers + enable_cuda_graphs(), all questions in one forward pass |
| nari-decision-9b (this model) | 62.1 | 60.3 | 64.8 | transformers, all questions in one forward pass |
| clef-flash (9B) | 73.4 | 66.4 | 83.8 | transformers, all questions in one forward pass |
| JEV-9B | 141.4 | 85.7 | 224.9 | local vLLM server, one request per question |
Training
- Backbone:
Qwen/Qwen3.5-9B(text model only), frozen, with LoRA on every linear layer (attention, Gated DeltaNet projections, MLP). The LoRA is merged into the released weights. - Decision head: the hidden state at the end of each option line is the query; 2 layers of self-attention across options and cross-attention over the whole sequence, plus a linear prior; softmax per question.
- Input: the backbone's chat template with one user turn per question, ending in "Answer with one letter."; the answer slot is the start of the assistant turn (earlier questions get an empty one).
- Backbone letter: the hidden state at the answer slot times the backbone's own (tied) embedding rows for the option letters A, B, …. The answer averages the head's and the letters' log-probabilities (0.5 / 0.5), then applies the temperature.
- Loss: log loss + Brier score (+ ranked probability score for ordinal questions) on the head, all strictly proper scoring rules, plus cross-entropy on the answer letter and a KL term that keeps the letter distribution close to the original backbone (adapter off, on a quarter of each batch). Option order is shuffled every epoch (except ordinal).
- Calibration: one temperature per (question type, number of options), and one for head-only questions with more than 26 options, fitted on a separate calibration split:
{"*": 0.7694, "choice:6+": 0.7411, "choice:3-5": 0.7988, "noul:2": 0.7411, "choice:2": 0.6146, "choice:27+": 1.0, "score:3-5": 0.7694, "score:6+": 0.7694} - Data: 671,127 labeled questions (English 51%, Korean 49%) from 60 sources. 29,214 steps on one A100 80GB.
- Answer balance: in 63 of 15,913 question families the loss weights each answer so the weighted answer mix is close to uniform (yes/no questions: 40.2% → 47.3% yes), so the model does not carry one task's answer prior into another. Families whose natural answer is "none" or "no" keep their mix, and 2 small families are up-weighted. Calibration and evaluation use the natural mix.
- No closed-model outputs anywhere in the training data. The synthetic part (D4) was generated by Qwen3.8-27B and kept only where Gemma-4-31B-it independently agreed, then spot-checked by a person.
Training data
| Source | Questions | License | Attribution |
|---|---|---|---|
| KLUE | 58,509 | CC BY-SA 4.0 | KLUE (Park et al., 2021), CC BY-SA 4.0 |
| nari-decision synthetic decisions (D4) | 57,398 | Apache-2.0 (synthetic, generated by Apache-2.0 models and cross-checked by Apache-2.0 or MIT models) | Synthetic decisions generated with Qwen3.8-27B (Apache-2.0) and cross-checked with Gemma-4-31B-it (Apache-2.0) or DeepSeek-V4.1-Flash (MIT) |
| KoSBi·SQuARe (NAVER) | 53,406 | MIT | KoSBi·SQuARe (Lee et al., 2023), NAVER, MIT |
| K-MHaS | 38,214 | CC BY-SA 4.0 | K-MHaS (Lee et al., 2022), CC BY-SA 4.0 |
| Schema-Guided Dialogue (SGD) | 29,988 | CC BY-SA 4.0 | Schema-Guided Dialogue (Rastogi et al., 2020), Google, CC BY-SA 4.0 |
| MASSIVE 1.1 영어 (en-US, SLURP 원문) | 24,498 | CC BY 4.0 | MASSIVE (FitzGerald et al., 2022), Amazon, CC BY 4.0 |
| HotpotQA (distractor) | 24,207 | CC BY-SA 4.0 | HotpotQA (Yang et al., 2018), CC BY-SA 4.0 |
| MASSIVE 1.1 한국어 (ko-KR) | 22,156 | CC BY 4.0 | MASSIVE (FitzGerald et al., 2022), Amazon, CC BY 4.0 |
| KorNLI 학습 세트 (SNLI·MNLI 기계번역) | 20,284 | CC BY-SA 4.0 | KorNLI (Ham et al., 2020), Kakao Brain, CC BY-SA 4.0 |
| ABCD (Action-Based Conversations Dataset) | 17,184 | MIT | ABCD (Chen et al., 2021), ASAPP Research, MIT |
| MIRACL 한국어 | 17,110 | Apache-2.0 | MIRACL (Zhang et al., 2023), Apache-2.0 |
| HoVer 학습 분할 | 15,884 | CC BY-SA 4.0, 코드 MIT | HoVer (Jiang et al., 2020), CC BY-SA 4.0 |
| MKQA 한국어 | 14,556 | CC BY-SA 3.0 | MKQA (Longpre et al., 2021), Apple, CC BY-SA 3.0 |
| CLINC150 (oos plus) | 14,126 | CC BY 3.0 | CLINC150 (Larson et al., 2019), CC BY 3.0 |
| nari-decision generators: rule puzzles and home-device commands | 13,821 | Own work (generated by program; sentence templates drafted with DeepSeek-V4.1-Flash (MIT) and reviewed by a person) | Values and answers computed by program; templates drafted with DeepSeek-V4.1-Flash (MIT) |
| HelpSteer2 (NVIDIA) | 13,507 | CC BY 4.0 | HelpSteer2 (Wang et al., 2024), NVIDIA, CC BY 4.0 |
| NoMIRACL 한국어 | 13,275 | Apache-2.0 | NoMIRACL (Thakur et al., 2024), Apache-2.0 |
| Aegis AI Content Safety 1.0 (NVIDIA) | 13,183 | CC BY 4.0 | Aegis 1.0 (Ghosh et al., 2024), NVIDIA, CC BY 4.0 |
| Korean HateSpeech (kocohub / BEEP!) | 12,204 | CC BY-SA 4.0 | Korean HateSpeech Dataset (Moon et al., 2020), CC BY-SA 4.0 |
| KoBEST (SKT) | 11,485 | CC BY-SA 4.0 | KoBEST (Kim et al., 2022), SKT, CC BY-SA 4.0 |
| VitaminC | 11,366 | CC BY-SA 3.0 | VitaminC (Schuster et al., 2021), CC BY-SA 3.0 |
| 3i4K | 9,992 | CC BY-SA 4.0 | 3i4K (Cho et al., 2018), CC BY-SA 4.0 |
| Civil Comments (TFDS/HF) | 7,931 | CC0 1.0 | Civil Comments (Borkan et al., 2019), Jigsaw, CC0 |
| BANKING77 학습 분할 | 7,895 | CC BY 4.0 | BANKING77 (Casanueva et al., 2020), PolyAI, CC BY 4.0 |
| SQuAD 2.0 | 7,760 | CC BY-SA 4.0 | SQuAD 2.0 (Rajpurkar et al., 2018), CC BY-SA 4.0 |
| PAWS-X 한국어 | 7,236 | Free use, attribution requested (Google) | PAWS-X (Yang et al., 2019), Google |
| STAR | 7,166 | MIT | STAR (Mosig et al., 2020), Rasa, MIT |
| WinoGrande XL 학습 분할 | 6,759 | CC BY | WinoGrande (Sakaguchi et al., 2020), AI2, CC BY |
| Dynamically Generated Hate Speech (DynaHate) v0.2.3 | 6,741 | CC BY 4.0 | DynaHate (Vidgen et al., 2021), CC BY 4.0 |
| Amazon ESCI 학습 분할 | 6,721 | Apache-2.0 | Shopping Queries Dataset (Reddy et al., 2022), Amazon, Apache-2.0 |
| Nazario 피싱 메일 모음 (2004~2025 메일함) | 6,509 | CC BY 4.0 | Phishing corpus by Jose Nazario, CC BY 4.0 |
| ShARC | 6,322 | CC BY-SA 3.0 | ShARC (Saeidi et al., 2018), CC BY-SA 3.0 |
| 지자체 알림 문자와 부산 재난문자 | 6,161 | 공공데이터 이용허락범위 제한 없음 | 평택·안양·군포·용인·수원·남양주·동두천·과천·금천구 알림 문자, 부산광역시 재난문자, 공공데이터포털 |
| Social IQa | 6,128 | CC BY 4.0 | Social IQa (Sap et al., 2019), AI2, CC BY 4.0 |
| CommonsenseQA 1.11 | 5,909 | MIT | CommonsenseQA (Talmor et al., 2019), MIT |
| GSM8K (OpenAI) | 5,877 | MIT | GSM8K (Cobbe et al., 2021), OpenAI, MIT |
| FaithDial | 5,633 | MIT | FaithDial (Dziri et al., 2022), MIT |
| BLiMP | 4,536 | CC BY | BLiMP (Warstadt et al., 2020), CC BY |
| AQuA-RAT | 4,508 | Apache-2.0 | AQuA-RAT (Ling et al., 2017), Google DeepMind, Apache-2.0 |
| MASSIVE-Agents 함수 정의 55개 | 4,486 | CC BY 4.0 | MASSIVE-Agents, Amazon, CC BY 4.0 |
| Taskmaster-3 | 4,479 | CC BY 4.0 | Taskmaster-3 (Byrne et al., 2020), Google, CC BY 4.0 |
| QASC | 4,464 | CC BY 4.0 | QASC (Khot et al., 2020), AI2, CC BY 4.0 |
| Fool Me Twice (FM2) | 4,363 | Apache-2.0 | Fool Me Twice (Eisenschlos et al., 2021), Google, Apache-2.0 |
| CommonsenseQA 2.0 | 4,319 | CC BY 4.0 | CommonsenseQA 2.0 (Talmor et al., 2021), AI2, CC BY 4.0 |
| 한국어 질문 쌍 (Question_pair) | 3,434 | MIT | Question_pair (songys), MIT |
| MBPP | 3,428 | CC BY 4.0 | MBPP (Austin et al., 2021), Google, CC BY 4.0 |
| MKQA 영어 | 3,348 | CC BY-SA 3.0 | MKQA (Longpre et al., 2021), Apple, CC BY-SA 3.0 |
| PAWS (Wiki, labeled_final) | 3,347 | Free use, attribution requested (Google) | PAWS (Zhang et al., 2019), Google |
| UCI SMS Spam Collection | 3,164 | CC BY 4.0 | SMS Spam Collection (Almeida & Gómez Hidalgo, 2011), UCI, CC BY 4.0 |
| nari-decision generators: causal reasoning | 3,000 | Own work (generated by program; sentence templates drafted with DeepSeek-V4.1-Flash (MIT) and reviewed by a person) | Values and answers computed by program; templates drafted with DeepSeek-V4.1-Flash (MIT) |
| BoolQ | 2,206 | CC BY-SA 3.0 | BoolQ (Clark et al., 2019), Google, CC BY-SA 3.0 |
| StrategyQA | 2,095 | MIT | StrategyQA (Geva et al., 2021), MIT |
| POP909-CL | 2,000 | MIT | POP909-CL (Weasley et al., 2025), MIT; POP909 (Wang et al., 2020), MIT |
| CLAIR 사기 메일 모음 | 1,947 | CC BY-SA 3.0 US | CLAIR collection of fraud email (Radev, 2008), CC BY-SA 3.0 |
| 변호사시험 기출·선택형 최종정답 (법무부) | 1,824 | KOGL Type 1 (attribution) | 법무부, 변호사시험 기출문제 (공공누리 제1유형) |
| nari-decision generators: symbolic expressions (Boolean and similar) | 1,200 | Own work (generated by program, no human- or model-written text) | Generated by program |
| SIB-200 영어 (eng_Latn) | 648 | CC BY-SA 4.0 | SIB-200 (Adelani et al., 2024), CC BY-SA 4.0 |
| 법조윤리시험 기출·최종정답 (법무부) | 574 | KOGL Type 1 (attribution) | 법무부, 법조윤리시험 기출문제 (공공누리 제1유형) |
| HumanEval | 572 | MIT | HumanEval (Chen et al., 2021), OpenAI, MIT |
| SIB-200 한국어 | 84 | CC BY-SA 4.0 | SIB-200 (Adelani et al., 2024), CC BY-SA 4.0 |
Limitations
- Calibration holds on data like the training mix. On a different distribution, re-fit the temperatures on a few hundred labeled examples of your own.
- Korean and English only. Other languages are untested.
- Ordinal (
score) questions are the weakest type: 59.2% exactly right on held-out (91.2% within one step). Most of them are human ratings (HelpSteer2), where people also differ by a step. On the System One eval set they are poorly calibrated (ECE 0.248 on 99 questions). - It judges what is in the state; it has no access to tools, the web or current facts.
- The guardrail questions cover PII, secrets and prompt injection; this is not a general content-safety classifier.
- Deep, multi-step reading (exam-style reading comprehension) is still well below generative LLMs. Use the confidence to send such inputs to a larger model.
- On general-knowledge questions the confidence runs high: MMMLU-ko ECE 0.094 (mean confidence 72.8% at 63.4% accuracy). Re-fit the temperatures if that is your main use.
- The Ministry of Justice exams used for training (bar exam 1st–13th, legal ethics 1st–15th) are partly memorized (69.4% there vs 38.8% on the 2026 rounds); do not use them to evaluate this model.
- Weaker spots on held-out: Korean paraphrase detection (PAWS-X) 84.4% vs English (PAWS) 95.4%; knowledge (MMMLU-ko) 62.1%.
License
Apache-2.0 for the weights and code. The training data includes CC BY and CC BY-SA sources; their attribution is listed in the table above.
The Korean national exam questions are public works of the Ministry of Justice released under KOGL Type 1 (공공누리 제1유형, attribution required); the attribution is in the table above.
- Downloads last month
- 50