Basics · 3-Way Fact Verification & Template Ablation · 252.95 MB WASM q8 · MIT

3-Way MNLI vs FEVER vs ANLI Fact Verification & Template Ablation

Explore how MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli scores raw entailment / neutral / contradiction triples on evidence-claim chains, then ablate four hypothesis_template wordings and compare single-label vs multi-label calibration.

1. On-device model

Initialise DeBERTa-v3-Base MNLI/FEVER/ANLI above to run the fact verification & template labs.

2. 3-Way MNLI · FEVER · ANLI Fact Verification & Evidence Chain

Pick a benchmark regime (FEVER-NLI Supported, FEVER-NLI Refuted, MNLI Neutral, or ANLI Multi-Step Deduction) or edit the Premise and Hypothesis directly, plus verify a 3-step evidence paragraph in one pass.

3-class verdict–
Entailment [0]–
Neutral [1]–
Contradiction [2]–
E − C logit Δ–
Latency / NaN–
Multi-step fact verification chain showing expected NLI class, predicted verdict, 3-class probabilities, and token count
Step Claim hypothesis Expected Predicted E / N / C probs 3-class split
Click "Run 3-Step Evidence Chain" to verify supported, refuted, and neutral claims against the Northwind Grid evidence block.

3. Hypothesis-Template Ablation Lab

Score the identical passage and labels across four editable hypothesis_template patterns using Xenova/DeBERTa-v3-base-mnli-fever-anli. Observe how template wording shifts 3-class entailment logits and can flip the top label.

Consensus–
Rank flip?–
Top-1 spread–
Total latency–
NaN count–
Hypothesis template ablation showing top label, score, entailment logit, and runner-up
Template Top-1 label Top-1 score Entailment logit Runner-up Latency
Run the 4-template ablation above.

4. Single-Label Softmax vs Multi-Label [C, E] Calibration

In single-label mode, softmax() runs over all entailment logits across labels (forcing Σ=100% even on out-of-scope text). In multi-label mode, each label is evaluated independently via softmax([contradiction, entailment])[1].

Single sum–
Multi sum–
Labels ≥ 50% (multi)–
Latency–
NaN count–
Calibration comparison table between single-label softmax and multi-label entailment-vs-contradiction probability
Label Single-label softmax Multi-label P(E vs C) Δ (Multi − Single) E − C logit margin
Run Calibration Comparison above.

5. Inspect 3-class scoring, chain & calibration helpers

Show the code · deberta-base-nli-core.mjs — scoreDirectNliPair()
Show the code · worker.js — runNliPairs()
Show the code · deberta-base-nli-core.mjs — summarizeTemplateSensitivity()
Show the code · deberta-base-nli.js — drawCalibrationCanvas()